Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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.68. |
michael@0 | 4 | # |
michael@0 | 5 | # Copyright (c) 1999-2013, International Business Machines Corporation and others. All Rights Reserved. |
michael@0 | 6 | # |
michael@0 | 7 | # |
michael@0 | 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
michael@0 | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
michael@0 | 10 | # Foundation, Inc. |
michael@0 | 11 | # |
michael@0 | 12 | # |
michael@0 | 13 | # This configure script is free software; the Free Software Foundation |
michael@0 | 14 | # gives unlimited permission to copy, distribute and modify it. |
michael@0 | 15 | ## -------------------- ## |
michael@0 | 16 | ## M4sh Initialization. ## |
michael@0 | 17 | ## -------------------- ## |
michael@0 | 18 | |
michael@0 | 19 | # Be more Bourne compatible |
michael@0 | 20 | DUALCASE=1; export DUALCASE # for MKS sh |
michael@0 | 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 22 | emulate sh |
michael@0 | 23 | NULLCMD=: |
michael@0 | 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
michael@0 | 25 | # is contrary to our usage. Disable this feature. |
michael@0 | 26 | alias -g '${1+"$@"}'='"$@"' |
michael@0 | 27 | setopt NO_GLOB_SUBST |
michael@0 | 28 | else |
michael@0 | 29 | case `(set -o) 2>/dev/null` in #( |
michael@0 | 30 | *posix*) : |
michael@0 | 31 | set -o posix ;; #( |
michael@0 | 32 | *) : |
michael@0 | 33 | ;; |
michael@0 | 34 | esac |
michael@0 | 35 | fi |
michael@0 | 36 | |
michael@0 | 37 | |
michael@0 | 38 | as_nl=' |
michael@0 | 39 | ' |
michael@0 | 40 | export as_nl |
michael@0 | 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
michael@0 | 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
michael@0 | 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
michael@0 | 46 | # but without wasting forks for bash or zsh. |
michael@0 | 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
michael@0 | 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 49 | as_echo='print -r --' |
michael@0 | 50 | as_echo_n='print -rn --' |
michael@0 | 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 52 | as_echo='printf %s\n' |
michael@0 | 53 | as_echo_n='printf %s' |
michael@0 | 54 | else |
michael@0 | 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
michael@0 | 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
michael@0 | 57 | as_echo_n='/usr/ucb/echo -n' |
michael@0 | 58 | else |
michael@0 | 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
michael@0 | 60 | as_echo_n_body='eval |
michael@0 | 61 | arg=$1; |
michael@0 | 62 | case $arg in #( |
michael@0 | 63 | *"$as_nl"*) |
michael@0 | 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
michael@0 | 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
michael@0 | 66 | esac; |
michael@0 | 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
michael@0 | 68 | ' |
michael@0 | 69 | export as_echo_n_body |
michael@0 | 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
michael@0 | 71 | fi |
michael@0 | 72 | export as_echo_body |
michael@0 | 73 | as_echo='sh -c $as_echo_body as_echo' |
michael@0 | 74 | fi |
michael@0 | 75 | |
michael@0 | 76 | # The user is always right. |
michael@0 | 77 | if test "${PATH_SEPARATOR+set}" != set; then |
michael@0 | 78 | PATH_SEPARATOR=: |
michael@0 | 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
michael@0 | 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
michael@0 | 81 | PATH_SEPARATOR=';' |
michael@0 | 82 | } |
michael@0 | 83 | fi |
michael@0 | 84 | |
michael@0 | 85 | |
michael@0 | 86 | # IFS |
michael@0 | 87 | # We need space, tab and new line, in precisely that order. Quoting is |
michael@0 | 88 | # there to prevent editors from complaining about space-tab. |
michael@0 | 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
michael@0 | 90 | # splitting by setting IFS to empty value.) |
michael@0 | 91 | IFS=" "" $as_nl" |
michael@0 | 92 | |
michael@0 | 93 | # Find who we are. Look in the path if we contain no directory separator. |
michael@0 | 94 | as_myself= |
michael@0 | 95 | case $0 in #(( |
michael@0 | 96 | *[\\/]* ) as_myself=$0 ;; |
michael@0 | 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 98 | for as_dir in $PATH |
michael@0 | 99 | do |
michael@0 | 100 | IFS=$as_save_IFS |
michael@0 | 101 | test -z "$as_dir" && as_dir=. |
michael@0 | 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
michael@0 | 103 | done |
michael@0 | 104 | IFS=$as_save_IFS |
michael@0 | 105 | |
michael@0 | 106 | ;; |
michael@0 | 107 | esac |
michael@0 | 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
michael@0 | 109 | # in which case we are not to be found in the path. |
michael@0 | 110 | if test "x$as_myself" = x; then |
michael@0 | 111 | as_myself=$0 |
michael@0 | 112 | fi |
michael@0 | 113 | if test ! -f "$as_myself"; then |
michael@0 | 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
michael@0 | 115 | exit 1 |
michael@0 | 116 | fi |
michael@0 | 117 | |
michael@0 | 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
michael@0 | 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
michael@0 | 120 | # suppresses any "Segmentation fault" message there. '((' could |
michael@0 | 121 | # trigger a bug in pdksh 5.2.14. |
michael@0 | 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
michael@0 | 123 | do eval test x\${$as_var+set} = xset \ |
michael@0 | 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
michael@0 | 125 | done |
michael@0 | 126 | PS1='$ ' |
michael@0 | 127 | PS2='> ' |
michael@0 | 128 | PS4='+ ' |
michael@0 | 129 | |
michael@0 | 130 | # NLS nuisances. |
michael@0 | 131 | LC_ALL=C |
michael@0 | 132 | export LC_ALL |
michael@0 | 133 | LANGUAGE=C |
michael@0 | 134 | export LANGUAGE |
michael@0 | 135 | |
michael@0 | 136 | # CDPATH. |
michael@0 | 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
michael@0 | 138 | |
michael@0 | 139 | if test "x$CONFIG_SHELL" = x; then |
michael@0 | 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 141 | emulate sh |
michael@0 | 142 | NULLCMD=: |
michael@0 | 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
michael@0 | 144 | # is contrary to our usage. Disable this feature. |
michael@0 | 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
michael@0 | 146 | setopt NO_GLOB_SUBST |
michael@0 | 147 | else |
michael@0 | 148 | case \`(set -o) 2>/dev/null\` in #( |
michael@0 | 149 | *posix*) : |
michael@0 | 150 | set -o posix ;; #( |
michael@0 | 151 | *) : |
michael@0 | 152 | ;; |
michael@0 | 153 | esac |
michael@0 | 154 | fi |
michael@0 | 155 | " |
michael@0 | 156 | as_required="as_fn_return () { (exit \$1); } |
michael@0 | 157 | as_fn_success () { as_fn_return 0; } |
michael@0 | 158 | as_fn_failure () { as_fn_return 1; } |
michael@0 | 159 | as_fn_ret_success () { return 0; } |
michael@0 | 160 | as_fn_ret_failure () { return 1; } |
michael@0 | 161 | |
michael@0 | 162 | exitcode=0 |
michael@0 | 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
michael@0 | 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
michael@0 | 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
michael@0 | 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
michael@0 | 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
michael@0 | 168 | |
michael@0 | 169 | else |
michael@0 | 170 | exitcode=1; echo positional parameters were not saved. |
michael@0 | 171 | fi |
michael@0 | 172 | test x\$exitcode = x0 || exit 1" |
michael@0 | 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
michael@0 | 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
michael@0 | 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
michael@0 | 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
michael@0 | 177 | test \$(( 1 + 1 )) = 2 || exit 1" |
michael@0 | 178 | if (eval "$as_required") 2>/dev/null; then : |
michael@0 | 179 | as_have_required=yes |
michael@0 | 180 | else |
michael@0 | 181 | as_have_required=no |
michael@0 | 182 | fi |
michael@0 | 183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
michael@0 | 184 | |
michael@0 | 185 | else |
michael@0 | 186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 187 | as_found=false |
michael@0 | 188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
michael@0 | 189 | do |
michael@0 | 190 | IFS=$as_save_IFS |
michael@0 | 191 | test -z "$as_dir" && as_dir=. |
michael@0 | 192 | as_found=: |
michael@0 | 193 | case $as_dir in #( |
michael@0 | 194 | /*) |
michael@0 | 195 | for as_base in sh bash ksh sh5; do |
michael@0 | 196 | # Try only shells that exist, to save several forks. |
michael@0 | 197 | as_shell=$as_dir/$as_base |
michael@0 | 198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
michael@0 | 199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
michael@0 | 200 | CONFIG_SHELL=$as_shell as_have_required=yes |
michael@0 | 201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
michael@0 | 202 | break 2 |
michael@0 | 203 | fi |
michael@0 | 204 | fi |
michael@0 | 205 | done;; |
michael@0 | 206 | esac |
michael@0 | 207 | as_found=false |
michael@0 | 208 | done |
michael@0 | 209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
michael@0 | 210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
michael@0 | 211 | CONFIG_SHELL=$SHELL as_have_required=yes |
michael@0 | 212 | fi; } |
michael@0 | 213 | IFS=$as_save_IFS |
michael@0 | 214 | |
michael@0 | 215 | |
michael@0 | 216 | if test "x$CONFIG_SHELL" != x; then : |
michael@0 | 217 | # We cannot yet assume a decent shell, so we have to provide a |
michael@0 | 218 | # neutralization value for shells without unset; and this also |
michael@0 | 219 | # works around shells that cannot unset nonexistent variables. |
michael@0 | 220 | # Preserve -v and -x to the replacement shell. |
michael@0 | 221 | BASH_ENV=/dev/null |
michael@0 | 222 | ENV=/dev/null |
michael@0 | 223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
michael@0 | 224 | export CONFIG_SHELL |
michael@0 | 225 | case $- in # (((( |
michael@0 | 226 | *v*x* | *x*v* ) as_opts=-vx ;; |
michael@0 | 227 | *v* ) as_opts=-v ;; |
michael@0 | 228 | *x* ) as_opts=-x ;; |
michael@0 | 229 | * ) as_opts= ;; |
michael@0 | 230 | esac |
michael@0 | 231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
michael@0 | 232 | fi |
michael@0 | 233 | |
michael@0 | 234 | if test x$as_have_required = xno; then : |
michael@0 | 235 | $as_echo "$0: This script requires a shell more modern than all" |
michael@0 | 236 | $as_echo "$0: the shells that I found on your system." |
michael@0 | 237 | if test x${ZSH_VERSION+set} = xset ; then |
michael@0 | 238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
michael@0 | 239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
michael@0 | 240 | else |
michael@0 | 241 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
michael@0 | 242 | $0: including any error possibly output before this |
michael@0 | 243 | $0: message. Then install a modern shell, or manually run |
michael@0 | 244 | $0: the script under such a shell if you do have one." |
michael@0 | 245 | fi |
michael@0 | 246 | exit 1 |
michael@0 | 247 | fi |
michael@0 | 248 | fi |
michael@0 | 249 | fi |
michael@0 | 250 | SHELL=${CONFIG_SHELL-/bin/sh} |
michael@0 | 251 | export SHELL |
michael@0 | 252 | # Unset more variables known to interfere with behavior of common tools. |
michael@0 | 253 | CLICOLOR_FORCE= GREP_OPTIONS= |
michael@0 | 254 | unset CLICOLOR_FORCE GREP_OPTIONS |
michael@0 | 255 | |
michael@0 | 256 | ## --------------------- ## |
michael@0 | 257 | ## M4sh Shell Functions. ## |
michael@0 | 258 | ## --------------------- ## |
michael@0 | 259 | # as_fn_unset VAR |
michael@0 | 260 | # --------------- |
michael@0 | 261 | # Portably unset VAR. |
michael@0 | 262 | as_fn_unset () |
michael@0 | 263 | { |
michael@0 | 264 | { eval $1=; unset $1;} |
michael@0 | 265 | } |
michael@0 | 266 | as_unset=as_fn_unset |
michael@0 | 267 | |
michael@0 | 268 | # as_fn_set_status STATUS |
michael@0 | 269 | # ----------------------- |
michael@0 | 270 | # Set $? to STATUS, without forking. |
michael@0 | 271 | as_fn_set_status () |
michael@0 | 272 | { |
michael@0 | 273 | return $1 |
michael@0 | 274 | } # as_fn_set_status |
michael@0 | 275 | |
michael@0 | 276 | # as_fn_exit STATUS |
michael@0 | 277 | # ----------------- |
michael@0 | 278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
michael@0 | 279 | as_fn_exit () |
michael@0 | 280 | { |
michael@0 | 281 | set +e |
michael@0 | 282 | as_fn_set_status $1 |
michael@0 | 283 | exit $1 |
michael@0 | 284 | } # as_fn_exit |
michael@0 | 285 | |
michael@0 | 286 | # as_fn_mkdir_p |
michael@0 | 287 | # ------------- |
michael@0 | 288 | # Create "$as_dir" as a directory, including parents if necessary. |
michael@0 | 289 | as_fn_mkdir_p () |
michael@0 | 290 | { |
michael@0 | 291 | |
michael@0 | 292 | case $as_dir in #( |
michael@0 | 293 | -*) as_dir=./$as_dir;; |
michael@0 | 294 | esac |
michael@0 | 295 | test -d "$as_dir" || eval $as_mkdir_p || { |
michael@0 | 296 | as_dirs= |
michael@0 | 297 | while :; do |
michael@0 | 298 | case $as_dir in #( |
michael@0 | 299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
michael@0 | 300 | *) as_qdir=$as_dir;; |
michael@0 | 301 | esac |
michael@0 | 302 | as_dirs="'$as_qdir' $as_dirs" |
michael@0 | 303 | as_dir=`$as_dirname -- "$as_dir" || |
michael@0 | 304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 305 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
michael@0 | 306 | X"$as_dir" : 'X\(//\)$' \| \ |
michael@0 | 307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 308 | $as_echo X"$as_dir" | |
michael@0 | 309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 310 | s//\1/ |
michael@0 | 311 | q |
michael@0 | 312 | } |
michael@0 | 313 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 314 | s//\1/ |
michael@0 | 315 | q |
michael@0 | 316 | } |
michael@0 | 317 | /^X\(\/\/\)$/{ |
michael@0 | 318 | s//\1/ |
michael@0 | 319 | q |
michael@0 | 320 | } |
michael@0 | 321 | /^X\(\/\).*/{ |
michael@0 | 322 | s//\1/ |
michael@0 | 323 | q |
michael@0 | 324 | } |
michael@0 | 325 | s/.*/./; q'` |
michael@0 | 326 | test -d "$as_dir" && break |
michael@0 | 327 | done |
michael@0 | 328 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
michael@0 | 329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
michael@0 | 330 | |
michael@0 | 331 | |
michael@0 | 332 | } # as_fn_mkdir_p |
michael@0 | 333 | # as_fn_append VAR VALUE |
michael@0 | 334 | # ---------------------- |
michael@0 | 335 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
michael@0 | 336 | # advantage of any shell optimizations that allow amortized linear growth over |
michael@0 | 337 | # repeated appends, instead of the typical quadratic growth present in naive |
michael@0 | 338 | # implementations. |
michael@0 | 339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
michael@0 | 340 | eval 'as_fn_append () |
michael@0 | 341 | { |
michael@0 | 342 | eval $1+=\$2 |
michael@0 | 343 | }' |
michael@0 | 344 | else |
michael@0 | 345 | as_fn_append () |
michael@0 | 346 | { |
michael@0 | 347 | eval $1=\$$1\$2 |
michael@0 | 348 | } |
michael@0 | 349 | fi # as_fn_append |
michael@0 | 350 | |
michael@0 | 351 | # as_fn_arith ARG... |
michael@0 | 352 | # ------------------ |
michael@0 | 353 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
michael@0 | 354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
michael@0 | 355 | # must be portable across $(()) and expr. |
michael@0 | 356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
michael@0 | 357 | eval 'as_fn_arith () |
michael@0 | 358 | { |
michael@0 | 359 | as_val=$(( $* )) |
michael@0 | 360 | }' |
michael@0 | 361 | else |
michael@0 | 362 | as_fn_arith () |
michael@0 | 363 | { |
michael@0 | 364 | as_val=`expr "$@" || test $? -eq 1` |
michael@0 | 365 | } |
michael@0 | 366 | fi # as_fn_arith |
michael@0 | 367 | |
michael@0 | 368 | |
michael@0 | 369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
michael@0 | 370 | # ---------------------------------------- |
michael@0 | 371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
michael@0 | 372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
michael@0 | 373 | # script with STATUS, using 1 if that was 0. |
michael@0 | 374 | as_fn_error () |
michael@0 | 375 | { |
michael@0 | 376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
michael@0 | 377 | if test "$4"; then |
michael@0 | 378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
michael@0 | 380 | fi |
michael@0 | 381 | $as_echo "$as_me: error: $2" >&2 |
michael@0 | 382 | as_fn_exit $as_status |
michael@0 | 383 | } # as_fn_error |
michael@0 | 384 | |
michael@0 | 385 | if expr a : '\(a\)' >/dev/null 2>&1 && |
michael@0 | 386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
michael@0 | 387 | as_expr=expr |
michael@0 | 388 | else |
michael@0 | 389 | as_expr=false |
michael@0 | 390 | fi |
michael@0 | 391 | |
michael@0 | 392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
michael@0 | 393 | as_basename=basename |
michael@0 | 394 | else |
michael@0 | 395 | as_basename=false |
michael@0 | 396 | fi |
michael@0 | 397 | |
michael@0 | 398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
michael@0 | 399 | as_dirname=dirname |
michael@0 | 400 | else |
michael@0 | 401 | as_dirname=false |
michael@0 | 402 | fi |
michael@0 | 403 | |
michael@0 | 404 | as_me=`$as_basename -- "$0" || |
michael@0 | 405 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
michael@0 | 406 | X"$0" : 'X\(//\)$' \| \ |
michael@0 | 407 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 408 | $as_echo X/"$0" | |
michael@0 | 409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
michael@0 | 410 | s//\1/ |
michael@0 | 411 | q |
michael@0 | 412 | } |
michael@0 | 413 | /^X\/\(\/\/\)$/{ |
michael@0 | 414 | s//\1/ |
michael@0 | 415 | q |
michael@0 | 416 | } |
michael@0 | 417 | /^X\/\(\/\).*/{ |
michael@0 | 418 | s//\1/ |
michael@0 | 419 | q |
michael@0 | 420 | } |
michael@0 | 421 | s/.*/./; q'` |
michael@0 | 422 | |
michael@0 | 423 | # Avoid depending upon Character Ranges. |
michael@0 | 424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
michael@0 | 425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
michael@0 | 426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
michael@0 | 427 | as_cr_digits='0123456789' |
michael@0 | 428 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
michael@0 | 429 | |
michael@0 | 430 | |
michael@0 | 431 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
michael@0 | 432 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
michael@0 | 433 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
michael@0 | 434 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
michael@0 | 435 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
michael@0 | 436 | sed -n ' |
michael@0 | 437 | p |
michael@0 | 438 | /[$]LINENO/= |
michael@0 | 439 | ' <$as_myself | |
michael@0 | 440 | sed ' |
michael@0 | 441 | s/[$]LINENO.*/&-/ |
michael@0 | 442 | t lineno |
michael@0 | 443 | b |
michael@0 | 444 | :lineno |
michael@0 | 445 | N |
michael@0 | 446 | :loop |
michael@0 | 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
michael@0 | 448 | t loop |
michael@0 | 449 | s/-\n.*// |
michael@0 | 450 | ' >$as_me.lineno && |
michael@0 | 451 | chmod +x "$as_me.lineno" || |
michael@0 | 452 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
michael@0 | 453 | |
michael@0 | 454 | # Don't try to exec as it changes $[0], causing all sort of problems |
michael@0 | 455 | # (the dirname of $[0] is not the place where we might find the |
michael@0 | 456 | # original and so on. Autoconf is especially sensitive to this). |
michael@0 | 457 | . "./$as_me.lineno" |
michael@0 | 458 | # Exit status is that of the last command. |
michael@0 | 459 | exit |
michael@0 | 460 | } |
michael@0 | 461 | |
michael@0 | 462 | ECHO_C= ECHO_N= ECHO_T= |
michael@0 | 463 | case `echo -n x` in #((((( |
michael@0 | 464 | -n*) |
michael@0 | 465 | case `echo 'xy\c'` in |
michael@0 | 466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 467 | xy) ECHO_C='\c';; |
michael@0 | 468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
michael@0 | 469 | ECHO_T=' ';; |
michael@0 | 470 | esac;; |
michael@0 | 471 | *) |
michael@0 | 472 | ECHO_N='-n';; |
michael@0 | 473 | esac |
michael@0 | 474 | |
michael@0 | 475 | rm -f conf$$ conf$$.exe conf$$.file |
michael@0 | 476 | if test -d conf$$.dir; then |
michael@0 | 477 | rm -f conf$$.dir/conf$$.file |
michael@0 | 478 | else |
michael@0 | 479 | rm -f conf$$.dir |
michael@0 | 480 | mkdir conf$$.dir 2>/dev/null |
michael@0 | 481 | fi |
michael@0 | 482 | if (echo >conf$$.file) 2>/dev/null; then |
michael@0 | 483 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 484 | as_ln_s='ln -s' |
michael@0 | 485 | # ... but there are two gotchas: |
michael@0 | 486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
michael@0 | 487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
michael@0 | 488 | # In both cases, we have to default to `cp -p'. |
michael@0 | 489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
michael@0 | 490 | as_ln_s='cp -p' |
michael@0 | 491 | elif ln conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 492 | as_ln_s=ln |
michael@0 | 493 | else |
michael@0 | 494 | as_ln_s='cp -p' |
michael@0 | 495 | fi |
michael@0 | 496 | else |
michael@0 | 497 | as_ln_s='cp -p' |
michael@0 | 498 | fi |
michael@0 | 499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
michael@0 | 500 | rmdir conf$$.dir 2>/dev/null |
michael@0 | 501 | |
michael@0 | 502 | if mkdir -p . 2>/dev/null; then |
michael@0 | 503 | as_mkdir_p='mkdir -p "$as_dir"' |
michael@0 | 504 | else |
michael@0 | 505 | test -d ./-p && rmdir ./-p |
michael@0 | 506 | as_mkdir_p=false |
michael@0 | 507 | fi |
michael@0 | 508 | |
michael@0 | 509 | if test -x / >/dev/null 2>&1; then |
michael@0 | 510 | as_test_x='test -x' |
michael@0 | 511 | else |
michael@0 | 512 | if ls -dL / >/dev/null 2>&1; then |
michael@0 | 513 | as_ls_L_option=L |
michael@0 | 514 | else |
michael@0 | 515 | as_ls_L_option= |
michael@0 | 516 | fi |
michael@0 | 517 | as_test_x=' |
michael@0 | 518 | eval sh -c '\'' |
michael@0 | 519 | if test -d "$1"; then |
michael@0 | 520 | test -d "$1/."; |
michael@0 | 521 | else |
michael@0 | 522 | case $1 in #( |
michael@0 | 523 | -*)set "./$1";; |
michael@0 | 524 | esac; |
michael@0 | 525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
michael@0 | 526 | ???[sx]*):;;*)false;;esac;fi |
michael@0 | 527 | '\'' sh |
michael@0 | 528 | ' |
michael@0 | 529 | fi |
michael@0 | 530 | as_executable_p=$as_test_x |
michael@0 | 531 | |
michael@0 | 532 | # Sed expression to map a string onto a valid CPP name. |
michael@0 | 533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 534 | |
michael@0 | 535 | # Sed expression to map a string onto a valid variable name. |
michael@0 | 536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 537 | |
michael@0 | 538 | |
michael@0 | 539 | test -n "$DJDIR" || exec 7<&0 </dev/null |
michael@0 | 540 | exec 6>&1 |
michael@0 | 541 | |
michael@0 | 542 | # Name of the host. |
michael@0 | 543 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
michael@0 | 544 | # so uname gets run too. |
michael@0 | 545 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 546 | |
michael@0 | 547 | # |
michael@0 | 548 | # Initializations. |
michael@0 | 549 | # |
michael@0 | 550 | ac_default_prefix=/usr/local |
michael@0 | 551 | ac_clean_files= |
michael@0 | 552 | ac_config_libobj_dir=. |
michael@0 | 553 | LIBOBJS= |
michael@0 | 554 | cross_compiling=no |
michael@0 | 555 | subdirs= |
michael@0 | 556 | MFLAGS= |
michael@0 | 557 | MAKEFLAGS= |
michael@0 | 558 | |
michael@0 | 559 | # Identity of this package. |
michael@0 | 560 | PACKAGE_NAME= |
michael@0 | 561 | PACKAGE_TARNAME= |
michael@0 | 562 | PACKAGE_VERSION= |
michael@0 | 563 | PACKAGE_STRING= |
michael@0 | 564 | PACKAGE_BUGREPORT= |
michael@0 | 565 | PACKAGE_URL= |
michael@0 | 566 | |
michael@0 | 567 | ac_unique_file="ICU" |
michael@0 | 568 | ac_unique_file="common/unicode/utypes.h" |
michael@0 | 569 | # Factoring default headers for most tests. |
michael@0 | 570 | ac_includes_default="\ |
michael@0 | 571 | #include <stdio.h> |
michael@0 | 572 | #ifdef HAVE_SYS_TYPES_H |
michael@0 | 573 | # include <sys/types.h> |
michael@0 | 574 | #endif |
michael@0 | 575 | #ifdef HAVE_SYS_STAT_H |
michael@0 | 576 | # include <sys/stat.h> |
michael@0 | 577 | #endif |
michael@0 | 578 | #ifdef STDC_HEADERS |
michael@0 | 579 | # include <stdlib.h> |
michael@0 | 580 | # include <stddef.h> |
michael@0 | 581 | #else |
michael@0 | 582 | # ifdef HAVE_STDLIB_H |
michael@0 | 583 | # include <stdlib.h> |
michael@0 | 584 | # endif |
michael@0 | 585 | #endif |
michael@0 | 586 | #ifdef HAVE_STRING_H |
michael@0 | 587 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
michael@0 | 588 | # include <memory.h> |
michael@0 | 589 | # endif |
michael@0 | 590 | # include <string.h> |
michael@0 | 591 | #endif |
michael@0 | 592 | #ifdef HAVE_STRINGS_H |
michael@0 | 593 | # include <strings.h> |
michael@0 | 594 | #endif |
michael@0 | 595 | #ifdef HAVE_INTTYPES_H |
michael@0 | 596 | # include <inttypes.h> |
michael@0 | 597 | #endif |
michael@0 | 598 | #ifdef HAVE_STDINT_H |
michael@0 | 599 | # include <stdint.h> |
michael@0 | 600 | #endif |
michael@0 | 601 | #ifdef HAVE_UNISTD_H |
michael@0 | 602 | # include <unistd.h> |
michael@0 | 603 | #endif" |
michael@0 | 604 | |
michael@0 | 605 | ac_subst_vars='UCONFIG_CXXFLAGS |
michael@0 | 606 | UCONFIG_CFLAGS |
michael@0 | 607 | UCONFIG_CPPFLAGS |
michael@0 | 608 | LTLIBOBJS |
michael@0 | 609 | LIBOBJS |
michael@0 | 610 | LIBCXXFLAGS |
michael@0 | 611 | LIBCFLAGS |
michael@0 | 612 | platform_make_fragment |
michael@0 | 613 | platform_make_fragment_name |
michael@0 | 614 | platform |
michael@0 | 615 | ICUDATA_CHAR |
michael@0 | 616 | SAMPLES_TRUE |
michael@0 | 617 | TESTS_TRUE |
michael@0 | 618 | ICULIBSUFFIXCNAME |
michael@0 | 619 | U_HAVE_LIB_SUFFIX |
michael@0 | 620 | ICULIBSUFFIX |
michael@0 | 621 | DATA_PACKAGING_MODE |
michael@0 | 622 | thepkgicudatadir |
michael@0 | 623 | pkgicudatadir |
michael@0 | 624 | TOOLS_TRUE |
michael@0 | 625 | LAYOUT_TRUE |
michael@0 | 626 | ICUIO_TRUE |
michael@0 | 627 | EXTRAS_TRUE |
michael@0 | 628 | U_HAVE_WCSCPY |
michael@0 | 629 | U_HAVE_WCHAR_H |
michael@0 | 630 | U_TIMEZONE |
michael@0 | 631 | U_HAVE_TIMEZONE |
michael@0 | 632 | U_TZNAME |
michael@0 | 633 | U_HAVE_TZNAME |
michael@0 | 634 | U_TZSET |
michael@0 | 635 | U_HAVE_TZSET |
michael@0 | 636 | U_HAVE_POPEN |
michael@0 | 637 | U_HAVE_PLACEMENT_NEW |
michael@0 | 638 | U_OVERRIDE_CXX_ALLOCATION |
michael@0 | 639 | U_NL_LANGINFO_CODESET |
michael@0 | 640 | U_HAVE_NL_LANGINFO_CODESET |
michael@0 | 641 | U_IS_BIG_ENDIAN |
michael@0 | 642 | U_HAVE_DIRENT_H |
michael@0 | 643 | U_HAVE_INTTYPES_H |
michael@0 | 644 | GENCCODE_ASSEMBLY |
michael@0 | 645 | HAVE_MMAP |
michael@0 | 646 | LIB_THREAD |
michael@0 | 647 | U_HAVE_ATOMIC |
michael@0 | 648 | U_HAVE_STD_STRING |
michael@0 | 649 | ENABLE_RPATH |
michael@0 | 650 | U_ENABLE_DYLOAD |
michael@0 | 651 | U_ENABLE_TRACING |
michael@0 | 652 | U_DISABLE_RENAMING |
michael@0 | 653 | AR |
michael@0 | 654 | RANLIB |
michael@0 | 655 | U_DEFAULT_SHOW_DRAFT |
michael@0 | 656 | UCLN_NO_AUTO_CLEANUP |
michael@0 | 657 | ENABLE_STATIC |
michael@0 | 658 | ENABLE_SHARED |
michael@0 | 659 | LIB_M |
michael@0 | 660 | COMPILE_LINK_ENVVAR |
michael@0 | 661 | ARFLAGS |
michael@0 | 662 | EGREP |
michael@0 | 663 | GREP |
michael@0 | 664 | DOXYGEN |
michael@0 | 665 | cross_buildroot |
michael@0 | 666 | U_MAKE |
michael@0 | 667 | cross_compiling |
michael@0 | 668 | INSTALL_DATA |
michael@0 | 669 | INSTALL_SCRIPT |
michael@0 | 670 | INSTALL_PROGRAM |
michael@0 | 671 | CPP |
michael@0 | 672 | ac_ct_CXX |
michael@0 | 673 | CXXFLAGS |
michael@0 | 674 | CXX |
michael@0 | 675 | OBJEXT |
michael@0 | 676 | EXEEXT |
michael@0 | 677 | ac_ct_CC |
michael@0 | 678 | LDFLAGS |
michael@0 | 679 | CFLAGS |
michael@0 | 680 | CC |
michael@0 | 681 | ENABLE_RELEASE |
michael@0 | 682 | ENABLE_DEBUG |
michael@0 | 683 | CPPFLAGS |
michael@0 | 684 | host_os |
michael@0 | 685 | host_vendor |
michael@0 | 686 | host_cpu |
michael@0 | 687 | host |
michael@0 | 688 | build_os |
michael@0 | 689 | build_vendor |
michael@0 | 690 | build_cpu |
michael@0 | 691 | build |
michael@0 | 692 | UNICODE_VERSION |
michael@0 | 693 | LIB_VERSION_MAJOR |
michael@0 | 694 | LIB_VERSION |
michael@0 | 695 | VERSION |
michael@0 | 696 | ICU_ECHO_T |
michael@0 | 697 | ICU_ECHO_C |
michael@0 | 698 | ICU_ECHO_N |
michael@0 | 699 | PACKAGE |
michael@0 | 700 | target_alias |
michael@0 | 701 | host_alias |
michael@0 | 702 | build_alias |
michael@0 | 703 | LIBS |
michael@0 | 704 | ECHO_T |
michael@0 | 705 | ECHO_N |
michael@0 | 706 | ECHO_C |
michael@0 | 707 | DEFS |
michael@0 | 708 | mandir |
michael@0 | 709 | localedir |
michael@0 | 710 | libdir |
michael@0 | 711 | psdir |
michael@0 | 712 | pdfdir |
michael@0 | 713 | dvidir |
michael@0 | 714 | htmldir |
michael@0 | 715 | infodir |
michael@0 | 716 | docdir |
michael@0 | 717 | oldincludedir |
michael@0 | 718 | includedir |
michael@0 | 719 | localstatedir |
michael@0 | 720 | sharedstatedir |
michael@0 | 721 | sysconfdir |
michael@0 | 722 | datadir |
michael@0 | 723 | datarootdir |
michael@0 | 724 | libexecdir |
michael@0 | 725 | sbindir |
michael@0 | 726 | bindir |
michael@0 | 727 | program_transform_name |
michael@0 | 728 | prefix |
michael@0 | 729 | exec_prefix |
michael@0 | 730 | PACKAGE_URL |
michael@0 | 731 | PACKAGE_BUGREPORT |
michael@0 | 732 | PACKAGE_STRING |
michael@0 | 733 | PACKAGE_VERSION |
michael@0 | 734 | PACKAGE_TARNAME |
michael@0 | 735 | PACKAGE_NAME |
michael@0 | 736 | PATH_SEPARATOR |
michael@0 | 737 | SHELL' |
michael@0 | 738 | ac_subst_files='' |
michael@0 | 739 | ac_user_opts=' |
michael@0 | 740 | enable_option_checking |
michael@0 | 741 | enable_debug |
michael@0 | 742 | enable_release |
michael@0 | 743 | with_cross_build |
michael@0 | 744 | enable_strict |
michael@0 | 745 | enable_64bit_libs |
michael@0 | 746 | with_library_bits |
michael@0 | 747 | enable_shared |
michael@0 | 748 | enable_static |
michael@0 | 749 | enable_auto_cleanup |
michael@0 | 750 | enable_draft |
michael@0 | 751 | enable_renaming |
michael@0 | 752 | enable_tracing |
michael@0 | 753 | enable_dyload |
michael@0 | 754 | enable_rpath |
michael@0 | 755 | enable_weak_threads |
michael@0 | 756 | enable_extras |
michael@0 | 757 | enable_icuio |
michael@0 | 758 | enable_layout |
michael@0 | 759 | enable_tools |
michael@0 | 760 | with_data_packaging |
michael@0 | 761 | with_library_suffix |
michael@0 | 762 | enable_tests |
michael@0 | 763 | enable_samples |
michael@0 | 764 | ' |
michael@0 | 765 | ac_precious_vars='build_alias |
michael@0 | 766 | host_alias |
michael@0 | 767 | target_alias |
michael@0 | 768 | CC |
michael@0 | 769 | CFLAGS |
michael@0 | 770 | LDFLAGS |
michael@0 | 771 | LIBS |
michael@0 | 772 | CPPFLAGS |
michael@0 | 773 | CXX |
michael@0 | 774 | CXXFLAGS |
michael@0 | 775 | CCC |
michael@0 | 776 | CPP' |
michael@0 | 777 | |
michael@0 | 778 | |
michael@0 | 779 | # Initialize some variables set by options. |
michael@0 | 780 | ac_init_help= |
michael@0 | 781 | ac_init_version=false |
michael@0 | 782 | ac_unrecognized_opts= |
michael@0 | 783 | ac_unrecognized_sep= |
michael@0 | 784 | # The variables have the same names as the options, with |
michael@0 | 785 | # dashes changed to underlines. |
michael@0 | 786 | cache_file=/dev/null |
michael@0 | 787 | exec_prefix=NONE |
michael@0 | 788 | no_create= |
michael@0 | 789 | no_recursion= |
michael@0 | 790 | prefix=NONE |
michael@0 | 791 | program_prefix=NONE |
michael@0 | 792 | program_suffix=NONE |
michael@0 | 793 | program_transform_name=s,x,x, |
michael@0 | 794 | silent= |
michael@0 | 795 | site= |
michael@0 | 796 | srcdir= |
michael@0 | 797 | verbose= |
michael@0 | 798 | x_includes=NONE |
michael@0 | 799 | x_libraries=NONE |
michael@0 | 800 | |
michael@0 | 801 | # Installation directory options. |
michael@0 | 802 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
michael@0 | 803 | # and all the variables that are supposed to be based on exec_prefix |
michael@0 | 804 | # by default will actually change. |
michael@0 | 805 | # Use braces instead of parens because sh, perl, etc. also accept them. |
michael@0 | 806 | # (The list follows the same order as the GNU Coding Standards.) |
michael@0 | 807 | bindir='${exec_prefix}/bin' |
michael@0 | 808 | sbindir='${exec_prefix}/sbin' |
michael@0 | 809 | libexecdir='${exec_prefix}/libexec' |
michael@0 | 810 | datarootdir='${prefix}/share' |
michael@0 | 811 | datadir='${datarootdir}' |
michael@0 | 812 | sysconfdir='${prefix}/etc' |
michael@0 | 813 | sharedstatedir='${prefix}/com' |
michael@0 | 814 | localstatedir='${prefix}/var' |
michael@0 | 815 | includedir='${prefix}/include' |
michael@0 | 816 | oldincludedir='/usr/include' |
michael@0 | 817 | docdir='${datarootdir}/doc/${PACKAGE}' |
michael@0 | 818 | infodir='${datarootdir}/info' |
michael@0 | 819 | htmldir='${docdir}' |
michael@0 | 820 | dvidir='${docdir}' |
michael@0 | 821 | pdfdir='${docdir}' |
michael@0 | 822 | psdir='${docdir}' |
michael@0 | 823 | libdir='${exec_prefix}/lib' |
michael@0 | 824 | localedir='${datarootdir}/locale' |
michael@0 | 825 | mandir='${datarootdir}/man' |
michael@0 | 826 | |
michael@0 | 827 | ac_prev= |
michael@0 | 828 | ac_dashdash= |
michael@0 | 829 | for ac_option |
michael@0 | 830 | do |
michael@0 | 831 | # If the previous option needs an argument, assign it. |
michael@0 | 832 | if test -n "$ac_prev"; then |
michael@0 | 833 | eval $ac_prev=\$ac_option |
michael@0 | 834 | ac_prev= |
michael@0 | 835 | continue |
michael@0 | 836 | fi |
michael@0 | 837 | |
michael@0 | 838 | case $ac_option in |
michael@0 | 839 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
michael@0 | 840 | *=) ac_optarg= ;; |
michael@0 | 841 | *) ac_optarg=yes ;; |
michael@0 | 842 | esac |
michael@0 | 843 | |
michael@0 | 844 | # Accept the important Cygnus configure options, so we can diagnose typos. |
michael@0 | 845 | |
michael@0 | 846 | case $ac_dashdash$ac_option in |
michael@0 | 847 | --) |
michael@0 | 848 | ac_dashdash=yes ;; |
michael@0 | 849 | |
michael@0 | 850 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
michael@0 | 851 | ac_prev=bindir ;; |
michael@0 | 852 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
michael@0 | 853 | bindir=$ac_optarg ;; |
michael@0 | 854 | |
michael@0 | 855 | -build | --build | --buil | --bui | --bu) |
michael@0 | 856 | ac_prev=build_alias ;; |
michael@0 | 857 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
michael@0 | 858 | build_alias=$ac_optarg ;; |
michael@0 | 859 | |
michael@0 | 860 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
michael@0 | 861 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
michael@0 | 862 | ac_prev=cache_file ;; |
michael@0 | 863 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
michael@0 | 864 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
michael@0 | 865 | cache_file=$ac_optarg ;; |
michael@0 | 866 | |
michael@0 | 867 | --config-cache | -C) |
michael@0 | 868 | cache_file=config.cache ;; |
michael@0 | 869 | |
michael@0 | 870 | -datadir | --datadir | --datadi | --datad) |
michael@0 | 871 | ac_prev=datadir ;; |
michael@0 | 872 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
michael@0 | 873 | datadir=$ac_optarg ;; |
michael@0 | 874 | |
michael@0 | 875 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
michael@0 | 876 | | --dataroo | --dataro | --datar) |
michael@0 | 877 | ac_prev=datarootdir ;; |
michael@0 | 878 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
michael@0 | 879 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
michael@0 | 880 | datarootdir=$ac_optarg ;; |
michael@0 | 881 | |
michael@0 | 882 | -disable-* | --disable-*) |
michael@0 | 883 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
michael@0 | 884 | # Reject names that are not valid shell variable names. |
michael@0 | 885 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 886 | as_fn_error $? "invalid feature name: $ac_useropt" |
michael@0 | 887 | ac_useropt_orig=$ac_useropt |
michael@0 | 888 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 889 | case $ac_user_opts in |
michael@0 | 890 | *" |
michael@0 | 891 | "enable_$ac_useropt" |
michael@0 | 892 | "*) ;; |
michael@0 | 893 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
michael@0 | 894 | ac_unrecognized_sep=', ';; |
michael@0 | 895 | esac |
michael@0 | 896 | eval enable_$ac_useropt=no ;; |
michael@0 | 897 | |
michael@0 | 898 | -docdir | --docdir | --docdi | --doc | --do) |
michael@0 | 899 | ac_prev=docdir ;; |
michael@0 | 900 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
michael@0 | 901 | docdir=$ac_optarg ;; |
michael@0 | 902 | |
michael@0 | 903 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
michael@0 | 904 | ac_prev=dvidir ;; |
michael@0 | 905 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
michael@0 | 906 | dvidir=$ac_optarg ;; |
michael@0 | 907 | |
michael@0 | 908 | -enable-* | --enable-*) |
michael@0 | 909 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
michael@0 | 910 | # Reject names that are not valid shell variable names. |
michael@0 | 911 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 912 | as_fn_error $? "invalid feature name: $ac_useropt" |
michael@0 | 913 | ac_useropt_orig=$ac_useropt |
michael@0 | 914 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 915 | case $ac_user_opts in |
michael@0 | 916 | *" |
michael@0 | 917 | "enable_$ac_useropt" |
michael@0 | 918 | "*) ;; |
michael@0 | 919 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
michael@0 | 920 | ac_unrecognized_sep=', ';; |
michael@0 | 921 | esac |
michael@0 | 922 | eval enable_$ac_useropt=\$ac_optarg ;; |
michael@0 | 923 | |
michael@0 | 924 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
michael@0 | 925 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
michael@0 | 926 | | --exec | --exe | --ex) |
michael@0 | 927 | ac_prev=exec_prefix ;; |
michael@0 | 928 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
michael@0 | 929 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
michael@0 | 930 | | --exec=* | --exe=* | --ex=*) |
michael@0 | 931 | exec_prefix=$ac_optarg ;; |
michael@0 | 932 | |
michael@0 | 933 | -gas | --gas | --ga | --g) |
michael@0 | 934 | # Obsolete; use --with-gas. |
michael@0 | 935 | with_gas=yes ;; |
michael@0 | 936 | |
michael@0 | 937 | -help | --help | --hel | --he | -h) |
michael@0 | 938 | ac_init_help=long ;; |
michael@0 | 939 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
michael@0 | 940 | ac_init_help=recursive ;; |
michael@0 | 941 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
michael@0 | 942 | ac_init_help=short ;; |
michael@0 | 943 | |
michael@0 | 944 | -host | --host | --hos | --ho) |
michael@0 | 945 | ac_prev=host_alias ;; |
michael@0 | 946 | -host=* | --host=* | --hos=* | --ho=*) |
michael@0 | 947 | host_alias=$ac_optarg ;; |
michael@0 | 948 | |
michael@0 | 949 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
michael@0 | 950 | ac_prev=htmldir ;; |
michael@0 | 951 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
michael@0 | 952 | | --ht=*) |
michael@0 | 953 | htmldir=$ac_optarg ;; |
michael@0 | 954 | |
michael@0 | 955 | -includedir | --includedir | --includedi | --included | --include \ |
michael@0 | 956 | | --includ | --inclu | --incl | --inc) |
michael@0 | 957 | ac_prev=includedir ;; |
michael@0 | 958 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
michael@0 | 959 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
michael@0 | 960 | includedir=$ac_optarg ;; |
michael@0 | 961 | |
michael@0 | 962 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
michael@0 | 963 | ac_prev=infodir ;; |
michael@0 | 964 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
michael@0 | 965 | infodir=$ac_optarg ;; |
michael@0 | 966 | |
michael@0 | 967 | -libdir | --libdir | --libdi | --libd) |
michael@0 | 968 | ac_prev=libdir ;; |
michael@0 | 969 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
michael@0 | 970 | libdir=$ac_optarg ;; |
michael@0 | 971 | |
michael@0 | 972 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
michael@0 | 973 | | --libexe | --libex | --libe) |
michael@0 | 974 | ac_prev=libexecdir ;; |
michael@0 | 975 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
michael@0 | 976 | | --libexe=* | --libex=* | --libe=*) |
michael@0 | 977 | libexecdir=$ac_optarg ;; |
michael@0 | 978 | |
michael@0 | 979 | -localedir | --localedir | --localedi | --localed | --locale) |
michael@0 | 980 | ac_prev=localedir ;; |
michael@0 | 981 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
michael@0 | 982 | localedir=$ac_optarg ;; |
michael@0 | 983 | |
michael@0 | 984 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
michael@0 | 985 | | --localstate | --localstat | --localsta | --localst | --locals) |
michael@0 | 986 | ac_prev=localstatedir ;; |
michael@0 | 987 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
michael@0 | 988 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
michael@0 | 989 | localstatedir=$ac_optarg ;; |
michael@0 | 990 | |
michael@0 | 991 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
michael@0 | 992 | ac_prev=mandir ;; |
michael@0 | 993 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
michael@0 | 994 | mandir=$ac_optarg ;; |
michael@0 | 995 | |
michael@0 | 996 | -nfp | --nfp | --nf) |
michael@0 | 997 | # Obsolete; use --without-fp. |
michael@0 | 998 | with_fp=no ;; |
michael@0 | 999 | |
michael@0 | 1000 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
michael@0 | 1001 | | --no-cr | --no-c | -n) |
michael@0 | 1002 | no_create=yes ;; |
michael@0 | 1003 | |
michael@0 | 1004 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
michael@0 | 1005 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
michael@0 | 1006 | no_recursion=yes ;; |
michael@0 | 1007 | |
michael@0 | 1008 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
michael@0 | 1009 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
michael@0 | 1010 | | --oldin | --oldi | --old | --ol | --o) |
michael@0 | 1011 | ac_prev=oldincludedir ;; |
michael@0 | 1012 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
michael@0 | 1013 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
michael@0 | 1014 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
michael@0 | 1015 | oldincludedir=$ac_optarg ;; |
michael@0 | 1016 | |
michael@0 | 1017 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
michael@0 | 1018 | ac_prev=prefix ;; |
michael@0 | 1019 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
michael@0 | 1020 | prefix=$ac_optarg ;; |
michael@0 | 1021 | |
michael@0 | 1022 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
michael@0 | 1023 | | --program-pre | --program-pr | --program-p) |
michael@0 | 1024 | ac_prev=program_prefix ;; |
michael@0 | 1025 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
michael@0 | 1026 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
michael@0 | 1027 | program_prefix=$ac_optarg ;; |
michael@0 | 1028 | |
michael@0 | 1029 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
michael@0 | 1030 | | --program-suf | --program-su | --program-s) |
michael@0 | 1031 | ac_prev=program_suffix ;; |
michael@0 | 1032 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
michael@0 | 1033 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
michael@0 | 1034 | program_suffix=$ac_optarg ;; |
michael@0 | 1035 | |
michael@0 | 1036 | -program-transform-name | --program-transform-name \ |
michael@0 | 1037 | | --program-transform-nam | --program-transform-na \ |
michael@0 | 1038 | | --program-transform-n | --program-transform- \ |
michael@0 | 1039 | | --program-transform | --program-transfor \ |
michael@0 | 1040 | | --program-transfo | --program-transf \ |
michael@0 | 1041 | | --program-trans | --program-tran \ |
michael@0 | 1042 | | --progr-tra | --program-tr | --program-t) |
michael@0 | 1043 | ac_prev=program_transform_name ;; |
michael@0 | 1044 | -program-transform-name=* | --program-transform-name=* \ |
michael@0 | 1045 | | --program-transform-nam=* | --program-transform-na=* \ |
michael@0 | 1046 | | --program-transform-n=* | --program-transform-=* \ |
michael@0 | 1047 | | --program-transform=* | --program-transfor=* \ |
michael@0 | 1048 | | --program-transfo=* | --program-transf=* \ |
michael@0 | 1049 | | --program-trans=* | --program-tran=* \ |
michael@0 | 1050 | | --progr-tra=* | --program-tr=* | --program-t=*) |
michael@0 | 1051 | program_transform_name=$ac_optarg ;; |
michael@0 | 1052 | |
michael@0 | 1053 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
michael@0 | 1054 | ac_prev=pdfdir ;; |
michael@0 | 1055 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
michael@0 | 1056 | pdfdir=$ac_optarg ;; |
michael@0 | 1057 | |
michael@0 | 1058 | -psdir | --psdir | --psdi | --psd | --ps) |
michael@0 | 1059 | ac_prev=psdir ;; |
michael@0 | 1060 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
michael@0 | 1061 | psdir=$ac_optarg ;; |
michael@0 | 1062 | |
michael@0 | 1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 1064 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 1065 | silent=yes ;; |
michael@0 | 1066 | |
michael@0 | 1067 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
michael@0 | 1068 | ac_prev=sbindir ;; |
michael@0 | 1069 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
michael@0 | 1070 | | --sbi=* | --sb=*) |
michael@0 | 1071 | sbindir=$ac_optarg ;; |
michael@0 | 1072 | |
michael@0 | 1073 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
michael@0 | 1074 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
michael@0 | 1075 | | --sharedst | --shareds | --shared | --share | --shar \ |
michael@0 | 1076 | | --sha | --sh) |
michael@0 | 1077 | ac_prev=sharedstatedir ;; |
michael@0 | 1078 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
michael@0 | 1079 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
michael@0 | 1080 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
michael@0 | 1081 | | --sha=* | --sh=*) |
michael@0 | 1082 | sharedstatedir=$ac_optarg ;; |
michael@0 | 1083 | |
michael@0 | 1084 | -site | --site | --sit) |
michael@0 | 1085 | ac_prev=site ;; |
michael@0 | 1086 | -site=* | --site=* | --sit=*) |
michael@0 | 1087 | site=$ac_optarg ;; |
michael@0 | 1088 | |
michael@0 | 1089 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
michael@0 | 1090 | ac_prev=srcdir ;; |
michael@0 | 1091 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
michael@0 | 1092 | srcdir=$ac_optarg ;; |
michael@0 | 1093 | |
michael@0 | 1094 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
michael@0 | 1095 | | --syscon | --sysco | --sysc | --sys | --sy) |
michael@0 | 1096 | ac_prev=sysconfdir ;; |
michael@0 | 1097 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
michael@0 | 1098 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
michael@0 | 1099 | sysconfdir=$ac_optarg ;; |
michael@0 | 1100 | |
michael@0 | 1101 | -target | --target | --targe | --targ | --tar | --ta | --t) |
michael@0 | 1102 | ac_prev=target_alias ;; |
michael@0 | 1103 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
michael@0 | 1104 | target_alias=$ac_optarg ;; |
michael@0 | 1105 | |
michael@0 | 1106 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
michael@0 | 1107 | verbose=yes ;; |
michael@0 | 1108 | |
michael@0 | 1109 | -version | --version | --versio | --versi | --vers | -V) |
michael@0 | 1110 | ac_init_version=: ;; |
michael@0 | 1111 | |
michael@0 | 1112 | -with-* | --with-*) |
michael@0 | 1113 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
michael@0 | 1114 | # Reject names that are not valid shell variable names. |
michael@0 | 1115 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 1116 | as_fn_error $? "invalid package name: $ac_useropt" |
michael@0 | 1117 | ac_useropt_orig=$ac_useropt |
michael@0 | 1118 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 1119 | case $ac_user_opts in |
michael@0 | 1120 | *" |
michael@0 | 1121 | "with_$ac_useropt" |
michael@0 | 1122 | "*) ;; |
michael@0 | 1123 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
michael@0 | 1124 | ac_unrecognized_sep=', ';; |
michael@0 | 1125 | esac |
michael@0 | 1126 | eval with_$ac_useropt=\$ac_optarg ;; |
michael@0 | 1127 | |
michael@0 | 1128 | -without-* | --without-*) |
michael@0 | 1129 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
michael@0 | 1130 | # Reject names that are not valid shell variable names. |
michael@0 | 1131 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
michael@0 | 1132 | as_fn_error $? "invalid package name: $ac_useropt" |
michael@0 | 1133 | ac_useropt_orig=$ac_useropt |
michael@0 | 1134 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
michael@0 | 1135 | case $ac_user_opts in |
michael@0 | 1136 | *" |
michael@0 | 1137 | "with_$ac_useropt" |
michael@0 | 1138 | "*) ;; |
michael@0 | 1139 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
michael@0 | 1140 | ac_unrecognized_sep=', ';; |
michael@0 | 1141 | esac |
michael@0 | 1142 | eval with_$ac_useropt=no ;; |
michael@0 | 1143 | |
michael@0 | 1144 | --x) |
michael@0 | 1145 | # Obsolete; use --with-x. |
michael@0 | 1146 | with_x=yes ;; |
michael@0 | 1147 | |
michael@0 | 1148 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
michael@0 | 1149 | | --x-incl | --x-inc | --x-in | --x-i) |
michael@0 | 1150 | ac_prev=x_includes ;; |
michael@0 | 1151 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
michael@0 | 1152 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
michael@0 | 1153 | x_includes=$ac_optarg ;; |
michael@0 | 1154 | |
michael@0 | 1155 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
michael@0 | 1156 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
michael@0 | 1157 | ac_prev=x_libraries ;; |
michael@0 | 1158 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
michael@0 | 1159 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
michael@0 | 1160 | x_libraries=$ac_optarg ;; |
michael@0 | 1161 | |
michael@0 | 1162 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
michael@0 | 1163 | Try \`$0 --help' for more information" |
michael@0 | 1164 | ;; |
michael@0 | 1165 | |
michael@0 | 1166 | *=*) |
michael@0 | 1167 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
michael@0 | 1168 | # Reject names that are not valid shell variable names. |
michael@0 | 1169 | case $ac_envvar in #( |
michael@0 | 1170 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
michael@0 | 1171 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
michael@0 | 1172 | esac |
michael@0 | 1173 | eval $ac_envvar=\$ac_optarg |
michael@0 | 1174 | export $ac_envvar ;; |
michael@0 | 1175 | |
michael@0 | 1176 | *) |
michael@0 | 1177 | # FIXME: should be removed in autoconf 3.0. |
michael@0 | 1178 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
michael@0 | 1179 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
michael@0 | 1180 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
michael@0 | 1181 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
michael@0 | 1182 | ;; |
michael@0 | 1183 | |
michael@0 | 1184 | esac |
michael@0 | 1185 | done |
michael@0 | 1186 | |
michael@0 | 1187 | if test -n "$ac_prev"; then |
michael@0 | 1188 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
michael@0 | 1189 | as_fn_error $? "missing argument to $ac_option" |
michael@0 | 1190 | fi |
michael@0 | 1191 | |
michael@0 | 1192 | if test -n "$ac_unrecognized_opts"; then |
michael@0 | 1193 | case $enable_option_checking in |
michael@0 | 1194 | no) ;; |
michael@0 | 1195 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
michael@0 | 1196 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
michael@0 | 1197 | esac |
michael@0 | 1198 | fi |
michael@0 | 1199 | |
michael@0 | 1200 | # Check all directory arguments for consistency. |
michael@0 | 1201 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
michael@0 | 1202 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
michael@0 | 1203 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
michael@0 | 1204 | libdir localedir mandir |
michael@0 | 1205 | do |
michael@0 | 1206 | eval ac_val=\$$ac_var |
michael@0 | 1207 | # Remove trailing slashes. |
michael@0 | 1208 | case $ac_val in |
michael@0 | 1209 | */ ) |
michael@0 | 1210 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
michael@0 | 1211 | eval $ac_var=\$ac_val;; |
michael@0 | 1212 | esac |
michael@0 | 1213 | # Be sure to have absolute directory names. |
michael@0 | 1214 | case $ac_val in |
michael@0 | 1215 | [\\/$]* | ?:[\\/]* ) continue;; |
michael@0 | 1216 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
michael@0 | 1217 | esac |
michael@0 | 1218 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
michael@0 | 1219 | done |
michael@0 | 1220 | |
michael@0 | 1221 | # There might be people who depend on the old broken behavior: `$host' |
michael@0 | 1222 | # used to hold the argument of --host etc. |
michael@0 | 1223 | # FIXME: To remove some day. |
michael@0 | 1224 | build=$build_alias |
michael@0 | 1225 | host=$host_alias |
michael@0 | 1226 | target=$target_alias |
michael@0 | 1227 | |
michael@0 | 1228 | # FIXME: To remove some day. |
michael@0 | 1229 | if test "x$host_alias" != x; then |
michael@0 | 1230 | if test "x$build_alias" = x; then |
michael@0 | 1231 | cross_compiling=maybe |
michael@0 | 1232 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
michael@0 | 1233 | If a cross compiler is detected then cross compile mode will be used" >&2 |
michael@0 | 1234 | elif test "x$build_alias" != "x$host_alias"; then |
michael@0 | 1235 | cross_compiling=yes |
michael@0 | 1236 | fi |
michael@0 | 1237 | fi |
michael@0 | 1238 | |
michael@0 | 1239 | ac_tool_prefix= |
michael@0 | 1240 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
michael@0 | 1241 | |
michael@0 | 1242 | test "$silent" = yes && exec 6>/dev/null |
michael@0 | 1243 | |
michael@0 | 1244 | |
michael@0 | 1245 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
michael@0 | 1246 | ac_ls_di=`ls -di .` && |
michael@0 | 1247 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
michael@0 | 1248 | as_fn_error $? "working directory cannot be determined" |
michael@0 | 1249 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
michael@0 | 1250 | as_fn_error $? "pwd does not report name of working directory" |
michael@0 | 1251 | |
michael@0 | 1252 | |
michael@0 | 1253 | # Find the source files, if location was not specified. |
michael@0 | 1254 | if test -z "$srcdir"; then |
michael@0 | 1255 | ac_srcdir_defaulted=yes |
michael@0 | 1256 | # Try the directory containing this script, then the parent directory. |
michael@0 | 1257 | ac_confdir=`$as_dirname -- "$as_myself" || |
michael@0 | 1258 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 1259 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
michael@0 | 1260 | X"$as_myself" : 'X\(//\)$' \| \ |
michael@0 | 1261 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 1262 | $as_echo X"$as_myself" | |
michael@0 | 1263 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 1264 | s//\1/ |
michael@0 | 1265 | q |
michael@0 | 1266 | } |
michael@0 | 1267 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 1268 | s//\1/ |
michael@0 | 1269 | q |
michael@0 | 1270 | } |
michael@0 | 1271 | /^X\(\/\/\)$/{ |
michael@0 | 1272 | s//\1/ |
michael@0 | 1273 | q |
michael@0 | 1274 | } |
michael@0 | 1275 | /^X\(\/\).*/{ |
michael@0 | 1276 | s//\1/ |
michael@0 | 1277 | q |
michael@0 | 1278 | } |
michael@0 | 1279 | s/.*/./; q'` |
michael@0 | 1280 | srcdir=$ac_confdir |
michael@0 | 1281 | if test ! -r "$srcdir/$ac_unique_file"; then |
michael@0 | 1282 | srcdir=.. |
michael@0 | 1283 | fi |
michael@0 | 1284 | else |
michael@0 | 1285 | ac_srcdir_defaulted=no |
michael@0 | 1286 | fi |
michael@0 | 1287 | if test ! -r "$srcdir/$ac_unique_file"; then |
michael@0 | 1288 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
michael@0 | 1289 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
michael@0 | 1290 | fi |
michael@0 | 1291 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
michael@0 | 1292 | ac_abs_confdir=`( |
michael@0 | 1293 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
michael@0 | 1294 | pwd)` |
michael@0 | 1295 | # When building in place, set srcdir=. |
michael@0 | 1296 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
michael@0 | 1297 | srcdir=. |
michael@0 | 1298 | fi |
michael@0 | 1299 | # Remove unnecessary trailing slashes from srcdir. |
michael@0 | 1300 | # Double slashes in file names in object file debugging info |
michael@0 | 1301 | # mess up M-x gdb in Emacs. |
michael@0 | 1302 | case $srcdir in |
michael@0 | 1303 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
michael@0 | 1304 | esac |
michael@0 | 1305 | for ac_var in $ac_precious_vars; do |
michael@0 | 1306 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
michael@0 | 1307 | eval ac_env_${ac_var}_value=\$${ac_var} |
michael@0 | 1308 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
michael@0 | 1309 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
michael@0 | 1310 | done |
michael@0 | 1311 | |
michael@0 | 1312 | # |
michael@0 | 1313 | # Report the --help message. |
michael@0 | 1314 | # |
michael@0 | 1315 | if test "$ac_init_help" = "long"; then |
michael@0 | 1316 | # Omit some internal or obsolete options to make the list less imposing. |
michael@0 | 1317 | # This message is too long to be a string in the A/UX 3.1 sh. |
michael@0 | 1318 | cat <<_ACEOF |
michael@0 | 1319 | \`configure' configures this package to adapt to many kinds of systems. |
michael@0 | 1320 | |
michael@0 | 1321 | Usage: $0 [OPTION]... [VAR=VALUE]... |
michael@0 | 1322 | |
michael@0 | 1323 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
michael@0 | 1324 | VAR=VALUE. See below for descriptions of some of the useful variables. |
michael@0 | 1325 | |
michael@0 | 1326 | Defaults for the options are specified in brackets. |
michael@0 | 1327 | |
michael@0 | 1328 | Configuration: |
michael@0 | 1329 | -h, --help display this help and exit |
michael@0 | 1330 | --help=short display options specific to this package |
michael@0 | 1331 | --help=recursive display the short help of all the included packages |
michael@0 | 1332 | -V, --version display version information and exit |
michael@0 | 1333 | -q, --quiet, --silent do not print \`checking ...' messages |
michael@0 | 1334 | --cache-file=FILE cache test results in FILE [disabled] |
michael@0 | 1335 | -C, --config-cache alias for \`--cache-file=config.cache' |
michael@0 | 1336 | -n, --no-create do not create output files |
michael@0 | 1337 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
michael@0 | 1338 | |
michael@0 | 1339 | Installation directories: |
michael@0 | 1340 | --prefix=PREFIX install architecture-independent files in PREFIX |
michael@0 | 1341 | [$ac_default_prefix] |
michael@0 | 1342 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
michael@0 | 1343 | [PREFIX] |
michael@0 | 1344 | |
michael@0 | 1345 | By default, \`make install' will install all the files in |
michael@0 | 1346 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
michael@0 | 1347 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
michael@0 | 1348 | for instance \`--prefix=\$HOME'. |
michael@0 | 1349 | |
michael@0 | 1350 | For better control, use the options below. |
michael@0 | 1351 | |
michael@0 | 1352 | Fine tuning of the installation directories: |
michael@0 | 1353 | --bindir=DIR user executables [EPREFIX/bin] |
michael@0 | 1354 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
michael@0 | 1355 | --libexecdir=DIR program executables [EPREFIX/libexec] |
michael@0 | 1356 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
michael@0 | 1357 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
michael@0 | 1358 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
michael@0 | 1359 | --libdir=DIR object code libraries [EPREFIX/lib] |
michael@0 | 1360 | --includedir=DIR C header files [PREFIX/include] |
michael@0 | 1361 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
michael@0 | 1362 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
michael@0 | 1363 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
michael@0 | 1364 | --infodir=DIR info documentation [DATAROOTDIR/info] |
michael@0 | 1365 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
michael@0 | 1366 | --mandir=DIR man documentation [DATAROOTDIR/man] |
michael@0 | 1367 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
michael@0 | 1368 | --htmldir=DIR html documentation [DOCDIR] |
michael@0 | 1369 | --dvidir=DIR dvi documentation [DOCDIR] |
michael@0 | 1370 | --pdfdir=DIR pdf documentation [DOCDIR] |
michael@0 | 1371 | --psdir=DIR ps documentation [DOCDIR] |
michael@0 | 1372 | _ACEOF |
michael@0 | 1373 | |
michael@0 | 1374 | cat <<\_ACEOF |
michael@0 | 1375 | |
michael@0 | 1376 | System types: |
michael@0 | 1377 | --build=BUILD configure for building on BUILD [guessed] |
michael@0 | 1378 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
michael@0 | 1379 | _ACEOF |
michael@0 | 1380 | fi |
michael@0 | 1381 | |
michael@0 | 1382 | if test -n "$ac_init_help"; then |
michael@0 | 1383 | |
michael@0 | 1384 | cat <<\_ACEOF |
michael@0 | 1385 | |
michael@0 | 1386 | Optional Features: |
michael@0 | 1387 | --disable-option-checking ignore unrecognized --enable/--with options |
michael@0 | 1388 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
michael@0 | 1389 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
michael@0 | 1390 | --enable-debug build debug libraries and enable the U_DEBUG define default=no |
michael@0 | 1391 | --enable-release build release libraries default=yes |
michael@0 | 1392 | --enable-strict compile with strict compiler options default=yes |
michael@0 | 1393 | --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default |
michael@0 | 1394 | --enable-shared build shared libraries default=yes |
michael@0 | 1395 | --enable-static build static libraries default=no |
michael@0 | 1396 | --enable-auto-cleanup enable auto cleanup of libraries default=no |
michael@0 | 1397 | --enable-draft enable draft APIs (and internal APIs) default=yes |
michael@0 | 1398 | --enable-renaming add a version suffix to symbols default=yes |
michael@0 | 1399 | --enable-tracing enable function and data tracing default=no |
michael@0 | 1400 | --disable-dyload disable dynamic loading default=no |
michael@0 | 1401 | --enable-rpath use rpath when linking default is only if necessary |
michael@0 | 1402 | --enable-weak-threads weakly reference the threading library default=no |
michael@0 | 1403 | --enable-extras build ICU extras default=yes |
michael@0 | 1404 | --enable-icuio build ICU's icuio library default=yes |
michael@0 | 1405 | --enable-layout build ICU's layout library default=yes |
michael@0 | 1406 | --enable-tools build ICU's tools default=yes |
michael@0 | 1407 | --enable-tests build ICU tests default=yes |
michael@0 | 1408 | --enable-samples build ICU samples default=yes |
michael@0 | 1409 | |
michael@0 | 1410 | Additionally, the variable FORCE_LIBS may be set before calling configure. |
michael@0 | 1411 | If set, it will REPLACE any automatic list of libraries. |
michael@0 | 1412 | |
michael@0 | 1413 | Optional Packages: |
michael@0 | 1414 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
michael@0 | 1415 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
michael@0 | 1416 | --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir |
michael@0 | 1417 | --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange |
michael@0 | 1418 | --with-data-packaging=type specify how to package ICU data (files, archive, library, static, auto) default=auto |
michael@0 | 1419 | --with-library-suffix=suffix tag a suffix to the library names default= |
michael@0 | 1420 | |
michael@0 | 1421 | Some influential environment variables: |
michael@0 | 1422 | CC C compiler command |
michael@0 | 1423 | CFLAGS C compiler flags |
michael@0 | 1424 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
michael@0 | 1425 | nonstandard directory <lib dir> |
michael@0 | 1426 | LIBS libraries to pass to the linker, e.g. -l<library> |
michael@0 | 1427 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
michael@0 | 1428 | you have headers in a nonstandard directory <include dir> |
michael@0 | 1429 | CXX C++ compiler command |
michael@0 | 1430 | CXXFLAGS C++ compiler flags |
michael@0 | 1431 | CPP C preprocessor |
michael@0 | 1432 | |
michael@0 | 1433 | Use these variables to override the choices made by `configure' or to help |
michael@0 | 1434 | it to find libraries and programs with nonstandard names/locations. |
michael@0 | 1435 | |
michael@0 | 1436 | Report bugs to the package provider. |
michael@0 | 1437 | _ACEOF |
michael@0 | 1438 | ac_status=$? |
michael@0 | 1439 | fi |
michael@0 | 1440 | |
michael@0 | 1441 | if test "$ac_init_help" = "recursive"; then |
michael@0 | 1442 | # If there are subdirs, report their specific --help. |
michael@0 | 1443 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
michael@0 | 1444 | test -d "$ac_dir" || |
michael@0 | 1445 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
michael@0 | 1446 | continue |
michael@0 | 1447 | ac_builddir=. |
michael@0 | 1448 | |
michael@0 | 1449 | case "$ac_dir" in |
michael@0 | 1450 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 1451 | *) |
michael@0 | 1452 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
michael@0 | 1453 | # A ".." for each directory in $ac_dir_suffix. |
michael@0 | 1454 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
michael@0 | 1455 | case $ac_top_builddir_sub in |
michael@0 | 1456 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 1457 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
michael@0 | 1458 | esac ;; |
michael@0 | 1459 | esac |
michael@0 | 1460 | ac_abs_top_builddir=$ac_pwd |
michael@0 | 1461 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
michael@0 | 1462 | # for backward compatibility: |
michael@0 | 1463 | ac_top_builddir=$ac_top_build_prefix |
michael@0 | 1464 | |
michael@0 | 1465 | case $srcdir in |
michael@0 | 1466 | .) # We are building in place. |
michael@0 | 1467 | ac_srcdir=. |
michael@0 | 1468 | ac_top_srcdir=$ac_top_builddir_sub |
michael@0 | 1469 | ac_abs_top_srcdir=$ac_pwd ;; |
michael@0 | 1470 | [\\/]* | ?:[\\/]* ) # Absolute name. |
michael@0 | 1471 | ac_srcdir=$srcdir$ac_dir_suffix; |
michael@0 | 1472 | ac_top_srcdir=$srcdir |
michael@0 | 1473 | ac_abs_top_srcdir=$srcdir ;; |
michael@0 | 1474 | *) # Relative name. |
michael@0 | 1475 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
michael@0 | 1476 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
michael@0 | 1477 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
michael@0 | 1478 | esac |
michael@0 | 1479 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
michael@0 | 1480 | |
michael@0 | 1481 | cd "$ac_dir" || { ac_status=$?; continue; } |
michael@0 | 1482 | # Check for guested configure. |
michael@0 | 1483 | if test -f "$ac_srcdir/configure.gnu"; then |
michael@0 | 1484 | echo && |
michael@0 | 1485 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
michael@0 | 1486 | elif test -f "$ac_srcdir/configure"; then |
michael@0 | 1487 | echo && |
michael@0 | 1488 | $SHELL "$ac_srcdir/configure" --help=recursive |
michael@0 | 1489 | else |
michael@0 | 1490 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
michael@0 | 1491 | fi || ac_status=$? |
michael@0 | 1492 | cd "$ac_pwd" || { ac_status=$?; break; } |
michael@0 | 1493 | done |
michael@0 | 1494 | fi |
michael@0 | 1495 | |
michael@0 | 1496 | test -n "$ac_init_help" && exit $ac_status |
michael@0 | 1497 | if $ac_init_version; then |
michael@0 | 1498 | cat <<\_ACEOF |
michael@0 | 1499 | configure |
michael@0 | 1500 | generated by GNU Autoconf 2.68 |
michael@0 | 1501 | |
michael@0 | 1502 | Copyright (C) 2010 Free Software Foundation, Inc. |
michael@0 | 1503 | This configure script is free software; the Free Software Foundation |
michael@0 | 1504 | gives unlimited permission to copy, distribute and modify it. |
michael@0 | 1505 | |
michael@0 | 1506 | Copyright (c) 1999-2013, International Business Machines Corporation and others. All Rights Reserved. |
michael@0 | 1507 | _ACEOF |
michael@0 | 1508 | exit |
michael@0 | 1509 | fi |
michael@0 | 1510 | |
michael@0 | 1511 | ## ------------------------ ## |
michael@0 | 1512 | ## Autoconf initialization. ## |
michael@0 | 1513 | ## ------------------------ ## |
michael@0 | 1514 | |
michael@0 | 1515 | # ac_fn_c_try_compile LINENO |
michael@0 | 1516 | # -------------------------- |
michael@0 | 1517 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1518 | ac_fn_c_try_compile () |
michael@0 | 1519 | { |
michael@0 | 1520 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1521 | rm -f conftest.$ac_objext |
michael@0 | 1522 | if { { ac_try="$ac_compile" |
michael@0 | 1523 | case "(($ac_try" in |
michael@0 | 1524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1525 | *) ac_try_echo=$ac_try;; |
michael@0 | 1526 | esac |
michael@0 | 1527 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1528 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1529 | (eval "$ac_compile") 2>conftest.err |
michael@0 | 1530 | ac_status=$? |
michael@0 | 1531 | if test -s conftest.err; then |
michael@0 | 1532 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1533 | cat conftest.er1 >&5 |
michael@0 | 1534 | mv -f conftest.er1 conftest.err |
michael@0 | 1535 | fi |
michael@0 | 1536 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1537 | test $ac_status = 0; } && { |
michael@0 | 1538 | test -z "$ac_c_werror_flag" || |
michael@0 | 1539 | test ! -s conftest.err |
michael@0 | 1540 | } && test -s conftest.$ac_objext; then : |
michael@0 | 1541 | ac_retval=0 |
michael@0 | 1542 | else |
michael@0 | 1543 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1544 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1545 | |
michael@0 | 1546 | ac_retval=1 |
michael@0 | 1547 | fi |
michael@0 | 1548 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1549 | as_fn_set_status $ac_retval |
michael@0 | 1550 | |
michael@0 | 1551 | } # ac_fn_c_try_compile |
michael@0 | 1552 | |
michael@0 | 1553 | # ac_fn_cxx_try_compile LINENO |
michael@0 | 1554 | # ---------------------------- |
michael@0 | 1555 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1556 | ac_fn_cxx_try_compile () |
michael@0 | 1557 | { |
michael@0 | 1558 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1559 | rm -f conftest.$ac_objext |
michael@0 | 1560 | if { { ac_try="$ac_compile" |
michael@0 | 1561 | case "(($ac_try" in |
michael@0 | 1562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1563 | *) ac_try_echo=$ac_try;; |
michael@0 | 1564 | esac |
michael@0 | 1565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1566 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1567 | (eval "$ac_compile") 2>conftest.err |
michael@0 | 1568 | ac_status=$? |
michael@0 | 1569 | if test -s conftest.err; then |
michael@0 | 1570 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1571 | cat conftest.er1 >&5 |
michael@0 | 1572 | mv -f conftest.er1 conftest.err |
michael@0 | 1573 | fi |
michael@0 | 1574 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1575 | test $ac_status = 0; } && { |
michael@0 | 1576 | test -z "$ac_cxx_werror_flag" || |
michael@0 | 1577 | test ! -s conftest.err |
michael@0 | 1578 | } && test -s conftest.$ac_objext; then : |
michael@0 | 1579 | ac_retval=0 |
michael@0 | 1580 | else |
michael@0 | 1581 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1582 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1583 | |
michael@0 | 1584 | ac_retval=1 |
michael@0 | 1585 | fi |
michael@0 | 1586 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1587 | as_fn_set_status $ac_retval |
michael@0 | 1588 | |
michael@0 | 1589 | } # ac_fn_cxx_try_compile |
michael@0 | 1590 | |
michael@0 | 1591 | # ac_fn_c_try_cpp LINENO |
michael@0 | 1592 | # ---------------------- |
michael@0 | 1593 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1594 | ac_fn_c_try_cpp () |
michael@0 | 1595 | { |
michael@0 | 1596 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1597 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
michael@0 | 1598 | case "(($ac_try" in |
michael@0 | 1599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1600 | *) ac_try_echo=$ac_try;; |
michael@0 | 1601 | esac |
michael@0 | 1602 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1603 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1604 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
michael@0 | 1605 | ac_status=$? |
michael@0 | 1606 | if test -s conftest.err; then |
michael@0 | 1607 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1608 | cat conftest.er1 >&5 |
michael@0 | 1609 | mv -f conftest.er1 conftest.err |
michael@0 | 1610 | fi |
michael@0 | 1611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1612 | test $ac_status = 0; } > conftest.i && { |
michael@0 | 1613 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
michael@0 | 1614 | test ! -s conftest.err |
michael@0 | 1615 | }; then : |
michael@0 | 1616 | ac_retval=0 |
michael@0 | 1617 | else |
michael@0 | 1618 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1619 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1620 | |
michael@0 | 1621 | ac_retval=1 |
michael@0 | 1622 | fi |
michael@0 | 1623 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1624 | as_fn_set_status $ac_retval |
michael@0 | 1625 | |
michael@0 | 1626 | } # ac_fn_c_try_cpp |
michael@0 | 1627 | |
michael@0 | 1628 | # ac_fn_cxx_try_link LINENO |
michael@0 | 1629 | # ------------------------- |
michael@0 | 1630 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1631 | ac_fn_cxx_try_link () |
michael@0 | 1632 | { |
michael@0 | 1633 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1634 | rm -f conftest.$ac_objext conftest$ac_exeext |
michael@0 | 1635 | if { { ac_try="$ac_link" |
michael@0 | 1636 | case "(($ac_try" in |
michael@0 | 1637 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1638 | *) ac_try_echo=$ac_try;; |
michael@0 | 1639 | esac |
michael@0 | 1640 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1641 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1642 | (eval "$ac_link") 2>conftest.err |
michael@0 | 1643 | ac_status=$? |
michael@0 | 1644 | if test -s conftest.err; then |
michael@0 | 1645 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1646 | cat conftest.er1 >&5 |
michael@0 | 1647 | mv -f conftest.er1 conftest.err |
michael@0 | 1648 | fi |
michael@0 | 1649 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1650 | test $ac_status = 0; } && { |
michael@0 | 1651 | test -z "$ac_cxx_werror_flag" || |
michael@0 | 1652 | test ! -s conftest.err |
michael@0 | 1653 | } && test -s conftest$ac_exeext && { |
michael@0 | 1654 | test "$cross_compiling" = yes || |
michael@0 | 1655 | $as_test_x conftest$ac_exeext |
michael@0 | 1656 | }; then : |
michael@0 | 1657 | ac_retval=0 |
michael@0 | 1658 | else |
michael@0 | 1659 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1660 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1661 | |
michael@0 | 1662 | ac_retval=1 |
michael@0 | 1663 | fi |
michael@0 | 1664 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
michael@0 | 1665 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
michael@0 | 1666 | # interfere with the next link command; also delete a directory that is |
michael@0 | 1667 | # left behind by Apple's compiler. We do this before executing the actions. |
michael@0 | 1668 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1669 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1670 | as_fn_set_status $ac_retval |
michael@0 | 1671 | |
michael@0 | 1672 | } # ac_fn_cxx_try_link |
michael@0 | 1673 | |
michael@0 | 1674 | # ac_fn_c_try_run LINENO |
michael@0 | 1675 | # ---------------------- |
michael@0 | 1676 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
michael@0 | 1677 | # that executables *can* be run. |
michael@0 | 1678 | ac_fn_c_try_run () |
michael@0 | 1679 | { |
michael@0 | 1680 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1681 | if { { ac_try="$ac_link" |
michael@0 | 1682 | case "(($ac_try" in |
michael@0 | 1683 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1684 | *) ac_try_echo=$ac_try;; |
michael@0 | 1685 | esac |
michael@0 | 1686 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1687 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1688 | (eval "$ac_link") 2>&5 |
michael@0 | 1689 | ac_status=$? |
michael@0 | 1690 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1691 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
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_try") 2>&5 |
michael@0 | 1699 | ac_status=$? |
michael@0 | 1700 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1701 | test $ac_status = 0; }; }; then : |
michael@0 | 1702 | ac_retval=0 |
michael@0 | 1703 | else |
michael@0 | 1704 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
michael@0 | 1705 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1706 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1707 | |
michael@0 | 1708 | ac_retval=$ac_status |
michael@0 | 1709 | fi |
michael@0 | 1710 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1711 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1712 | as_fn_set_status $ac_retval |
michael@0 | 1713 | |
michael@0 | 1714 | } # ac_fn_c_try_run |
michael@0 | 1715 | |
michael@0 | 1716 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
michael@0 | 1717 | # -------------------------------------------- |
michael@0 | 1718 | # Tries to find the compile-time value of EXPR in a program that includes |
michael@0 | 1719 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
michael@0 | 1720 | # computed |
michael@0 | 1721 | ac_fn_c_compute_int () |
michael@0 | 1722 | { |
michael@0 | 1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1724 | if test "$cross_compiling" = yes; then |
michael@0 | 1725 | # Depending upon the size, compute the lo and hi bounds. |
michael@0 | 1726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1727 | /* end confdefs.h. */ |
michael@0 | 1728 | $4 |
michael@0 | 1729 | int |
michael@0 | 1730 | main () |
michael@0 | 1731 | { |
michael@0 | 1732 | static int test_array [1 - 2 * !(($2) >= 0)]; |
michael@0 | 1733 | test_array [0] = 0 |
michael@0 | 1734 | |
michael@0 | 1735 | ; |
michael@0 | 1736 | return 0; |
michael@0 | 1737 | } |
michael@0 | 1738 | _ACEOF |
michael@0 | 1739 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1740 | ac_lo=0 ac_mid=0 |
michael@0 | 1741 | while :; do |
michael@0 | 1742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1743 | /* end confdefs.h. */ |
michael@0 | 1744 | $4 |
michael@0 | 1745 | int |
michael@0 | 1746 | main () |
michael@0 | 1747 | { |
michael@0 | 1748 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
michael@0 | 1749 | test_array [0] = 0 |
michael@0 | 1750 | |
michael@0 | 1751 | ; |
michael@0 | 1752 | return 0; |
michael@0 | 1753 | } |
michael@0 | 1754 | _ACEOF |
michael@0 | 1755 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1756 | ac_hi=$ac_mid; break |
michael@0 | 1757 | else |
michael@0 | 1758 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
michael@0 | 1759 | if test $ac_lo -le $ac_mid; then |
michael@0 | 1760 | ac_lo= ac_hi= |
michael@0 | 1761 | break |
michael@0 | 1762 | fi |
michael@0 | 1763 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
michael@0 | 1764 | fi |
michael@0 | 1765 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1766 | done |
michael@0 | 1767 | else |
michael@0 | 1768 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1769 | /* end confdefs.h. */ |
michael@0 | 1770 | $4 |
michael@0 | 1771 | int |
michael@0 | 1772 | main () |
michael@0 | 1773 | { |
michael@0 | 1774 | static int test_array [1 - 2 * !(($2) < 0)]; |
michael@0 | 1775 | test_array [0] = 0 |
michael@0 | 1776 | |
michael@0 | 1777 | ; |
michael@0 | 1778 | return 0; |
michael@0 | 1779 | } |
michael@0 | 1780 | _ACEOF |
michael@0 | 1781 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1782 | ac_hi=-1 ac_mid=-1 |
michael@0 | 1783 | while :; do |
michael@0 | 1784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1785 | /* end confdefs.h. */ |
michael@0 | 1786 | $4 |
michael@0 | 1787 | int |
michael@0 | 1788 | main () |
michael@0 | 1789 | { |
michael@0 | 1790 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
michael@0 | 1791 | test_array [0] = 0 |
michael@0 | 1792 | |
michael@0 | 1793 | ; |
michael@0 | 1794 | return 0; |
michael@0 | 1795 | } |
michael@0 | 1796 | _ACEOF |
michael@0 | 1797 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1798 | ac_lo=$ac_mid; break |
michael@0 | 1799 | else |
michael@0 | 1800 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
michael@0 | 1801 | if test $ac_mid -le $ac_hi; then |
michael@0 | 1802 | ac_lo= ac_hi= |
michael@0 | 1803 | break |
michael@0 | 1804 | fi |
michael@0 | 1805 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
michael@0 | 1806 | fi |
michael@0 | 1807 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1808 | done |
michael@0 | 1809 | else |
michael@0 | 1810 | ac_lo= ac_hi= |
michael@0 | 1811 | fi |
michael@0 | 1812 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1813 | fi |
michael@0 | 1814 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1815 | # Binary search between lo and hi bounds. |
michael@0 | 1816 | while test "x$ac_lo" != "x$ac_hi"; do |
michael@0 | 1817 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
michael@0 | 1818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1819 | /* end confdefs.h. */ |
michael@0 | 1820 | $4 |
michael@0 | 1821 | int |
michael@0 | 1822 | main () |
michael@0 | 1823 | { |
michael@0 | 1824 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
michael@0 | 1825 | test_array [0] = 0 |
michael@0 | 1826 | |
michael@0 | 1827 | ; |
michael@0 | 1828 | return 0; |
michael@0 | 1829 | } |
michael@0 | 1830 | _ACEOF |
michael@0 | 1831 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1832 | ac_hi=$ac_mid |
michael@0 | 1833 | else |
michael@0 | 1834 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
michael@0 | 1835 | fi |
michael@0 | 1836 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1837 | done |
michael@0 | 1838 | case $ac_lo in #(( |
michael@0 | 1839 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
michael@0 | 1840 | '') ac_retval=1 ;; |
michael@0 | 1841 | esac |
michael@0 | 1842 | else |
michael@0 | 1843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1844 | /* end confdefs.h. */ |
michael@0 | 1845 | $4 |
michael@0 | 1846 | static long int longval () { return $2; } |
michael@0 | 1847 | static unsigned long int ulongval () { return $2; } |
michael@0 | 1848 | #include <stdio.h> |
michael@0 | 1849 | #include <stdlib.h> |
michael@0 | 1850 | int |
michael@0 | 1851 | main () |
michael@0 | 1852 | { |
michael@0 | 1853 | |
michael@0 | 1854 | FILE *f = fopen ("conftest.val", "w"); |
michael@0 | 1855 | if (! f) |
michael@0 | 1856 | return 1; |
michael@0 | 1857 | if (($2) < 0) |
michael@0 | 1858 | { |
michael@0 | 1859 | long int i = longval (); |
michael@0 | 1860 | if (i != ($2)) |
michael@0 | 1861 | return 1; |
michael@0 | 1862 | fprintf (f, "%ld", i); |
michael@0 | 1863 | } |
michael@0 | 1864 | else |
michael@0 | 1865 | { |
michael@0 | 1866 | unsigned long int i = ulongval (); |
michael@0 | 1867 | if (i != ($2)) |
michael@0 | 1868 | return 1; |
michael@0 | 1869 | fprintf (f, "%lu", i); |
michael@0 | 1870 | } |
michael@0 | 1871 | /* Do not output a trailing newline, as this causes \r\n confusion |
michael@0 | 1872 | on some platforms. */ |
michael@0 | 1873 | return ferror (f) || fclose (f) != 0; |
michael@0 | 1874 | |
michael@0 | 1875 | ; |
michael@0 | 1876 | return 0; |
michael@0 | 1877 | } |
michael@0 | 1878 | _ACEOF |
michael@0 | 1879 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 1880 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
michael@0 | 1881 | else |
michael@0 | 1882 | ac_retval=1 |
michael@0 | 1883 | fi |
michael@0 | 1884 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 1885 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 1886 | rm -f conftest.val |
michael@0 | 1887 | |
michael@0 | 1888 | fi |
michael@0 | 1889 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1890 | as_fn_set_status $ac_retval |
michael@0 | 1891 | |
michael@0 | 1892 | } # ac_fn_c_compute_int |
michael@0 | 1893 | |
michael@0 | 1894 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
michael@0 | 1895 | # ------------------------------------------------------- |
michael@0 | 1896 | # Tests whether HEADER exists and can be compiled using the include files in |
michael@0 | 1897 | # INCLUDES, setting the cache variable VAR accordingly. |
michael@0 | 1898 | ac_fn_c_check_header_compile () |
michael@0 | 1899 | { |
michael@0 | 1900 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1902 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1903 | if eval \${$3+:} false; then : |
michael@0 | 1904 | $as_echo_n "(cached) " >&6 |
michael@0 | 1905 | else |
michael@0 | 1906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1907 | /* end confdefs.h. */ |
michael@0 | 1908 | $4 |
michael@0 | 1909 | #include <$2> |
michael@0 | 1910 | _ACEOF |
michael@0 | 1911 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1912 | eval "$3=yes" |
michael@0 | 1913 | else |
michael@0 | 1914 | eval "$3=no" |
michael@0 | 1915 | fi |
michael@0 | 1916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 1917 | fi |
michael@0 | 1918 | eval ac_res=\$$3 |
michael@0 | 1919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1920 | $as_echo "$ac_res" >&6; } |
michael@0 | 1921 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1922 | |
michael@0 | 1923 | } # ac_fn_c_check_header_compile |
michael@0 | 1924 | |
michael@0 | 1925 | # ac_fn_c_try_link LINENO |
michael@0 | 1926 | # ----------------------- |
michael@0 | 1927 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
michael@0 | 1928 | ac_fn_c_try_link () |
michael@0 | 1929 | { |
michael@0 | 1930 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1931 | rm -f conftest.$ac_objext conftest$ac_exeext |
michael@0 | 1932 | if { { ac_try="$ac_link" |
michael@0 | 1933 | case "(($ac_try" in |
michael@0 | 1934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 1935 | *) ac_try_echo=$ac_try;; |
michael@0 | 1936 | esac |
michael@0 | 1937 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 1938 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 1939 | (eval "$ac_link") 2>conftest.err |
michael@0 | 1940 | ac_status=$? |
michael@0 | 1941 | if test -s conftest.err; then |
michael@0 | 1942 | grep -v '^ *+' conftest.err >conftest.er1 |
michael@0 | 1943 | cat conftest.er1 >&5 |
michael@0 | 1944 | mv -f conftest.er1 conftest.err |
michael@0 | 1945 | fi |
michael@0 | 1946 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 1947 | test $ac_status = 0; } && { |
michael@0 | 1948 | test -z "$ac_c_werror_flag" || |
michael@0 | 1949 | test ! -s conftest.err |
michael@0 | 1950 | } && test -s conftest$ac_exeext && { |
michael@0 | 1951 | test "$cross_compiling" = yes || |
michael@0 | 1952 | $as_test_x conftest$ac_exeext |
michael@0 | 1953 | }; then : |
michael@0 | 1954 | ac_retval=0 |
michael@0 | 1955 | else |
michael@0 | 1956 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 1957 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 1958 | |
michael@0 | 1959 | ac_retval=1 |
michael@0 | 1960 | fi |
michael@0 | 1961 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
michael@0 | 1962 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
michael@0 | 1963 | # interfere with the next link command; also delete a directory that is |
michael@0 | 1964 | # left behind by Apple's compiler. We do this before executing the actions. |
michael@0 | 1965 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
michael@0 | 1966 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 1967 | as_fn_set_status $ac_retval |
michael@0 | 1968 | |
michael@0 | 1969 | } # ac_fn_c_try_link |
michael@0 | 1970 | |
michael@0 | 1971 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
michael@0 | 1972 | # ------------------------------------------------------- |
michael@0 | 1973 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
michael@0 | 1974 | # the include files in INCLUDES and setting the cache variable VAR |
michael@0 | 1975 | # accordingly. |
michael@0 | 1976 | ac_fn_c_check_header_mongrel () |
michael@0 | 1977 | { |
michael@0 | 1978 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 1979 | if eval \${$3+:} false; then : |
michael@0 | 1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 1981 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 1982 | if eval \${$3+:} false; then : |
michael@0 | 1983 | $as_echo_n "(cached) " >&6 |
michael@0 | 1984 | fi |
michael@0 | 1985 | eval ac_res=\$$3 |
michael@0 | 1986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 1987 | $as_echo "$ac_res" >&6; } |
michael@0 | 1988 | else |
michael@0 | 1989 | # Is the header compilable? |
michael@0 | 1990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
michael@0 | 1991 | $as_echo_n "checking $2 usability... " >&6; } |
michael@0 | 1992 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 1993 | /* end confdefs.h. */ |
michael@0 | 1994 | $4 |
michael@0 | 1995 | #include <$2> |
michael@0 | 1996 | _ACEOF |
michael@0 | 1997 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 1998 | ac_header_compiler=yes |
michael@0 | 1999 | else |
michael@0 | 2000 | ac_header_compiler=no |
michael@0 | 2001 | fi |
michael@0 | 2002 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
michael@0 | 2004 | $as_echo "$ac_header_compiler" >&6; } |
michael@0 | 2005 | |
michael@0 | 2006 | # Is the header present? |
michael@0 | 2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
michael@0 | 2008 | $as_echo_n "checking $2 presence... " >&6; } |
michael@0 | 2009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2010 | /* end confdefs.h. */ |
michael@0 | 2011 | #include <$2> |
michael@0 | 2012 | _ACEOF |
michael@0 | 2013 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 2014 | ac_header_preproc=yes |
michael@0 | 2015 | else |
michael@0 | 2016 | ac_header_preproc=no |
michael@0 | 2017 | fi |
michael@0 | 2018 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
michael@0 | 2020 | $as_echo "$ac_header_preproc" >&6; } |
michael@0 | 2021 | |
michael@0 | 2022 | # So? What about this header? |
michael@0 | 2023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
michael@0 | 2024 | yes:no: ) |
michael@0 | 2025 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
michael@0 | 2026 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
michael@0 | 2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
michael@0 | 2028 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
michael@0 | 2029 | ;; |
michael@0 | 2030 | no:yes:* ) |
michael@0 | 2031 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
michael@0 | 2032 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
michael@0 | 2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
michael@0 | 2034 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
michael@0 | 2035 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
michael@0 | 2036 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
michael@0 | 2037 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
michael@0 | 2038 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
michael@0 | 2039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
michael@0 | 2040 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
michael@0 | 2041 | ;; |
michael@0 | 2042 | esac |
michael@0 | 2043 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 2044 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 2045 | if eval \${$3+:} false; then : |
michael@0 | 2046 | $as_echo_n "(cached) " >&6 |
michael@0 | 2047 | else |
michael@0 | 2048 | eval "$3=\$ac_header_compiler" |
michael@0 | 2049 | fi |
michael@0 | 2050 | eval ac_res=\$$3 |
michael@0 | 2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 2052 | $as_echo "$ac_res" >&6; } |
michael@0 | 2053 | fi |
michael@0 | 2054 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 2055 | |
michael@0 | 2056 | } # ac_fn_c_check_header_mongrel |
michael@0 | 2057 | |
michael@0 | 2058 | # ac_fn_c_check_func LINENO FUNC VAR |
michael@0 | 2059 | # ---------------------------------- |
michael@0 | 2060 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
michael@0 | 2061 | ac_fn_c_check_func () |
michael@0 | 2062 | { |
michael@0 | 2063 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 2064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 2065 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 2066 | if eval \${$3+:} false; then : |
michael@0 | 2067 | $as_echo_n "(cached) " >&6 |
michael@0 | 2068 | else |
michael@0 | 2069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2070 | /* end confdefs.h. */ |
michael@0 | 2071 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
michael@0 | 2072 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
michael@0 | 2073 | #define $2 innocuous_$2 |
michael@0 | 2074 | |
michael@0 | 2075 | /* System header to define __stub macros and hopefully few prototypes, |
michael@0 | 2076 | which can conflict with char $2 (); below. |
michael@0 | 2077 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 2078 | <limits.h> exists even on freestanding compilers. */ |
michael@0 | 2079 | |
michael@0 | 2080 | #ifdef __STDC__ |
michael@0 | 2081 | # include <limits.h> |
michael@0 | 2082 | #else |
michael@0 | 2083 | # include <assert.h> |
michael@0 | 2084 | #endif |
michael@0 | 2085 | |
michael@0 | 2086 | #undef $2 |
michael@0 | 2087 | |
michael@0 | 2088 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 2089 | Use char because int might match the return type of a GCC |
michael@0 | 2090 | builtin and then its argument prototype would still apply. */ |
michael@0 | 2091 | #ifdef __cplusplus |
michael@0 | 2092 | extern "C" |
michael@0 | 2093 | #endif |
michael@0 | 2094 | char $2 (); |
michael@0 | 2095 | /* The GNU C library defines this for functions which it implements |
michael@0 | 2096 | to always fail with ENOSYS. Some functions are actually named |
michael@0 | 2097 | something starting with __ and the normal name is an alias. */ |
michael@0 | 2098 | #if defined __stub_$2 || defined __stub___$2 |
michael@0 | 2099 | choke me |
michael@0 | 2100 | #endif |
michael@0 | 2101 | |
michael@0 | 2102 | int |
michael@0 | 2103 | main () |
michael@0 | 2104 | { |
michael@0 | 2105 | return $2 (); |
michael@0 | 2106 | ; |
michael@0 | 2107 | return 0; |
michael@0 | 2108 | } |
michael@0 | 2109 | _ACEOF |
michael@0 | 2110 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 2111 | eval "$3=yes" |
michael@0 | 2112 | else |
michael@0 | 2113 | eval "$3=no" |
michael@0 | 2114 | fi |
michael@0 | 2115 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 2116 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 2117 | fi |
michael@0 | 2118 | eval ac_res=\$$3 |
michael@0 | 2119 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 2120 | $as_echo "$ac_res" >&6; } |
michael@0 | 2121 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 2122 | |
michael@0 | 2123 | } # ac_fn_c_check_func |
michael@0 | 2124 | |
michael@0 | 2125 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
michael@0 | 2126 | # ------------------------------------------- |
michael@0 | 2127 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
michael@0 | 2128 | # variable VAR accordingly. |
michael@0 | 2129 | ac_fn_c_check_type () |
michael@0 | 2130 | { |
michael@0 | 2131 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 2132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
michael@0 | 2133 | $as_echo_n "checking for $2... " >&6; } |
michael@0 | 2134 | if eval \${$3+:} false; then : |
michael@0 | 2135 | $as_echo_n "(cached) " >&6 |
michael@0 | 2136 | else |
michael@0 | 2137 | eval "$3=no" |
michael@0 | 2138 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2139 | /* end confdefs.h. */ |
michael@0 | 2140 | $4 |
michael@0 | 2141 | int |
michael@0 | 2142 | main () |
michael@0 | 2143 | { |
michael@0 | 2144 | if (sizeof ($2)) |
michael@0 | 2145 | return 0; |
michael@0 | 2146 | ; |
michael@0 | 2147 | return 0; |
michael@0 | 2148 | } |
michael@0 | 2149 | _ACEOF |
michael@0 | 2150 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 2151 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2152 | /* end confdefs.h. */ |
michael@0 | 2153 | $4 |
michael@0 | 2154 | int |
michael@0 | 2155 | main () |
michael@0 | 2156 | { |
michael@0 | 2157 | if (sizeof (($2))) |
michael@0 | 2158 | return 0; |
michael@0 | 2159 | ; |
michael@0 | 2160 | return 0; |
michael@0 | 2161 | } |
michael@0 | 2162 | _ACEOF |
michael@0 | 2163 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 2164 | |
michael@0 | 2165 | else |
michael@0 | 2166 | eval "$3=yes" |
michael@0 | 2167 | fi |
michael@0 | 2168 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 2169 | fi |
michael@0 | 2170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 2171 | fi |
michael@0 | 2172 | eval ac_res=\$$3 |
michael@0 | 2173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
michael@0 | 2174 | $as_echo "$ac_res" >&6; } |
michael@0 | 2175 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
michael@0 | 2176 | |
michael@0 | 2177 | } # ac_fn_c_check_type |
michael@0 | 2178 | cat >config.log <<_ACEOF |
michael@0 | 2179 | This file contains any messages produced by compilers while |
michael@0 | 2180 | running configure, to aid debugging if configure makes a mistake. |
michael@0 | 2181 | |
michael@0 | 2182 | It was created by $as_me, which was |
michael@0 | 2183 | generated by GNU Autoconf 2.68. Invocation command line was |
michael@0 | 2184 | |
michael@0 | 2185 | $ $0 $@ |
michael@0 | 2186 | |
michael@0 | 2187 | _ACEOF |
michael@0 | 2188 | exec 5>>config.log |
michael@0 | 2189 | { |
michael@0 | 2190 | cat <<_ASUNAME |
michael@0 | 2191 | ## --------- ## |
michael@0 | 2192 | ## Platform. ## |
michael@0 | 2193 | ## --------- ## |
michael@0 | 2194 | |
michael@0 | 2195 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 2196 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
michael@0 | 2197 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
michael@0 | 2198 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
michael@0 | 2199 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
michael@0 | 2200 | |
michael@0 | 2201 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
michael@0 | 2202 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
michael@0 | 2203 | |
michael@0 | 2204 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
michael@0 | 2205 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
michael@0 | 2206 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
michael@0 | 2207 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
michael@0 | 2208 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
michael@0 | 2209 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
michael@0 | 2210 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
michael@0 | 2211 | |
michael@0 | 2212 | _ASUNAME |
michael@0 | 2213 | |
michael@0 | 2214 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2215 | for as_dir in $PATH |
michael@0 | 2216 | do |
michael@0 | 2217 | IFS=$as_save_IFS |
michael@0 | 2218 | test -z "$as_dir" && as_dir=. |
michael@0 | 2219 | $as_echo "PATH: $as_dir" |
michael@0 | 2220 | done |
michael@0 | 2221 | IFS=$as_save_IFS |
michael@0 | 2222 | |
michael@0 | 2223 | } >&5 |
michael@0 | 2224 | |
michael@0 | 2225 | cat >&5 <<_ACEOF |
michael@0 | 2226 | |
michael@0 | 2227 | |
michael@0 | 2228 | ## ----------- ## |
michael@0 | 2229 | ## Core tests. ## |
michael@0 | 2230 | ## ----------- ## |
michael@0 | 2231 | |
michael@0 | 2232 | _ACEOF |
michael@0 | 2233 | |
michael@0 | 2234 | |
michael@0 | 2235 | # Keep a trace of the command line. |
michael@0 | 2236 | # Strip out --no-create and --no-recursion so they do not pile up. |
michael@0 | 2237 | # Strip out --silent because we don't want to record it for future runs. |
michael@0 | 2238 | # Also quote any args containing shell meta-characters. |
michael@0 | 2239 | # Make two passes to allow for proper duplicate-argument suppression. |
michael@0 | 2240 | ac_configure_args= |
michael@0 | 2241 | ac_configure_args0= |
michael@0 | 2242 | ac_configure_args1= |
michael@0 | 2243 | ac_must_keep_next=false |
michael@0 | 2244 | for ac_pass in 1 2 |
michael@0 | 2245 | do |
michael@0 | 2246 | for ac_arg |
michael@0 | 2247 | do |
michael@0 | 2248 | case $ac_arg in |
michael@0 | 2249 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
michael@0 | 2250 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 2251 | | -silent | --silent | --silen | --sile | --sil) |
michael@0 | 2252 | continue ;; |
michael@0 | 2253 | *\'*) |
michael@0 | 2254 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 2255 | esac |
michael@0 | 2256 | case $ac_pass in |
michael@0 | 2257 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
michael@0 | 2258 | 2) |
michael@0 | 2259 | as_fn_append ac_configure_args1 " '$ac_arg'" |
michael@0 | 2260 | if test $ac_must_keep_next = true; then |
michael@0 | 2261 | ac_must_keep_next=false # Got value, back to normal. |
michael@0 | 2262 | else |
michael@0 | 2263 | case $ac_arg in |
michael@0 | 2264 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
michael@0 | 2265 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
michael@0 | 2266 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
michael@0 | 2267 | | -with-* | --with-* | -without-* | --without-* | --x) |
michael@0 | 2268 | case "$ac_configure_args0 " in |
michael@0 | 2269 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
michael@0 | 2270 | esac |
michael@0 | 2271 | ;; |
michael@0 | 2272 | -* ) ac_must_keep_next=true ;; |
michael@0 | 2273 | esac |
michael@0 | 2274 | fi |
michael@0 | 2275 | as_fn_append ac_configure_args " '$ac_arg'" |
michael@0 | 2276 | ;; |
michael@0 | 2277 | esac |
michael@0 | 2278 | done |
michael@0 | 2279 | done |
michael@0 | 2280 | { ac_configure_args0=; unset ac_configure_args0;} |
michael@0 | 2281 | { ac_configure_args1=; unset ac_configure_args1;} |
michael@0 | 2282 | |
michael@0 | 2283 | # When interrupted or exit'd, cleanup temporary files, and complete |
michael@0 | 2284 | # config.log. We remove comments because anyway the quotes in there |
michael@0 | 2285 | # would cause problems or look ugly. |
michael@0 | 2286 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
michael@0 | 2287 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
michael@0 | 2288 | trap 'exit_status=$? |
michael@0 | 2289 | # Save into config.log some information that might help in debugging. |
michael@0 | 2290 | { |
michael@0 | 2291 | echo |
michael@0 | 2292 | |
michael@0 | 2293 | $as_echo "## ---------------- ## |
michael@0 | 2294 | ## Cache variables. ## |
michael@0 | 2295 | ## ---------------- ##" |
michael@0 | 2296 | echo |
michael@0 | 2297 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 2298 | ( |
michael@0 | 2299 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
michael@0 | 2300 | eval ac_val=\$$ac_var |
michael@0 | 2301 | case $ac_val in #( |
michael@0 | 2302 | *${as_nl}*) |
michael@0 | 2303 | case $ac_var in #( |
michael@0 | 2304 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
michael@0 | 2305 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
michael@0 | 2306 | esac |
michael@0 | 2307 | case $ac_var in #( |
michael@0 | 2308 | _ | IFS | as_nl) ;; #( |
michael@0 | 2309 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
michael@0 | 2310 | *) { eval $ac_var=; unset $ac_var;} ;; |
michael@0 | 2311 | esac ;; |
michael@0 | 2312 | esac |
michael@0 | 2313 | done |
michael@0 | 2314 | (set) 2>&1 | |
michael@0 | 2315 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
michael@0 | 2316 | *${as_nl}ac_space=\ *) |
michael@0 | 2317 | sed -n \ |
michael@0 | 2318 | "s/'\''/'\''\\\\'\'''\''/g; |
michael@0 | 2319 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
michael@0 | 2320 | ;; #( |
michael@0 | 2321 | *) |
michael@0 | 2322 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
michael@0 | 2323 | ;; |
michael@0 | 2324 | esac | |
michael@0 | 2325 | sort |
michael@0 | 2326 | ) |
michael@0 | 2327 | echo |
michael@0 | 2328 | |
michael@0 | 2329 | $as_echo "## ----------------- ## |
michael@0 | 2330 | ## Output variables. ## |
michael@0 | 2331 | ## ----------------- ##" |
michael@0 | 2332 | echo |
michael@0 | 2333 | for ac_var in $ac_subst_vars |
michael@0 | 2334 | do |
michael@0 | 2335 | eval ac_val=\$$ac_var |
michael@0 | 2336 | case $ac_val in |
michael@0 | 2337 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
michael@0 | 2338 | esac |
michael@0 | 2339 | $as_echo "$ac_var='\''$ac_val'\''" |
michael@0 | 2340 | done | sort |
michael@0 | 2341 | echo |
michael@0 | 2342 | |
michael@0 | 2343 | if test -n "$ac_subst_files"; then |
michael@0 | 2344 | $as_echo "## ------------------- ## |
michael@0 | 2345 | ## File substitutions. ## |
michael@0 | 2346 | ## ------------------- ##" |
michael@0 | 2347 | echo |
michael@0 | 2348 | for ac_var in $ac_subst_files |
michael@0 | 2349 | do |
michael@0 | 2350 | eval ac_val=\$$ac_var |
michael@0 | 2351 | case $ac_val in |
michael@0 | 2352 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
michael@0 | 2353 | esac |
michael@0 | 2354 | $as_echo "$ac_var='\''$ac_val'\''" |
michael@0 | 2355 | done | sort |
michael@0 | 2356 | echo |
michael@0 | 2357 | fi |
michael@0 | 2358 | |
michael@0 | 2359 | if test -s confdefs.h; then |
michael@0 | 2360 | $as_echo "## ----------- ## |
michael@0 | 2361 | ## confdefs.h. ## |
michael@0 | 2362 | ## ----------- ##" |
michael@0 | 2363 | echo |
michael@0 | 2364 | cat confdefs.h |
michael@0 | 2365 | echo |
michael@0 | 2366 | fi |
michael@0 | 2367 | test "$ac_signal" != 0 && |
michael@0 | 2368 | $as_echo "$as_me: caught signal $ac_signal" |
michael@0 | 2369 | $as_echo "$as_me: exit $exit_status" |
michael@0 | 2370 | } >&5 |
michael@0 | 2371 | rm -f core *.core core.conftest.* && |
michael@0 | 2372 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
michael@0 | 2373 | exit $exit_status |
michael@0 | 2374 | ' 0 |
michael@0 | 2375 | for ac_signal in 1 2 13 15; do |
michael@0 | 2376 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
michael@0 | 2377 | done |
michael@0 | 2378 | ac_signal=0 |
michael@0 | 2379 | |
michael@0 | 2380 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
michael@0 | 2381 | rm -f -r conftest* confdefs.h |
michael@0 | 2382 | |
michael@0 | 2383 | $as_echo "/* confdefs.h */" > confdefs.h |
michael@0 | 2384 | |
michael@0 | 2385 | # Predefined preprocessor variables. |
michael@0 | 2386 | |
michael@0 | 2387 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2388 | #define PACKAGE_NAME "$PACKAGE_NAME" |
michael@0 | 2389 | _ACEOF |
michael@0 | 2390 | |
michael@0 | 2391 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2392 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
michael@0 | 2393 | _ACEOF |
michael@0 | 2394 | |
michael@0 | 2395 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2396 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
michael@0 | 2397 | _ACEOF |
michael@0 | 2398 | |
michael@0 | 2399 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2400 | #define PACKAGE_STRING "$PACKAGE_STRING" |
michael@0 | 2401 | _ACEOF |
michael@0 | 2402 | |
michael@0 | 2403 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2404 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
michael@0 | 2405 | _ACEOF |
michael@0 | 2406 | |
michael@0 | 2407 | cat >>confdefs.h <<_ACEOF |
michael@0 | 2408 | #define PACKAGE_URL "$PACKAGE_URL" |
michael@0 | 2409 | _ACEOF |
michael@0 | 2410 | |
michael@0 | 2411 | |
michael@0 | 2412 | # Let the site file select an alternate cache file if it wants to. |
michael@0 | 2413 | # Prefer an explicitly selected file to automatically selected ones. |
michael@0 | 2414 | ac_site_file1=NONE |
michael@0 | 2415 | ac_site_file2=NONE |
michael@0 | 2416 | if test -n "$CONFIG_SITE"; then |
michael@0 | 2417 | # We do not want a PATH search for config.site. |
michael@0 | 2418 | case $CONFIG_SITE in #(( |
michael@0 | 2419 | -*) ac_site_file1=./$CONFIG_SITE;; |
michael@0 | 2420 | */*) ac_site_file1=$CONFIG_SITE;; |
michael@0 | 2421 | *) ac_site_file1=./$CONFIG_SITE;; |
michael@0 | 2422 | esac |
michael@0 | 2423 | elif test "x$prefix" != xNONE; then |
michael@0 | 2424 | ac_site_file1=$prefix/share/config.site |
michael@0 | 2425 | ac_site_file2=$prefix/etc/config.site |
michael@0 | 2426 | else |
michael@0 | 2427 | ac_site_file1=$ac_default_prefix/share/config.site |
michael@0 | 2428 | ac_site_file2=$ac_default_prefix/etc/config.site |
michael@0 | 2429 | fi |
michael@0 | 2430 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
michael@0 | 2431 | do |
michael@0 | 2432 | test "x$ac_site_file" = xNONE && continue |
michael@0 | 2433 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
michael@0 | 2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
michael@0 | 2435 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
michael@0 | 2436 | sed 's/^/| /' "$ac_site_file" >&5 |
michael@0 | 2437 | . "$ac_site_file" \ |
michael@0 | 2438 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2439 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2440 | as_fn_error $? "failed to load site script $ac_site_file |
michael@0 | 2441 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2442 | fi |
michael@0 | 2443 | done |
michael@0 | 2444 | |
michael@0 | 2445 | if test -r "$cache_file"; then |
michael@0 | 2446 | # Some versions of bash will fail to source /dev/null (special files |
michael@0 | 2447 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
michael@0 | 2448 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
michael@0 | 2449 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
michael@0 | 2450 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
michael@0 | 2451 | case $cache_file in |
michael@0 | 2452 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
michael@0 | 2453 | *) . "./$cache_file";; |
michael@0 | 2454 | esac |
michael@0 | 2455 | fi |
michael@0 | 2456 | else |
michael@0 | 2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
michael@0 | 2458 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
michael@0 | 2459 | >$cache_file |
michael@0 | 2460 | fi |
michael@0 | 2461 | |
michael@0 | 2462 | # Check that the precious variables saved in the cache have kept the same |
michael@0 | 2463 | # value. |
michael@0 | 2464 | ac_cache_corrupted=false |
michael@0 | 2465 | for ac_var in $ac_precious_vars; do |
michael@0 | 2466 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
michael@0 | 2467 | eval ac_new_set=\$ac_env_${ac_var}_set |
michael@0 | 2468 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
michael@0 | 2469 | eval ac_new_val=\$ac_env_${ac_var}_value |
michael@0 | 2470 | case $ac_old_set,$ac_new_set in |
michael@0 | 2471 | set,) |
michael@0 | 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
michael@0 | 2473 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
michael@0 | 2474 | ac_cache_corrupted=: ;; |
michael@0 | 2475 | ,set) |
michael@0 | 2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
michael@0 | 2477 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
michael@0 | 2478 | ac_cache_corrupted=: ;; |
michael@0 | 2479 | ,);; |
michael@0 | 2480 | *) |
michael@0 | 2481 | if test "x$ac_old_val" != "x$ac_new_val"; then |
michael@0 | 2482 | # differences in whitespace do not lead to failure. |
michael@0 | 2483 | ac_old_val_w=`echo x $ac_old_val` |
michael@0 | 2484 | ac_new_val_w=`echo x $ac_new_val` |
michael@0 | 2485 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
michael@0 | 2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
michael@0 | 2487 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
michael@0 | 2488 | ac_cache_corrupted=: |
michael@0 | 2489 | else |
michael@0 | 2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
michael@0 | 2491 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
michael@0 | 2492 | eval $ac_var=\$ac_old_val |
michael@0 | 2493 | fi |
michael@0 | 2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
michael@0 | 2495 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
michael@0 | 2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
michael@0 | 2497 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
michael@0 | 2498 | fi;; |
michael@0 | 2499 | esac |
michael@0 | 2500 | # Pass precious variables to config.status. |
michael@0 | 2501 | if test "$ac_new_set" = set; then |
michael@0 | 2502 | case $ac_new_val in |
michael@0 | 2503 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 2504 | *) ac_arg=$ac_var=$ac_new_val ;; |
michael@0 | 2505 | esac |
michael@0 | 2506 | case " $ac_configure_args " in |
michael@0 | 2507 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
michael@0 | 2508 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
michael@0 | 2509 | esac |
michael@0 | 2510 | fi |
michael@0 | 2511 | done |
michael@0 | 2512 | if $ac_cache_corrupted; then |
michael@0 | 2513 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2514 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
michael@0 | 2516 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
michael@0 | 2517 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
michael@0 | 2518 | fi |
michael@0 | 2519 | ## -------------------- ## |
michael@0 | 2520 | ## Main body of script. ## |
michael@0 | 2521 | ## -------------------- ## |
michael@0 | 2522 | |
michael@0 | 2523 | ac_ext=c |
michael@0 | 2524 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 2525 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 2526 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 2527 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 2528 | |
michael@0 | 2529 | |
michael@0 | 2530 | |
michael@0 | 2531 | #TODO: IcuBug:8502 |
michael@0 | 2532 | #AC_INIT([ICU], |
michael@0 | 2533 | # m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"), |
michael@0 | 2534 | # [http://icu-project.org/bugs], |
michael@0 | 2535 | # [International Components for Unicode], |
michael@0 | 2536 | # [http://icu-project.org]) |
michael@0 | 2537 | |
michael@0 | 2538 | |
michael@0 | 2539 | |
michael@0 | 2540 | PACKAGE="icu" |
michael@0 | 2541 | |
michael@0 | 2542 | |
michael@0 | 2543 | # Use custom echo test for newline option |
michael@0 | 2544 | # Current autoconf (2.65) gives incorrect echo newline option |
michael@0 | 2545 | # for icu-config |
michael@0 | 2546 | # This may be removed later - mow (June 17, 2010) |
michael@0 | 2547 | ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T= |
michael@0 | 2548 | case `/bin/sh -c "echo -n x"` in |
michael@0 | 2549 | -n*) |
michael@0 | 2550 | case `/bin/sh -c "echo 'x\c'"` in |
michael@0 | 2551 | *c*) ICU_ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 2552 | *) ICU_ECHO_C='\c';; |
michael@0 | 2553 | esac;; |
michael@0 | 2554 | *) |
michael@0 | 2555 | ICU_ECHO_N='-n';; |
michael@0 | 2556 | esac |
michael@0 | 2557 | |
michael@0 | 2558 | |
michael@0 | 2559 | |
michael@0 | 2560 | |
michael@0 | 2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5 |
michael@0 | 2562 | $as_echo_n "checking for ICU version numbers... " >&6; } |
michael@0 | 2563 | |
michael@0 | 2564 | # Get the ICU version from uversion.h or other headers |
michael@0 | 2565 | geticuversion() { |
michael@0 | 2566 | sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" |
michael@0 | 2567 | } |
michael@0 | 2568 | getuversion() { |
michael@0 | 2569 | sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" |
michael@0 | 2570 | } |
michael@0 | 2571 | VERSION=`geticuversion $srcdir/common/unicode/uvernum.h` |
michael@0 | 2572 | if test x"$VERSION" = x; then |
michael@0 | 2573 | as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5 |
michael@0 | 2574 | fi |
michael@0 | 2575 | |
michael@0 | 2576 | #TODO: IcuBug:8502 |
michael@0 | 2577 | #if test "$VERSION" != "$PACKAGE_VERSION"; then |
michael@0 | 2578 | # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf]) |
michael@0 | 2579 | #fi |
michael@0 | 2580 | |
michael@0 | 2581 | UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h` |
michael@0 | 2582 | if test x"$UNICODE_VERSION" = x; then |
michael@0 | 2583 | as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5 |
michael@0 | 2584 | fi |
michael@0 | 2585 | # Compute a reasonable library version from the release version. This is |
michael@0 | 2586 | # very bad, but that's wanted... We want to make sure that the LIB_VERSION |
michael@0 | 2587 | # has at least a dot in it, so we'll add a .0 if needed. |
michael@0 | 2588 | #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`] |
michael@0 | 2589 | LIB_VERSION=$VERSION |
michael@0 | 2590 | LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` |
michael@0 | 2591 | |
michael@0 | 2592 | |
michael@0 | 2593 | |
michael@0 | 2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5 |
michael@0 | 2595 | $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; } |
michael@0 | 2596 | |
michael@0 | 2597 | |
michael@0 | 2598 | |
michael@0 | 2599 | # Determine the host system |
michael@0 | 2600 | ac_aux_dir= |
michael@0 | 2601 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
michael@0 | 2602 | if test -f "$ac_dir/install-sh"; then |
michael@0 | 2603 | ac_aux_dir=$ac_dir |
michael@0 | 2604 | ac_install_sh="$ac_aux_dir/install-sh -c" |
michael@0 | 2605 | break |
michael@0 | 2606 | elif test -f "$ac_dir/install.sh"; then |
michael@0 | 2607 | ac_aux_dir=$ac_dir |
michael@0 | 2608 | ac_install_sh="$ac_aux_dir/install.sh -c" |
michael@0 | 2609 | break |
michael@0 | 2610 | elif test -f "$ac_dir/shtool"; then |
michael@0 | 2611 | ac_aux_dir=$ac_dir |
michael@0 | 2612 | ac_install_sh="$ac_aux_dir/shtool install -c" |
michael@0 | 2613 | break |
michael@0 | 2614 | fi |
michael@0 | 2615 | done |
michael@0 | 2616 | if test -z "$ac_aux_dir"; then |
michael@0 | 2617 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
michael@0 | 2618 | fi |
michael@0 | 2619 | |
michael@0 | 2620 | # These three variables are undocumented and unsupported, |
michael@0 | 2621 | # and are intended to be withdrawn in a future Autoconf release. |
michael@0 | 2622 | # They can cause serious problems if a builder's source tree is in a directory |
michael@0 | 2623 | # whose full name contains unusual characters. |
michael@0 | 2624 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
michael@0 | 2625 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
michael@0 | 2626 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
michael@0 | 2627 | |
michael@0 | 2628 | |
michael@0 | 2629 | # Make sure we can run config.sub. |
michael@0 | 2630 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
michael@0 | 2631 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
michael@0 | 2632 | |
michael@0 | 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
michael@0 | 2634 | $as_echo_n "checking build system type... " >&6; } |
michael@0 | 2635 | if ${ac_cv_build+:} false; then : |
michael@0 | 2636 | $as_echo_n "(cached) " >&6 |
michael@0 | 2637 | else |
michael@0 | 2638 | ac_build_alias=$build_alias |
michael@0 | 2639 | test "x$ac_build_alias" = x && |
michael@0 | 2640 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
michael@0 | 2641 | test "x$ac_build_alias" = x && |
michael@0 | 2642 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
michael@0 | 2643 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
michael@0 | 2644 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
michael@0 | 2645 | |
michael@0 | 2646 | fi |
michael@0 | 2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
michael@0 | 2648 | $as_echo "$ac_cv_build" >&6; } |
michael@0 | 2649 | case $ac_cv_build in |
michael@0 | 2650 | *-*-*) ;; |
michael@0 | 2651 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
michael@0 | 2652 | esac |
michael@0 | 2653 | build=$ac_cv_build |
michael@0 | 2654 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 2655 | set x $ac_cv_build |
michael@0 | 2656 | shift |
michael@0 | 2657 | build_cpu=$1 |
michael@0 | 2658 | build_vendor=$2 |
michael@0 | 2659 | shift; shift |
michael@0 | 2660 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 2661 | # except with old shells: |
michael@0 | 2662 | build_os=$* |
michael@0 | 2663 | IFS=$ac_save_IFS |
michael@0 | 2664 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
michael@0 | 2665 | |
michael@0 | 2666 | |
michael@0 | 2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
michael@0 | 2668 | $as_echo_n "checking host system type... " >&6; } |
michael@0 | 2669 | if ${ac_cv_host+:} false; then : |
michael@0 | 2670 | $as_echo_n "(cached) " >&6 |
michael@0 | 2671 | else |
michael@0 | 2672 | if test "x$host_alias" = x; then |
michael@0 | 2673 | ac_cv_host=$ac_cv_build |
michael@0 | 2674 | else |
michael@0 | 2675 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
michael@0 | 2676 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
michael@0 | 2677 | fi |
michael@0 | 2678 | |
michael@0 | 2679 | fi |
michael@0 | 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
michael@0 | 2681 | $as_echo "$ac_cv_host" >&6; } |
michael@0 | 2682 | case $ac_cv_host in |
michael@0 | 2683 | *-*-*) ;; |
michael@0 | 2684 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
michael@0 | 2685 | esac |
michael@0 | 2686 | host=$ac_cv_host |
michael@0 | 2687 | ac_save_IFS=$IFS; IFS='-' |
michael@0 | 2688 | set x $ac_cv_host |
michael@0 | 2689 | shift |
michael@0 | 2690 | host_cpu=$1 |
michael@0 | 2691 | host_vendor=$2 |
michael@0 | 2692 | shift; shift |
michael@0 | 2693 | # Remember, the first character of IFS is used to create $*, |
michael@0 | 2694 | # except with old shells: |
michael@0 | 2695 | host_os=$* |
michael@0 | 2696 | IFS=$ac_save_IFS |
michael@0 | 2697 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
michael@0 | 2698 | |
michael@0 | 2699 | |
michael@0 | 2700 | |
michael@0 | 2701 | |
michael@0 | 2702 | |
michael@0 | 2703 | # This variable is needed on z/OS because the C++ compiler only recognizes .C |
michael@0 | 2704 | _CXX_CXXSUFFIX=cpp |
michael@0 | 2705 | export _CXX_CXXSUFFIX |
michael@0 | 2706 | |
michael@0 | 2707 | # Accumulate #defines |
michael@0 | 2708 | |
michael@0 | 2709 | # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. |
michael@0 | 2710 | # They are only needed for building ICU itself. Example: platform stuff |
michael@0 | 2711 | CONFIG_CPPFLAGS="" |
michael@0 | 2712 | # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, |
michael@0 | 2713 | # and also a notice is output that they need to be set |
michael@0 | 2714 | # for end-users of ICU also. uconfig.h.prepend is generated |
michael@0 | 2715 | # with, for example, "#define U_DISABLE_RENAMING 1" |
michael@0 | 2716 | # Example: ICU configuration stuff |
michael@0 | 2717 | UCONFIG_CPPFLAGS="" |
michael@0 | 2718 | # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users |
michael@0 | 2719 | # such as -std |
michael@0 | 2720 | UCONFIG_CFLAGS="" |
michael@0 | 2721 | |
michael@0 | 2722 | # Check whether to build debug libraries |
michael@0 | 2723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5 |
michael@0 | 2724 | $as_echo_n "checking whether to build debug libraries... " >&6; } |
michael@0 | 2725 | enabled=no |
michael@0 | 2726 | ENABLE_DEBUG=0 |
michael@0 | 2727 | # Check whether --enable-debug was given. |
michael@0 | 2728 | if test "${enable_debug+set}" = set; then : |
michael@0 | 2729 | enableval=$enable_debug; case "${enableval}" in |
michael@0 | 2730 | yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;; |
michael@0 | 2731 | *) ;; |
michael@0 | 2732 | esac |
michael@0 | 2733 | fi |
michael@0 | 2734 | |
michael@0 | 2735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 2736 | $as_echo "$enabled" >&6; } |
michael@0 | 2737 | |
michael@0 | 2738 | |
michael@0 | 2739 | # Check whether to build release libraries |
michael@0 | 2740 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5 |
michael@0 | 2741 | $as_echo_n "checking whether to build release libraries... " >&6; } |
michael@0 | 2742 | enabled=yes |
michael@0 | 2743 | ENABLE_RELEASE=1 |
michael@0 | 2744 | # Check whether --enable-release was given. |
michael@0 | 2745 | if test "${enable_release+set}" = set; then : |
michael@0 | 2746 | enableval=$enable_release; case "${enableval}" in |
michael@0 | 2747 | no) enabled=no; ENABLE_RELEASE=0 ;; |
michael@0 | 2748 | *) ;; |
michael@0 | 2749 | esac |
michael@0 | 2750 | fi |
michael@0 | 2751 | |
michael@0 | 2752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 2753 | $as_echo "$enabled" >&6; } |
michael@0 | 2754 | |
michael@0 | 2755 | |
michael@0 | 2756 | # Don't use the default C/CXXFLags |
michael@0 | 2757 | : ${CFLAGS=""} |
michael@0 | 2758 | : ${CXXFLAGS=""} |
michael@0 | 2759 | |
michael@0 | 2760 | # Checks for compilers |
michael@0 | 2761 | ac_ext=c |
michael@0 | 2762 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 2763 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 2764 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 2765 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 2766 | if test -n "$ac_tool_prefix"; then |
michael@0 | 2767 | for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
michael@0 | 2768 | do |
michael@0 | 2769 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
michael@0 | 2770 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
michael@0 | 2771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2772 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2773 | if ${ac_cv_prog_CC+:} false; then : |
michael@0 | 2774 | $as_echo_n "(cached) " >&6 |
michael@0 | 2775 | else |
michael@0 | 2776 | if test -n "$CC"; then |
michael@0 | 2777 | ac_cv_prog_CC="$CC" # Let the user override the test. |
michael@0 | 2778 | else |
michael@0 | 2779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2780 | for as_dir in $PATH |
michael@0 | 2781 | do |
michael@0 | 2782 | IFS=$as_save_IFS |
michael@0 | 2783 | test -z "$as_dir" && as_dir=. |
michael@0 | 2784 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2785 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 2786 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
michael@0 | 2787 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2788 | break 2 |
michael@0 | 2789 | fi |
michael@0 | 2790 | done |
michael@0 | 2791 | done |
michael@0 | 2792 | IFS=$as_save_IFS |
michael@0 | 2793 | |
michael@0 | 2794 | fi |
michael@0 | 2795 | fi |
michael@0 | 2796 | CC=$ac_cv_prog_CC |
michael@0 | 2797 | if test -n "$CC"; then |
michael@0 | 2798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
michael@0 | 2799 | $as_echo "$CC" >&6; } |
michael@0 | 2800 | else |
michael@0 | 2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2802 | $as_echo "no" >&6; } |
michael@0 | 2803 | fi |
michael@0 | 2804 | |
michael@0 | 2805 | |
michael@0 | 2806 | test -n "$CC" && break |
michael@0 | 2807 | done |
michael@0 | 2808 | fi |
michael@0 | 2809 | if test -z "$CC"; then |
michael@0 | 2810 | ac_ct_CC=$CC |
michael@0 | 2811 | for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc |
michael@0 | 2812 | do |
michael@0 | 2813 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 2814 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 2815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 2816 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 2817 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
michael@0 | 2818 | $as_echo_n "(cached) " >&6 |
michael@0 | 2819 | else |
michael@0 | 2820 | if test -n "$ac_ct_CC"; then |
michael@0 | 2821 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
michael@0 | 2822 | else |
michael@0 | 2823 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 2824 | for as_dir in $PATH |
michael@0 | 2825 | do |
michael@0 | 2826 | IFS=$as_save_IFS |
michael@0 | 2827 | test -z "$as_dir" && as_dir=. |
michael@0 | 2828 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 2829 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 2830 | ac_cv_prog_ac_ct_CC="$ac_prog" |
michael@0 | 2831 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 2832 | break 2 |
michael@0 | 2833 | fi |
michael@0 | 2834 | done |
michael@0 | 2835 | done |
michael@0 | 2836 | IFS=$as_save_IFS |
michael@0 | 2837 | |
michael@0 | 2838 | fi |
michael@0 | 2839 | fi |
michael@0 | 2840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
michael@0 | 2841 | if test -n "$ac_ct_CC"; then |
michael@0 | 2842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
michael@0 | 2843 | $as_echo "$ac_ct_CC" >&6; } |
michael@0 | 2844 | else |
michael@0 | 2845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2846 | $as_echo "no" >&6; } |
michael@0 | 2847 | fi |
michael@0 | 2848 | |
michael@0 | 2849 | |
michael@0 | 2850 | test -n "$ac_ct_CC" && break |
michael@0 | 2851 | done |
michael@0 | 2852 | |
michael@0 | 2853 | if test "x$ac_ct_CC" = x; then |
michael@0 | 2854 | CC="" |
michael@0 | 2855 | else |
michael@0 | 2856 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 2857 | yes:) |
michael@0 | 2858 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 2859 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 2860 | ac_tool_warned=yes ;; |
michael@0 | 2861 | esac |
michael@0 | 2862 | CC=$ac_ct_CC |
michael@0 | 2863 | fi |
michael@0 | 2864 | fi |
michael@0 | 2865 | |
michael@0 | 2866 | |
michael@0 | 2867 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2868 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2869 | as_fn_error $? "no acceptable C compiler found in \$PATH |
michael@0 | 2870 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2871 | |
michael@0 | 2872 | # Provide some information about the compiler. |
michael@0 | 2873 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
michael@0 | 2874 | set X $ac_compile |
michael@0 | 2875 | ac_compiler=$2 |
michael@0 | 2876 | for ac_option in --version -v -V -qversion; do |
michael@0 | 2877 | { { ac_try="$ac_compiler $ac_option >&5" |
michael@0 | 2878 | case "(($ac_try" in |
michael@0 | 2879 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 2880 | *) ac_try_echo=$ac_try;; |
michael@0 | 2881 | esac |
michael@0 | 2882 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 2883 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 2884 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
michael@0 | 2885 | ac_status=$? |
michael@0 | 2886 | if test -s conftest.err; then |
michael@0 | 2887 | sed '10a\ |
michael@0 | 2888 | ... rest of stderr output deleted ... |
michael@0 | 2889 | 10q' conftest.err >conftest.er1 |
michael@0 | 2890 | cat conftest.er1 >&5 |
michael@0 | 2891 | fi |
michael@0 | 2892 | rm -f conftest.er1 conftest.err |
michael@0 | 2893 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 2894 | test $ac_status = 0; } |
michael@0 | 2895 | done |
michael@0 | 2896 | |
michael@0 | 2897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 2898 | /* end confdefs.h. */ |
michael@0 | 2899 | |
michael@0 | 2900 | int |
michael@0 | 2901 | main () |
michael@0 | 2902 | { |
michael@0 | 2903 | |
michael@0 | 2904 | ; |
michael@0 | 2905 | return 0; |
michael@0 | 2906 | } |
michael@0 | 2907 | _ACEOF |
michael@0 | 2908 | ac_clean_files_save=$ac_clean_files |
michael@0 | 2909 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
michael@0 | 2910 | # Try to create an executable without -o first, disregard a.out. |
michael@0 | 2911 | # It will help us diagnose broken compilers, and finding out an intuition |
michael@0 | 2912 | # of exeext. |
michael@0 | 2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
michael@0 | 2914 | $as_echo_n "checking whether the C compiler works... " >&6; } |
michael@0 | 2915 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
michael@0 | 2916 | |
michael@0 | 2917 | # The possible output files: |
michael@0 | 2918 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
michael@0 | 2919 | |
michael@0 | 2920 | ac_rmfiles= |
michael@0 | 2921 | for ac_file in $ac_files |
michael@0 | 2922 | do |
michael@0 | 2923 | case $ac_file in |
michael@0 | 2924 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
michael@0 | 2925 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
michael@0 | 2926 | esac |
michael@0 | 2927 | done |
michael@0 | 2928 | rm -f $ac_rmfiles |
michael@0 | 2929 | |
michael@0 | 2930 | if { { ac_try="$ac_link_default" |
michael@0 | 2931 | case "(($ac_try" in |
michael@0 | 2932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 2933 | *) ac_try_echo=$ac_try;; |
michael@0 | 2934 | esac |
michael@0 | 2935 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 2936 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 2937 | (eval "$ac_link_default") 2>&5 |
michael@0 | 2938 | ac_status=$? |
michael@0 | 2939 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 2940 | test $ac_status = 0; }; then : |
michael@0 | 2941 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
michael@0 | 2942 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
michael@0 | 2943 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
michael@0 | 2944 | # so that the user can short-circuit this test for compilers unknown to |
michael@0 | 2945 | # Autoconf. |
michael@0 | 2946 | for ac_file in $ac_files '' |
michael@0 | 2947 | do |
michael@0 | 2948 | test -f "$ac_file" || continue |
michael@0 | 2949 | case $ac_file in |
michael@0 | 2950 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
michael@0 | 2951 | ;; |
michael@0 | 2952 | [ab].out ) |
michael@0 | 2953 | # We found the default executable, but exeext='' is most |
michael@0 | 2954 | # certainly right. |
michael@0 | 2955 | break;; |
michael@0 | 2956 | *.* ) |
michael@0 | 2957 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
michael@0 | 2958 | then :; else |
michael@0 | 2959 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
michael@0 | 2960 | fi |
michael@0 | 2961 | # We set ac_cv_exeext here because the later test for it is not |
michael@0 | 2962 | # safe: cross compilers may not add the suffix if given an `-o' |
michael@0 | 2963 | # argument, so we may need to know it at that point already. |
michael@0 | 2964 | # Even if this section looks crufty: it has the advantage of |
michael@0 | 2965 | # actually working. |
michael@0 | 2966 | break;; |
michael@0 | 2967 | * ) |
michael@0 | 2968 | break;; |
michael@0 | 2969 | esac |
michael@0 | 2970 | done |
michael@0 | 2971 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
michael@0 | 2972 | |
michael@0 | 2973 | else |
michael@0 | 2974 | ac_file='' |
michael@0 | 2975 | fi |
michael@0 | 2976 | if test -z "$ac_file"; then : |
michael@0 | 2977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 2978 | $as_echo "no" >&6; } |
michael@0 | 2979 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 2980 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 2981 | |
michael@0 | 2982 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 2983 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 2984 | as_fn_error 77 "C compiler cannot create executables |
michael@0 | 2985 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 2986 | else |
michael@0 | 2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
michael@0 | 2988 | $as_echo "yes" >&6; } |
michael@0 | 2989 | fi |
michael@0 | 2990 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
michael@0 | 2991 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
michael@0 | 2992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
michael@0 | 2993 | $as_echo "$ac_file" >&6; } |
michael@0 | 2994 | ac_exeext=$ac_cv_exeext |
michael@0 | 2995 | |
michael@0 | 2996 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
michael@0 | 2997 | ac_clean_files=$ac_clean_files_save |
michael@0 | 2998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
michael@0 | 2999 | $as_echo_n "checking for suffix of executables... " >&6; } |
michael@0 | 3000 | if { { ac_try="$ac_link" |
michael@0 | 3001 | case "(($ac_try" in |
michael@0 | 3002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3003 | *) ac_try_echo=$ac_try;; |
michael@0 | 3004 | esac |
michael@0 | 3005 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3006 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3007 | (eval "$ac_link") 2>&5 |
michael@0 | 3008 | ac_status=$? |
michael@0 | 3009 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3010 | test $ac_status = 0; }; then : |
michael@0 | 3011 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
michael@0 | 3012 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
michael@0 | 3013 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
michael@0 | 3014 | # `rm'. |
michael@0 | 3015 | for ac_file in conftest.exe conftest conftest.*; do |
michael@0 | 3016 | test -f "$ac_file" || continue |
michael@0 | 3017 | case $ac_file in |
michael@0 | 3018 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
michael@0 | 3019 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
michael@0 | 3020 | break;; |
michael@0 | 3021 | * ) break;; |
michael@0 | 3022 | esac |
michael@0 | 3023 | done |
michael@0 | 3024 | else |
michael@0 | 3025 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3026 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3027 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
michael@0 | 3028 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3029 | fi |
michael@0 | 3030 | rm -f conftest conftest$ac_cv_exeext |
michael@0 | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
michael@0 | 3032 | $as_echo "$ac_cv_exeext" >&6; } |
michael@0 | 3033 | |
michael@0 | 3034 | rm -f conftest.$ac_ext |
michael@0 | 3035 | EXEEXT=$ac_cv_exeext |
michael@0 | 3036 | ac_exeext=$EXEEXT |
michael@0 | 3037 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3038 | /* end confdefs.h. */ |
michael@0 | 3039 | #include <stdio.h> |
michael@0 | 3040 | int |
michael@0 | 3041 | main () |
michael@0 | 3042 | { |
michael@0 | 3043 | FILE *f = fopen ("conftest.out", "w"); |
michael@0 | 3044 | return ferror (f) || fclose (f) != 0; |
michael@0 | 3045 | |
michael@0 | 3046 | ; |
michael@0 | 3047 | return 0; |
michael@0 | 3048 | } |
michael@0 | 3049 | _ACEOF |
michael@0 | 3050 | ac_clean_files="$ac_clean_files conftest.out" |
michael@0 | 3051 | # Check that the compiler produces executables we can run. If not, either |
michael@0 | 3052 | # the compiler is broken, or we cross compile. |
michael@0 | 3053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
michael@0 | 3054 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
michael@0 | 3055 | if test "$cross_compiling" != yes; then |
michael@0 | 3056 | { { ac_try="$ac_link" |
michael@0 | 3057 | case "(($ac_try" in |
michael@0 | 3058 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3059 | *) ac_try_echo=$ac_try;; |
michael@0 | 3060 | esac |
michael@0 | 3061 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3062 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3063 | (eval "$ac_link") 2>&5 |
michael@0 | 3064 | ac_status=$? |
michael@0 | 3065 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3066 | test $ac_status = 0; } |
michael@0 | 3067 | if { ac_try='./conftest$ac_cv_exeext' |
michael@0 | 3068 | { { case "(($ac_try" in |
michael@0 | 3069 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3070 | *) ac_try_echo=$ac_try;; |
michael@0 | 3071 | esac |
michael@0 | 3072 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3073 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3074 | (eval "$ac_try") 2>&5 |
michael@0 | 3075 | ac_status=$? |
michael@0 | 3076 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3077 | test $ac_status = 0; }; }; then |
michael@0 | 3078 | cross_compiling=no |
michael@0 | 3079 | else |
michael@0 | 3080 | if test "$cross_compiling" = maybe; then |
michael@0 | 3081 | cross_compiling=yes |
michael@0 | 3082 | else |
michael@0 | 3083 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3084 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3085 | as_fn_error $? "cannot run C compiled programs. |
michael@0 | 3086 | If you meant to cross compile, use \`--host'. |
michael@0 | 3087 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3088 | fi |
michael@0 | 3089 | fi |
michael@0 | 3090 | fi |
michael@0 | 3091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
michael@0 | 3092 | $as_echo "$cross_compiling" >&6; } |
michael@0 | 3093 | |
michael@0 | 3094 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
michael@0 | 3095 | ac_clean_files=$ac_clean_files_save |
michael@0 | 3096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
michael@0 | 3097 | $as_echo_n "checking for suffix of object files... " >&6; } |
michael@0 | 3098 | if ${ac_cv_objext+:} false; then : |
michael@0 | 3099 | $as_echo_n "(cached) " >&6 |
michael@0 | 3100 | else |
michael@0 | 3101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3102 | /* end confdefs.h. */ |
michael@0 | 3103 | |
michael@0 | 3104 | int |
michael@0 | 3105 | main () |
michael@0 | 3106 | { |
michael@0 | 3107 | |
michael@0 | 3108 | ; |
michael@0 | 3109 | return 0; |
michael@0 | 3110 | } |
michael@0 | 3111 | _ACEOF |
michael@0 | 3112 | rm -f conftest.o conftest.obj |
michael@0 | 3113 | if { { ac_try="$ac_compile" |
michael@0 | 3114 | case "(($ac_try" in |
michael@0 | 3115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3116 | *) ac_try_echo=$ac_try;; |
michael@0 | 3117 | esac |
michael@0 | 3118 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3119 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3120 | (eval "$ac_compile") 2>&5 |
michael@0 | 3121 | ac_status=$? |
michael@0 | 3122 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3123 | test $ac_status = 0; }; then : |
michael@0 | 3124 | for ac_file in conftest.o conftest.obj conftest.*; do |
michael@0 | 3125 | test -f "$ac_file" || continue; |
michael@0 | 3126 | case $ac_file in |
michael@0 | 3127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
michael@0 | 3128 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
michael@0 | 3129 | break;; |
michael@0 | 3130 | esac |
michael@0 | 3131 | done |
michael@0 | 3132 | else |
michael@0 | 3133 | $as_echo "$as_me: failed program was:" >&5 |
michael@0 | 3134 | sed 's/^/| /' conftest.$ac_ext >&5 |
michael@0 | 3135 | |
michael@0 | 3136 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 3137 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 3138 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
michael@0 | 3139 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3140 | fi |
michael@0 | 3141 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
michael@0 | 3142 | fi |
michael@0 | 3143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
michael@0 | 3144 | $as_echo "$ac_cv_objext" >&6; } |
michael@0 | 3145 | OBJEXT=$ac_cv_objext |
michael@0 | 3146 | ac_objext=$OBJEXT |
michael@0 | 3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
michael@0 | 3148 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
michael@0 | 3149 | if ${ac_cv_c_compiler_gnu+:} false; then : |
michael@0 | 3150 | $as_echo_n "(cached) " >&6 |
michael@0 | 3151 | else |
michael@0 | 3152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3153 | /* end confdefs.h. */ |
michael@0 | 3154 | |
michael@0 | 3155 | int |
michael@0 | 3156 | main () |
michael@0 | 3157 | { |
michael@0 | 3158 | #ifndef __GNUC__ |
michael@0 | 3159 | choke me |
michael@0 | 3160 | #endif |
michael@0 | 3161 | |
michael@0 | 3162 | ; |
michael@0 | 3163 | return 0; |
michael@0 | 3164 | } |
michael@0 | 3165 | _ACEOF |
michael@0 | 3166 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3167 | ac_compiler_gnu=yes |
michael@0 | 3168 | else |
michael@0 | 3169 | ac_compiler_gnu=no |
michael@0 | 3170 | fi |
michael@0 | 3171 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3172 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
michael@0 | 3173 | |
michael@0 | 3174 | fi |
michael@0 | 3175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
michael@0 | 3176 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
michael@0 | 3177 | if test $ac_compiler_gnu = yes; then |
michael@0 | 3178 | GCC=yes |
michael@0 | 3179 | else |
michael@0 | 3180 | GCC= |
michael@0 | 3181 | fi |
michael@0 | 3182 | ac_test_CFLAGS=${CFLAGS+set} |
michael@0 | 3183 | ac_save_CFLAGS=$CFLAGS |
michael@0 | 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
michael@0 | 3185 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
michael@0 | 3186 | if ${ac_cv_prog_cc_g+:} false; then : |
michael@0 | 3187 | $as_echo_n "(cached) " >&6 |
michael@0 | 3188 | else |
michael@0 | 3189 | ac_save_c_werror_flag=$ac_c_werror_flag |
michael@0 | 3190 | ac_c_werror_flag=yes |
michael@0 | 3191 | ac_cv_prog_cc_g=no |
michael@0 | 3192 | CFLAGS="-g" |
michael@0 | 3193 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3194 | /* end confdefs.h. */ |
michael@0 | 3195 | |
michael@0 | 3196 | int |
michael@0 | 3197 | main () |
michael@0 | 3198 | { |
michael@0 | 3199 | |
michael@0 | 3200 | ; |
michael@0 | 3201 | return 0; |
michael@0 | 3202 | } |
michael@0 | 3203 | _ACEOF |
michael@0 | 3204 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3205 | ac_cv_prog_cc_g=yes |
michael@0 | 3206 | else |
michael@0 | 3207 | CFLAGS="" |
michael@0 | 3208 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3209 | /* end confdefs.h. */ |
michael@0 | 3210 | |
michael@0 | 3211 | int |
michael@0 | 3212 | main () |
michael@0 | 3213 | { |
michael@0 | 3214 | |
michael@0 | 3215 | ; |
michael@0 | 3216 | return 0; |
michael@0 | 3217 | } |
michael@0 | 3218 | _ACEOF |
michael@0 | 3219 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3220 | |
michael@0 | 3221 | else |
michael@0 | 3222 | ac_c_werror_flag=$ac_save_c_werror_flag |
michael@0 | 3223 | CFLAGS="-g" |
michael@0 | 3224 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3225 | /* end confdefs.h. */ |
michael@0 | 3226 | |
michael@0 | 3227 | int |
michael@0 | 3228 | main () |
michael@0 | 3229 | { |
michael@0 | 3230 | |
michael@0 | 3231 | ; |
michael@0 | 3232 | return 0; |
michael@0 | 3233 | } |
michael@0 | 3234 | _ACEOF |
michael@0 | 3235 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3236 | ac_cv_prog_cc_g=yes |
michael@0 | 3237 | fi |
michael@0 | 3238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3239 | fi |
michael@0 | 3240 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3241 | fi |
michael@0 | 3242 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3243 | ac_c_werror_flag=$ac_save_c_werror_flag |
michael@0 | 3244 | fi |
michael@0 | 3245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
michael@0 | 3246 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
michael@0 | 3247 | if test "$ac_test_CFLAGS" = set; then |
michael@0 | 3248 | CFLAGS=$ac_save_CFLAGS |
michael@0 | 3249 | elif test $ac_cv_prog_cc_g = yes; then |
michael@0 | 3250 | if test "$GCC" = yes; then |
michael@0 | 3251 | CFLAGS="-g -O2" |
michael@0 | 3252 | else |
michael@0 | 3253 | CFLAGS="-g" |
michael@0 | 3254 | fi |
michael@0 | 3255 | else |
michael@0 | 3256 | if test "$GCC" = yes; then |
michael@0 | 3257 | CFLAGS="-O2" |
michael@0 | 3258 | else |
michael@0 | 3259 | CFLAGS= |
michael@0 | 3260 | fi |
michael@0 | 3261 | fi |
michael@0 | 3262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
michael@0 | 3263 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
michael@0 | 3264 | if ${ac_cv_prog_cc_c89+:} false; then : |
michael@0 | 3265 | $as_echo_n "(cached) " >&6 |
michael@0 | 3266 | else |
michael@0 | 3267 | ac_cv_prog_cc_c89=no |
michael@0 | 3268 | ac_save_CC=$CC |
michael@0 | 3269 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3270 | /* end confdefs.h. */ |
michael@0 | 3271 | #include <stdarg.h> |
michael@0 | 3272 | #include <stdio.h> |
michael@0 | 3273 | #include <sys/types.h> |
michael@0 | 3274 | #include <sys/stat.h> |
michael@0 | 3275 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
michael@0 | 3276 | struct buf { int x; }; |
michael@0 | 3277 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
michael@0 | 3278 | static char *e (p, i) |
michael@0 | 3279 | char **p; |
michael@0 | 3280 | int i; |
michael@0 | 3281 | { |
michael@0 | 3282 | return p[i]; |
michael@0 | 3283 | } |
michael@0 | 3284 | static char *f (char * (*g) (char **, int), char **p, ...) |
michael@0 | 3285 | { |
michael@0 | 3286 | char *s; |
michael@0 | 3287 | va_list v; |
michael@0 | 3288 | va_start (v,p); |
michael@0 | 3289 | s = g (p, va_arg (v,int)); |
michael@0 | 3290 | va_end (v); |
michael@0 | 3291 | return s; |
michael@0 | 3292 | } |
michael@0 | 3293 | |
michael@0 | 3294 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
michael@0 | 3295 | function prototypes and stuff, but not '\xHH' hex character constants. |
michael@0 | 3296 | These don't provoke an error unfortunately, instead are silently treated |
michael@0 | 3297 | as 'x'. The following induces an error, until -std is added to get |
michael@0 | 3298 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
michael@0 | 3299 | array size at least. It's necessary to write '\x00'==0 to get something |
michael@0 | 3300 | that's true only with -std. */ |
michael@0 | 3301 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
michael@0 | 3302 | |
michael@0 | 3303 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
michael@0 | 3304 | inside strings and character constants. */ |
michael@0 | 3305 | #define FOO(x) 'x' |
michael@0 | 3306 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
michael@0 | 3307 | |
michael@0 | 3308 | int test (int i, double x); |
michael@0 | 3309 | struct s1 {int (*f) (int a);}; |
michael@0 | 3310 | struct s2 {int (*f) (double a);}; |
michael@0 | 3311 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
michael@0 | 3312 | int argc; |
michael@0 | 3313 | char **argv; |
michael@0 | 3314 | int |
michael@0 | 3315 | main () |
michael@0 | 3316 | { |
michael@0 | 3317 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
michael@0 | 3318 | ; |
michael@0 | 3319 | return 0; |
michael@0 | 3320 | } |
michael@0 | 3321 | _ACEOF |
michael@0 | 3322 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
michael@0 | 3323 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
michael@0 | 3324 | do |
michael@0 | 3325 | CC="$ac_save_CC $ac_arg" |
michael@0 | 3326 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 3327 | ac_cv_prog_cc_c89=$ac_arg |
michael@0 | 3328 | fi |
michael@0 | 3329 | rm -f core conftest.err conftest.$ac_objext |
michael@0 | 3330 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
michael@0 | 3331 | done |
michael@0 | 3332 | rm -f conftest.$ac_ext |
michael@0 | 3333 | CC=$ac_save_CC |
michael@0 | 3334 | |
michael@0 | 3335 | fi |
michael@0 | 3336 | # AC_CACHE_VAL |
michael@0 | 3337 | case "x$ac_cv_prog_cc_c89" in |
michael@0 | 3338 | x) |
michael@0 | 3339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
michael@0 | 3340 | $as_echo "none needed" >&6; } ;; |
michael@0 | 3341 | xno) |
michael@0 | 3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
michael@0 | 3343 | $as_echo "unsupported" >&6; } ;; |
michael@0 | 3344 | *) |
michael@0 | 3345 | CC="$CC $ac_cv_prog_cc_c89" |
michael@0 | 3346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
michael@0 | 3347 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
michael@0 | 3348 | esac |
michael@0 | 3349 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
michael@0 | 3350 | |
michael@0 | 3351 | fi |
michael@0 | 3352 | |
michael@0 | 3353 | ac_ext=c |
michael@0 | 3354 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3355 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3356 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3357 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3358 | |
michael@0 | 3359 | # Make sure that we try clang++ first, which provides C++11 support. |
michael@0 | 3360 | # The g++ compiler is less likely to support C++11. |
michael@0 | 3361 | ac_ext=cpp |
michael@0 | 3362 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 3363 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3364 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3365 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 3366 | if test -z "$CXX"; then |
michael@0 | 3367 | if test -n "$CCC"; then |
michael@0 | 3368 | CXX=$CCC |
michael@0 | 3369 | else |
michael@0 | 3370 | if test -n "$ac_tool_prefix"; then |
michael@0 | 3371 | for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
michael@0 | 3372 | do |
michael@0 | 3373 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
michael@0 | 3374 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
michael@0 | 3375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3376 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3377 | if ${ac_cv_prog_CXX+:} false; then : |
michael@0 | 3378 | $as_echo_n "(cached) " >&6 |
michael@0 | 3379 | else |
michael@0 | 3380 | if test -n "$CXX"; then |
michael@0 | 3381 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
michael@0 | 3382 | else |
michael@0 | 3383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3384 | for as_dir in $PATH |
michael@0 | 3385 | do |
michael@0 | 3386 | IFS=$as_save_IFS |
michael@0 | 3387 | test -z "$as_dir" && as_dir=. |
michael@0 | 3388 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 3390 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
michael@0 | 3391 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3392 | break 2 |
michael@0 | 3393 | fi |
michael@0 | 3394 | done |
michael@0 | 3395 | done |
michael@0 | 3396 | IFS=$as_save_IFS |
michael@0 | 3397 | |
michael@0 | 3398 | fi |
michael@0 | 3399 | fi |
michael@0 | 3400 | CXX=$ac_cv_prog_CXX |
michael@0 | 3401 | if test -n "$CXX"; then |
michael@0 | 3402 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
michael@0 | 3403 | $as_echo "$CXX" >&6; } |
michael@0 | 3404 | else |
michael@0 | 3405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3406 | $as_echo "no" >&6; } |
michael@0 | 3407 | fi |
michael@0 | 3408 | |
michael@0 | 3409 | |
michael@0 | 3410 | test -n "$CXX" && break |
michael@0 | 3411 | done |
michael@0 | 3412 | fi |
michael@0 | 3413 | if test -z "$CXX"; then |
michael@0 | 3414 | ac_ct_CXX=$CXX |
michael@0 | 3415 | for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC |
michael@0 | 3416 | do |
michael@0 | 3417 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 3418 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 3419 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3420 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3421 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
michael@0 | 3422 | $as_echo_n "(cached) " >&6 |
michael@0 | 3423 | else |
michael@0 | 3424 | if test -n "$ac_ct_CXX"; then |
michael@0 | 3425 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
michael@0 | 3426 | else |
michael@0 | 3427 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3428 | for as_dir in $PATH |
michael@0 | 3429 | do |
michael@0 | 3430 | IFS=$as_save_IFS |
michael@0 | 3431 | test -z "$as_dir" && as_dir=. |
michael@0 | 3432 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3433 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 3434 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
michael@0 | 3435 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3436 | break 2 |
michael@0 | 3437 | fi |
michael@0 | 3438 | done |
michael@0 | 3439 | done |
michael@0 | 3440 | IFS=$as_save_IFS |
michael@0 | 3441 | |
michael@0 | 3442 | fi |
michael@0 | 3443 | fi |
michael@0 | 3444 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
michael@0 | 3445 | if test -n "$ac_ct_CXX"; then |
michael@0 | 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
michael@0 | 3447 | $as_echo "$ac_ct_CXX" >&6; } |
michael@0 | 3448 | else |
michael@0 | 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3450 | $as_echo "no" >&6; } |
michael@0 | 3451 | fi |
michael@0 | 3452 | |
michael@0 | 3453 | |
michael@0 | 3454 | test -n "$ac_ct_CXX" && break |
michael@0 | 3455 | done |
michael@0 | 3456 | |
michael@0 | 3457 | if test "x$ac_ct_CXX" = x; then |
michael@0 | 3458 | CXX="g++" |
michael@0 | 3459 | else |
michael@0 | 3460 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 3461 | yes:) |
michael@0 | 3462 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 3463 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 3464 | ac_tool_warned=yes ;; |
michael@0 | 3465 | esac |
michael@0 | 3466 | CXX=$ac_ct_CXX |
michael@0 | 3467 | fi |
michael@0 | 3468 | fi |
michael@0 | 3469 | |
michael@0 | 3470 | fi |
michael@0 | 3471 | fi |
michael@0 | 3472 | # Provide some information about the compiler. |
michael@0 | 3473 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
michael@0 | 3474 | set X $ac_compile |
michael@0 | 3475 | ac_compiler=$2 |
michael@0 | 3476 | for ac_option in --version -v -V -qversion; do |
michael@0 | 3477 | { { ac_try="$ac_compiler $ac_option >&5" |
michael@0 | 3478 | case "(($ac_try" in |
michael@0 | 3479 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
michael@0 | 3480 | *) ac_try_echo=$ac_try;; |
michael@0 | 3481 | esac |
michael@0 | 3482 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
michael@0 | 3483 | $as_echo "$ac_try_echo"; } >&5 |
michael@0 | 3484 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
michael@0 | 3485 | ac_status=$? |
michael@0 | 3486 | if test -s conftest.err; then |
michael@0 | 3487 | sed '10a\ |
michael@0 | 3488 | ... rest of stderr output deleted ... |
michael@0 | 3489 | 10q' conftest.err >conftest.er1 |
michael@0 | 3490 | cat conftest.er1 >&5 |
michael@0 | 3491 | fi |
michael@0 | 3492 | rm -f conftest.er1 conftest.err |
michael@0 | 3493 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
michael@0 | 3494 | test $ac_status = 0; } |
michael@0 | 3495 | done |
michael@0 | 3496 | |
michael@0 | 3497 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
michael@0 | 3498 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
michael@0 | 3499 | if ${ac_cv_cxx_compiler_gnu+:} false; then : |
michael@0 | 3500 | $as_echo_n "(cached) " >&6 |
michael@0 | 3501 | else |
michael@0 | 3502 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3503 | /* end confdefs.h. */ |
michael@0 | 3504 | |
michael@0 | 3505 | int |
michael@0 | 3506 | main () |
michael@0 | 3507 | { |
michael@0 | 3508 | #ifndef __GNUC__ |
michael@0 | 3509 | choke me |
michael@0 | 3510 | #endif |
michael@0 | 3511 | |
michael@0 | 3512 | ; |
michael@0 | 3513 | return 0; |
michael@0 | 3514 | } |
michael@0 | 3515 | _ACEOF |
michael@0 | 3516 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 3517 | ac_compiler_gnu=yes |
michael@0 | 3518 | else |
michael@0 | 3519 | ac_compiler_gnu=no |
michael@0 | 3520 | fi |
michael@0 | 3521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3522 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
michael@0 | 3523 | |
michael@0 | 3524 | fi |
michael@0 | 3525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
michael@0 | 3526 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
michael@0 | 3527 | if test $ac_compiler_gnu = yes; then |
michael@0 | 3528 | GXX=yes |
michael@0 | 3529 | else |
michael@0 | 3530 | GXX= |
michael@0 | 3531 | fi |
michael@0 | 3532 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
michael@0 | 3533 | ac_save_CXXFLAGS=$CXXFLAGS |
michael@0 | 3534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
michael@0 | 3535 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } |
michael@0 | 3536 | if ${ac_cv_prog_cxx_g+:} false; then : |
michael@0 | 3537 | $as_echo_n "(cached) " >&6 |
michael@0 | 3538 | else |
michael@0 | 3539 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
michael@0 | 3540 | ac_cxx_werror_flag=yes |
michael@0 | 3541 | ac_cv_prog_cxx_g=no |
michael@0 | 3542 | CXXFLAGS="-g" |
michael@0 | 3543 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3544 | /* end confdefs.h. */ |
michael@0 | 3545 | |
michael@0 | 3546 | int |
michael@0 | 3547 | main () |
michael@0 | 3548 | { |
michael@0 | 3549 | |
michael@0 | 3550 | ; |
michael@0 | 3551 | return 0; |
michael@0 | 3552 | } |
michael@0 | 3553 | _ACEOF |
michael@0 | 3554 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 3555 | ac_cv_prog_cxx_g=yes |
michael@0 | 3556 | else |
michael@0 | 3557 | CXXFLAGS="" |
michael@0 | 3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3559 | /* end confdefs.h. */ |
michael@0 | 3560 | |
michael@0 | 3561 | int |
michael@0 | 3562 | main () |
michael@0 | 3563 | { |
michael@0 | 3564 | |
michael@0 | 3565 | ; |
michael@0 | 3566 | return 0; |
michael@0 | 3567 | } |
michael@0 | 3568 | _ACEOF |
michael@0 | 3569 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 3570 | |
michael@0 | 3571 | else |
michael@0 | 3572 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
michael@0 | 3573 | CXXFLAGS="-g" |
michael@0 | 3574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3575 | /* end confdefs.h. */ |
michael@0 | 3576 | |
michael@0 | 3577 | int |
michael@0 | 3578 | main () |
michael@0 | 3579 | { |
michael@0 | 3580 | |
michael@0 | 3581 | ; |
michael@0 | 3582 | return 0; |
michael@0 | 3583 | } |
michael@0 | 3584 | _ACEOF |
michael@0 | 3585 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 3586 | ac_cv_prog_cxx_g=yes |
michael@0 | 3587 | fi |
michael@0 | 3588 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3589 | fi |
michael@0 | 3590 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3591 | fi |
michael@0 | 3592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 3593 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
michael@0 | 3594 | fi |
michael@0 | 3595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 |
michael@0 | 3596 | $as_echo "$ac_cv_prog_cxx_g" >&6; } |
michael@0 | 3597 | if test "$ac_test_CXXFLAGS" = set; then |
michael@0 | 3598 | CXXFLAGS=$ac_save_CXXFLAGS |
michael@0 | 3599 | elif test $ac_cv_prog_cxx_g = yes; then |
michael@0 | 3600 | if test "$GXX" = yes; then |
michael@0 | 3601 | CXXFLAGS="-g -O2" |
michael@0 | 3602 | else |
michael@0 | 3603 | CXXFLAGS="-g" |
michael@0 | 3604 | fi |
michael@0 | 3605 | else |
michael@0 | 3606 | if test "$GXX" = yes; then |
michael@0 | 3607 | CXXFLAGS="-O2" |
michael@0 | 3608 | else |
michael@0 | 3609 | CXXFLAGS= |
michael@0 | 3610 | fi |
michael@0 | 3611 | fi |
michael@0 | 3612 | ac_ext=c |
michael@0 | 3613 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3614 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3615 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3616 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3617 | |
michael@0 | 3618 | |
michael@0 | 3619 | # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option |
michael@0 | 3620 | # The release mode use is the default one for autoconf |
michael@0 | 3621 | if test "$GCC" = yes; then |
michael@0 | 3622 | if test "$CFLAGS" = ""; then |
michael@0 | 3623 | if test "$ENABLE_DEBUG" = 1; then |
michael@0 | 3624 | CFLAGS=-g |
michael@0 | 3625 | fi |
michael@0 | 3626 | if test "$ENABLE_RELEASE" = 1; then |
michael@0 | 3627 | CFLAGS="$CFLAGS -O2" |
michael@0 | 3628 | fi |
michael@0 | 3629 | fi |
michael@0 | 3630 | if test "$CXXFLAGS" = ""; then |
michael@0 | 3631 | if test "$ENABLE_DEBUG" = 1; then |
michael@0 | 3632 | CXXFLAGS=-g |
michael@0 | 3633 | fi |
michael@0 | 3634 | if test "$ENABLE_RELEASE" = 1; then |
michael@0 | 3635 | CXXFLAGS="$CXXFLAGS -O2" |
michael@0 | 3636 | fi |
michael@0 | 3637 | fi |
michael@0 | 3638 | fi |
michael@0 | 3639 | |
michael@0 | 3640 | ac_ext=c |
michael@0 | 3641 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
michael@0 | 3646 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
michael@0 | 3647 | # On Suns, sometimes $CPP names a directory. |
michael@0 | 3648 | if test -n "$CPP" && test -d "$CPP"; then |
michael@0 | 3649 | CPP= |
michael@0 | 3650 | fi |
michael@0 | 3651 | if test -z "$CPP"; then |
michael@0 | 3652 | if ${ac_cv_prog_CPP+:} false; then : |
michael@0 | 3653 | $as_echo_n "(cached) " >&6 |
michael@0 | 3654 | else |
michael@0 | 3655 | # Double quotes because CPP needs to be expanded |
michael@0 | 3656 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
michael@0 | 3657 | do |
michael@0 | 3658 | ac_preproc_ok=false |
michael@0 | 3659 | for ac_c_preproc_warn_flag in '' yes |
michael@0 | 3660 | do |
michael@0 | 3661 | # Use a header file that comes with gcc, so configuring glibc |
michael@0 | 3662 | # with a fresh cross-compiler works. |
michael@0 | 3663 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 3664 | # <limits.h> exists even on freestanding compilers. |
michael@0 | 3665 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 3666 | # not just through cpp. "Syntax error" is here to catch this case. |
michael@0 | 3667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3668 | /* end confdefs.h. */ |
michael@0 | 3669 | #ifdef __STDC__ |
michael@0 | 3670 | # include <limits.h> |
michael@0 | 3671 | #else |
michael@0 | 3672 | # include <assert.h> |
michael@0 | 3673 | #endif |
michael@0 | 3674 | Syntax error |
michael@0 | 3675 | _ACEOF |
michael@0 | 3676 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3677 | |
michael@0 | 3678 | else |
michael@0 | 3679 | # Broken: fails on valid input. |
michael@0 | 3680 | continue |
michael@0 | 3681 | fi |
michael@0 | 3682 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3683 | |
michael@0 | 3684 | # OK, works on sane cases. Now check whether nonexistent headers |
michael@0 | 3685 | # can be detected and how. |
michael@0 | 3686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3687 | /* end confdefs.h. */ |
michael@0 | 3688 | #include <ac_nonexistent.h> |
michael@0 | 3689 | _ACEOF |
michael@0 | 3690 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3691 | # Broken: success on invalid input. |
michael@0 | 3692 | continue |
michael@0 | 3693 | else |
michael@0 | 3694 | # Passes both tests. |
michael@0 | 3695 | ac_preproc_ok=: |
michael@0 | 3696 | break |
michael@0 | 3697 | fi |
michael@0 | 3698 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3699 | |
michael@0 | 3700 | done |
michael@0 | 3701 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
michael@0 | 3702 | rm -f conftest.i conftest.err conftest.$ac_ext |
michael@0 | 3703 | if $ac_preproc_ok; then : |
michael@0 | 3704 | break |
michael@0 | 3705 | fi |
michael@0 | 3706 | |
michael@0 | 3707 | done |
michael@0 | 3708 | ac_cv_prog_CPP=$CPP |
michael@0 | 3709 | |
michael@0 | 3710 | fi |
michael@0 | 3711 | CPP=$ac_cv_prog_CPP |
michael@0 | 3712 | else |
michael@0 | 3713 | ac_cv_prog_CPP=$CPP |
michael@0 | 3714 | fi |
michael@0 | 3715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
michael@0 | 3716 | $as_echo "$CPP" >&6; } |
michael@0 | 3717 | ac_preproc_ok=false |
michael@0 | 3718 | for ac_c_preproc_warn_flag in '' yes |
michael@0 | 3719 | do |
michael@0 | 3720 | # Use a header file that comes with gcc, so configuring glibc |
michael@0 | 3721 | # with a fresh cross-compiler works. |
michael@0 | 3722 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
michael@0 | 3723 | # <limits.h> exists even on freestanding compilers. |
michael@0 | 3724 | # On the NeXT, cc -E runs the code through the compiler's parser, |
michael@0 | 3725 | # not just through cpp. "Syntax error" is here to catch this case. |
michael@0 | 3726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3727 | /* end confdefs.h. */ |
michael@0 | 3728 | #ifdef __STDC__ |
michael@0 | 3729 | # include <limits.h> |
michael@0 | 3730 | #else |
michael@0 | 3731 | # include <assert.h> |
michael@0 | 3732 | #endif |
michael@0 | 3733 | Syntax error |
michael@0 | 3734 | _ACEOF |
michael@0 | 3735 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3736 | |
michael@0 | 3737 | else |
michael@0 | 3738 | # Broken: fails on valid input. |
michael@0 | 3739 | continue |
michael@0 | 3740 | fi |
michael@0 | 3741 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3742 | |
michael@0 | 3743 | # OK, works on sane cases. Now check whether nonexistent headers |
michael@0 | 3744 | # can be detected and how. |
michael@0 | 3745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3746 | /* end confdefs.h. */ |
michael@0 | 3747 | #include <ac_nonexistent.h> |
michael@0 | 3748 | _ACEOF |
michael@0 | 3749 | if ac_fn_c_try_cpp "$LINENO"; then : |
michael@0 | 3750 | # Broken: success on invalid input. |
michael@0 | 3751 | continue |
michael@0 | 3752 | else |
michael@0 | 3753 | # Passes both tests. |
michael@0 | 3754 | ac_preproc_ok=: |
michael@0 | 3755 | break |
michael@0 | 3756 | fi |
michael@0 | 3757 | rm -f conftest.err conftest.i conftest.$ac_ext |
michael@0 | 3758 | |
michael@0 | 3759 | done |
michael@0 | 3760 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
michael@0 | 3761 | rm -f conftest.i conftest.err conftest.$ac_ext |
michael@0 | 3762 | if $ac_preproc_ok; then : |
michael@0 | 3763 | |
michael@0 | 3764 | else |
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 $? "C preprocessor \"$CPP\" fails sanity check |
michael@0 | 3768 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 3769 | fi |
michael@0 | 3770 | |
michael@0 | 3771 | ac_ext=c |
michael@0 | 3772 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3776 | |
michael@0 | 3777 | |
michael@0 | 3778 | # Find a good install program. We prefer a C program (faster), |
michael@0 | 3779 | # so one script is as good as another. But avoid the broken or |
michael@0 | 3780 | # incompatible versions: |
michael@0 | 3781 | # SysV /etc/install, /usr/sbin/install |
michael@0 | 3782 | # SunOS /usr/etc/install |
michael@0 | 3783 | # IRIX /sbin/install |
michael@0 | 3784 | # AIX /bin/install |
michael@0 | 3785 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
michael@0 | 3786 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
michael@0 | 3787 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
michael@0 | 3788 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
michael@0 | 3789 | # OS/2's system install, which has a completely different semantic |
michael@0 | 3790 | # ./install, which can be erroneously created by make from ./install.sh. |
michael@0 | 3791 | # Reject install programs that cannot install multiple files. |
michael@0 | 3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
michael@0 | 3793 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
michael@0 | 3794 | if test -z "$INSTALL"; then |
michael@0 | 3795 | if ${ac_cv_path_install+:} false; then : |
michael@0 | 3796 | $as_echo_n "(cached) " >&6 |
michael@0 | 3797 | else |
michael@0 | 3798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3799 | for as_dir in $PATH |
michael@0 | 3800 | do |
michael@0 | 3801 | IFS=$as_save_IFS |
michael@0 | 3802 | test -z "$as_dir" && as_dir=. |
michael@0 | 3803 | # Account for people who put trailing slashes in PATH elements. |
michael@0 | 3804 | case $as_dir/ in #(( |
michael@0 | 3805 | ./ | .// | /[cC]/* | \ |
michael@0 | 3806 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
michael@0 | 3807 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
michael@0 | 3808 | /usr/ucb/* ) ;; |
michael@0 | 3809 | *) |
michael@0 | 3810 | # OSF1 and SCO ODT 3.0 have their own names for install. |
michael@0 | 3811 | # Don't use installbsd from OSF since it installs stuff as root |
michael@0 | 3812 | # by default. |
michael@0 | 3813 | for ac_prog in ginstall scoinst install; do |
michael@0 | 3814 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3815 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
michael@0 | 3816 | if test $ac_prog = install && |
michael@0 | 3817 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
michael@0 | 3818 | # AIX install. It has an incompatible calling convention. |
michael@0 | 3819 | : |
michael@0 | 3820 | elif test $ac_prog = install && |
michael@0 | 3821 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
michael@0 | 3822 | # program-specific install script used by HP pwplus--don't use. |
michael@0 | 3823 | : |
michael@0 | 3824 | else |
michael@0 | 3825 | rm -rf conftest.one conftest.two conftest.dir |
michael@0 | 3826 | echo one > conftest.one |
michael@0 | 3827 | echo two > conftest.two |
michael@0 | 3828 | mkdir conftest.dir |
michael@0 | 3829 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
michael@0 | 3830 | test -s conftest.one && test -s conftest.two && |
michael@0 | 3831 | test -s conftest.dir/conftest.one && |
michael@0 | 3832 | test -s conftest.dir/conftest.two |
michael@0 | 3833 | then |
michael@0 | 3834 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
michael@0 | 3835 | break 3 |
michael@0 | 3836 | fi |
michael@0 | 3837 | fi |
michael@0 | 3838 | fi |
michael@0 | 3839 | done |
michael@0 | 3840 | done |
michael@0 | 3841 | ;; |
michael@0 | 3842 | esac |
michael@0 | 3843 | |
michael@0 | 3844 | done |
michael@0 | 3845 | IFS=$as_save_IFS |
michael@0 | 3846 | |
michael@0 | 3847 | rm -rf conftest.one conftest.two conftest.dir |
michael@0 | 3848 | |
michael@0 | 3849 | fi |
michael@0 | 3850 | if test "${ac_cv_path_install+set}" = set; then |
michael@0 | 3851 | INSTALL=$ac_cv_path_install |
michael@0 | 3852 | else |
michael@0 | 3853 | # As a last resort, use the slow shell script. Don't cache a |
michael@0 | 3854 | # value for INSTALL within a source directory, because that will |
michael@0 | 3855 | # break other packages using the cache if that directory is |
michael@0 | 3856 | # removed, or if the value is a relative name. |
michael@0 | 3857 | INSTALL=$ac_install_sh |
michael@0 | 3858 | fi |
michael@0 | 3859 | fi |
michael@0 | 3860 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
michael@0 | 3861 | $as_echo "$INSTALL" >&6; } |
michael@0 | 3862 | |
michael@0 | 3863 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
michael@0 | 3864 | # It thinks the first close brace ends the variable substitution. |
michael@0 | 3865 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
michael@0 | 3866 | |
michael@0 | 3867 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
michael@0 | 3868 | |
michael@0 | 3869 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
michael@0 | 3870 | |
michael@0 | 3871 | |
michael@0 | 3872 | |
michael@0 | 3873 | |
michael@0 | 3874 | ac_ext=cpp |
michael@0 | 3875 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 3876 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3877 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3878 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 3879 | |
michael@0 | 3880 | |
michael@0 | 3881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 3882 | /* end confdefs.h. */ |
michael@0 | 3883 | |
michael@0 | 3884 | int |
michael@0 | 3885 | main () |
michael@0 | 3886 | { |
michael@0 | 3887 | |
michael@0 | 3888 | ; |
michael@0 | 3889 | return 0; |
michael@0 | 3890 | } |
michael@0 | 3891 | _ACEOF |
michael@0 | 3892 | if ac_fn_cxx_try_link "$LINENO"; then : |
michael@0 | 3893 | |
michael@0 | 3894 | fi |
michael@0 | 3895 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 3896 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 3897 | ac_ext=c |
michael@0 | 3898 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 3899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 3900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 3901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 3902 | |
michael@0 | 3903 | |
michael@0 | 3904 | # make sure install is relative to srcdir - if a script |
michael@0 | 3905 | if test "$srcdir" = "."; then |
michael@0 | 3906 | # If srcdir isn't just ., then (srcdir) is already prepended. |
michael@0 | 3907 | if test "${ac_install_sh}" = "${INSTALL}"; then |
michael@0 | 3908 | INSTALL="\\\$(top_srcdir)/${ac_install_sh}" |
michael@0 | 3909 | fi |
michael@0 | 3910 | fi |
michael@0 | 3911 | |
michael@0 | 3912 | #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) |
michael@0 | 3913 | #AC_CHECK_PROG(STRIP, strip, strip, true) |
michael@0 | 3914 | |
michael@0 | 3915 | # Check for the platform make |
michael@0 | 3916 | for ac_prog in gmake gnumake |
michael@0 | 3917 | do |
michael@0 | 3918 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
michael@0 | 3919 | set dummy $ac_prog; ac_word=$2 |
michael@0 | 3920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3921 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3922 | if ${ac_cv_path_U_MAKE+:} false; then : |
michael@0 | 3923 | $as_echo_n "(cached) " >&6 |
michael@0 | 3924 | else |
michael@0 | 3925 | case $U_MAKE in |
michael@0 | 3926 | [\\/]* | ?:[\\/]*) |
michael@0 | 3927 | ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. |
michael@0 | 3928 | ;; |
michael@0 | 3929 | *) |
michael@0 | 3930 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 3931 | for as_dir in $PATH |
michael@0 | 3932 | do |
michael@0 | 3933 | IFS=$as_save_IFS |
michael@0 | 3934 | test -z "$as_dir" && as_dir=. |
michael@0 | 3935 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 3936 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 3937 | ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 3938 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 3939 | break 2 |
michael@0 | 3940 | fi |
michael@0 | 3941 | done |
michael@0 | 3942 | done |
michael@0 | 3943 | IFS=$as_save_IFS |
michael@0 | 3944 | |
michael@0 | 3945 | ;; |
michael@0 | 3946 | esac |
michael@0 | 3947 | fi |
michael@0 | 3948 | U_MAKE=$ac_cv_path_U_MAKE |
michael@0 | 3949 | if test -n "$U_MAKE"; then |
michael@0 | 3950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5 |
michael@0 | 3951 | $as_echo "$U_MAKE" >&6; } |
michael@0 | 3952 | else |
michael@0 | 3953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 3954 | $as_echo "no" >&6; } |
michael@0 | 3955 | fi |
michael@0 | 3956 | |
michael@0 | 3957 | |
michael@0 | 3958 | test -n "$U_MAKE" && break |
michael@0 | 3959 | done |
michael@0 | 3960 | test -n "$U_MAKE" || U_MAKE="make" |
michael@0 | 3961 | |
michael@0 | 3962 | |
michael@0 | 3963 | |
michael@0 | 3964 | |
michael@0 | 3965 | |
michael@0 | 3966 | # Check whether --with-cross-build was given. |
michael@0 | 3967 | if test "${with_cross_build+set}" = set; then : |
michael@0 | 3968 | withval=$with_cross_build; cross_buildroot="${withval}" |
michael@0 | 3969 | else |
michael@0 | 3970 | cross_buildroot="" |
michael@0 | 3971 | fi |
michael@0 | 3972 | |
michael@0 | 3973 | |
michael@0 | 3974 | if test "X$cross_buildroot" = "X"; then |
michael@0 | 3975 | if test "$cross_compiling" = "yes"; then |
michael@0 | 3976 | as_fn_error $? "Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" "$LINENO" 5 |
michael@0 | 3977 | fi |
michael@0 | 3978 | else |
michael@0 | 3979 | if test -f "${cross_buildroot}/config/icucross.mk"; then |
michael@0 | 3980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5 |
michael@0 | 3981 | $as_echo "Using cross buildroot: $cross_buildroot" >&6; } |
michael@0 | 3982 | else |
michael@0 | 3983 | if test -d "${cross_buildroot}"; then |
michael@0 | 3984 | as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5 |
michael@0 | 3985 | else |
michael@0 | 3986 | as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5 |
michael@0 | 3987 | fi |
michael@0 | 3988 | fi |
michael@0 | 3989 | fi |
michael@0 | 3990 | |
michael@0 | 3991 | |
michael@0 | 3992 | # Check for doxygen to generate documentation |
michael@0 | 3993 | # Extract the first word of "doxygen", so it can be a program name with args. |
michael@0 | 3994 | set dummy doxygen; ac_word=$2 |
michael@0 | 3995 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 3996 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 3997 | if ${ac_cv_path_DOXYGEN+:} false; then : |
michael@0 | 3998 | $as_echo_n "(cached) " >&6 |
michael@0 | 3999 | else |
michael@0 | 4000 | case $DOXYGEN in |
michael@0 | 4001 | [\\/]* | ?:[\\/]*) |
michael@0 | 4002 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
michael@0 | 4003 | ;; |
michael@0 | 4004 | *) |
michael@0 | 4005 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4006 | as_dummy="$PATH:/usr/local/bin:/usr/bin" |
michael@0 | 4007 | for as_dir in $as_dummy |
michael@0 | 4008 | do |
michael@0 | 4009 | IFS=$as_save_IFS |
michael@0 | 4010 | test -z "$as_dir" && as_dir=. |
michael@0 | 4011 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4012 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 4013 | ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
michael@0 | 4014 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 4015 | break 2 |
michael@0 | 4016 | fi |
michael@0 | 4017 | done |
michael@0 | 4018 | done |
michael@0 | 4019 | IFS=$as_save_IFS |
michael@0 | 4020 | |
michael@0 | 4021 | ;; |
michael@0 | 4022 | esac |
michael@0 | 4023 | fi |
michael@0 | 4024 | DOXYGEN=$ac_cv_path_DOXYGEN |
michael@0 | 4025 | if test -n "$DOXYGEN"; then |
michael@0 | 4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
michael@0 | 4027 | $as_echo "$DOXYGEN" >&6; } |
michael@0 | 4028 | else |
michael@0 | 4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 4030 | $as_echo "no" >&6; } |
michael@0 | 4031 | fi |
michael@0 | 4032 | |
michael@0 | 4033 | |
michael@0 | 4034 | |
michael@0 | 4035 | # Check that the linker is usable |
michael@0 | 4036 | |
michael@0 | 4037 | case "${host}" in |
michael@0 | 4038 | *-*-cygwin*|*-*-mingw*) |
michael@0 | 4039 | if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then |
michael@0 | 4040 | as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect. |
michael@0 | 4041 | Please follow the directions in ICU's readme." "$LINENO" 5 |
michael@0 | 4042 | fi;; |
michael@0 | 4043 | *);; |
michael@0 | 4044 | esac |
michael@0 | 4045 | |
michael@0 | 4046 | # Determine the executable suffix |
michael@0 | 4047 | # We don't use AC_EXEEXT because some compilers output separate debugging |
michael@0 | 4048 | # files, which confuses the AC_EXEEXT macro. |
michael@0 | 4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5 |
michael@0 | 4050 | $as_echo_n "checking checking for executable suffix... " >&6; } |
michael@0 | 4051 | case "${host}" in |
michael@0 | 4052 | *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; |
michael@0 | 4053 | *) EXEEXT="" ;; |
michael@0 | 4054 | esac |
michael@0 | 4055 | ac_exeext=$EXEEXT |
michael@0 | 4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 |
michael@0 | 4057 | $as_echo "$EXEEXT" >&6; } |
michael@0 | 4058 | |
michael@0 | 4059 | |
michael@0 | 4060 | # Determine how strict we want to be when compiling |
michael@0 | 4061 | |
michael@0 | 4062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5 |
michael@0 | 4063 | $as_echo_n "checking whether strict compiling is on... " >&6; } |
michael@0 | 4064 | # Check whether --enable-strict was given. |
michael@0 | 4065 | if test "${enable_strict+set}" = set; then : |
michael@0 | 4066 | enableval=$enable_strict; |
michael@0 | 4067 | if test "$enableval" = no |
michael@0 | 4068 | then |
michael@0 | 4069 | ac_use_strict_options=no |
michael@0 | 4070 | else |
michael@0 | 4071 | ac_use_strict_options=yes |
michael@0 | 4072 | fi |
michael@0 | 4073 | |
michael@0 | 4074 | else |
michael@0 | 4075 | ac_use_strict_options=yes |
michael@0 | 4076 | fi |
michael@0 | 4077 | |
michael@0 | 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5 |
michael@0 | 4079 | $as_echo "$ac_use_strict_options" >&6; } |
michael@0 | 4080 | |
michael@0 | 4081 | if test "$ac_use_strict_options" = yes |
michael@0 | 4082 | then |
michael@0 | 4083 | if test "$GCC" = yes |
michael@0 | 4084 | then |
michael@0 | 4085 | case "${host}" in |
michael@0 | 4086 | *-*-solaris*) |
michael@0 | 4087 | # Don't use -std=c99 option on Solaris/GCC |
michael@0 | 4088 | ;; |
michael@0 | 4089 | *) |
michael@0 | 4090 | # Do not use -ansi. It limits us to C90, and it breaks some platforms. |
michael@0 | 4091 | # We use -std=c99 to disable the gnu99 defaults and its associated warnings |
michael@0 | 4092 | CFLAGS="$CFLAGS -std=c99" |
michael@0 | 4093 | ;; |
michael@0 | 4094 | esac |
michael@0 | 4095 | |
michael@0 | 4096 | CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" |
michael@0 | 4097 | else |
michael@0 | 4098 | case "${host}" in |
michael@0 | 4099 | *-*-cygwin) |
michael@0 | 4100 | if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" |
michael@0 | 4101 | then |
michael@0 | 4102 | CFLAGS="$CFLAGS /W4" |
michael@0 | 4103 | fi ;; |
michael@0 | 4104 | *-*-mingw32|*-*-mingw64) |
michael@0 | 4105 | CFLAGS="$CFLAGS -W4" ;; |
michael@0 | 4106 | esac |
michael@0 | 4107 | fi |
michael@0 | 4108 | if test "$GXX" = yes |
michael@0 | 4109 | then |
michael@0 | 4110 | CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" |
michael@0 | 4111 | else |
michael@0 | 4112 | case "${host}" in |
michael@0 | 4113 | *-*-cygwin) |
michael@0 | 4114 | if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" |
michael@0 | 4115 | then |
michael@0 | 4116 | CXXFLAGS="$CXXFLAGS /W4" |
michael@0 | 4117 | fi ;; |
michael@0 | 4118 | *-*-mingw32|*-*-mingw64) |
michael@0 | 4119 | CFLAGS="$CFLAGS -W4" ;; |
michael@0 | 4120 | esac |
michael@0 | 4121 | fi |
michael@0 | 4122 | fi |
michael@0 | 4123 | |
michael@0 | 4124 | |
michael@0 | 4125 | # Check if we can build and use 64-bit libraries |
michael@0 | 4126 | |
michael@0 | 4127 | |
michael@0 | 4128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
michael@0 | 4129 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
michael@0 | 4130 | if ${ac_cv_path_GREP+:} false; then : |
michael@0 | 4131 | $as_echo_n "(cached) " >&6 |
michael@0 | 4132 | else |
michael@0 | 4133 | if test -z "$GREP"; then |
michael@0 | 4134 | ac_path_GREP_found=false |
michael@0 | 4135 | # Loop through the user's path and test for each of PROGNAME-LIST |
michael@0 | 4136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4137 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
michael@0 | 4138 | do |
michael@0 | 4139 | IFS=$as_save_IFS |
michael@0 | 4140 | test -z "$as_dir" && as_dir=. |
michael@0 | 4141 | for ac_prog in grep ggrep; do |
michael@0 | 4142 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4143 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
michael@0 | 4144 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
michael@0 | 4145 | # Check for GNU ac_path_GREP and select it if it is found. |
michael@0 | 4146 | # Check for GNU $ac_path_GREP |
michael@0 | 4147 | case `"$ac_path_GREP" --version 2>&1` in |
michael@0 | 4148 | *GNU*) |
michael@0 | 4149 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
michael@0 | 4150 | *) |
michael@0 | 4151 | ac_count=0 |
michael@0 | 4152 | $as_echo_n 0123456789 >"conftest.in" |
michael@0 | 4153 | while : |
michael@0 | 4154 | do |
michael@0 | 4155 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
michael@0 | 4156 | mv "conftest.tmp" "conftest.in" |
michael@0 | 4157 | cp "conftest.in" "conftest.nl" |
michael@0 | 4158 | $as_echo 'GREP' >> "conftest.nl" |
michael@0 | 4159 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
michael@0 | 4160 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
michael@0 | 4161 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
michael@0 | 4162 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
michael@0 | 4163 | # Best one so far, save it but keep looking for a better one |
michael@0 | 4164 | ac_cv_path_GREP="$ac_path_GREP" |
michael@0 | 4165 | ac_path_GREP_max=$ac_count |
michael@0 | 4166 | fi |
michael@0 | 4167 | # 10*(2^10) chars as input seems more than enough |
michael@0 | 4168 | test $ac_count -gt 10 && break |
michael@0 | 4169 | done |
michael@0 | 4170 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
michael@0 | 4171 | esac |
michael@0 | 4172 | |
michael@0 | 4173 | $ac_path_GREP_found && break 3 |
michael@0 | 4174 | done |
michael@0 | 4175 | done |
michael@0 | 4176 | done |
michael@0 | 4177 | IFS=$as_save_IFS |
michael@0 | 4178 | if test -z "$ac_cv_path_GREP"; then |
michael@0 | 4179 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
michael@0 | 4180 | fi |
michael@0 | 4181 | else |
michael@0 | 4182 | ac_cv_path_GREP=$GREP |
michael@0 | 4183 | fi |
michael@0 | 4184 | |
michael@0 | 4185 | fi |
michael@0 | 4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
michael@0 | 4187 | $as_echo "$ac_cv_path_GREP" >&6; } |
michael@0 | 4188 | GREP="$ac_cv_path_GREP" |
michael@0 | 4189 | |
michael@0 | 4190 | |
michael@0 | 4191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
michael@0 | 4192 | $as_echo_n "checking for egrep... " >&6; } |
michael@0 | 4193 | if ${ac_cv_path_EGREP+:} false; then : |
michael@0 | 4194 | $as_echo_n "(cached) " >&6 |
michael@0 | 4195 | else |
michael@0 | 4196 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
michael@0 | 4197 | then ac_cv_path_EGREP="$GREP -E" |
michael@0 | 4198 | else |
michael@0 | 4199 | if test -z "$EGREP"; then |
michael@0 | 4200 | ac_path_EGREP_found=false |
michael@0 | 4201 | # Loop through the user's path and test for each of PROGNAME-LIST |
michael@0 | 4202 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 4203 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
michael@0 | 4204 | do |
michael@0 | 4205 | IFS=$as_save_IFS |
michael@0 | 4206 | test -z "$as_dir" && as_dir=. |
michael@0 | 4207 | for ac_prog in egrep; do |
michael@0 | 4208 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 4209 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
michael@0 | 4210 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
michael@0 | 4211 | # Check for GNU ac_path_EGREP and select it if it is found. |
michael@0 | 4212 | # Check for GNU $ac_path_EGREP |
michael@0 | 4213 | case `"$ac_path_EGREP" --version 2>&1` in |
michael@0 | 4214 | *GNU*) |
michael@0 | 4215 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
michael@0 | 4216 | *) |
michael@0 | 4217 | ac_count=0 |
michael@0 | 4218 | $as_echo_n 0123456789 >"conftest.in" |
michael@0 | 4219 | while : |
michael@0 | 4220 | do |
michael@0 | 4221 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
michael@0 | 4222 | mv "conftest.tmp" "conftest.in" |
michael@0 | 4223 | cp "conftest.in" "conftest.nl" |
michael@0 | 4224 | $as_echo 'EGREP' >> "conftest.nl" |
michael@0 | 4225 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
michael@0 | 4226 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
michael@0 | 4227 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
michael@0 | 4228 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
michael@0 | 4229 | # Best one so far, save it but keep looking for a better one |
michael@0 | 4230 | ac_cv_path_EGREP="$ac_path_EGREP" |
michael@0 | 4231 | ac_path_EGREP_max=$ac_count |
michael@0 | 4232 | fi |
michael@0 | 4233 | # 10*(2^10) chars as input seems more than enough |
michael@0 | 4234 | test $ac_count -gt 10 && break |
michael@0 | 4235 | done |
michael@0 | 4236 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
michael@0 | 4237 | esac |
michael@0 | 4238 | |
michael@0 | 4239 | $ac_path_EGREP_found && break 3 |
michael@0 | 4240 | done |
michael@0 | 4241 | done |
michael@0 | 4242 | done |
michael@0 | 4243 | IFS=$as_save_IFS |
michael@0 | 4244 | if test -z "$ac_cv_path_EGREP"; then |
michael@0 | 4245 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
michael@0 | 4246 | fi |
michael@0 | 4247 | else |
michael@0 | 4248 | ac_cv_path_EGREP=$EGREP |
michael@0 | 4249 | fi |
michael@0 | 4250 | |
michael@0 | 4251 | fi |
michael@0 | 4252 | fi |
michael@0 | 4253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
michael@0 | 4254 | $as_echo "$ac_cv_path_EGREP" >&6; } |
michael@0 | 4255 | EGREP="$ac_cv_path_EGREP" |
michael@0 | 4256 | |
michael@0 | 4257 | |
michael@0 | 4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
michael@0 | 4259 | $as_echo_n "checking for ANSI C header files... " >&6; } |
michael@0 | 4260 | if ${ac_cv_header_stdc+:} false; then : |
michael@0 | 4261 | $as_echo_n "(cached) " >&6 |
michael@0 | 4262 | else |
michael@0 | 4263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4264 | /* end confdefs.h. */ |
michael@0 | 4265 | #include <stdlib.h> |
michael@0 | 4266 | #include <stdarg.h> |
michael@0 | 4267 | #include <string.h> |
michael@0 | 4268 | #include <float.h> |
michael@0 | 4269 | |
michael@0 | 4270 | int |
michael@0 | 4271 | main () |
michael@0 | 4272 | { |
michael@0 | 4273 | |
michael@0 | 4274 | ; |
michael@0 | 4275 | return 0; |
michael@0 | 4276 | } |
michael@0 | 4277 | _ACEOF |
michael@0 | 4278 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4279 | ac_cv_header_stdc=yes |
michael@0 | 4280 | else |
michael@0 | 4281 | ac_cv_header_stdc=no |
michael@0 | 4282 | fi |
michael@0 | 4283 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4284 | |
michael@0 | 4285 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 4286 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
michael@0 | 4287 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4288 | /* end confdefs.h. */ |
michael@0 | 4289 | #include <string.h> |
michael@0 | 4290 | |
michael@0 | 4291 | _ACEOF |
michael@0 | 4292 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 4293 | $EGREP "memchr" >/dev/null 2>&1; then : |
michael@0 | 4294 | |
michael@0 | 4295 | else |
michael@0 | 4296 | ac_cv_header_stdc=no |
michael@0 | 4297 | fi |
michael@0 | 4298 | rm -f conftest* |
michael@0 | 4299 | |
michael@0 | 4300 | fi |
michael@0 | 4301 | |
michael@0 | 4302 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 4303 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
michael@0 | 4304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4305 | /* end confdefs.h. */ |
michael@0 | 4306 | #include <stdlib.h> |
michael@0 | 4307 | |
michael@0 | 4308 | _ACEOF |
michael@0 | 4309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
michael@0 | 4310 | $EGREP "free" >/dev/null 2>&1; then : |
michael@0 | 4311 | |
michael@0 | 4312 | else |
michael@0 | 4313 | ac_cv_header_stdc=no |
michael@0 | 4314 | fi |
michael@0 | 4315 | rm -f conftest* |
michael@0 | 4316 | |
michael@0 | 4317 | fi |
michael@0 | 4318 | |
michael@0 | 4319 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 4320 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
michael@0 | 4321 | if test "$cross_compiling" = yes; then : |
michael@0 | 4322 | : |
michael@0 | 4323 | else |
michael@0 | 4324 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4325 | /* end confdefs.h. */ |
michael@0 | 4326 | #include <ctype.h> |
michael@0 | 4327 | #include <stdlib.h> |
michael@0 | 4328 | #if ((' ' & 0x0FF) == 0x020) |
michael@0 | 4329 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
michael@0 | 4330 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
michael@0 | 4331 | #else |
michael@0 | 4332 | # define ISLOWER(c) \ |
michael@0 | 4333 | (('a' <= (c) && (c) <= 'i') \ |
michael@0 | 4334 | || ('j' <= (c) && (c) <= 'r') \ |
michael@0 | 4335 | || ('s' <= (c) && (c) <= 'z')) |
michael@0 | 4336 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
michael@0 | 4337 | #endif |
michael@0 | 4338 | |
michael@0 | 4339 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
michael@0 | 4340 | int |
michael@0 | 4341 | main () |
michael@0 | 4342 | { |
michael@0 | 4343 | int i; |
michael@0 | 4344 | for (i = 0; i < 256; i++) |
michael@0 | 4345 | if (XOR (islower (i), ISLOWER (i)) |
michael@0 | 4346 | || toupper (i) != TOUPPER (i)) |
michael@0 | 4347 | return 2; |
michael@0 | 4348 | return 0; |
michael@0 | 4349 | } |
michael@0 | 4350 | _ACEOF |
michael@0 | 4351 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 4352 | |
michael@0 | 4353 | else |
michael@0 | 4354 | ac_cv_header_stdc=no |
michael@0 | 4355 | fi |
michael@0 | 4356 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 4357 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 4358 | fi |
michael@0 | 4359 | |
michael@0 | 4360 | fi |
michael@0 | 4361 | fi |
michael@0 | 4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
michael@0 | 4363 | $as_echo "$ac_cv_header_stdc" >&6; } |
michael@0 | 4364 | if test $ac_cv_header_stdc = yes; then |
michael@0 | 4365 | |
michael@0 | 4366 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
michael@0 | 4367 | |
michael@0 | 4368 | fi |
michael@0 | 4369 | |
michael@0 | 4370 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
michael@0 | 4371 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
michael@0 | 4372 | inttypes.h stdint.h unistd.h |
michael@0 | 4373 | do : |
michael@0 | 4374 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
michael@0 | 4375 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
michael@0 | 4376 | " |
michael@0 | 4377 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
michael@0 | 4378 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4379 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
michael@0 | 4380 | _ACEOF |
michael@0 | 4381 | |
michael@0 | 4382 | fi |
michael@0 | 4383 | |
michael@0 | 4384 | done |
michael@0 | 4385 | |
michael@0 | 4386 | |
michael@0 | 4387 | |
michael@0 | 4388 | BITS_REQ=nochange |
michael@0 | 4389 | ENABLE_64BIT_LIBS=unknown |
michael@0 | 4390 | ## revisit this for cross-compile. |
michael@0 | 4391 | |
michael@0 | 4392 | # Check whether --enable-64bit-libs was given. |
michael@0 | 4393 | if test "${enable_64bit_libs+set}" = set; then : |
michael@0 | 4394 | enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs" |
michael@0 | 4395 | case "${enableval}" in |
michael@0 | 4396 | no|false|32) with_library_bits=32; ;; |
michael@0 | 4397 | yes|true|64) with_library_bits=64else32 ;; |
michael@0 | 4398 | nochange) with_library_bits=nochange; ;; |
michael@0 | 4399 | *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;; |
michael@0 | 4400 | esac |
michael@0 | 4401 | fi |
michael@0 | 4402 | |
michael@0 | 4403 | |
michael@0 | 4404 | |
michael@0 | 4405 | |
michael@0 | 4406 | # Check whether --with-library-bits was given. |
michael@0 | 4407 | if test "${with_library_bits+set}" = set; then : |
michael@0 | 4408 | withval=$with_library_bits; case "${withval}" in |
michael@0 | 4409 | ""|nochange) BITS_REQ=$withval ;; |
michael@0 | 4410 | 32|64|64else32) BITS_REQ=$withval ;; |
michael@0 | 4411 | *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;; |
michael@0 | 4412 | esac |
michael@0 | 4413 | fi |
michael@0 | 4414 | |
michael@0 | 4415 | |
michael@0 | 4416 | # don't use these for cross compiling |
michael@0 | 4417 | if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then |
michael@0 | 4418 | as_fn_error $? "Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5 |
michael@0 | 4419 | fi |
michael@0 | 4420 | # The cast to long int works around a bug in the HP C Compiler |
michael@0 | 4421 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
michael@0 | 4422 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
michael@0 | 4423 | # This bug is HP SR number 8606223364. |
michael@0 | 4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 |
michael@0 | 4425 | $as_echo_n "checking size of void *... " >&6; } |
michael@0 | 4426 | if ${ac_cv_sizeof_void_p+:} false; then : |
michael@0 | 4427 | $as_echo_n "(cached) " >&6 |
michael@0 | 4428 | else |
michael@0 | 4429 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
michael@0 | 4430 | |
michael@0 | 4431 | else |
michael@0 | 4432 | if test "$ac_cv_type_void_p" = yes; then |
michael@0 | 4433 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 4434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 4435 | as_fn_error 77 "cannot compute sizeof (void *) |
michael@0 | 4436 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 4437 | else |
michael@0 | 4438 | ac_cv_sizeof_void_p=0 |
michael@0 | 4439 | fi |
michael@0 | 4440 | fi |
michael@0 | 4441 | |
michael@0 | 4442 | fi |
michael@0 | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
michael@0 | 4444 | $as_echo "$ac_cv_sizeof_void_p" >&6; } |
michael@0 | 4445 | |
michael@0 | 4446 | |
michael@0 | 4447 | |
michael@0 | 4448 | cat >>confdefs.h <<_ACEOF |
michael@0 | 4449 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
michael@0 | 4450 | _ACEOF |
michael@0 | 4451 | |
michael@0 | 4452 | |
michael@0 | 4453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5 |
michael@0 | 4454 | $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; } |
michael@0 | 4455 | case $ac_cv_sizeof_void_p in |
michael@0 | 4456 | 8) DEFAULT_64BIT=yes ;; |
michael@0 | 4457 | 4) DEFAULT_64BIT=no ;; |
michael@0 | 4458 | *) DEFAULT_64BIT=unknown |
michael@0 | 4459 | esac |
michael@0 | 4460 | BITS_GOT=unknown |
michael@0 | 4461 | |
michael@0 | 4462 | # 'OK' here means, we can exit any further checking, everything's copa |
michael@0 | 4463 | BITS_OK=yes |
michael@0 | 4464 | |
michael@0 | 4465 | # do we need to check for buildable/runnable 32 or 64 bit? |
michael@0 | 4466 | BITS_CHECK_32=no |
michael@0 | 4467 | BITS_CHECK_64=no |
michael@0 | 4468 | |
michael@0 | 4469 | # later, can we run the 32/64 bit binaries so made? |
michael@0 | 4470 | BITS_RUN_32=no |
michael@0 | 4471 | BITS_RUN_64=no |
michael@0 | 4472 | |
michael@0 | 4473 | if test "$DEFAULT_64BIT" = "yes"; then |
michael@0 | 4474 | # we get 64 bits by default. |
michael@0 | 4475 | BITS_GOT=64 |
michael@0 | 4476 | case "$BITS_REQ" in |
michael@0 | 4477 | 32) |
michael@0 | 4478 | # need to look for 32 bit support. |
michael@0 | 4479 | BITS_CHECK_32=yes |
michael@0 | 4480 | # not copa. |
michael@0 | 4481 | BITS_OK=no;; |
michael@0 | 4482 | # everyone else is happy. |
michael@0 | 4483 | nochange) ;; |
michael@0 | 4484 | *) ;; |
michael@0 | 4485 | esac |
michael@0 | 4486 | elif test "$DEFAULT_64BIT" = "no"; then |
michael@0 | 4487 | # not 64 bit by default. |
michael@0 | 4488 | BITS_GOT=32 |
michael@0 | 4489 | case "$BITS_REQ" in |
michael@0 | 4490 | 64|64else32) |
michael@0 | 4491 | BITS_CHECK_64=yes |
michael@0 | 4492 | #BITS_CHECK_32=yes |
michael@0 | 4493 | BITS_OK=no;; |
michael@0 | 4494 | nochange) ;; |
michael@0 | 4495 | *) ;; |
michael@0 | 4496 | esac |
michael@0 | 4497 | elif test "$DEFAULT_64BIT" = "unknown"; then |
michael@0 | 4498 | # cross compiling. |
michael@0 | 4499 | BITS_GOT=unknown |
michael@0 | 4500 | case "$BITS_REQ" in |
michael@0 | 4501 | 64|64else32) BITS_OK=no |
michael@0 | 4502 | BITS_CHECK_32=yes |
michael@0 | 4503 | BITS_CHECK_64=yes ;; |
michael@0 | 4504 | 32) BITS_OK=no;; |
michael@0 | 4505 | nochange) ;; |
michael@0 | 4506 | *) ;; |
michael@0 | 4507 | esac |
michael@0 | 4508 | fi |
michael@0 | 4509 | |
michael@0 | 4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5 |
michael@0 | 4511 | $as_echo "$DEFAULT_64BIT" >&6; }; |
michael@0 | 4512 | |
michael@0 | 4513 | if test "$BITS_OK" != "yes"; then |
michael@0 | 4514 | # not copa. back these up. |
michael@0 | 4515 | CFLAGS_OLD="${CFLAGS}" |
michael@0 | 4516 | CXXFLAGS_OLD="${CXXFLAGS}" |
michael@0 | 4517 | LDFLAGS_OLD="${LDFLAGS}" |
michael@0 | 4518 | ARFLAGS_OLD="${ARFLAGS}" |
michael@0 | 4519 | |
michael@0 | 4520 | CFLAGS_32="${CFLAGS}" |
michael@0 | 4521 | CXXFLAGS_32="${CXXFLAGS}" |
michael@0 | 4522 | LDFLAGS_32="${LDFLAGS}" |
michael@0 | 4523 | ARFLAGS_32="${ARFLAGS}" |
michael@0 | 4524 | |
michael@0 | 4525 | CFLAGS_64="${CFLAGS}" |
michael@0 | 4526 | CXXFLAGS_64="${CXXFLAGS}" |
michael@0 | 4527 | LDFLAGS_64="${LDFLAGS}" |
michael@0 | 4528 | ARFLAGS_64="${ARFLAGS}" |
michael@0 | 4529 | |
michael@0 | 4530 | CAN_BUILD_64=unknown |
michael@0 | 4531 | CAN_BUILD_32=unknown |
michael@0 | 4532 | # These results can't be cached because is sets compiler flags. |
michael@0 | 4533 | if test "$BITS_CHECK_64" = "yes"; then |
michael@0 | 4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5 |
michael@0 | 4535 | $as_echo_n "checking how to build 64-bit executables... " >&6; } |
michael@0 | 4536 | CAN_BUILD_64=no |
michael@0 | 4537 | #### |
michael@0 | 4538 | # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it. |
michael@0 | 4539 | # Note, we don't have to actually check if the options work- we'll try them before using them. |
michael@0 | 4540 | # So, only try actually testing the options, if you are trying to decide between multiple options. |
michael@0 | 4541 | # On exit from the following clauses: |
michael@0 | 4542 | # if CAN_BUILD_64=yes: |
michael@0 | 4543 | # *FLAGS are assumed to contain the right settings for 64bit |
michael@0 | 4544 | # else if CAN_BUILD_64=no: (default) |
michael@0 | 4545 | # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD |
michael@0 | 4546 | |
michael@0 | 4547 | if test "$GCC" = yes; then |
michael@0 | 4548 | CFLAGS="${CFLAGS} -m64" |
michael@0 | 4549 | CXXFLAGS="${CXXFLAGS} -m64" |
michael@0 | 4550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4551 | /* end confdefs.h. */ |
michael@0 | 4552 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4553 | _ACEOF |
michael@0 | 4554 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4555 | CAN_BUILD_64=yes |
michael@0 | 4556 | else |
michael@0 | 4557 | CAN_BUILD_64=no |
michael@0 | 4558 | fi |
michael@0 | 4559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4560 | else |
michael@0 | 4561 | case "${host}" in |
michael@0 | 4562 | sparc*-*-solaris*) |
michael@0 | 4563 | # 1. try -m64 |
michael@0 | 4564 | CFLAGS="${CFLAGS} -m64" |
michael@0 | 4565 | CXXFLAGS="${CXXFLAGS} -m64" |
michael@0 | 4566 | if test "$cross_compiling" = yes; then : |
michael@0 | 4567 | CAN_BUILD_64=unknown |
michael@0 | 4568 | else |
michael@0 | 4569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4570 | /* end confdefs.h. */ |
michael@0 | 4571 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4572 | _ACEOF |
michael@0 | 4573 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 4574 | CAN_BUILD_64=yes |
michael@0 | 4575 | else |
michael@0 | 4576 | CAN_BUILD_64=no |
michael@0 | 4577 | fi |
michael@0 | 4578 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 4579 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 4580 | fi |
michael@0 | 4581 | |
michael@0 | 4582 | if test "$CAN_BUILD_64" != yes; then |
michael@0 | 4583 | # Nope. back out changes. |
michael@0 | 4584 | CFLAGS="${CFLAGS_OLD}" |
michael@0 | 4585 | CXXFLAGS="${CFLAGS_OLD}" |
michael@0 | 4586 | # 2. try xarch=v9 [deprecated] |
michael@0 | 4587 | ## TODO: cross compile: the following won't work. |
michael@0 | 4588 | SPARCV9=`isainfo -n 2>&1 | grep sparcv9` |
michael@0 | 4589 | SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` |
michael@0 | 4590 | # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs" |
michael@0 | 4591 | if test -z "$SOL64" && test -n "$SPARCV9"; then |
michael@0 | 4592 | CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" |
michael@0 | 4593 | CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" |
michael@0 | 4594 | LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" |
michael@0 | 4595 | CAN_BUILD_64=yes |
michael@0 | 4596 | fi |
michael@0 | 4597 | fi |
michael@0 | 4598 | ;; |
michael@0 | 4599 | i386-*-solaris*) |
michael@0 | 4600 | # 1. try -m64 |
michael@0 | 4601 | CFLAGS="${CFLAGS} -m64" |
michael@0 | 4602 | CXXFLAGS="${CXXFLAGS} -m64" |
michael@0 | 4603 | if test "$cross_compiling" = yes; then : |
michael@0 | 4604 | CAN_BUILD_64=unknown |
michael@0 | 4605 | else |
michael@0 | 4606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4607 | /* end confdefs.h. */ |
michael@0 | 4608 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4609 | _ACEOF |
michael@0 | 4610 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 4611 | CAN_BUILD_64=yes |
michael@0 | 4612 | else |
michael@0 | 4613 | CAN_BUILD_64=no |
michael@0 | 4614 | fi |
michael@0 | 4615 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 4616 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 4617 | fi |
michael@0 | 4618 | |
michael@0 | 4619 | if test "$CAN_BUILD_64" != yes; then |
michael@0 | 4620 | # Nope. back out changes. |
michael@0 | 4621 | CFLAGS="${CFLAGS_OLD}" |
michael@0 | 4622 | CXXFLAGS="${CXXFLAGS_OLD}" |
michael@0 | 4623 | # 2. try the older compiler option |
michael@0 | 4624 | ## TODO: cross compile problem |
michael@0 | 4625 | AMD64=`isainfo -n 2>&1 | grep amd64` |
michael@0 | 4626 | SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` |
michael@0 | 4627 | if test -z "$SOL64" && test -n "$AMD64"; then |
michael@0 | 4628 | CFLAGS="${CFLAGS} -xtarget=generic64" |
michael@0 | 4629 | CXXFLAGS="${CXXFLAGS} -xtarget=generic64" |
michael@0 | 4630 | CAN_BUILD_64=yes |
michael@0 | 4631 | fi |
michael@0 | 4632 | fi |
michael@0 | 4633 | ;; |
michael@0 | 4634 | ia64-*-linux*) |
michael@0 | 4635 | # check for ecc/ecpc compiler support |
michael@0 | 4636 | ## TODO: cross compiler problem |
michael@0 | 4637 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then |
michael@0 | 4638 | if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then |
michael@0 | 4639 | CAN_BUILD_64=yes |
michael@0 | 4640 | fi |
michael@0 | 4641 | fi |
michael@0 | 4642 | ;; |
michael@0 | 4643 | *-*-cygwin) |
michael@0 | 4644 | # vcvarsamd64.bat should have been used to enable 64-bit builds. |
michael@0 | 4645 | # We only do this check to display the correct answer. |
michael@0 | 4646 | ## TODO: cross compiler problem |
michael@0 | 4647 | if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then |
michael@0 | 4648 | CAN_BUILD_64=yes |
michael@0 | 4649 | fi |
michael@0 | 4650 | ;; |
michael@0 | 4651 | *-*-aix*|powerpc64-*-linux*) |
michael@0 | 4652 | CFLAGS="${CFLAGS} -q64" |
michael@0 | 4653 | CXXFLAGS="${CXXFLAGS} -q64" |
michael@0 | 4654 | LDFLAGS="${LDFLAGS} -q64" |
michael@0 | 4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4656 | /* end confdefs.h. */ |
michael@0 | 4657 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4658 | _ACEOF |
michael@0 | 4659 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4660 | CAN_BUILD_64=yes |
michael@0 | 4661 | else |
michael@0 | 4662 | CAN_BUILD_64=no |
michael@0 | 4663 | fi |
michael@0 | 4664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4665 | if test "$CAN_BUILD_64" = yes; then |
michael@0 | 4666 | # worked- set other options. |
michael@0 | 4667 | case "${host}" in |
michael@0 | 4668 | *-*-aix*) |
michael@0 | 4669 | # tell AIX what executable mode to use. |
michael@0 | 4670 | ARFLAGS="${ARFLAGS} -X64" |
michael@0 | 4671 | esac |
michael@0 | 4672 | fi |
michael@0 | 4673 | ;; |
michael@0 | 4674 | *-*-hpux*) |
michael@0 | 4675 | # First we try the newer +DD64, if that doesn't work, |
michael@0 | 4676 | # try other options. |
michael@0 | 4677 | |
michael@0 | 4678 | CFLAGS="${CFLAGS} +DD64" |
michael@0 | 4679 | CXXFLAGS="${CXXFLAGS} +DD64" |
michael@0 | 4680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4681 | /* end confdefs.h. */ |
michael@0 | 4682 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4683 | _ACEOF |
michael@0 | 4684 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4685 | CAN_BUILD_64=yes |
michael@0 | 4686 | else |
michael@0 | 4687 | CAN_BUILD_64=no |
michael@0 | 4688 | fi |
michael@0 | 4689 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4690 | if test "$CAN_BUILD_64" != yes; then |
michael@0 | 4691 | # reset |
michael@0 | 4692 | CFLAGS="${CFLAGS_OLD}" |
michael@0 | 4693 | CXXFLAGS="${CXXFLAGS_OLD}" |
michael@0 | 4694 | # append |
michael@0 | 4695 | CFLAGS="${CFLAGS} +DA2.0W" |
michael@0 | 4696 | CXXFLAGS="${CXXFLAGS} +DA2.0W" |
michael@0 | 4697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4698 | /* end confdefs.h. */ |
michael@0 | 4699 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4700 | _ACEOF |
michael@0 | 4701 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4702 | CAN_BUILD_64=yes |
michael@0 | 4703 | else |
michael@0 | 4704 | CAN_BUILD_64=no |
michael@0 | 4705 | fi |
michael@0 | 4706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4707 | fi |
michael@0 | 4708 | ;; |
michael@0 | 4709 | *-*ibm-openedition*|*-*-os390*) |
michael@0 | 4710 | CFLAGS="${CFLAGS} -Wc,lp64" |
michael@0 | 4711 | CXXFLAGS="${CXXFLAGS} -Wc,lp64" |
michael@0 | 4712 | LDFLAGS="${LDFLAGS} -Wl,lp64" |
michael@0 | 4713 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4714 | /* end confdefs.h. */ |
michael@0 | 4715 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4716 | _ACEOF |
michael@0 | 4717 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4718 | CAN_BUILD_64=yes |
michael@0 | 4719 | else |
michael@0 | 4720 | CAN_BUILD_64=no |
michael@0 | 4721 | fi |
michael@0 | 4722 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4723 | ;; |
michael@0 | 4724 | *) |
michael@0 | 4725 | # unknown platform. |
michael@0 | 4726 | ;; |
michael@0 | 4727 | esac |
michael@0 | 4728 | fi |
michael@0 | 4729 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5 |
michael@0 | 4730 | $as_echo "$CAN_BUILD_64" >&6; } |
michael@0 | 4731 | if test "$CAN_BUILD_64" = yes; then |
michael@0 | 4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5 |
michael@0 | 4733 | $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; } |
michael@0 | 4734 | if test "$cross_compiling" = yes; then : |
michael@0 | 4735 | BITS_RUN_64=unknown |
michael@0 | 4736 | else |
michael@0 | 4737 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4738 | /* end confdefs.h. */ |
michael@0 | 4739 | int main(void) {return (sizeof(void*)*8==64)?0:1;} |
michael@0 | 4740 | _ACEOF |
michael@0 | 4741 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 4742 | BITS_RUN_64=yes |
michael@0 | 4743 | else |
michael@0 | 4744 | BITS_RUN_64=no |
michael@0 | 4745 | fi |
michael@0 | 4746 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 4747 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 4748 | fi |
michael@0 | 4749 | |
michael@0 | 4750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5 |
michael@0 | 4751 | $as_echo "$BITS_RUN_64" >&6; }; |
michael@0 | 4752 | |
michael@0 | 4753 | CFLAGS_64="${CFLAGS}" |
michael@0 | 4754 | CXXFLAGS_64="${CXXFLAGS}" |
michael@0 | 4755 | LDFLAGS_64="${LDFLAGS}" |
michael@0 | 4756 | ARFLAGS_64="${ARFLAGS}" |
michael@0 | 4757 | fi |
michael@0 | 4758 | # put it back. |
michael@0 | 4759 | CFLAGS="${CFLAGS_OLD}" |
michael@0 | 4760 | CXXFLAGS="${CXXFLAGS_OLD}" |
michael@0 | 4761 | LDFLAGS="${LDFLAGS_OLD}" |
michael@0 | 4762 | ARFLAGS="${ARFLAGS_OLD}" |
michael@0 | 4763 | fi |
michael@0 | 4764 | if test "$BITS_CHECK_32" = "yes"; then |
michael@0 | 4765 | # see comment under 'if BITS_CHECK_64', above. |
michael@0 | 4766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5 |
michael@0 | 4767 | $as_echo_n "checking how to build 32-bit executables... " >&6; } |
michael@0 | 4768 | if test "$GCC" = yes; then |
michael@0 | 4769 | CFLAGS="${CFLAGS} -m32" |
michael@0 | 4770 | CXXFLAGS="${CXXFLAGS} -m32" |
michael@0 | 4771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4772 | /* end confdefs.h. */ |
michael@0 | 4773 | int main(void) {return (sizeof(void*)*8==32)?0:1;} |
michael@0 | 4774 | _ACEOF |
michael@0 | 4775 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4776 | CAN_BUILD_32=yes |
michael@0 | 4777 | else |
michael@0 | 4778 | CAN_BUILD_32=no |
michael@0 | 4779 | fi |
michael@0 | 4780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4781 | fi |
michael@0 | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5 |
michael@0 | 4783 | $as_echo "$CAN_BUILD_32" >&6; } |
michael@0 | 4784 | if test "$CAN_BUILD_32" = yes; then |
michael@0 | 4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5 |
michael@0 | 4786 | $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; } |
michael@0 | 4787 | if test "$cross_compiling" = yes; then : |
michael@0 | 4788 | BITS_RUN_32=unknown |
michael@0 | 4789 | else |
michael@0 | 4790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4791 | /* end confdefs.h. */ |
michael@0 | 4792 | int main(void) {return (sizeof(void*)*8==32)?0:1;} |
michael@0 | 4793 | _ACEOF |
michael@0 | 4794 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 4795 | BITS_RUN_32=yes |
michael@0 | 4796 | else |
michael@0 | 4797 | BITS_RUN_32=no |
michael@0 | 4798 | fi |
michael@0 | 4799 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 4800 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 4801 | fi |
michael@0 | 4802 | |
michael@0 | 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5 |
michael@0 | 4804 | $as_echo "$BITS_RUN_32" >&6; }; |
michael@0 | 4805 | CFLAGS_32="${CFLAGS}" |
michael@0 | 4806 | CXXFLAGS_32="${CXXFLAGS}" |
michael@0 | 4807 | LDFLAGS_32="${LDFLAGS}" |
michael@0 | 4808 | ARFLAGS_32="${ARFLAGS}" |
michael@0 | 4809 | fi |
michael@0 | 4810 | # put it back. |
michael@0 | 4811 | CFLAGS="${CFLAGS_OLD}" |
michael@0 | 4812 | CXXFLAGS="${CXXFLAGS_OLD}" |
michael@0 | 4813 | LDFLAGS="${LDFLAGS_OLD}" |
michael@0 | 4814 | ARFLAGS="${ARFLAGS_OLD}" |
michael@0 | 4815 | fi |
michael@0 | 4816 | |
michael@0 | 4817 | ## |
michael@0 | 4818 | # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do. |
michael@0 | 4819 | # |
michael@0 | 4820 | |
michael@0 | 4821 | # First, implement 64else32 |
michael@0 | 4822 | if test "$BITS_REQ" = "64else32"; then |
michael@0 | 4823 | if test "$BITS_RUN_64" = "yes"; then |
michael@0 | 4824 | BITS_REQ=64 |
michael@0 | 4825 | else |
michael@0 | 4826 | # no changes. |
michael@0 | 4827 | BITS_OK=yes |
michael@0 | 4828 | fi |
michael@0 | 4829 | fi |
michael@0 | 4830 | |
michael@0 | 4831 | # implement. |
michael@0 | 4832 | if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then |
michael@0 | 4833 | CFLAGS="${CFLAGS_32}" |
michael@0 | 4834 | CXXFLAGS="${CXXFLAGS_32}" |
michael@0 | 4835 | LDFLAGS="${LDFLAGS_32}" |
michael@0 | 4836 | ARFLAGS="${ARFLAGS_32}" |
michael@0 | 4837 | BITS_OK=yes |
michael@0 | 4838 | elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then |
michael@0 | 4839 | CFLAGS="${CFLAGS_64}" |
michael@0 | 4840 | CXXFLAGS="${CXXFLAGS_64}" |
michael@0 | 4841 | LDFLAGS="${LDFLAGS_64}" |
michael@0 | 4842 | ARFLAGS="${ARFLAGS_64}" |
michael@0 | 4843 | BITS_OK=yes |
michael@0 | 4844 | elif test "$BITS_OK" != "yes"; then |
michael@0 | 4845 | as_fn_error $? "Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5 |
michael@0 | 4846 | fi |
michael@0 | 4847 | fi |
michael@0 | 4848 | |
michael@0 | 4849 | |
michael@0 | 4850 | |
michael@0 | 4851 | |
michael@0 | 4852 | # Determine the Makefile fragment |
michael@0 | 4853 | |
michael@0 | 4854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5 |
michael@0 | 4855 | $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; } |
michael@0 | 4856 | if ${icu_cv_host_frag+:} false; then : |
michael@0 | 4857 | $as_echo_n "(cached) " >&6 |
michael@0 | 4858 | else |
michael@0 | 4859 | |
michael@0 | 4860 | case "${host}" in |
michael@0 | 4861 | *-*-solaris*) |
michael@0 | 4862 | if test "$GCC" = yes; then |
michael@0 | 4863 | icu_cv_host_frag=mh-solaris-gcc |
michael@0 | 4864 | else |
michael@0 | 4865 | icu_cv_host_frag=mh-solaris |
michael@0 | 4866 | fi ;; |
michael@0 | 4867 | alpha*-*-linux-gnu) |
michael@0 | 4868 | if test "$GCC" = yes; then |
michael@0 | 4869 | icu_cv_host_frag=mh-alpha-linux-gcc |
michael@0 | 4870 | else |
michael@0 | 4871 | icu_cv_host_frag=mh-alpha-linux-cc |
michael@0 | 4872 | fi ;; |
michael@0 | 4873 | powerpc*-*-linux*) |
michael@0 | 4874 | if test "$GCC" = yes; then |
michael@0 | 4875 | icu_cv_host_frag=mh-linux |
michael@0 | 4876 | else |
michael@0 | 4877 | icu_cv_host_frag=mh-linux-va |
michael@0 | 4878 | fi ;; |
michael@0 | 4879 | *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;; |
michael@0 | 4880 | *-*-cygwin|*-*-mingw32|*-*-mingw64) |
michael@0 | 4881 | if test "$GCC" = yes; then |
michael@0 | 4882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4883 | /* end confdefs.h. */ |
michael@0 | 4884 | |
michael@0 | 4885 | #ifndef __MINGW32__ |
michael@0 | 4886 | #error This is not MinGW |
michael@0 | 4887 | #endif |
michael@0 | 4888 | int |
michael@0 | 4889 | main () |
michael@0 | 4890 | { |
michael@0 | 4891 | |
michael@0 | 4892 | ; |
michael@0 | 4893 | return 0; |
michael@0 | 4894 | } |
michael@0 | 4895 | _ACEOF |
michael@0 | 4896 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4897 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4898 | /* end confdefs.h. */ |
michael@0 | 4899 | |
michael@0 | 4900 | #ifndef __MINGW64__ |
michael@0 | 4901 | #error This is not MinGW64 |
michael@0 | 4902 | #endif |
michael@0 | 4903 | int |
michael@0 | 4904 | main () |
michael@0 | 4905 | { |
michael@0 | 4906 | |
michael@0 | 4907 | ; |
michael@0 | 4908 | return 0; |
michael@0 | 4909 | } |
michael@0 | 4910 | _ACEOF |
michael@0 | 4911 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 4912 | icu_cv_host_frag=mh-mingw64 |
michael@0 | 4913 | else |
michael@0 | 4914 | icu_cv_host_frag=mh-mingw |
michael@0 | 4915 | fi |
michael@0 | 4916 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4917 | else |
michael@0 | 4918 | icu_cv_host_frag=mh-cygwin |
michael@0 | 4919 | fi |
michael@0 | 4920 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 4921 | else |
michael@0 | 4922 | case "${host}" in |
michael@0 | 4923 | *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;; |
michael@0 | 4924 | *-*-mingw32|*-*-mingw64) icu_cv_host_frag=mh-msys-msvc ;; |
michael@0 | 4925 | esac |
michael@0 | 4926 | fi ;; |
michael@0 | 4927 | *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; |
michael@0 | 4928 | *-*-aix*) |
michael@0 | 4929 | if test "$GCC" = yes; then |
michael@0 | 4930 | icu_cv_host_frag=mh-aix-gcc |
michael@0 | 4931 | else |
michael@0 | 4932 | icu_cv_host_frag=mh-aix-va |
michael@0 | 4933 | fi ;; |
michael@0 | 4934 | *-*-hpux*) |
michael@0 | 4935 | if test "$GCC" = yes; then |
michael@0 | 4936 | icu_cv_host_frag=mh-hpux-gcc |
michael@0 | 4937 | else |
michael@0 | 4938 | case "$CXX" in |
michael@0 | 4939 | *aCC) icu_cv_host_frag=mh-hpux-acc ;; |
michael@0 | 4940 | esac |
michael@0 | 4941 | fi ;; |
michael@0 | 4942 | *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; |
michael@0 | 4943 | *-*-os400*) icu_cv_host_frag=mh-os400 ;; |
michael@0 | 4944 | *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; |
michael@0 | 4945 | *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; |
michael@0 | 4946 | *-*-beos) icu_cv_host_frag=mh-beos ;; |
michael@0 | 4947 | *-*-haiku) icu_cv_host_frag=mh-haiku ;; |
michael@0 | 4948 | *-*-irix*) icu_cv_host_frag=mh-irix ;; |
michael@0 | 4949 | *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; |
michael@0 | 4950 | *-*-nto*) icu_cv_host_frag=mh-qnx ;; |
michael@0 | 4951 | *-ncr-*) icu_cv_host_frag=mh-mpras ;; |
michael@0 | 4952 | *) icu_cv_host_frag=mh-unknown ;; |
michael@0 | 4953 | esac |
michael@0 | 4954 | |
michael@0 | 4955 | |
michael@0 | 4956 | fi |
michael@0 | 4957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5 |
michael@0 | 4958 | $as_echo "$icu_cv_host_frag" >&6; } |
michael@0 | 4959 | |
michael@0 | 4960 | |
michael@0 | 4961 | # Checks for libraries and other host specific stuff |
michael@0 | 4962 | # On HP/UX, don't link to -lm from a shared lib because it isn't |
michael@0 | 4963 | # PIC (at least on 10.2) |
michael@0 | 4964 | case "${host}" in |
michael@0 | 4965 | *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
michael@0 | 4966 | $as_echo_n "checking for floor in -lm... " >&6; } |
michael@0 | 4967 | if ${ac_cv_lib_m_floor+:} false; then : |
michael@0 | 4968 | $as_echo_n "(cached) " >&6 |
michael@0 | 4969 | else |
michael@0 | 4970 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 4971 | LIBS="-lm $LIBS" |
michael@0 | 4972 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 4973 | /* end confdefs.h. */ |
michael@0 | 4974 | |
michael@0 | 4975 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 4976 | Use char because int might match the return type of a GCC |
michael@0 | 4977 | builtin and then its argument prototype would still apply. */ |
michael@0 | 4978 | #ifdef __cplusplus |
michael@0 | 4979 | extern "C" |
michael@0 | 4980 | #endif |
michael@0 | 4981 | char floor (); |
michael@0 | 4982 | int |
michael@0 | 4983 | main () |
michael@0 | 4984 | { |
michael@0 | 4985 | return floor (); |
michael@0 | 4986 | ; |
michael@0 | 4987 | return 0; |
michael@0 | 4988 | } |
michael@0 | 4989 | _ACEOF |
michael@0 | 4990 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 4991 | ac_cv_lib_m_floor=yes |
michael@0 | 4992 | else |
michael@0 | 4993 | ac_cv_lib_m_floor=no |
michael@0 | 4994 | fi |
michael@0 | 4995 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 4996 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 4997 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 4998 | fi |
michael@0 | 4999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
michael@0 | 5000 | $as_echo "$ac_cv_lib_m_floor" >&6; } |
michael@0 | 5001 | if test "x$ac_cv_lib_m_floor" = xyes; then : |
michael@0 | 5002 | LIB_M="-lm" |
michael@0 | 5003 | fi |
michael@0 | 5004 | ;; |
michael@0 | 5005 | |
michael@0 | 5006 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 |
michael@0 | 5007 | $as_echo_n "checking for floor in -lm... " >&6; } |
michael@0 | 5008 | if ${ac_cv_lib_m_floor+:} false; then : |
michael@0 | 5009 | $as_echo_n "(cached) " >&6 |
michael@0 | 5010 | else |
michael@0 | 5011 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 5012 | LIBS="-lm $LIBS" |
michael@0 | 5013 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5014 | /* end confdefs.h. */ |
michael@0 | 5015 | |
michael@0 | 5016 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5017 | Use char because int might match the return type of a GCC |
michael@0 | 5018 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5019 | #ifdef __cplusplus |
michael@0 | 5020 | extern "C" |
michael@0 | 5021 | #endif |
michael@0 | 5022 | char floor (); |
michael@0 | 5023 | int |
michael@0 | 5024 | main () |
michael@0 | 5025 | { |
michael@0 | 5026 | return floor (); |
michael@0 | 5027 | ; |
michael@0 | 5028 | return 0; |
michael@0 | 5029 | } |
michael@0 | 5030 | _ACEOF |
michael@0 | 5031 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5032 | ac_cv_lib_m_floor=yes |
michael@0 | 5033 | else |
michael@0 | 5034 | ac_cv_lib_m_floor=no |
michael@0 | 5035 | fi |
michael@0 | 5036 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5037 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5038 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 5039 | fi |
michael@0 | 5040 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 |
michael@0 | 5041 | $as_echo "$ac_cv_lib_m_floor" >&6; } |
michael@0 | 5042 | if test "x$ac_cv_lib_m_floor" = xyes; then : |
michael@0 | 5043 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5044 | #define HAVE_LIBM 1 |
michael@0 | 5045 | _ACEOF |
michael@0 | 5046 | |
michael@0 | 5047 | LIBS="-lm $LIBS" |
michael@0 | 5048 | |
michael@0 | 5049 | fi |
michael@0 | 5050 | |
michael@0 | 5051 | LIB_M="" ;; |
michael@0 | 5052 | esac |
michael@0 | 5053 | |
michael@0 | 5054 | |
michael@0 | 5055 | # Check whether to build shared libraries |
michael@0 | 5056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
michael@0 | 5057 | $as_echo_n "checking whether to build shared libraries... " >&6; } |
michael@0 | 5058 | enabled=no |
michael@0 | 5059 | # Check whether --enable-shared was given. |
michael@0 | 5060 | if test "${enable_shared+set}" = set; then : |
michael@0 | 5061 | enableval=$enable_shared; case "${enableval}" in |
michael@0 | 5062 | yes|"") enabled=yes; ENABLE_SHARED=YES ;; |
michael@0 | 5063 | no);; |
michael@0 | 5064 | *) ;; |
michael@0 | 5065 | esac |
michael@0 | 5066 | else |
michael@0 | 5067 | enabled=yes; ENABLE_SHARED=YES |
michael@0 | 5068 | |
michael@0 | 5069 | fi |
michael@0 | 5070 | |
michael@0 | 5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 5072 | $as_echo "$enabled" >&6; } |
michael@0 | 5073 | |
michael@0 | 5074 | |
michael@0 | 5075 | # Check whether to build static libraries |
michael@0 | 5076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
michael@0 | 5077 | $as_echo_n "checking whether to build static libraries... " >&6; } |
michael@0 | 5078 | enabled=no |
michael@0 | 5079 | # Check whether --enable-static was given. |
michael@0 | 5080 | if test "${enable_static+set}" = set; then : |
michael@0 | 5081 | enableval=$enable_static; case "${enableval}" in |
michael@0 | 5082 | yes|"") enabled=yes; ENABLE_STATIC=YES ;; |
michael@0 | 5083 | no) ;; |
michael@0 | 5084 | *) ;; |
michael@0 | 5085 | esac |
michael@0 | 5086 | fi |
michael@0 | 5087 | |
michael@0 | 5088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 5089 | $as_echo "$enabled" >&6; } |
michael@0 | 5090 | |
michael@0 | 5091 | |
michael@0 | 5092 | # When building release static library, there might be some optimization flags we can use |
michael@0 | 5093 | if test "$ENABLE_STATIC" = "YES"; then |
michael@0 | 5094 | if test "$ENABLE_SHARED" != "YES"; then |
michael@0 | 5095 | if test "$ENABLE_RELEASE" = 1; then |
michael@0 | 5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5 |
michael@0 | 5097 | $as_echo_n "checking whether we can use static library optimization option... " >&6; } |
michael@0 | 5098 | CHECK_STATIC_OPT_FLAG=no |
michael@0 | 5099 | |
michael@0 | 5100 | OLD_CPPFLAGS="${CPPFLAGS}" |
michael@0 | 5101 | OLD_LDFLAGS="${LDFLAGS}" |
michael@0 | 5102 | |
michael@0 | 5103 | case "${host}" in |
michael@0 | 5104 | *-linux*|i*86-*-*bsd*|i*86-pc-gnu) |
michael@0 | 5105 | if test "$GCC" = yes; then |
michael@0 | 5106 | CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections" |
michael@0 | 5107 | LDFLAGS="${LDFLAGS} -Wl,--gc-sections" |
michael@0 | 5108 | fi |
michael@0 | 5109 | ;; |
michael@0 | 5110 | *) |
michael@0 | 5111 | ;; |
michael@0 | 5112 | esac |
michael@0 | 5113 | |
michael@0 | 5114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5115 | /* end confdefs.h. */ |
michael@0 | 5116 | |
michael@0 | 5117 | int |
michael@0 | 5118 | main () |
michael@0 | 5119 | { |
michael@0 | 5120 | |
michael@0 | 5121 | ; |
michael@0 | 5122 | return 0; |
michael@0 | 5123 | } |
michael@0 | 5124 | _ACEOF |
michael@0 | 5125 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5126 | CHECK_STATIC_OPT_FLAG=yes |
michael@0 | 5127 | else |
michael@0 | 5128 | CHECK_STATIC_OPT_FLAG=no |
michael@0 | 5129 | fi |
michael@0 | 5130 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5131 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5 |
michael@0 | 5133 | $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; } |
michael@0 | 5134 | if test "$CHECK_STATIC_OPT_FLAG" = no; then |
michael@0 | 5135 | CPPFLAGS="${OLD_CPPFLAGS}" |
michael@0 | 5136 | LDFLAGS="${OLD_LDFLAGS}" |
michael@0 | 5137 | fi |
michael@0 | 5138 | fi |
michael@0 | 5139 | fi |
michael@0 | 5140 | fi |
michael@0 | 5141 | |
michael@0 | 5142 | |
michael@0 | 5143 | # Check whether to enable auto cleanup of libraries |
michael@0 | 5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5 |
michael@0 | 5145 | $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; } |
michael@0 | 5146 | enabled=no |
michael@0 | 5147 | UCLN_NO_AUTO_CLEANUP=1 |
michael@0 | 5148 | # Check whether --enable-auto-cleanup was given. |
michael@0 | 5149 | if test "${enable_auto_cleanup+set}" = set; then : |
michael@0 | 5150 | enableval=$enable_auto_cleanup; case "${enableval}" in |
michael@0 | 5151 | yes) enabled=yes; |
michael@0 | 5152 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0"; |
michael@0 | 5153 | UCLN_NO_AUTO_CLEANUP=0 |
michael@0 | 5154 | ;; |
michael@0 | 5155 | *) ;; |
michael@0 | 5156 | esac |
michael@0 | 5157 | fi |
michael@0 | 5158 | |
michael@0 | 5159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 5160 | $as_echo "$enabled" >&6; } |
michael@0 | 5161 | |
michael@0 | 5162 | |
michael@0 | 5163 | # MSVC floating-point option |
michael@0 | 5164 | MSVC_RELEASE_FLAG="" |
michael@0 | 5165 | if test $enabled = yes |
michael@0 | 5166 | then |
michael@0 | 5167 | if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc |
michael@0 | 5168 | then |
michael@0 | 5169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5170 | /* end confdefs.h. */ |
michael@0 | 5171 | |
michael@0 | 5172 | #if defined _MSC_VER && _MSC_VER >= 1400 |
michael@0 | 5173 | #else |
michael@0 | 5174 | Microsoft Visual C++ < 2005 |
michael@0 | 5175 | #endif |
michael@0 | 5176 | |
michael@0 | 5177 | int |
michael@0 | 5178 | main () |
michael@0 | 5179 | { |
michael@0 | 5180 | |
michael@0 | 5181 | ; |
michael@0 | 5182 | return 0; |
michael@0 | 5183 | } |
michael@0 | 5184 | _ACEOF |
michael@0 | 5185 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 5186 | MSVC_RELEASE_FLAG="/fp:precise" |
michael@0 | 5187 | else |
michael@0 | 5188 | MSVC_RELEASE_FLAG="/Op" |
michael@0 | 5189 | fi |
michael@0 | 5190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5191 | |
michael@0 | 5192 | CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}" |
michael@0 | 5193 | CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}" |
michael@0 | 5194 | fi |
michael@0 | 5195 | fi |
michael@0 | 5196 | |
michael@0 | 5197 | # Check whether to enabled draft APIs |
michael@0 | 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5 |
michael@0 | 5199 | $as_echo_n "checking whether to enable draft APIs... " >&6; } |
michael@0 | 5200 | enabled=yes |
michael@0 | 5201 | U_DEFAULT_SHOW_DRAFT=1 |
michael@0 | 5202 | # Check whether --enable-draft was given. |
michael@0 | 5203 | if test "${enable_draft+set}" = set; then : |
michael@0 | 5204 | enableval=$enable_draft; case "${enableval}" in |
michael@0 | 5205 | no) enabled=no; U_DEFAULT_SHOW_DRAFT=0; |
michael@0 | 5206 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0" |
michael@0 | 5207 | ;; |
michael@0 | 5208 | *) ;; |
michael@0 | 5209 | esac |
michael@0 | 5210 | fi |
michael@0 | 5211 | |
michael@0 | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 5213 | $as_echo "$enabled" >&6; } |
michael@0 | 5214 | # Make sure that we can use draft API in ICU. |
michael@0 | 5215 | if test "$U_DEFAULT_SHOW_DRAFT" = 0; then |
michael@0 | 5216 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API" |
michael@0 | 5217 | fi |
michael@0 | 5218 | |
michael@0 | 5219 | |
michael@0 | 5220 | if test -n "$ac_tool_prefix"; then |
michael@0 | 5221 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
michael@0 | 5222 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
michael@0 | 5223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5224 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5225 | if ${ac_cv_prog_RANLIB+:} false; then : |
michael@0 | 5226 | $as_echo_n "(cached) " >&6 |
michael@0 | 5227 | else |
michael@0 | 5228 | if test -n "$RANLIB"; then |
michael@0 | 5229 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
michael@0 | 5230 | else |
michael@0 | 5231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5232 | for as_dir in $PATH |
michael@0 | 5233 | do |
michael@0 | 5234 | IFS=$as_save_IFS |
michael@0 | 5235 | test -z "$as_dir" && as_dir=. |
michael@0 | 5236 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 5238 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
michael@0 | 5239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5240 | break 2 |
michael@0 | 5241 | fi |
michael@0 | 5242 | done |
michael@0 | 5243 | done |
michael@0 | 5244 | IFS=$as_save_IFS |
michael@0 | 5245 | |
michael@0 | 5246 | fi |
michael@0 | 5247 | fi |
michael@0 | 5248 | RANLIB=$ac_cv_prog_RANLIB |
michael@0 | 5249 | if test -n "$RANLIB"; then |
michael@0 | 5250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
michael@0 | 5251 | $as_echo "$RANLIB" >&6; } |
michael@0 | 5252 | else |
michael@0 | 5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5254 | $as_echo "no" >&6; } |
michael@0 | 5255 | fi |
michael@0 | 5256 | |
michael@0 | 5257 | |
michael@0 | 5258 | fi |
michael@0 | 5259 | if test -z "$ac_cv_prog_RANLIB"; then |
michael@0 | 5260 | ac_ct_RANLIB=$RANLIB |
michael@0 | 5261 | # Extract the first word of "ranlib", so it can be a program name with args. |
michael@0 | 5262 | set dummy ranlib; ac_word=$2 |
michael@0 | 5263 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5264 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5265 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
michael@0 | 5266 | $as_echo_n "(cached) " >&6 |
michael@0 | 5267 | else |
michael@0 | 5268 | if test -n "$ac_ct_RANLIB"; then |
michael@0 | 5269 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
michael@0 | 5270 | else |
michael@0 | 5271 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5272 | for as_dir in $PATH |
michael@0 | 5273 | do |
michael@0 | 5274 | IFS=$as_save_IFS |
michael@0 | 5275 | test -z "$as_dir" && as_dir=. |
michael@0 | 5276 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5277 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 5278 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
michael@0 | 5279 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5280 | break 2 |
michael@0 | 5281 | fi |
michael@0 | 5282 | done |
michael@0 | 5283 | done |
michael@0 | 5284 | IFS=$as_save_IFS |
michael@0 | 5285 | |
michael@0 | 5286 | fi |
michael@0 | 5287 | fi |
michael@0 | 5288 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
michael@0 | 5289 | if test -n "$ac_ct_RANLIB"; then |
michael@0 | 5290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
michael@0 | 5291 | $as_echo "$ac_ct_RANLIB" >&6; } |
michael@0 | 5292 | else |
michael@0 | 5293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5294 | $as_echo "no" >&6; } |
michael@0 | 5295 | fi |
michael@0 | 5296 | |
michael@0 | 5297 | if test "x$ac_ct_RANLIB" = x; then |
michael@0 | 5298 | RANLIB=":" |
michael@0 | 5299 | else |
michael@0 | 5300 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 5301 | yes:) |
michael@0 | 5302 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 5303 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 5304 | ac_tool_warned=yes ;; |
michael@0 | 5305 | esac |
michael@0 | 5306 | RANLIB=$ac_ct_RANLIB |
michael@0 | 5307 | fi |
michael@0 | 5308 | else |
michael@0 | 5309 | RANLIB="$ac_cv_prog_RANLIB" |
michael@0 | 5310 | fi |
michael@0 | 5311 | |
michael@0 | 5312 | |
michael@0 | 5313 | # look for 'ar' the proper way |
michael@0 | 5314 | if test -n "$ac_tool_prefix"; then |
michael@0 | 5315 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
michael@0 | 5316 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
michael@0 | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5318 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5319 | if ${ac_cv_prog_AR+:} false; then : |
michael@0 | 5320 | $as_echo_n "(cached) " >&6 |
michael@0 | 5321 | else |
michael@0 | 5322 | if test -n "$AR"; then |
michael@0 | 5323 | ac_cv_prog_AR="$AR" # Let the user override the test. |
michael@0 | 5324 | else |
michael@0 | 5325 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5326 | for as_dir in $PATH |
michael@0 | 5327 | do |
michael@0 | 5328 | IFS=$as_save_IFS |
michael@0 | 5329 | test -z "$as_dir" && as_dir=. |
michael@0 | 5330 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5331 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 5332 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
michael@0 | 5333 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5334 | break 2 |
michael@0 | 5335 | fi |
michael@0 | 5336 | done |
michael@0 | 5337 | done |
michael@0 | 5338 | IFS=$as_save_IFS |
michael@0 | 5339 | |
michael@0 | 5340 | fi |
michael@0 | 5341 | fi |
michael@0 | 5342 | AR=$ac_cv_prog_AR |
michael@0 | 5343 | if test -n "$AR"; then |
michael@0 | 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
michael@0 | 5345 | $as_echo "$AR" >&6; } |
michael@0 | 5346 | else |
michael@0 | 5347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5348 | $as_echo "no" >&6; } |
michael@0 | 5349 | fi |
michael@0 | 5350 | |
michael@0 | 5351 | |
michael@0 | 5352 | fi |
michael@0 | 5353 | if test -z "$ac_cv_prog_AR"; then |
michael@0 | 5354 | ac_ct_AR=$AR |
michael@0 | 5355 | # Extract the first word of "ar", so it can be a program name with args. |
michael@0 | 5356 | set dummy ar; ac_word=$2 |
michael@0 | 5357 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
michael@0 | 5358 | $as_echo_n "checking for $ac_word... " >&6; } |
michael@0 | 5359 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
michael@0 | 5360 | $as_echo_n "(cached) " >&6 |
michael@0 | 5361 | else |
michael@0 | 5362 | if test -n "$ac_ct_AR"; then |
michael@0 | 5363 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
michael@0 | 5364 | else |
michael@0 | 5365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 5366 | for as_dir in $PATH |
michael@0 | 5367 | do |
michael@0 | 5368 | IFS=$as_save_IFS |
michael@0 | 5369 | test -z "$as_dir" && as_dir=. |
michael@0 | 5370 | for ac_exec_ext in '' $ac_executable_extensions; do |
michael@0 | 5371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
michael@0 | 5372 | ac_cv_prog_ac_ct_AR="ar" |
michael@0 | 5373 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
michael@0 | 5374 | break 2 |
michael@0 | 5375 | fi |
michael@0 | 5376 | done |
michael@0 | 5377 | done |
michael@0 | 5378 | IFS=$as_save_IFS |
michael@0 | 5379 | |
michael@0 | 5380 | fi |
michael@0 | 5381 | fi |
michael@0 | 5382 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
michael@0 | 5383 | if test -n "$ac_ct_AR"; then |
michael@0 | 5384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
michael@0 | 5385 | $as_echo "$ac_ct_AR" >&6; } |
michael@0 | 5386 | else |
michael@0 | 5387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5388 | $as_echo "no" >&6; } |
michael@0 | 5389 | fi |
michael@0 | 5390 | |
michael@0 | 5391 | if test "x$ac_ct_AR" = x; then |
michael@0 | 5392 | AR="false" |
michael@0 | 5393 | else |
michael@0 | 5394 | case $cross_compiling:$ac_tool_warned in |
michael@0 | 5395 | yes:) |
michael@0 | 5396 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
michael@0 | 5397 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
michael@0 | 5398 | ac_tool_warned=yes ;; |
michael@0 | 5399 | esac |
michael@0 | 5400 | AR=$ac_ct_AR |
michael@0 | 5401 | fi |
michael@0 | 5402 | else |
michael@0 | 5403 | AR="$ac_cv_prog_AR" |
michael@0 | 5404 | fi |
michael@0 | 5405 | |
michael@0 | 5406 | |
michael@0 | 5407 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5 |
michael@0 | 5408 | $as_echo_n "checking whether to enable renaming of symbols... " >&6; } |
michael@0 | 5409 | enabled=yes |
michael@0 | 5410 | U_DISABLE_RENAMING=0 |
michael@0 | 5411 | # Check whether --enable-renaming was given. |
michael@0 | 5412 | if test "${enable_renaming+set}" = set; then : |
michael@0 | 5413 | enableval=$enable_renaming; case "${enableval}" in |
michael@0 | 5414 | yes|"") enabled=yes ;; |
michael@0 | 5415 | no) enabled=no; U_DISABLE_RENAMING=1; |
michael@0 | 5416 | UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1" |
michael@0 | 5417 | ;; |
michael@0 | 5418 | *) ;; |
michael@0 | 5419 | esac |
michael@0 | 5420 | fi |
michael@0 | 5421 | |
michael@0 | 5422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 5423 | $as_echo "$enabled" >&6; } |
michael@0 | 5424 | |
michael@0 | 5425 | |
michael@0 | 5426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5 |
michael@0 | 5427 | $as_echo_n "checking whether to enable function and data tracing... " >&6; } |
michael@0 | 5428 | enabled=no |
michael@0 | 5429 | U_ENABLE_TRACING=0 |
michael@0 | 5430 | # Check whether --enable-tracing was given. |
michael@0 | 5431 | if test "${enable_tracing+set}" = set; then : |
michael@0 | 5432 | enableval=$enable_tracing; case "${enableval}" in |
michael@0 | 5433 | yes|"") enabled=yes; |
michael@0 | 5434 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1"; |
michael@0 | 5435 | U_ENABLE_TRACING=1 ;; |
michael@0 | 5436 | no) enabled=no; U_ENABLE_TRACING=0 ;; |
michael@0 | 5437 | *) ;; |
michael@0 | 5438 | esac |
michael@0 | 5439 | fi |
michael@0 | 5440 | |
michael@0 | 5441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 |
michael@0 | 5442 | $as_echo "$enabled" >&6; } |
michael@0 | 5443 | |
michael@0 | 5444 | |
michael@0 | 5445 | # check if elf.h is present. |
michael@0 | 5446 | for ac_header in elf.h |
michael@0 | 5447 | do : |
michael@0 | 5448 | ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" |
michael@0 | 5449 | if test "x$ac_cv_header_elf_h" = xyes; then : |
michael@0 | 5450 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5451 | #define HAVE_ELF_H 1 |
michael@0 | 5452 | _ACEOF |
michael@0 | 5453 | |
michael@0 | 5454 | fi |
michael@0 | 5455 | |
michael@0 | 5456 | done |
michael@0 | 5457 | |
michael@0 | 5458 | if test "x$ac_cv_header_elf_h" = "xyes"; then |
michael@0 | 5459 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; |
michael@0 | 5460 | fi |
michael@0 | 5461 | |
michael@0 | 5462 | U_ENABLE_DYLOAD=1 |
michael@0 | 5463 | enable=yes |
michael@0 | 5464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5 |
michael@0 | 5465 | $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; } |
michael@0 | 5466 | # Check whether --enable-dyload was given. |
michael@0 | 5467 | if test "${enable_dyload+set}" = set; then : |
michael@0 | 5468 | enableval=$enable_dyload; case "${enableval}" in |
michael@0 | 5469 | yes|"") |
michael@0 | 5470 | U_ENABLE_DYLOAD=1 |
michael@0 | 5471 | enable=yes |
michael@0 | 5472 | ;; |
michael@0 | 5473 | no) |
michael@0 | 5474 | U_ENABLE_DYLOAD=0; |
michael@0 | 5475 | enable=no; |
michael@0 | 5476 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0"; |
michael@0 | 5477 | ;; |
michael@0 | 5478 | *) ;; |
michael@0 | 5479 | esac |
michael@0 | 5480 | fi |
michael@0 | 5481 | |
michael@0 | 5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5 |
michael@0 | 5483 | $as_echo "$enable" >&6; } |
michael@0 | 5484 | |
michael@0 | 5485 | |
michael@0 | 5486 | if test "$enable" = "yes"; then |
michael@0 | 5487 | for ac_header in dlfcn.h |
michael@0 | 5488 | do : |
michael@0 | 5489 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
michael@0 | 5490 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
michael@0 | 5491 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5492 | #define HAVE_DLFCN_H 1 |
michael@0 | 5493 | _ACEOF |
michael@0 | 5494 | |
michael@0 | 5495 | fi |
michael@0 | 5496 | |
michael@0 | 5497 | done |
michael@0 | 5498 | |
michael@0 | 5499 | #AC_MSG_RESULT($enabled) |
michael@0 | 5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 |
michael@0 | 5501 | $as_echo_n "checking for library containing dlopen... " >&6; } |
michael@0 | 5502 | if ${ac_cv_search_dlopen+:} false; then : |
michael@0 | 5503 | $as_echo_n "(cached) " >&6 |
michael@0 | 5504 | else |
michael@0 | 5505 | ac_func_search_save_LIBS=$LIBS |
michael@0 | 5506 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5507 | /* end confdefs.h. */ |
michael@0 | 5508 | |
michael@0 | 5509 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5510 | Use char because int might match the return type of a GCC |
michael@0 | 5511 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5512 | #ifdef __cplusplus |
michael@0 | 5513 | extern "C" |
michael@0 | 5514 | #endif |
michael@0 | 5515 | char dlopen (); |
michael@0 | 5516 | int |
michael@0 | 5517 | main () |
michael@0 | 5518 | { |
michael@0 | 5519 | return dlopen (); |
michael@0 | 5520 | ; |
michael@0 | 5521 | return 0; |
michael@0 | 5522 | } |
michael@0 | 5523 | _ACEOF |
michael@0 | 5524 | for ac_lib in '' dl; do |
michael@0 | 5525 | if test -z "$ac_lib"; then |
michael@0 | 5526 | ac_res="none required" |
michael@0 | 5527 | else |
michael@0 | 5528 | ac_res=-l$ac_lib |
michael@0 | 5529 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
michael@0 | 5530 | fi |
michael@0 | 5531 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5532 | ac_cv_search_dlopen=$ac_res |
michael@0 | 5533 | fi |
michael@0 | 5534 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5535 | conftest$ac_exeext |
michael@0 | 5536 | if ${ac_cv_search_dlopen+:} false; then : |
michael@0 | 5537 | break |
michael@0 | 5538 | fi |
michael@0 | 5539 | done |
michael@0 | 5540 | if ${ac_cv_search_dlopen+:} false; then : |
michael@0 | 5541 | |
michael@0 | 5542 | else |
michael@0 | 5543 | ac_cv_search_dlopen=no |
michael@0 | 5544 | fi |
michael@0 | 5545 | rm conftest.$ac_ext |
michael@0 | 5546 | LIBS=$ac_func_search_save_LIBS |
michael@0 | 5547 | fi |
michael@0 | 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 |
michael@0 | 5549 | $as_echo "$ac_cv_search_dlopen" >&6; } |
michael@0 | 5550 | ac_res=$ac_cv_search_dlopen |
michael@0 | 5551 | if test "$ac_res" != no; then : |
michael@0 | 5552 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
michael@0 | 5553 | |
michael@0 | 5554 | fi |
michael@0 | 5555 | |
michael@0 | 5556 | for ac_func in dlopen |
michael@0 | 5557 | do : |
michael@0 | 5558 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
michael@0 | 5559 | if test "x$ac_cv_func_dlopen" = xyes; then : |
michael@0 | 5560 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5561 | #define HAVE_DLOPEN 1 |
michael@0 | 5562 | _ACEOF |
michael@0 | 5563 | |
michael@0 | 5564 | fi |
michael@0 | 5565 | done |
michael@0 | 5566 | |
michael@0 | 5567 | |
michael@0 | 5568 | if test "x$ac_cv_func_dlopen" != xyes; then |
michael@0 | 5569 | CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0" |
michael@0 | 5570 | fi |
michael@0 | 5571 | fi |
michael@0 | 5572 | |
michael@0 | 5573 | # Check for miscellanous functions. |
michael@0 | 5574 | # So, use for putil / tools only. |
michael@0 | 5575 | # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY |
michael@0 | 5576 | for ac_func in gettimeofday |
michael@0 | 5577 | do : |
michael@0 | 5578 | ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" |
michael@0 | 5579 | if test "x$ac_cv_func_gettimeofday" = xyes; then : |
michael@0 | 5580 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5581 | #define HAVE_GETTIMEOFDAY 1 |
michael@0 | 5582 | _ACEOF |
michael@0 | 5583 | |
michael@0 | 5584 | fi |
michael@0 | 5585 | done |
michael@0 | 5586 | |
michael@0 | 5587 | |
michael@0 | 5588 | |
michael@0 | 5589 | # Check whether to use the evil rpath or not |
michael@0 | 5590 | # Check whether --enable-rpath was given. |
michael@0 | 5591 | if test "${enable_rpath+set}" = set; then : |
michael@0 | 5592 | enableval=$enable_rpath; case "${enableval}" in |
michael@0 | 5593 | yes|"") ENABLE_RPATH=YES ;; |
michael@0 | 5594 | no) ;; |
michael@0 | 5595 | *) ;; |
michael@0 | 5596 | esac |
michael@0 | 5597 | else |
michael@0 | 5598 | ENABLE_RPATH=NO |
michael@0 | 5599 | |
michael@0 | 5600 | fi |
michael@0 | 5601 | |
michael@0 | 5602 | |
michael@0 | 5603 | |
michael@0 | 5604 | |
michael@0 | 5605 | |
michael@0 | 5606 | ac_ext=cpp |
michael@0 | 5607 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 5608 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 5609 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 5610 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 5611 | |
michael@0 | 5612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5 |
michael@0 | 5613 | $as_echo_n "checking if we have a C++ compiler... " >&6; } |
michael@0 | 5614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5615 | /* end confdefs.h. */ |
michael@0 | 5616 | |
michael@0 | 5617 | int |
michael@0 | 5618 | main () |
michael@0 | 5619 | { |
michael@0 | 5620 | |
michael@0 | 5621 | ; |
michael@0 | 5622 | return 0; |
michael@0 | 5623 | } |
michael@0 | 5624 | _ACEOF |
michael@0 | 5625 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 5626 | cxx_okay=yes |
michael@0 | 5627 | else |
michael@0 | 5628 | cxx_okay=no |
michael@0 | 5629 | fi |
michael@0 | 5630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5631 | if test $cxx_okay = yes |
michael@0 | 5632 | then |
michael@0 | 5633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5 |
michael@0 | 5634 | $as_echo "Good" >&6; } |
michael@0 | 5635 | else |
michael@0 | 5636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
michael@0 | 5637 | $as_echo "no" >&6; } |
michael@0 | 5638 | as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5 |
michael@0 | 5639 | fi |
michael@0 | 5640 | |
michael@0 | 5641 | if [ "$GXX" = yes ]; then |
michael@0 | 5642 | # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x, |
michael@0 | 5643 | # and check that the compiler still works. |
michael@0 | 5644 | if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then |
michael@0 | 5645 | OLD_CXXFLAGS="${CXXFLAGS}" |
michael@0 | 5646 | CXXFLAGS="$CXXFLAGS --std=c++0x" |
michael@0 | 5647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5 |
michael@0 | 5648 | $as_echo_n "checking if we have a C++11 compiler... " >&6; } |
michael@0 | 5649 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5650 | /* end confdefs.h. */ |
michael@0 | 5651 | |
michael@0 | 5652 | int |
michael@0 | 5653 | main () |
michael@0 | 5654 | { |
michael@0 | 5655 | |
michael@0 | 5656 | ; |
michael@0 | 5657 | return 0; |
michael@0 | 5658 | } |
michael@0 | 5659 | _ACEOF |
michael@0 | 5660 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 5661 | cxx11_okay=yes |
michael@0 | 5662 | else |
michael@0 | 5663 | cxx11_okay=no |
michael@0 | 5664 | fi |
michael@0 | 5665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5666 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5 |
michael@0 | 5667 | $as_echo "$cxx11_okay" >&6; } |
michael@0 | 5668 | if [ $cxx11_okay = yes ]; then |
michael@0 | 5669 | { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5 |
michael@0 | 5670 | $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;} |
michael@0 | 5671 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} --std=c++0x" |
michael@0 | 5672 | else |
michael@0 | 5673 | CXXFLAGS="$OLD_CXXFLAGS" |
michael@0 | 5674 | fi |
michael@0 | 5675 | fi |
michael@0 | 5676 | fi |
michael@0 | 5677 | |
michael@0 | 5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5 |
michael@0 | 5679 | $as_echo_n "checking if #include <string> works... " >&6; } |
michael@0 | 5680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5681 | /* end confdefs.h. */ |
michael@0 | 5682 | #include <string> |
michael@0 | 5683 | int |
michael@0 | 5684 | main () |
michael@0 | 5685 | { |
michael@0 | 5686 | |
michael@0 | 5687 | ; |
michael@0 | 5688 | return 0; |
michael@0 | 5689 | } |
michael@0 | 5690 | _ACEOF |
michael@0 | 5691 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 5692 | ac_cv_header_stdstring=yes |
michael@0 | 5693 | else |
michael@0 | 5694 | ac_cv_header_stdstring=no |
michael@0 | 5695 | fi |
michael@0 | 5696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5 |
michael@0 | 5698 | $as_echo "$ac_cv_header_stdstring" >&6; } |
michael@0 | 5699 | if test $ac_cv_header_stdstring = yes |
michael@0 | 5700 | then |
michael@0 | 5701 | U_HAVE_STD_STRING=1 |
michael@0 | 5702 | else |
michael@0 | 5703 | U_HAVE_STD_STRING=0 |
michael@0 | 5704 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0" |
michael@0 | 5705 | fi |
michael@0 | 5706 | |
michael@0 | 5707 | |
michael@0 | 5708 | |
michael@0 | 5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <atomic> works" >&5 |
michael@0 | 5710 | $as_echo_n "checking if #include <atomic> works... " >&6; } |
michael@0 | 5711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5712 | /* end confdefs.h. */ |
michael@0 | 5713 | #include <atomic> |
michael@0 | 5714 | int |
michael@0 | 5715 | main () |
michael@0 | 5716 | { |
michael@0 | 5717 | |
michael@0 | 5718 | ; |
michael@0 | 5719 | return 0; |
michael@0 | 5720 | } |
michael@0 | 5721 | _ACEOF |
michael@0 | 5722 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 5723 | ac_cv_header_atomic=yes |
michael@0 | 5724 | else |
michael@0 | 5725 | ac_cv_header_atomic=no |
michael@0 | 5726 | fi |
michael@0 | 5727 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5 |
michael@0 | 5729 | $as_echo "$ac_cv_header_atomic" >&6; } |
michael@0 | 5730 | if test $ac_cv_header_atomic = yes |
michael@0 | 5731 | then |
michael@0 | 5732 | U_HAVE_ATOMIC=1 |
michael@0 | 5733 | else |
michael@0 | 5734 | U_HAVE_ATOMIC=0 |
michael@0 | 5735 | fi |
michael@0 | 5736 | # Make this available via CPPFLAGS |
michael@0 | 5737 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" |
michael@0 | 5738 | |
michael@0 | 5739 | |
michael@0 | 5740 | ac_ext=c |
michael@0 | 5741 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 5742 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 5743 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 5744 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 5745 | |
michael@0 | 5746 | |
michael@0 | 5747 | # Always build ICU with multi-threading support. |
michael@0 | 5748 | threads=true |
michael@0 | 5749 | ICU_USE_THREADS=1 |
michael@0 | 5750 | OLD_LIBS=${LIBS} |
michael@0 | 5751 | |
michael@0 | 5752 | if test $threads = true; then |
michael@0 | 5753 | # For Compaq Tru64 (OSF1), we must look for pthread_attr_init |
michael@0 | 5754 | # and must do this before seaching for pthread_mutex_destroy, or |
michael@0 | 5755 | # we will pick up libpthreads.so not libpthread.so |
michael@0 | 5756 | # If this fails, then we must test for HPUX specials, before |
michael@0 | 5757 | # moving on to a more generic test |
michael@0 | 5758 | |
michael@0 | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5 |
michael@0 | 5760 | $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; } |
michael@0 | 5761 | if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then : |
michael@0 | 5762 | $as_echo_n "(cached) " >&6 |
michael@0 | 5763 | else |
michael@0 | 5764 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 5765 | LIBS="-lpthread $LIBS" |
michael@0 | 5766 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5767 | /* end confdefs.h. */ |
michael@0 | 5768 | |
michael@0 | 5769 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5770 | Use char because int might match the return type of a GCC |
michael@0 | 5771 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5772 | #ifdef __cplusplus |
michael@0 | 5773 | extern "C" |
michael@0 | 5774 | #endif |
michael@0 | 5775 | char pthread_attr_init (); |
michael@0 | 5776 | int |
michael@0 | 5777 | main () |
michael@0 | 5778 | { |
michael@0 | 5779 | return pthread_attr_init (); |
michael@0 | 5780 | ; |
michael@0 | 5781 | return 0; |
michael@0 | 5782 | } |
michael@0 | 5783 | _ACEOF |
michael@0 | 5784 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5785 | ac_cv_lib_pthread_pthread_attr_init=yes |
michael@0 | 5786 | else |
michael@0 | 5787 | ac_cv_lib_pthread_pthread_attr_init=no |
michael@0 | 5788 | fi |
michael@0 | 5789 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5790 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5791 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 5792 | fi |
michael@0 | 5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 |
michael@0 | 5794 | $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; } |
michael@0 | 5795 | if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then : |
michael@0 | 5796 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5797 | #define HAVE_LIBPTHREAD 1 |
michael@0 | 5798 | _ACEOF |
michael@0 | 5799 | |
michael@0 | 5800 | LIBS="-lpthread $LIBS" |
michael@0 | 5801 | |
michael@0 | 5802 | fi |
michael@0 | 5803 | |
michael@0 | 5804 | if test $ac_cv_lib_pthread_pthread_attr_init = yes; then |
michael@0 | 5805 | ICU_USE_THREADS=1 |
michael@0 | 5806 | else |
michael@0 | 5807 | # Locate the right library for POSIX threads. We look for the |
michael@0 | 5808 | # symbols in the libraries first, because on Solaris libc provides |
michael@0 | 5809 | # pthread_create but libpthread has the real code :( |
michael@0 | 5810 | # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread |
michael@0 | 5811 | # FreeBSD users may need libpthread if they do not have libc_r. |
michael@0 | 5812 | |
michael@0 | 5813 | |
michael@0 | 5814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5 |
michael@0 | 5815 | $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } |
michael@0 | 5816 | if ${ac_cv_search_pthread_mutex_destroy+:} false; then : |
michael@0 | 5817 | $as_echo_n "(cached) " >&6 |
michael@0 | 5818 | else |
michael@0 | 5819 | ac_func_search_save_LIBS="$LIBS" |
michael@0 | 5820 | ac_cv_search_pthread_mutex_destroy="no" |
michael@0 | 5821 | for i in pthread pthreads c_r ; do |
michael@0 | 5822 | LIBS="-l$i $ac_func_search_save_LIBS" |
michael@0 | 5823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5824 | /* end confdefs.h. */ |
michael@0 | 5825 | |
michael@0 | 5826 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5827 | Use char because int might match the return type of a GCC |
michael@0 | 5828 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5829 | #ifdef __cplusplus |
michael@0 | 5830 | extern "C" |
michael@0 | 5831 | #endif |
michael@0 | 5832 | char pthread_mutex_destroy (); |
michael@0 | 5833 | int |
michael@0 | 5834 | main () |
michael@0 | 5835 | { |
michael@0 | 5836 | return pthread_mutex_destroy (); |
michael@0 | 5837 | ; |
michael@0 | 5838 | return 0; |
michael@0 | 5839 | } |
michael@0 | 5840 | _ACEOF |
michael@0 | 5841 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5842 | ac_cv_search_pthread_mutex_destroy="-l$i" |
michael@0 | 5843 | break |
michael@0 | 5844 | fi |
michael@0 | 5845 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5846 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5847 | done |
michael@0 | 5848 | if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then |
michael@0 | 5849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5850 | /* end confdefs.h. */ |
michael@0 | 5851 | |
michael@0 | 5852 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5853 | Use char because int might match the return type of a GCC |
michael@0 | 5854 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5855 | #ifdef __cplusplus |
michael@0 | 5856 | extern "C" |
michael@0 | 5857 | #endif |
michael@0 | 5858 | char pthread_mutex_destroy (); |
michael@0 | 5859 | int |
michael@0 | 5860 | main () |
michael@0 | 5861 | { |
michael@0 | 5862 | return pthread_mutex_destroy (); |
michael@0 | 5863 | ; |
michael@0 | 5864 | return 0; |
michael@0 | 5865 | } |
michael@0 | 5866 | _ACEOF |
michael@0 | 5867 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5868 | ac_cv_search_pthread_mutex_destroy="none required" |
michael@0 | 5869 | fi |
michael@0 | 5870 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5871 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5872 | fi |
michael@0 | 5873 | LIBS="$ac_func_search_save_LIBS" |
michael@0 | 5874 | fi |
michael@0 | 5875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5 |
michael@0 | 5876 | $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } |
michael@0 | 5877 | if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then |
michael@0 | 5878 | test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" |
michael@0 | 5879 | |
michael@0 | 5880 | else : |
michael@0 | 5881 | |
michael@0 | 5882 | fi |
michael@0 | 5883 | |
michael@0 | 5884 | if test "$ac_cv_search_pthread_mutex_destroy" != no; then |
michael@0 | 5885 | ICU_USE_THREADS=1 |
michael@0 | 5886 | else |
michael@0 | 5887 | # For HP 11 |
michael@0 | 5888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 |
michael@0 | 5889 | $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } |
michael@0 | 5890 | if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : |
michael@0 | 5891 | $as_echo_n "(cached) " >&6 |
michael@0 | 5892 | else |
michael@0 | 5893 | ac_check_lib_save_LIBS=$LIBS |
michael@0 | 5894 | LIBS="-lpthread $LIBS" |
michael@0 | 5895 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 5896 | /* end confdefs.h. */ |
michael@0 | 5897 | |
michael@0 | 5898 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 5899 | Use char because int might match the return type of a GCC |
michael@0 | 5900 | builtin and then its argument prototype would still apply. */ |
michael@0 | 5901 | #ifdef __cplusplus |
michael@0 | 5902 | extern "C" |
michael@0 | 5903 | #endif |
michael@0 | 5904 | char pthread_mutex_init (); |
michael@0 | 5905 | int |
michael@0 | 5906 | main () |
michael@0 | 5907 | { |
michael@0 | 5908 | return pthread_mutex_init (); |
michael@0 | 5909 | ; |
michael@0 | 5910 | return 0; |
michael@0 | 5911 | } |
michael@0 | 5912 | _ACEOF |
michael@0 | 5913 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 5914 | ac_cv_lib_pthread_pthread_mutex_init=yes |
michael@0 | 5915 | else |
michael@0 | 5916 | ac_cv_lib_pthread_pthread_mutex_init=no |
michael@0 | 5917 | fi |
michael@0 | 5918 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 5919 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 5920 | LIBS=$ac_check_lib_save_LIBS |
michael@0 | 5921 | fi |
michael@0 | 5922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 |
michael@0 | 5923 | $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } |
michael@0 | 5924 | if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : |
michael@0 | 5925 | cat >>confdefs.h <<_ACEOF |
michael@0 | 5926 | #define HAVE_LIBPTHREAD 1 |
michael@0 | 5927 | _ACEOF |
michael@0 | 5928 | |
michael@0 | 5929 | LIBS="-lpthread $LIBS" |
michael@0 | 5930 | |
michael@0 | 5931 | fi |
michael@0 | 5932 | |
michael@0 | 5933 | if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then |
michael@0 | 5934 | ICU_USE_THREADS=1 |
michael@0 | 5935 | fi |
michael@0 | 5936 | fi |
michael@0 | 5937 | |
michael@0 | 5938 | ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" |
michael@0 | 5939 | if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : |
michael@0 | 5940 | |
michael@0 | 5941 | fi |
michael@0 | 5942 | |
michael@0 | 5943 | |
michael@0 | 5944 | if test $ac_cv_func_pthread_mutex_lock = yes; then |
michael@0 | 5945 | ICU_USE_THREADS=1 |
michael@0 | 5946 | fi |
michael@0 | 5947 | fi |
michael@0 | 5948 | # Check to see if we are using CygWin with MSVC |
michael@0 | 5949 | case "${host}" in |
michael@0 | 5950 | *-pc-cygwin*|*-pc-mingw*) |
michael@0 | 5951 | # For gcc, the thread options are set by mh-mingw/mh-cygwin |
michael@0 | 5952 | # For msvc, the thread options are set by runConfigureICU |
michael@0 | 5953 | ICU_USE_THREADS=1 |
michael@0 | 5954 | ;; |
michael@0 | 5955 | *-*-hpux*) |
michael@0 | 5956 | # Add -mt because it does several nice things on newer compilers. |
michael@0 | 5957 | case "${icu_cv_host_frag}" in |
michael@0 | 5958 | mh-hpux-acc) |
michael@0 | 5959 | OLD_CXXFLAGS="${CXXFLAGS}" |
michael@0 | 5960 | CXXFLAGS="${CXXFLAGS} -mt" |
michael@0 | 5961 | if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then |
michael@0 | 5962 | CXXFLAGS="${OLD_CXXFLAGS}" |
michael@0 | 5963 | else |
michael@0 | 5964 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt" |
michael@0 | 5965 | fi |
michael@0 | 5966 | ;; |
michael@0 | 5967 | esac |
michael@0 | 5968 | ;; |
michael@0 | 5969 | *-*-solaris*) |
michael@0 | 5970 | case "${icu_cv_host_frag}" in |
michael@0 | 5971 | mh-solaris) |
michael@0 | 5972 | LIBS="${LIBS} -mt" |
michael@0 | 5973 | ;; |
michael@0 | 5974 | esac |
michael@0 | 5975 | ;; |
michael@0 | 5976 | esac |
michael@0 | 5977 | fi |
michael@0 | 5978 | |
michael@0 | 5979 | # Check whether --enable-weak-threads was given. |
michael@0 | 5980 | if test "${enable_weak_threads+set}" = set; then : |
michael@0 | 5981 | enableval=$enable_weak_threads; case "${enableval}" in |
michael@0 | 5982 | yes) |
michael@0 | 5983 | LIB_THREAD="${LIBS%${OLD_LIBS}}" |
michael@0 | 5984 | LIBS=${OLD_LIBS} |
michael@0 | 5985 | ;; |
michael@0 | 5986 | no) ;; |
michael@0 | 5987 | *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;; |
michael@0 | 5988 | esac |
michael@0 | 5989 | fi |
michael@0 | 5990 | |
michael@0 | 5991 | |
michael@0 | 5992 | |
michael@0 | 5993 | # Check for mmap() |
michael@0 | 5994 | |
michael@0 | 5995 | # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. |
michael@0 | 5996 | # Do this check instead. |
michael@0 | 5997 | HAVE_MMAP=0 |
michael@0 | 5998 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5 |
michael@0 | 5999 | $as_echo_n "checking for mmap... " >&6; } |
michael@0 | 6000 | if ${ac_cv_func_mmap_ok+:} false; then : |
michael@0 | 6001 | $as_echo_n "(cached) " >&6 |
michael@0 | 6002 | else |
michael@0 | 6003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6004 | /* end confdefs.h. */ |
michael@0 | 6005 | #include <unistd.h> |
michael@0 | 6006 | #include <sys/mman.h> |
michael@0 | 6007 | #include <sys/stat.h> |
michael@0 | 6008 | #include <fcntl.h> |
michael@0 | 6009 | int |
michael@0 | 6010 | main () |
michael@0 | 6011 | { |
michael@0 | 6012 | mmap((void *)0, 0, PROT_READ, 0, 0, 0); |
michael@0 | 6013 | ; |
michael@0 | 6014 | return 0; |
michael@0 | 6015 | } |
michael@0 | 6016 | _ACEOF |
michael@0 | 6017 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6018 | ac_cv_func_mmap_ok=yes |
michael@0 | 6019 | else |
michael@0 | 6020 | ac_cv_func_mmap_ok=no |
michael@0 | 6021 | fi |
michael@0 | 6022 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6023 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6024 | fi |
michael@0 | 6025 | |
michael@0 | 6026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5 |
michael@0 | 6027 | $as_echo "$ac_cv_func_mmap_ok" >&6; } |
michael@0 | 6028 | if test $ac_cv_func_mmap_ok = yes |
michael@0 | 6029 | then |
michael@0 | 6030 | HAVE_MMAP=1 |
michael@0 | 6031 | else |
michael@0 | 6032 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0" |
michael@0 | 6033 | fi |
michael@0 | 6034 | |
michael@0 | 6035 | |
michael@0 | 6036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5 |
michael@0 | 6037 | $as_echo_n "checking for genccode assembly... " >&6; } |
michael@0 | 6038 | |
michael@0 | 6039 | # Check to see if genccode can generate simple assembly. |
michael@0 | 6040 | GENCCODE_ASSEMBLY= |
michael@0 | 6041 | case "${host}" in |
michael@0 | 6042 | *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu) |
michael@0 | 6043 | if test "$GCC" = yes; then |
michael@0 | 6044 | # We're using gcc, and the simple -a gcc command line works for genccode |
michael@0 | 6045 | GENCCODE_ASSEMBLY="-a gcc" |
michael@0 | 6046 | fi ;; |
michael@0 | 6047 | i*86-*-solaris*) |
michael@0 | 6048 | if test "$GCC" = yes; then |
michael@0 | 6049 | # When using gcc, look if we're also using GNU as. |
michael@0 | 6050 | # When using GNU as, the simple -a gcc command line works for genccode. |
michael@0 | 6051 | asv=`"${CC}" -print-prog-name=as 2>/dev/null` |
michael@0 | 6052 | asv=`"${asv}" --version 2>/dev/null` |
michael@0 | 6053 | case "X${asv}" in |
michael@0 | 6054 | X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; |
michael@0 | 6055 | X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; |
michael@0 | 6056 | esac |
michael@0 | 6057 | unset asv |
michael@0 | 6058 | else |
michael@0 | 6059 | GENCCODE_ASSEMBLY="-a sun-x86" |
michael@0 | 6060 | fi ;; |
michael@0 | 6061 | sparc-*-solaris*) |
michael@0 | 6062 | GENCCODE_ASSEMBLY="-a sun" |
michael@0 | 6063 | ;; |
michael@0 | 6064 | ia64-*-hpux*) |
michael@0 | 6065 | GENCCODE_ASSEMBLY="-a aCC-ia64" |
michael@0 | 6066 | ;; |
michael@0 | 6067 | esac |
michael@0 | 6068 | |
michael@0 | 6069 | |
michael@0 | 6070 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5 |
michael@0 | 6071 | $as_echo "$GENCCODE_ASSEMBLY" >&6; } |
michael@0 | 6072 | |
michael@0 | 6073 | # Checks for header files |
michael@0 | 6074 | for ac_header in inttypes.h |
michael@0 | 6075 | do : |
michael@0 | 6076 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
michael@0 | 6077 | if test "x$ac_cv_header_inttypes_h" = xyes; then : |
michael@0 | 6078 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6079 | #define HAVE_INTTYPES_H 1 |
michael@0 | 6080 | _ACEOF |
michael@0 | 6081 | |
michael@0 | 6082 | fi |
michael@0 | 6083 | |
michael@0 | 6084 | done |
michael@0 | 6085 | |
michael@0 | 6086 | if test $ac_cv_header_inttypes_h = no; then |
michael@0 | 6087 | U_HAVE_INTTYPES_H=0 |
michael@0 | 6088 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
michael@0 | 6089 | else |
michael@0 | 6090 | U_HAVE_INTTYPES_H=1 |
michael@0 | 6091 | fi |
michael@0 | 6092 | if test "$CC" = ccc; then |
michael@0 | 6093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5 |
michael@0 | 6094 | $as_echo "\"C compiler set to CCC ${CC}\" " >&6; } |
michael@0 | 6095 | case "${host}" in |
michael@0 | 6096 | alpha*-*-*) U_HAVE_INTTYPES_H=0; |
michael@0 | 6097 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" |
michael@0 | 6098 | esac |
michael@0 | 6099 | fi |
michael@0 | 6100 | |
michael@0 | 6101 | |
michael@0 | 6102 | |
michael@0 | 6103 | for ac_header in dirent.h |
michael@0 | 6104 | do : |
michael@0 | 6105 | ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" |
michael@0 | 6106 | if test "x$ac_cv_header_dirent_h" = xyes; then : |
michael@0 | 6107 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6108 | #define HAVE_DIRENT_H 1 |
michael@0 | 6109 | _ACEOF |
michael@0 | 6110 | |
michael@0 | 6111 | fi |
michael@0 | 6112 | |
michael@0 | 6113 | done |
michael@0 | 6114 | |
michael@0 | 6115 | if test $ac_cv_header_dirent_h = no; then |
michael@0 | 6116 | U_HAVE_DIRENT_H=0 |
michael@0 | 6117 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0" |
michael@0 | 6118 | else |
michael@0 | 6119 | U_HAVE_DIRENT_H=1 |
michael@0 | 6120 | fi |
michael@0 | 6121 | |
michael@0 | 6122 | |
michael@0 | 6123 | |
michael@0 | 6124 | # Check for endianness |
michael@0 | 6125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
michael@0 | 6126 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
michael@0 | 6127 | if ${ac_cv_c_bigendian+:} false; then : |
michael@0 | 6128 | $as_echo_n "(cached) " >&6 |
michael@0 | 6129 | else |
michael@0 | 6130 | ac_cv_c_bigendian=unknown |
michael@0 | 6131 | # See if we're dealing with a universal compiler. |
michael@0 | 6132 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6133 | /* end confdefs.h. */ |
michael@0 | 6134 | #ifndef __APPLE_CC__ |
michael@0 | 6135 | not a universal capable compiler |
michael@0 | 6136 | #endif |
michael@0 | 6137 | typedef int dummy; |
michael@0 | 6138 | |
michael@0 | 6139 | _ACEOF |
michael@0 | 6140 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6141 | |
michael@0 | 6142 | # Check for potential -arch flags. It is not universal unless |
michael@0 | 6143 | # there are at least two -arch flags with different values. |
michael@0 | 6144 | ac_arch= |
michael@0 | 6145 | ac_prev= |
michael@0 | 6146 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
michael@0 | 6147 | if test -n "$ac_prev"; then |
michael@0 | 6148 | case $ac_word in |
michael@0 | 6149 | i?86 | x86_64 | ppc | ppc64) |
michael@0 | 6150 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
michael@0 | 6151 | ac_arch=$ac_word |
michael@0 | 6152 | else |
michael@0 | 6153 | ac_cv_c_bigendian=universal |
michael@0 | 6154 | break |
michael@0 | 6155 | fi |
michael@0 | 6156 | ;; |
michael@0 | 6157 | esac |
michael@0 | 6158 | ac_prev= |
michael@0 | 6159 | elif test "x$ac_word" = "x-arch"; then |
michael@0 | 6160 | ac_prev=arch |
michael@0 | 6161 | fi |
michael@0 | 6162 | done |
michael@0 | 6163 | fi |
michael@0 | 6164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6165 | if test $ac_cv_c_bigendian = unknown; then |
michael@0 | 6166 | # See if sys/param.h defines the BYTE_ORDER macro. |
michael@0 | 6167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6168 | /* end confdefs.h. */ |
michael@0 | 6169 | #include <sys/types.h> |
michael@0 | 6170 | #include <sys/param.h> |
michael@0 | 6171 | |
michael@0 | 6172 | int |
michael@0 | 6173 | main () |
michael@0 | 6174 | { |
michael@0 | 6175 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
michael@0 | 6176 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
michael@0 | 6177 | && LITTLE_ENDIAN) |
michael@0 | 6178 | bogus endian macros |
michael@0 | 6179 | #endif |
michael@0 | 6180 | |
michael@0 | 6181 | ; |
michael@0 | 6182 | return 0; |
michael@0 | 6183 | } |
michael@0 | 6184 | _ACEOF |
michael@0 | 6185 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6186 | # It does; now see whether it defined to BIG_ENDIAN or not. |
michael@0 | 6187 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6188 | /* end confdefs.h. */ |
michael@0 | 6189 | #include <sys/types.h> |
michael@0 | 6190 | #include <sys/param.h> |
michael@0 | 6191 | |
michael@0 | 6192 | int |
michael@0 | 6193 | main () |
michael@0 | 6194 | { |
michael@0 | 6195 | #if BYTE_ORDER != BIG_ENDIAN |
michael@0 | 6196 | not big endian |
michael@0 | 6197 | #endif |
michael@0 | 6198 | |
michael@0 | 6199 | ; |
michael@0 | 6200 | return 0; |
michael@0 | 6201 | } |
michael@0 | 6202 | _ACEOF |
michael@0 | 6203 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6204 | ac_cv_c_bigendian=yes |
michael@0 | 6205 | else |
michael@0 | 6206 | ac_cv_c_bigendian=no |
michael@0 | 6207 | fi |
michael@0 | 6208 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6209 | fi |
michael@0 | 6210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6211 | fi |
michael@0 | 6212 | if test $ac_cv_c_bigendian = unknown; then |
michael@0 | 6213 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
michael@0 | 6214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6215 | /* end confdefs.h. */ |
michael@0 | 6216 | #include <limits.h> |
michael@0 | 6217 | |
michael@0 | 6218 | int |
michael@0 | 6219 | main () |
michael@0 | 6220 | { |
michael@0 | 6221 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
michael@0 | 6222 | bogus endian macros |
michael@0 | 6223 | #endif |
michael@0 | 6224 | |
michael@0 | 6225 | ; |
michael@0 | 6226 | return 0; |
michael@0 | 6227 | } |
michael@0 | 6228 | _ACEOF |
michael@0 | 6229 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6230 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
michael@0 | 6231 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6232 | /* end confdefs.h. */ |
michael@0 | 6233 | #include <limits.h> |
michael@0 | 6234 | |
michael@0 | 6235 | int |
michael@0 | 6236 | main () |
michael@0 | 6237 | { |
michael@0 | 6238 | #ifndef _BIG_ENDIAN |
michael@0 | 6239 | not big endian |
michael@0 | 6240 | #endif |
michael@0 | 6241 | |
michael@0 | 6242 | ; |
michael@0 | 6243 | return 0; |
michael@0 | 6244 | } |
michael@0 | 6245 | _ACEOF |
michael@0 | 6246 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6247 | ac_cv_c_bigendian=yes |
michael@0 | 6248 | else |
michael@0 | 6249 | ac_cv_c_bigendian=no |
michael@0 | 6250 | fi |
michael@0 | 6251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6252 | fi |
michael@0 | 6253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6254 | fi |
michael@0 | 6255 | if test $ac_cv_c_bigendian = unknown; then |
michael@0 | 6256 | # Compile a test program. |
michael@0 | 6257 | if test "$cross_compiling" = yes; then : |
michael@0 | 6258 | # Try to guess by grepping values from an object file. |
michael@0 | 6259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6260 | /* end confdefs.h. */ |
michael@0 | 6261 | short int ascii_mm[] = |
michael@0 | 6262 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
michael@0 | 6263 | short int ascii_ii[] = |
michael@0 | 6264 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
michael@0 | 6265 | int use_ascii (int i) { |
michael@0 | 6266 | return ascii_mm[i] + ascii_ii[i]; |
michael@0 | 6267 | } |
michael@0 | 6268 | short int ebcdic_ii[] = |
michael@0 | 6269 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
michael@0 | 6270 | short int ebcdic_mm[] = |
michael@0 | 6271 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
michael@0 | 6272 | int use_ebcdic (int i) { |
michael@0 | 6273 | return ebcdic_mm[i] + ebcdic_ii[i]; |
michael@0 | 6274 | } |
michael@0 | 6275 | extern int foo; |
michael@0 | 6276 | |
michael@0 | 6277 | int |
michael@0 | 6278 | main () |
michael@0 | 6279 | { |
michael@0 | 6280 | return use_ascii (foo) == use_ebcdic (foo); |
michael@0 | 6281 | ; |
michael@0 | 6282 | return 0; |
michael@0 | 6283 | } |
michael@0 | 6284 | _ACEOF |
michael@0 | 6285 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 6286 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
michael@0 | 6287 | ac_cv_c_bigendian=yes |
michael@0 | 6288 | fi |
michael@0 | 6289 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
michael@0 | 6290 | if test "$ac_cv_c_bigendian" = unknown; then |
michael@0 | 6291 | ac_cv_c_bigendian=no |
michael@0 | 6292 | else |
michael@0 | 6293 | # finding both strings is unlikely to happen, but who knows? |
michael@0 | 6294 | ac_cv_c_bigendian=unknown |
michael@0 | 6295 | fi |
michael@0 | 6296 | fi |
michael@0 | 6297 | fi |
michael@0 | 6298 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 6299 | else |
michael@0 | 6300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6301 | /* end confdefs.h. */ |
michael@0 | 6302 | $ac_includes_default |
michael@0 | 6303 | int |
michael@0 | 6304 | main () |
michael@0 | 6305 | { |
michael@0 | 6306 | |
michael@0 | 6307 | /* Are we little or big endian? From Harbison&Steele. */ |
michael@0 | 6308 | union |
michael@0 | 6309 | { |
michael@0 | 6310 | long int l; |
michael@0 | 6311 | char c[sizeof (long int)]; |
michael@0 | 6312 | } u; |
michael@0 | 6313 | u.l = 1; |
michael@0 | 6314 | return u.c[sizeof (long int) - 1] == 1; |
michael@0 | 6315 | |
michael@0 | 6316 | ; |
michael@0 | 6317 | return 0; |
michael@0 | 6318 | } |
michael@0 | 6319 | _ACEOF |
michael@0 | 6320 | if ac_fn_c_try_run "$LINENO"; then : |
michael@0 | 6321 | ac_cv_c_bigendian=no |
michael@0 | 6322 | else |
michael@0 | 6323 | ac_cv_c_bigendian=yes |
michael@0 | 6324 | fi |
michael@0 | 6325 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
michael@0 | 6326 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
michael@0 | 6327 | fi |
michael@0 | 6328 | |
michael@0 | 6329 | fi |
michael@0 | 6330 | fi |
michael@0 | 6331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
michael@0 | 6332 | $as_echo "$ac_cv_c_bigendian" >&6; } |
michael@0 | 6333 | case $ac_cv_c_bigendian in #( |
michael@0 | 6334 | yes) |
michael@0 | 6335 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
michael@0 | 6336 | ;; #( |
michael@0 | 6337 | no) |
michael@0 | 6338 | ;; #( |
michael@0 | 6339 | universal) |
michael@0 | 6340 | |
michael@0 | 6341 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
michael@0 | 6342 | |
michael@0 | 6343 | ;; #( |
michael@0 | 6344 | *) |
michael@0 | 6345 | as_fn_error $? "unknown endianness |
michael@0 | 6346 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
michael@0 | 6347 | esac |
michael@0 | 6348 | |
michael@0 | 6349 | if test $ac_cv_c_bigendian = no; then |
michael@0 | 6350 | U_IS_BIG_ENDIAN=0 |
michael@0 | 6351 | U_ENDIAN_CHAR="l" |
michael@0 | 6352 | else |
michael@0 | 6353 | U_IS_BIG_ENDIAN=1 |
michael@0 | 6354 | U_ENDIAN_CHAR="b" |
michael@0 | 6355 | fi |
michael@0 | 6356 | |
michael@0 | 6357 | |
michael@0 | 6358 | # Do various POSIX related checks |
michael@0 | 6359 | U_HAVE_NL_LANGINFO_CODESET=0 |
michael@0 | 6360 | U_NL_LANGINFO_CODESET=-1 |
michael@0 | 6361 | ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" |
michael@0 | 6362 | if test "x$ac_cv_func_nl_langinfo" = xyes; then : |
michael@0 | 6363 | U_HAVE_NL_LANGINFO=1 |
michael@0 | 6364 | else |
michael@0 | 6365 | U_HAVE_NL_LANGINFO=0 |
michael@0 | 6366 | fi |
michael@0 | 6367 | |
michael@0 | 6368 | if test $U_HAVE_NL_LANGINFO -eq 1; then |
michael@0 | 6369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5 |
michael@0 | 6370 | $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; } |
michael@0 | 6371 | if ${ac_cv_nl_langinfo_codeset+:} false; then : |
michael@0 | 6372 | $as_echo_n "(cached) " >&6 |
michael@0 | 6373 | else |
michael@0 | 6374 | ac_cv_nl_langinfo_codeset="unknown" |
michael@0 | 6375 | for a in CODESET _NL_CTYPE_CODESET_NAME; do |
michael@0 | 6376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6377 | /* end confdefs.h. */ |
michael@0 | 6378 | #include <langinfo.h> |
michael@0 | 6379 | int |
michael@0 | 6380 | main () |
michael@0 | 6381 | { |
michael@0 | 6382 | nl_langinfo($a); |
michael@0 | 6383 | ; |
michael@0 | 6384 | return 0; |
michael@0 | 6385 | } |
michael@0 | 6386 | _ACEOF |
michael@0 | 6387 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6388 | ac_cv_nl_langinfo_codeset="$a"; break |
michael@0 | 6389 | fi |
michael@0 | 6390 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6391 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6392 | done |
michael@0 | 6393 | fi |
michael@0 | 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5 |
michael@0 | 6395 | $as_echo "$ac_cv_nl_langinfo_codeset" >&6; } |
michael@0 | 6396 | if test x$ac_cv_nl_langinfo_codeset != xunknown |
michael@0 | 6397 | then |
michael@0 | 6398 | U_HAVE_NL_LANGINFO_CODESET=1 |
michael@0 | 6399 | U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset |
michael@0 | 6400 | if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET" |
michael@0 | 6401 | then |
michael@0 | 6402 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}" |
michael@0 | 6403 | fi |
michael@0 | 6404 | else |
michael@0 | 6405 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0" |
michael@0 | 6406 | fi |
michael@0 | 6407 | fi |
michael@0 | 6408 | |
michael@0 | 6409 | |
michael@0 | 6410 | |
michael@0 | 6411 | # Namespace support checks |
michael@0 | 6412 | ac_ext=cpp |
michael@0 | 6413 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 6414 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 6415 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 6416 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 6417 | |
michael@0 | 6418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5 |
michael@0 | 6419 | $as_echo_n "checking for namespace support... " >&6; } |
michael@0 | 6420 | if ${ac_cv_namespace_ok+:} false; then : |
michael@0 | 6421 | $as_echo_n "(cached) " >&6 |
michael@0 | 6422 | else |
michael@0 | 6423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6424 | /* end confdefs.h. */ |
michael@0 | 6425 | namespace x_version {void f(){}} |
michael@0 | 6426 | namespace x = x_version; |
michael@0 | 6427 | using namespace x_version; |
michael@0 | 6428 | |
michael@0 | 6429 | int |
michael@0 | 6430 | main () |
michael@0 | 6431 | { |
michael@0 | 6432 | f(); |
michael@0 | 6433 | ; |
michael@0 | 6434 | return 0; |
michael@0 | 6435 | } |
michael@0 | 6436 | _ACEOF |
michael@0 | 6437 | if ac_fn_cxx_try_link "$LINENO"; then : |
michael@0 | 6438 | ac_cv_namespace_ok=yes |
michael@0 | 6439 | else |
michael@0 | 6440 | ac_cv_namespace_ok=no |
michael@0 | 6441 | fi |
michael@0 | 6442 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6443 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6444 | fi |
michael@0 | 6445 | |
michael@0 | 6446 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5 |
michael@0 | 6447 | $as_echo "$ac_cv_namespace_ok" >&6; } |
michael@0 | 6448 | if test $ac_cv_namespace_ok = no |
michael@0 | 6449 | then |
michael@0 | 6450 | as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5 |
michael@0 | 6451 | fi |
michael@0 | 6452 | |
michael@0 | 6453 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5 |
michael@0 | 6454 | $as_echo_n "checking for properly overriding new and delete... " >&6; } |
michael@0 | 6455 | U_OVERRIDE_CXX_ALLOCATION=0 |
michael@0 | 6456 | U_HAVE_PLACEMENT_NEW=0 |
michael@0 | 6457 | if ${ac_cv_override_cxx_allocation_ok+:} false; then : |
michael@0 | 6458 | $as_echo_n "(cached) " >&6 |
michael@0 | 6459 | else |
michael@0 | 6460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6461 | /* end confdefs.h. */ |
michael@0 | 6462 | #include <stdlib.h> |
michael@0 | 6463 | class UMemory { |
michael@0 | 6464 | public: |
michael@0 | 6465 | void *operator new(size_t size) {return malloc(size);} |
michael@0 | 6466 | void *operator new[](size_t size) {return malloc(size);} |
michael@0 | 6467 | void operator delete(void *p) {free(p);} |
michael@0 | 6468 | void operator delete[](void *p) {free(p);} |
michael@0 | 6469 | }; |
michael@0 | 6470 | |
michael@0 | 6471 | int |
michael@0 | 6472 | main () |
michael@0 | 6473 | { |
michael@0 | 6474 | |
michael@0 | 6475 | ; |
michael@0 | 6476 | return 0; |
michael@0 | 6477 | } |
michael@0 | 6478 | _ACEOF |
michael@0 | 6479 | if ac_fn_cxx_try_link "$LINENO"; then : |
michael@0 | 6480 | ac_cv_override_cxx_allocation_ok=yes |
michael@0 | 6481 | else |
michael@0 | 6482 | ac_cv_override_cxx_allocation_ok=no |
michael@0 | 6483 | fi |
michael@0 | 6484 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6485 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6486 | fi |
michael@0 | 6487 | |
michael@0 | 6488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5 |
michael@0 | 6489 | $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; } |
michael@0 | 6490 | if test $ac_cv_override_cxx_allocation_ok = yes |
michael@0 | 6491 | then |
michael@0 | 6492 | U_OVERRIDE_CXX_ALLOCATION=1 |
michael@0 | 6493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5 |
michael@0 | 6494 | $as_echo_n "checking for placement new and delete... " >&6; } |
michael@0 | 6495 | if ${ac_cv_override_placement_new_ok+:} false; then : |
michael@0 | 6496 | $as_echo_n "(cached) " >&6 |
michael@0 | 6497 | else |
michael@0 | 6498 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6499 | /* end confdefs.h. */ |
michael@0 | 6500 | #include <stdlib.h> |
michael@0 | 6501 | class UMemory { |
michael@0 | 6502 | public: |
michael@0 | 6503 | void *operator new(size_t size) {return malloc(size);} |
michael@0 | 6504 | void *operator new[](size_t size) {return malloc(size);} |
michael@0 | 6505 | void operator delete(void *p) {free(p);} |
michael@0 | 6506 | void operator delete[](void *p) {free(p);} |
michael@0 | 6507 | void * operator new(size_t, void *ptr) { return ptr; } |
michael@0 | 6508 | void operator delete(void *, void *) {} |
michael@0 | 6509 | }; |
michael@0 | 6510 | |
michael@0 | 6511 | int |
michael@0 | 6512 | main () |
michael@0 | 6513 | { |
michael@0 | 6514 | |
michael@0 | 6515 | ; |
michael@0 | 6516 | return 0; |
michael@0 | 6517 | } |
michael@0 | 6518 | _ACEOF |
michael@0 | 6519 | if ac_fn_cxx_try_link "$LINENO"; then : |
michael@0 | 6520 | ac_cv_override_placement_new_ok=yes |
michael@0 | 6521 | else |
michael@0 | 6522 | ac_cv_override_placement_new_ok=no |
michael@0 | 6523 | fi |
michael@0 | 6524 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6525 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6526 | fi |
michael@0 | 6527 | |
michael@0 | 6528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5 |
michael@0 | 6529 | $as_echo "$ac_cv_override_placement_new_ok" >&6; } |
michael@0 | 6530 | if test $ac_cv_override_placement_new_ok = yes |
michael@0 | 6531 | then |
michael@0 | 6532 | U_HAVE_PLACEMENT_NEW=1 |
michael@0 | 6533 | else |
michael@0 | 6534 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0" |
michael@0 | 6535 | fi |
michael@0 | 6536 | else |
michael@0 | 6537 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0" |
michael@0 | 6538 | fi |
michael@0 | 6539 | |
michael@0 | 6540 | |
michael@0 | 6541 | |
michael@0 | 6542 | ac_ext=c |
michael@0 | 6543 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 6544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 6545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 6546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 6547 | |
michael@0 | 6548 | ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" |
michael@0 | 6549 | if test "x$ac_cv_func_popen" = xyes; then : |
michael@0 | 6550 | |
michael@0 | 6551 | fi |
michael@0 | 6552 | |
michael@0 | 6553 | if test x$ac_cv_func_popen = xyes |
michael@0 | 6554 | then |
michael@0 | 6555 | U_HAVE_POPEN=1 |
michael@0 | 6556 | else |
michael@0 | 6557 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0" |
michael@0 | 6558 | U_HAVE_POPEN=0 |
michael@0 | 6559 | fi |
michael@0 | 6560 | |
michael@0 | 6561 | |
michael@0 | 6562 | ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" |
michael@0 | 6563 | if test "x$ac_cv_func_tzset" = xyes; then : |
michael@0 | 6564 | |
michael@0 | 6565 | fi |
michael@0 | 6566 | |
michael@0 | 6567 | U_HAVE_TZSET=0 |
michael@0 | 6568 | if test x$ac_cv_func_tzset = xyes |
michael@0 | 6569 | then |
michael@0 | 6570 | U_TZSET=tzset |
michael@0 | 6571 | U_HAVE_TZSET=1 |
michael@0 | 6572 | else |
michael@0 | 6573 | ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset" |
michael@0 | 6574 | if test "x$ac_cv_func__tzset" = xyes; then : |
michael@0 | 6575 | |
michael@0 | 6576 | fi |
michael@0 | 6577 | |
michael@0 | 6578 | if test x$ac_cv_func__tzset = xyes |
michael@0 | 6579 | then |
michael@0 | 6580 | U_TZSET=_tzset |
michael@0 | 6581 | U_HAVE_TZSET=1 |
michael@0 | 6582 | else |
michael@0 | 6583 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0" |
michael@0 | 6584 | fi |
michael@0 | 6585 | fi |
michael@0 | 6586 | |
michael@0 | 6587 | |
michael@0 | 6588 | |
michael@0 | 6589 | U_HAVE_TZNAME=0 |
michael@0 | 6590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
michael@0 | 6591 | $as_echo_n "checking for tzname... " >&6; } |
michael@0 | 6592 | if ${ac_cv_var_tzname+:} false; then : |
michael@0 | 6593 | $as_echo_n "(cached) " >&6 |
michael@0 | 6594 | else |
michael@0 | 6595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6596 | /* end confdefs.h. */ |
michael@0 | 6597 | #ifndef __USE_POSIX |
michael@0 | 6598 | #define __USE_POSIX |
michael@0 | 6599 | #endif |
michael@0 | 6600 | #include <stdlib.h> |
michael@0 | 6601 | #include <time.h> |
michael@0 | 6602 | #ifndef tzname /* For SGI. */ |
michael@0 | 6603 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
michael@0 | 6604 | #endif |
michael@0 | 6605 | int |
michael@0 | 6606 | main () |
michael@0 | 6607 | { |
michael@0 | 6608 | atoi(*tzname); |
michael@0 | 6609 | ; |
michael@0 | 6610 | return 0; |
michael@0 | 6611 | } |
michael@0 | 6612 | _ACEOF |
michael@0 | 6613 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6614 | ac_cv_var_tzname=yes |
michael@0 | 6615 | else |
michael@0 | 6616 | ac_cv_var_tzname=no |
michael@0 | 6617 | fi |
michael@0 | 6618 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6619 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6620 | fi |
michael@0 | 6621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
michael@0 | 6622 | $as_echo "$ac_cv_var_tzname" >&6; } |
michael@0 | 6623 | if test $ac_cv_var_tzname = yes; then |
michael@0 | 6624 | U_TZNAME=tzname |
michael@0 | 6625 | U_HAVE_TZNAME=1 |
michael@0 | 6626 | else |
michael@0 | 6627 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5 |
michael@0 | 6628 | $as_echo_n "checking for _tzname... " >&6; } |
michael@0 | 6629 | if ${ac_cv_var__tzname+:} false; then : |
michael@0 | 6630 | $as_echo_n "(cached) " >&6 |
michael@0 | 6631 | else |
michael@0 | 6632 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6633 | /* end confdefs.h. */ |
michael@0 | 6634 | #include <stdlib.h> |
michael@0 | 6635 | #include <time.h> |
michael@0 | 6636 | extern char *_tzname[]; |
michael@0 | 6637 | int |
michael@0 | 6638 | main () |
michael@0 | 6639 | { |
michael@0 | 6640 | atoi(*_tzname); |
michael@0 | 6641 | ; |
michael@0 | 6642 | return 0; |
michael@0 | 6643 | } |
michael@0 | 6644 | _ACEOF |
michael@0 | 6645 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6646 | ac_cv_var__tzname=yes |
michael@0 | 6647 | else |
michael@0 | 6648 | ac_cv_var__tzname=no |
michael@0 | 6649 | fi |
michael@0 | 6650 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6651 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6652 | fi |
michael@0 | 6653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5 |
michael@0 | 6654 | $as_echo "$ac_cv_var__tzname" >&6; } |
michael@0 | 6655 | if test $ac_cv_var__tzname = yes; then |
michael@0 | 6656 | U_TZNAME=_tzname |
michael@0 | 6657 | U_HAVE_TZNAME=1 |
michael@0 | 6658 | else |
michael@0 | 6659 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0" |
michael@0 | 6660 | fi |
michael@0 | 6661 | fi |
michael@0 | 6662 | |
michael@0 | 6663 | |
michael@0 | 6664 | |
michael@0 | 6665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 |
michael@0 | 6666 | $as_echo_n "checking for timezone... " >&6; } |
michael@0 | 6667 | if ${ac_cv_var_timezone+:} false; then : |
michael@0 | 6668 | $as_echo_n "(cached) " >&6 |
michael@0 | 6669 | else |
michael@0 | 6670 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6671 | /* end confdefs.h. */ |
michael@0 | 6672 | #ifndef __USE_POSIX |
michael@0 | 6673 | #define __USE_POSIX |
michael@0 | 6674 | #endif |
michael@0 | 6675 | #ifndef __USE_XOPEN |
michael@0 | 6676 | #define __USE_XOPEN |
michael@0 | 6677 | #endif |
michael@0 | 6678 | #include <time.h> |
michael@0 | 6679 | |
michael@0 | 6680 | int |
michael@0 | 6681 | main () |
michael@0 | 6682 | { |
michael@0 | 6683 | timezone = 1; |
michael@0 | 6684 | ; |
michael@0 | 6685 | return 0; |
michael@0 | 6686 | } |
michael@0 | 6687 | _ACEOF |
michael@0 | 6688 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6689 | ac_cv_var_timezone=yes |
michael@0 | 6690 | else |
michael@0 | 6691 | ac_cv_var_timezone=no |
michael@0 | 6692 | fi |
michael@0 | 6693 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6694 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6695 | fi |
michael@0 | 6696 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5 |
michael@0 | 6697 | $as_echo "$ac_cv_var_timezone" >&6; } |
michael@0 | 6698 | U_HAVE_TIMEZONE=0 |
michael@0 | 6699 | if test $ac_cv_var_timezone = yes; then |
michael@0 | 6700 | U_TIMEZONE=timezone |
michael@0 | 6701 | U_HAVE_TIMEZONE=1 |
michael@0 | 6702 | else |
michael@0 | 6703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5 |
michael@0 | 6704 | $as_echo_n "checking for __timezone... " >&6; } |
michael@0 | 6705 | if ${ac_cv_var___timezone+:} false; then : |
michael@0 | 6706 | $as_echo_n "(cached) " >&6 |
michael@0 | 6707 | else |
michael@0 | 6708 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6709 | /* end confdefs.h. */ |
michael@0 | 6710 | #include <time.h> |
michael@0 | 6711 | int |
michael@0 | 6712 | main () |
michael@0 | 6713 | { |
michael@0 | 6714 | __timezone = 1; |
michael@0 | 6715 | ; |
michael@0 | 6716 | return 0; |
michael@0 | 6717 | } |
michael@0 | 6718 | _ACEOF |
michael@0 | 6719 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6720 | ac_cv_var___timezone=yes |
michael@0 | 6721 | else |
michael@0 | 6722 | ac_cv_var___timezone=no |
michael@0 | 6723 | fi |
michael@0 | 6724 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6725 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6726 | fi |
michael@0 | 6727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5 |
michael@0 | 6728 | $as_echo "$ac_cv_var___timezone" >&6; } |
michael@0 | 6729 | if test $ac_cv_var___timezone = yes; then |
michael@0 | 6730 | U_TIMEZONE=__timezone |
michael@0 | 6731 | U_HAVE_TIMEZONE=1 |
michael@0 | 6732 | else |
michael@0 | 6733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5 |
michael@0 | 6734 | $as_echo_n "checking for _timezone... " >&6; } |
michael@0 | 6735 | if ${ac_cv_var__timezone+:} false; then : |
michael@0 | 6736 | $as_echo_n "(cached) " >&6 |
michael@0 | 6737 | else |
michael@0 | 6738 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6739 | /* end confdefs.h. */ |
michael@0 | 6740 | #include <time.h> |
michael@0 | 6741 | int |
michael@0 | 6742 | main () |
michael@0 | 6743 | { |
michael@0 | 6744 | _timezone = 1; |
michael@0 | 6745 | ; |
michael@0 | 6746 | return 0; |
michael@0 | 6747 | } |
michael@0 | 6748 | _ACEOF |
michael@0 | 6749 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6750 | ac_cv_var__timezone=yes |
michael@0 | 6751 | else |
michael@0 | 6752 | ac_cv_var__timezone=no |
michael@0 | 6753 | fi |
michael@0 | 6754 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6755 | conftest$ac_exeext conftest.$ac_ext |
michael@0 | 6756 | fi |
michael@0 | 6757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5 |
michael@0 | 6758 | $as_echo "$ac_cv_var__timezone" >&6; } |
michael@0 | 6759 | if test $ac_cv_var__timezone = yes; then |
michael@0 | 6760 | U_TIMEZONE=_timezone |
michael@0 | 6761 | U_HAVE_TIMEZONE=1 |
michael@0 | 6762 | else |
michael@0 | 6763 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0" |
michael@0 | 6764 | fi |
michael@0 | 6765 | fi |
michael@0 | 6766 | fi |
michael@0 | 6767 | |
michael@0 | 6768 | |
michael@0 | 6769 | |
michael@0 | 6770 | # Checks for typedefs |
michael@0 | 6771 | ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" |
michael@0 | 6772 | if test "x$ac_cv_type_int8_t" = xyes; then : |
michael@0 | 6773 | |
michael@0 | 6774 | else |
michael@0 | 6775 | |
michael@0 | 6776 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6777 | #define int8_t signed char |
michael@0 | 6778 | _ACEOF |
michael@0 | 6779 | |
michael@0 | 6780 | fi |
michael@0 | 6781 | |
michael@0 | 6782 | ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" |
michael@0 | 6783 | if test "x$ac_cv_type_uint8_t" = xyes; then : |
michael@0 | 6784 | |
michael@0 | 6785 | else |
michael@0 | 6786 | |
michael@0 | 6787 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6788 | #define uint8_t unsigned char |
michael@0 | 6789 | _ACEOF |
michael@0 | 6790 | |
michael@0 | 6791 | fi |
michael@0 | 6792 | |
michael@0 | 6793 | ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" |
michael@0 | 6794 | if test "x$ac_cv_type_int16_t" = xyes; then : |
michael@0 | 6795 | |
michael@0 | 6796 | else |
michael@0 | 6797 | |
michael@0 | 6798 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6799 | #define int16_t signed short |
michael@0 | 6800 | _ACEOF |
michael@0 | 6801 | |
michael@0 | 6802 | fi |
michael@0 | 6803 | |
michael@0 | 6804 | ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" |
michael@0 | 6805 | if test "x$ac_cv_type_uint16_t" = xyes; then : |
michael@0 | 6806 | |
michael@0 | 6807 | else |
michael@0 | 6808 | |
michael@0 | 6809 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6810 | #define uint16_t unsigned short |
michael@0 | 6811 | _ACEOF |
michael@0 | 6812 | |
michael@0 | 6813 | fi |
michael@0 | 6814 | |
michael@0 | 6815 | ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" |
michael@0 | 6816 | if test "x$ac_cv_type_int32_t" = xyes; then : |
michael@0 | 6817 | |
michael@0 | 6818 | else |
michael@0 | 6819 | |
michael@0 | 6820 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6821 | #define int32_t signed long |
michael@0 | 6822 | _ACEOF |
michael@0 | 6823 | |
michael@0 | 6824 | fi |
michael@0 | 6825 | |
michael@0 | 6826 | ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" |
michael@0 | 6827 | if test "x$ac_cv_type_uint32_t" = xyes; then : |
michael@0 | 6828 | |
michael@0 | 6829 | else |
michael@0 | 6830 | |
michael@0 | 6831 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6832 | #define uint32_t unsigned long |
michael@0 | 6833 | _ACEOF |
michael@0 | 6834 | |
michael@0 | 6835 | fi |
michael@0 | 6836 | |
michael@0 | 6837 | ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" |
michael@0 | 6838 | if test "x$ac_cv_type_int64_t" = xyes; then : |
michael@0 | 6839 | |
michael@0 | 6840 | else |
michael@0 | 6841 | |
michael@0 | 6842 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6843 | #define int64_t signed long long |
michael@0 | 6844 | _ACEOF |
michael@0 | 6845 | |
michael@0 | 6846 | fi |
michael@0 | 6847 | |
michael@0 | 6848 | ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" |
michael@0 | 6849 | if test "x$ac_cv_type_uint64_t" = xyes; then : |
michael@0 | 6850 | |
michael@0 | 6851 | else |
michael@0 | 6852 | |
michael@0 | 6853 | cat >>confdefs.h <<_ACEOF |
michael@0 | 6854 | #define uint64_t unsigned long long |
michael@0 | 6855 | _ACEOF |
michael@0 | 6856 | |
michael@0 | 6857 | fi |
michael@0 | 6858 | |
michael@0 | 6859 | |
michael@0 | 6860 | if test $ac_cv_type_int8_t = no; then |
michael@0 | 6861 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0" |
michael@0 | 6862 | fi |
michael@0 | 6863 | |
michael@0 | 6864 | if test $ac_cv_type_uint8_t = no; then |
michael@0 | 6865 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0" |
michael@0 | 6866 | fi |
michael@0 | 6867 | |
michael@0 | 6868 | if test $ac_cv_type_int16_t = no; then |
michael@0 | 6869 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0" |
michael@0 | 6870 | fi |
michael@0 | 6871 | |
michael@0 | 6872 | if test $ac_cv_type_uint16_t = no; then |
michael@0 | 6873 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0" |
michael@0 | 6874 | fi |
michael@0 | 6875 | |
michael@0 | 6876 | if test $ac_cv_type_int32_t = no; then |
michael@0 | 6877 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0" |
michael@0 | 6878 | fi |
michael@0 | 6879 | |
michael@0 | 6880 | if test $ac_cv_type_uint32_t = no; then |
michael@0 | 6881 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0" |
michael@0 | 6882 | fi |
michael@0 | 6883 | |
michael@0 | 6884 | if test $ac_cv_type_int64_t = no; then |
michael@0 | 6885 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0" |
michael@0 | 6886 | fi |
michael@0 | 6887 | |
michael@0 | 6888 | if test $ac_cv_type_uint64_t = no; then |
michael@0 | 6889 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0" |
michael@0 | 6890 | fi |
michael@0 | 6891 | |
michael@0 | 6892 | # Do various wchar_t related checks |
michael@0 | 6893 | ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" |
michael@0 | 6894 | if test "x$ac_cv_header_wchar_h" = xyes; then : |
michael@0 | 6895 | |
michael@0 | 6896 | fi |
michael@0 | 6897 | |
michael@0 | 6898 | |
michael@0 | 6899 | if test "$ac_cv_header_wchar_h" = no |
michael@0 | 6900 | then |
michael@0 | 6901 | U_HAVE_WCHAR_H=0 |
michael@0 | 6902 | U_HAVE_WCSCPY=0 |
michael@0 | 6903 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0" |
michael@0 | 6904 | else |
michael@0 | 6905 | |
michael@0 | 6906 | $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h |
michael@0 | 6907 | |
michael@0 | 6908 | U_HAVE_WCHAR_H=1 |
michael@0 | 6909 | # Some broken systems have wchar.h but not some of its functions... |
michael@0 | 6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5 |
michael@0 | 6911 | $as_echo_n "checking for library containing wcscpy... " >&6; } |
michael@0 | 6912 | if ${ac_cv_search_wcscpy+:} false; then : |
michael@0 | 6913 | $as_echo_n "(cached) " >&6 |
michael@0 | 6914 | else |
michael@0 | 6915 | ac_func_search_save_LIBS=$LIBS |
michael@0 | 6916 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 6917 | /* end confdefs.h. */ |
michael@0 | 6918 | |
michael@0 | 6919 | /* Override any GCC internal prototype to avoid an error. |
michael@0 | 6920 | Use char because int might match the return type of a GCC |
michael@0 | 6921 | builtin and then its argument prototype would still apply. */ |
michael@0 | 6922 | #ifdef __cplusplus |
michael@0 | 6923 | extern "C" |
michael@0 | 6924 | #endif |
michael@0 | 6925 | char wcscpy (); |
michael@0 | 6926 | int |
michael@0 | 6927 | main () |
michael@0 | 6928 | { |
michael@0 | 6929 | return wcscpy (); |
michael@0 | 6930 | ; |
michael@0 | 6931 | return 0; |
michael@0 | 6932 | } |
michael@0 | 6933 | _ACEOF |
michael@0 | 6934 | for ac_lib in '' wcs w; do |
michael@0 | 6935 | if test -z "$ac_lib"; then |
michael@0 | 6936 | ac_res="none required" |
michael@0 | 6937 | else |
michael@0 | 6938 | ac_res=-l$ac_lib |
michael@0 | 6939 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
michael@0 | 6940 | fi |
michael@0 | 6941 | if ac_fn_c_try_link "$LINENO"; then : |
michael@0 | 6942 | ac_cv_search_wcscpy=$ac_res |
michael@0 | 6943 | fi |
michael@0 | 6944 | rm -f core conftest.err conftest.$ac_objext \ |
michael@0 | 6945 | conftest$ac_exeext |
michael@0 | 6946 | if ${ac_cv_search_wcscpy+:} false; then : |
michael@0 | 6947 | break |
michael@0 | 6948 | fi |
michael@0 | 6949 | done |
michael@0 | 6950 | if ${ac_cv_search_wcscpy+:} false; then : |
michael@0 | 6951 | |
michael@0 | 6952 | else |
michael@0 | 6953 | ac_cv_search_wcscpy=no |
michael@0 | 6954 | fi |
michael@0 | 6955 | rm conftest.$ac_ext |
michael@0 | 6956 | LIBS=$ac_func_search_save_LIBS |
michael@0 | 6957 | fi |
michael@0 | 6958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5 |
michael@0 | 6959 | $as_echo "$ac_cv_search_wcscpy" >&6; } |
michael@0 | 6960 | ac_res=$ac_cv_search_wcscpy |
michael@0 | 6961 | if test "$ac_res" != no; then : |
michael@0 | 6962 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
michael@0 | 6963 | |
michael@0 | 6964 | fi |
michael@0 | 6965 | |
michael@0 | 6966 | if test "$ac_cv_search_wcscpy" != no; then |
michael@0 | 6967 | U_HAVE_WCSCPY=1 |
michael@0 | 6968 | else |
michael@0 | 6969 | U_HAVE_WCSCPY=0 |
michael@0 | 6970 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0" |
michael@0 | 6971 | fi |
michael@0 | 6972 | fi |
michael@0 | 6973 | |
michael@0 | 6974 | |
michael@0 | 6975 | |
michael@0 | 6976 | # The cast to long int works around a bug in the HP C Compiler |
michael@0 | 6977 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
michael@0 | 6978 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
michael@0 | 6979 | # This bug is HP SR number 8606223364. |
michael@0 | 6980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 |
michael@0 | 6981 | $as_echo_n "checking size of wchar_t... " >&6; } |
michael@0 | 6982 | if ${ac_cv_sizeof_wchar_t+:} false; then : |
michael@0 | 6983 | $as_echo_n "(cached) " >&6 |
michael@0 | 6984 | else |
michael@0 | 6985 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " |
michael@0 | 6986 | #if STDC_HEADERS |
michael@0 | 6987 | #include <stddef.h> |
michael@0 | 6988 | #endif |
michael@0 | 6989 | #include <stdlib.h> |
michael@0 | 6990 | #if HAVE_WCHAR_H |
michael@0 | 6991 | #include <string.h> |
michael@0 | 6992 | #include <wchar.h> |
michael@0 | 6993 | #endif |
michael@0 | 6994 | "; then : |
michael@0 | 6995 | |
michael@0 | 6996 | else |
michael@0 | 6997 | if test "$ac_cv_type_wchar_t" = yes; then |
michael@0 | 6998 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
michael@0 | 6999 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
michael@0 | 7000 | as_fn_error 77 "cannot compute sizeof (wchar_t) |
michael@0 | 7001 | See \`config.log' for more details" "$LINENO" 5; } |
michael@0 | 7002 | else |
michael@0 | 7003 | ac_cv_sizeof_wchar_t=0 |
michael@0 | 7004 | fi |
michael@0 | 7005 | fi |
michael@0 | 7006 | |
michael@0 | 7007 | fi |
michael@0 | 7008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 |
michael@0 | 7009 | $as_echo "$ac_cv_sizeof_wchar_t" >&6; } |
michael@0 | 7010 | |
michael@0 | 7011 | |
michael@0 | 7012 | |
michael@0 | 7013 | cat >>confdefs.h <<_ACEOF |
michael@0 | 7014 | #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t |
michael@0 | 7015 | _ACEOF |
michael@0 | 7016 | |
michael@0 | 7017 | |
michael@0 | 7018 | U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t |
michael@0 | 7019 | # We do this check to verify that everything is okay. |
michael@0 | 7020 | if test $U_SIZEOF_WCHAR_T = 0; then |
michael@0 | 7021 | if test $U_HAVE_WCHAR_H=1; then |
michael@0 | 7022 | as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5 |
michael@0 | 7023 | fi |
michael@0 | 7024 | fi |
michael@0 | 7025 | |
michael@0 | 7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5 |
michael@0 | 7027 | $as_echo_n "checking for UTF-16 string literal support... " >&6; } |
michael@0 | 7028 | U_CHECK_UTF16_STRING=1 |
michael@0 | 7029 | CHECK_UTF16_STRING_RESULT="unknown" |
michael@0 | 7030 | |
michael@0 | 7031 | case "${host}" in |
michael@0 | 7032 | *-*-aix*|powerpc64-*-linux*) |
michael@0 | 7033 | if test "$GCC" = no; then |
michael@0 | 7034 | OLD_CFLAGS="${CFLAGS}" |
michael@0 | 7035 | OLD_CXXFLAGS="${CXXFLAGS}" |
michael@0 | 7036 | CFLAGS="${CFLAGS} -qutf" |
michael@0 | 7037 | CXXFLAGS="${CXXFLAGS} -qutf" |
michael@0 | 7038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7039 | /* end confdefs.h. */ |
michael@0 | 7040 | const unsigned short hello[] = u"hello"; |
michael@0 | 7041 | int |
michael@0 | 7042 | main () |
michael@0 | 7043 | { |
michael@0 | 7044 | |
michael@0 | 7045 | ; |
michael@0 | 7046 | return 0; |
michael@0 | 7047 | } |
michael@0 | 7048 | _ACEOF |
michael@0 | 7049 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 7050 | U_CHECK_UTF16_STRING=1 |
michael@0 | 7051 | else |
michael@0 | 7052 | U_CHECK_UTF16_STRING=0 |
michael@0 | 7053 | fi |
michael@0 | 7054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 7055 | if test "$U_CHECK_UTF16_STRING" = 0; then |
michael@0 | 7056 | CFLAGS="${OLD_CFLAGS}" |
michael@0 | 7057 | CXXFLAGS="${OLD_CXXFLAGS}" |
michael@0 | 7058 | else |
michael@0 | 7059 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf" |
michael@0 | 7060 | CHECK_UTF16_STRING_RESULT="-qutf" |
michael@0 | 7061 | fi |
michael@0 | 7062 | fi |
michael@0 | 7063 | ;; |
michael@0 | 7064 | *-*-solaris*) |
michael@0 | 7065 | if test "$GCC" = no; then |
michael@0 | 7066 | OLD_CFLAGS="${CFLAGS}" |
michael@0 | 7067 | OLD_CXXFLAGS="${CXXFLAGS}" |
michael@0 | 7068 | CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" |
michael@0 | 7069 | CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" |
michael@0 | 7070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7071 | /* end confdefs.h. */ |
michael@0 | 7072 | const unsigned short hello[] = U"hello"; |
michael@0 | 7073 | int |
michael@0 | 7074 | main () |
michael@0 | 7075 | { |
michael@0 | 7076 | |
michael@0 | 7077 | ; |
michael@0 | 7078 | return 0; |
michael@0 | 7079 | } |
michael@0 | 7080 | _ACEOF |
michael@0 | 7081 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 7082 | U_CHECK_UTF16_STRING=1 |
michael@0 | 7083 | else |
michael@0 | 7084 | U_CHECK_UTF16_STRING=0 |
michael@0 | 7085 | fi |
michael@0 | 7086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 7087 | if test "$U_CHECK_UTF16_STRING" = 0; then |
michael@0 | 7088 | CFLAGS="${OLD_CFLAGS}" |
michael@0 | 7089 | CXXFLAGS="${OLD_CXXFLAGS}" |
michael@0 | 7090 | else |
michael@0 | 7091 | CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" |
michael@0 | 7092 | UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort" |
michael@0 | 7093 | UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort" |
michael@0 | 7094 | # Since we can't detect the availability of this UTF-16 syntax at compile time, |
michael@0 | 7095 | # we depend on configure telling us that we can use it. |
michael@0 | 7096 | # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, |
michael@0 | 7097 | # we only use this macro within ICU. |
michael@0 | 7098 | # If an ICU user uses icu-config, this feature will be enabled. |
michael@0 | 7099 | CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1" |
michael@0 | 7100 | U_CHECK_UTF16_STRING=0 |
michael@0 | 7101 | fi |
michael@0 | 7102 | fi |
michael@0 | 7103 | ;; |
michael@0 | 7104 | *-*-hpux*) |
michael@0 | 7105 | if test "$GCC" = no; then |
michael@0 | 7106 | # The option will be detected at compile time without additional compiler options. |
michael@0 | 7107 | CHECK_UTF16_STRING_RESULT="available" |
michael@0 | 7108 | fi |
michael@0 | 7109 | ;; |
michael@0 | 7110 | *-*-cygwin) |
michael@0 | 7111 | # wchar_t can be used |
michael@0 | 7112 | CHECK_UTF16_STRING_RESULT="available" |
michael@0 | 7113 | ;; |
michael@0 | 7114 | *) |
michael@0 | 7115 | ;; |
michael@0 | 7116 | esac |
michael@0 | 7117 | |
michael@0 | 7118 | # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future. |
michael@0 | 7119 | if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then |
michael@0 | 7120 | if test "$GCC" = yes; then |
michael@0 | 7121 | OLD_CFLAGS="${CFLAGS}" |
michael@0 | 7122 | CFLAGS="${CFLAGS} -std=gnu99" |
michael@0 | 7123 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7124 | /* end confdefs.h. */ |
michael@0 | 7125 | |
michael@0 | 7126 | static const char16_t test[] = u"This is a UTF16 literal string."; |
michael@0 | 7127 | |
michael@0 | 7128 | int |
michael@0 | 7129 | main () |
michael@0 | 7130 | { |
michael@0 | 7131 | |
michael@0 | 7132 | ; |
michael@0 | 7133 | return 0; |
michael@0 | 7134 | } |
michael@0 | 7135 | _ACEOF |
michael@0 | 7136 | if ac_fn_c_try_compile "$LINENO"; then : |
michael@0 | 7137 | CC_UTF16_STRING=1 |
michael@0 | 7138 | else |
michael@0 | 7139 | CC_UTF16_STRING=0 |
michael@0 | 7140 | fi |
michael@0 | 7141 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 7142 | if test "$CC_UTF16_STRING" = 1; then |
michael@0 | 7143 | UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -std=gnu99" |
michael@0 | 7144 | CHECK_UTF16_STRING_RESULT="C only"; |
michael@0 | 7145 | else |
michael@0 | 7146 | CFLAGS="${OLD_CFLAGS}" |
michael@0 | 7147 | fi |
michael@0 | 7148 | fi |
michael@0 | 7149 | if test "$GXX" = yes; then |
michael@0 | 7150 | # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about. |
michael@0 | 7151 | ac_ext=cpp |
michael@0 | 7152 | ac_cpp='$CXXCPP $CPPFLAGS' |
michael@0 | 7153 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 7154 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 7155 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
michael@0 | 7156 | |
michael@0 | 7157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
michael@0 | 7158 | /* end confdefs.h. */ |
michael@0 | 7159 | |
michael@0 | 7160 | static const char16_t test[] = u"This is a UTF16 literal string."; |
michael@0 | 7161 | |
michael@0 | 7162 | int |
michael@0 | 7163 | main () |
michael@0 | 7164 | { |
michael@0 | 7165 | |
michael@0 | 7166 | ; |
michael@0 | 7167 | return 0; |
michael@0 | 7168 | } |
michael@0 | 7169 | _ACEOF |
michael@0 | 7170 | if ac_fn_cxx_try_compile "$LINENO"; then : |
michael@0 | 7171 | CXX_UTF16_STRING=1 |
michael@0 | 7172 | else |
michael@0 | 7173 | CXX_UTF16_STRING=0 |
michael@0 | 7174 | fi |
michael@0 | 7175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
michael@0 | 7176 | ac_ext=c |
michael@0 | 7177 | ac_cpp='$CPP $CPPFLAGS' |
michael@0 | 7178 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
michael@0 | 7179 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
michael@0 | 7180 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
michael@0 | 7181 | |
michael@0 | 7182 | if test "$CXX_UTF16_STRING" = 1; then |
michael@0 | 7183 | if test "$CC_UTF16_STRING" = 1; then |
michael@0 | 7184 | CHECK_UTF16_STRING_RESULT="available"; |
michael@0 | 7185 | else |
michael@0 | 7186 | CHECK_UTF16_STRING_RESULT="C++ only"; |
michael@0 | 7187 | fi |
michael@0 | 7188 | fi |
michael@0 | 7189 | fi |
michael@0 | 7190 | fi |
michael@0 | 7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5 |
michael@0 | 7192 | $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } |
michael@0 | 7193 | |
michael@0 | 7194 | # Enable/disable extras |
michael@0 | 7195 | # Check whether --enable-extras was given. |
michael@0 | 7196 | if test "${enable_extras+set}" = set; then : |
michael@0 | 7197 | enableval=$enable_extras; case "${enableval}" in |
michael@0 | 7198 | yes) extras=true ;; |
michael@0 | 7199 | no) extras=false ;; |
michael@0 | 7200 | *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;; |
michael@0 | 7201 | esac |
michael@0 | 7202 | else |
michael@0 | 7203 | extras=true |
michael@0 | 7204 | fi |
michael@0 | 7205 | |
michael@0 | 7206 | |
michael@0 | 7207 | if test "$extras" = true; then |
michael@0 | 7208 | EXTRAS_TRUE= |
michael@0 | 7209 | else |
michael@0 | 7210 | EXTRAS_TRUE='#' |
michael@0 | 7211 | fi |
michael@0 | 7212 | # Check whether --enable-icuio was given. |
michael@0 | 7213 | if test "${enable_icuio+set}" = set; then : |
michael@0 | 7214 | enableval=$enable_icuio; case "${enableval}" in |
michael@0 | 7215 | yes) icuio=true ;; |
michael@0 | 7216 | no) icuio=false ;; |
michael@0 | 7217 | *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;; |
michael@0 | 7218 | esac |
michael@0 | 7219 | else |
michael@0 | 7220 | icuio=true |
michael@0 | 7221 | fi |
michael@0 | 7222 | |
michael@0 | 7223 | |
michael@0 | 7224 | if test "$icuio" = true; then |
michael@0 | 7225 | ICUIO_TRUE= |
michael@0 | 7226 | else |
michael@0 | 7227 | ICUIO_TRUE='#' |
michael@0 | 7228 | fi |
michael@0 | 7229 | |
michael@0 | 7230 | # Enable/disable layout |
michael@0 | 7231 | # Check whether --enable-layout was given. |
michael@0 | 7232 | if test "${enable_layout+set}" = set; then : |
michael@0 | 7233 | enableval=$enable_layout; case "${enableval}" in |
michael@0 | 7234 | yes) layout=true ;; |
michael@0 | 7235 | no) layout=false ;; |
michael@0 | 7236 | *) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;; |
michael@0 | 7237 | esac |
michael@0 | 7238 | else |
michael@0 | 7239 | layout=true |
michael@0 | 7240 | fi |
michael@0 | 7241 | |
michael@0 | 7242 | |
michael@0 | 7243 | if test "$layout" = true; then |
michael@0 | 7244 | LAYOUT_TRUE= |
michael@0 | 7245 | else |
michael@0 | 7246 | LAYOUT_TRUE='#' |
michael@0 | 7247 | fi |
michael@0 | 7248 | |
michael@0 | 7249 | # Enable/disable tools |
michael@0 | 7250 | # Check whether --enable-tools was given. |
michael@0 | 7251 | if test "${enable_tools+set}" = set; then : |
michael@0 | 7252 | enableval=$enable_tools; case "${enableval}" in |
michael@0 | 7253 | yes) tools=true ;; |
michael@0 | 7254 | no) tools=false ;; |
michael@0 | 7255 | *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;; |
michael@0 | 7256 | esac |
michael@0 | 7257 | else |
michael@0 | 7258 | tools=true |
michael@0 | 7259 | fi |
michael@0 | 7260 | |
michael@0 | 7261 | |
michael@0 | 7262 | if test "$tools" = true; then |
michael@0 | 7263 | TOOLS_TRUE= |
michael@0 | 7264 | else |
michael@0 | 7265 | TOOLS_TRUE='#' |
michael@0 | 7266 | fi |
michael@0 | 7267 | |
michael@0 | 7268 | |
michael@0 | 7269 | # Check whether --with-data-packaging was given. |
michael@0 | 7270 | if test "${with_data_packaging+set}" = set; then : |
michael@0 | 7271 | withval=$with_data_packaging; case "${withval}" in |
michael@0 | 7272 | files|archive|library) datapackaging=$withval ;; |
michael@0 | 7273 | auto) datapackaging=$withval ;; |
michael@0 | 7274 | common) datapackaging=archive ;; |
michael@0 | 7275 | dll) datapackaging=library ;; |
michael@0 | 7276 | static) datapackaging=static ;; |
michael@0 | 7277 | *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;; |
michael@0 | 7278 | esac |
michael@0 | 7279 | else |
michael@0 | 7280 | datapackaging= |
michael@0 | 7281 | fi |
michael@0 | 7282 | |
michael@0 | 7283 | |
michael@0 | 7284 | # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc.. |
michael@0 | 7285 | # thesysconfdir=`eval echo $sysconfdir` |
michael@0 | 7286 | thedatadir=`eval echo $datadir` |
michael@0 | 7287 | # Always put raw data files in share/icu/{version}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}. |
michael@0 | 7288 | pkgicudatadir=$datadir |
michael@0 | 7289 | thepkgicudatadir=$thedatadir |
michael@0 | 7290 | |
michael@0 | 7291 | |
michael@0 | 7292 | |
michael@0 | 7293 | |
michael@0 | 7294 | if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then |
michael@0 | 7295 | # default to library |
michael@0 | 7296 | datapackaging=library |
michael@0 | 7297 | if test "$ENABLE_STATIC" = "YES"; then |
michael@0 | 7298 | if test "$ENABLE_SHARED" != "YES"; then |
michael@0 | 7299 | datapackaging=static |
michael@0 | 7300 | fi |
michael@0 | 7301 | fi |
michael@0 | 7302 | fi |
michael@0 | 7303 | |
michael@0 | 7304 | datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}" |
michael@0 | 7305 | |
michael@0 | 7306 | datapackaging_msg="(No explaination for mode $datapackaging.)" |
michael@0 | 7307 | |
michael@0 | 7308 | datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override." |
michael@0 | 7309 | datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override." |
michael@0 | 7310 | datapackaging_howfound="(unknown)" |
michael@0 | 7311 | |
michael@0 | 7312 | case "$datapackaging" in |
michael@0 | 7313 | files) |
michael@0 | 7314 | DATA_PACKAGING_MODE=files |
michael@0 | 7315 | datapackaging_msg="ICU data will be stored in individual files." |
michael@0 | 7316 | datapackaging_howfound="$datapackaging_msg_path" |
michael@0 | 7317 | ;; |
michael@0 | 7318 | archive) |
michael@0 | 7319 | DATA_PACKAGING_MODE=common |
michael@0 | 7320 | datapackaging_msg="ICU data will be stored in a single .dat file." |
michael@0 | 7321 | datapackaging_howfound="$datapackaging_msg_path" |
michael@0 | 7322 | ;; |
michael@0 | 7323 | library) |
michael@0 | 7324 | DATA_PACKAGING_MODE=dll |
michael@0 | 7325 | datapackaging_msg="ICU data will be linked with ICU." |
michael@0 | 7326 | if test "$ENABLE_STATIC" = "YES"; then |
michael@0 | 7327 | datapackaging_msg="$datapackaging_msg A static data library will be built. " |
michael@0 | 7328 | fi |
michael@0 | 7329 | if test "$ENABLE_SHARED" = "YES"; then |
michael@0 | 7330 | datapackaging_msg="$datapackaging_msg A shared data library will be built. " |
michael@0 | 7331 | fi |
michael@0 | 7332 | datapackaging_howfound="$datapackaging_msg_set" |
michael@0 | 7333 | ;; |
michael@0 | 7334 | static) |
michael@0 | 7335 | DATA_PACKAGING_MODE=static |
michael@0 | 7336 | datapackaging_msg="ICU data will be stored in a static library." |
michael@0 | 7337 | datapackaging_howfound="$datapackaging_msg_set" |
michael@0 | 7338 | ;; |
michael@0 | 7339 | esac |
michael@0 | 7340 | |
michael@0 | 7341 | |
michael@0 | 7342 | # Sets a library suffix |
michael@0 | 7343 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5 |
michael@0 | 7344 | $as_echo_n "checking for a library suffix to use... " >&6; } |
michael@0 | 7345 | |
michael@0 | 7346 | # Check whether --with-library-suffix was given. |
michael@0 | 7347 | if test "${with_library_suffix+set}" = set; then : |
michael@0 | 7348 | withval=$with_library_suffix; ICULIBSUFFIX="${withval}" |
michael@0 | 7349 | else |
michael@0 | 7350 | ICULIBSUFFIX= |
michael@0 | 7351 | fi |
michael@0 | 7352 | |
michael@0 | 7353 | msg=$ICULIBSUFFIX |
michael@0 | 7354 | if test "$msg" = ""; then |
michael@0 | 7355 | msg=none |
michael@0 | 7356 | fi |
michael@0 | 7357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 |
michael@0 | 7358 | $as_echo "$msg" >&6; } |
michael@0 | 7359 | |
michael@0 | 7360 | if test "$ICULIBSUFFIX" != "" |
michael@0 | 7361 | then |
michael@0 | 7362 | U_HAVE_LIB_SUFFIX=1 |
michael@0 | 7363 | ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'` |
michael@0 | 7364 | UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} " |
michael@0 | 7365 | else |
michael@0 | 7366 | U_HAVE_LIB_SUFFIX=0 |
michael@0 | 7367 | fi |
michael@0 | 7368 | |
michael@0 | 7369 | |
michael@0 | 7370 | |
michael@0 | 7371 | # Enable/disable tests |
michael@0 | 7372 | # Check whether --enable-tests was given. |
michael@0 | 7373 | if test "${enable_tests+set}" = set; then : |
michael@0 | 7374 | enableval=$enable_tests; case "${enableval}" in |
michael@0 | 7375 | yes) tests=true ;; |
michael@0 | 7376 | no) tests=false ;; |
michael@0 | 7377 | *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;; |
michael@0 | 7378 | esac |
michael@0 | 7379 | else |
michael@0 | 7380 | tests=true |
michael@0 | 7381 | fi |
michael@0 | 7382 | |
michael@0 | 7383 | |
michael@0 | 7384 | if test "$tests" = true; then |
michael@0 | 7385 | TESTS_TRUE= |
michael@0 | 7386 | else |
michael@0 | 7387 | TESTS_TRUE='#' |
michael@0 | 7388 | fi |
michael@0 | 7389 | |
michael@0 | 7390 | # Enable/disable samples |
michael@0 | 7391 | # Check whether --enable-samples was given. |
michael@0 | 7392 | if test "${enable_samples+set}" = set; then : |
michael@0 | 7393 | enableval=$enable_samples; case "${enableval}" in |
michael@0 | 7394 | yes) samples=true ;; |
michael@0 | 7395 | no) samples=false ;; |
michael@0 | 7396 | *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;; |
michael@0 | 7397 | esac |
michael@0 | 7398 | else |
michael@0 | 7399 | samples=true |
michael@0 | 7400 | fi |
michael@0 | 7401 | |
michael@0 | 7402 | |
michael@0 | 7403 | if test "$samples" = true; then |
michael@0 | 7404 | SAMPLES_TRUE= |
michael@0 | 7405 | else |
michael@0 | 7406 | SAMPLES_TRUE='#' |
michael@0 | 7407 | fi |
michael@0 | 7408 | |
michael@0 | 7409 | ICUDATA_CHAR=$U_ENDIAN_CHAR |
michael@0 | 7410 | |
michael@0 | 7411 | # Platform-specific Makefile setup |
michael@0 | 7412 | # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform. |
michael@0 | 7413 | case "${host}" in |
michael@0 | 7414 | *-*-solaris*) platform=U_SOLARIS ;; |
michael@0 | 7415 | *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;; |
michael@0 | 7416 | *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; |
michael@0 | 7417 | *-*-aix*) platform=U_AIX ;; |
michael@0 | 7418 | *-*-hpux*) platform=U_HPUX ;; |
michael@0 | 7419 | *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; |
michael@0 | 7420 | *-*-cygwin*) platform=U_CYGWIN ;; |
michael@0 | 7421 | *-*-mingw*) platform=U_MINGW ;; |
michael@0 | 7422 | *-*ibm-openedition*|*-*-os390*) platform=OS390 |
michael@0 | 7423 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
michael@0 | 7424 | ICUDATA_CHAR="e" |
michael@0 | 7425 | fi ;; |
michael@0 | 7426 | *-*-os400*) platform=OS400 |
michael@0 | 7427 | if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then |
michael@0 | 7428 | ICUDATA_CHAR="e" |
michael@0 | 7429 | fi ;; |
michael@0 | 7430 | *-*-nto*) platform=U_QNX ;; |
michael@0 | 7431 | *-dec-osf*) platform=U_OSF ;; |
michael@0 | 7432 | *-*-beos) platform=U_BEOS ;; |
michael@0 | 7433 | *-*-irix*) platform=U_IRIX ;; |
michael@0 | 7434 | *-ncr-*) platform=U_MPRAS ;; |
michael@0 | 7435 | *) platform=U_UNKNOWN_PLATFORM ;; |
michael@0 | 7436 | esac |
michael@0 | 7437 | |
michael@0 | 7438 | |
michael@0 | 7439 | platform_make_fragment_name="$icu_cv_host_frag" |
michael@0 | 7440 | platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" |
michael@0 | 7441 | |
michael@0 | 7442 | |
michael@0 | 7443 | |
michael@0 | 7444 | if test "${FORCE_LIBS}" != ""; then |
michael@0 | 7445 | echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 |
michael@0 | 7446 | LIBS=${FORCE_LIBS} |
michael@0 | 7447 | fi |
michael@0 | 7448 | |
michael@0 | 7449 | # Now that we're done using CPPFLAGS etc. for tests, we can change it |
michael@0 | 7450 | # for build. |
michael@0 | 7451 | |
michael@0 | 7452 | if test "${CC}" == "clang"; then |
michael@0 | 7453 | CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality" |
michael@0 | 7454 | else |
michael@0 | 7455 | CLANGCFLAGS="" |
michael@0 | 7456 | fi |
michael@0 | 7457 | |
michael@0 | 7458 | if test "${CXX}" == "clang++"; then |
michael@0 | 7459 | CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality" |
michael@0 | 7460 | else |
michael@0 | 7461 | CLANGCXXFLAGS="" |
michael@0 | 7462 | fi |
michael@0 | 7463 | |
michael@0 | 7464 | CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" |
michael@0 | 7465 | CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS" |
michael@0 | 7466 | CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS" |
michael@0 | 7467 | |
michael@0 | 7468 | |
michael@0 | 7469 | |
michael@0 | 7470 | |
michael@0 | 7471 | # append all config cppflags |
michael@0 | 7472 | CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS" |
michael@0 | 7473 | |
michael@0 | 7474 | echo "CPPFLAGS=$CPPFLAGS" |
michael@0 | 7475 | echo "CFLAGS=$CFLAGS" |
michael@0 | 7476 | echo "CXXFLAGS=$CXXFLAGS" |
michael@0 | 7477 | |
michael@0 | 7478 | |
michael@0 | 7479 | # output the Makefiles |
michael@0 | 7480 | ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gendict/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/collperf/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile test/perf/leperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile" |
michael@0 | 7481 | |
michael@0 | 7482 | cat >confcache <<\_ACEOF |
michael@0 | 7483 | # This file is a shell script that caches the results of configure |
michael@0 | 7484 | # tests run on this system so they can be shared between configure |
michael@0 | 7485 | # scripts and configure runs, see configure's option --config-cache. |
michael@0 | 7486 | # It is not useful on other systems. If it contains results you don't |
michael@0 | 7487 | # want to keep, you may remove or edit it. |
michael@0 | 7488 | # |
michael@0 | 7489 | # config.status only pays attention to the cache file if you give it |
michael@0 | 7490 | # the --recheck option to rerun configure. |
michael@0 | 7491 | # |
michael@0 | 7492 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
michael@0 | 7493 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
michael@0 | 7494 | # following values. |
michael@0 | 7495 | |
michael@0 | 7496 | _ACEOF |
michael@0 | 7497 | |
michael@0 | 7498 | # The following way of writing the cache mishandles newlines in values, |
michael@0 | 7499 | # but we know of no workaround that is simple, portable, and efficient. |
michael@0 | 7500 | # So, we kill variables containing newlines. |
michael@0 | 7501 | # Ultrix sh set writes to stderr and can't be redirected directly, |
michael@0 | 7502 | # and sets the high bit in the cache file unless we assign to the vars. |
michael@0 | 7503 | ( |
michael@0 | 7504 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
michael@0 | 7505 | eval ac_val=\$$ac_var |
michael@0 | 7506 | case $ac_val in #( |
michael@0 | 7507 | *${as_nl}*) |
michael@0 | 7508 | case $ac_var in #( |
michael@0 | 7509 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
michael@0 | 7510 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
michael@0 | 7511 | esac |
michael@0 | 7512 | case $ac_var in #( |
michael@0 | 7513 | _ | IFS | as_nl) ;; #( |
michael@0 | 7514 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
michael@0 | 7515 | *) { eval $ac_var=; unset $ac_var;} ;; |
michael@0 | 7516 | esac ;; |
michael@0 | 7517 | esac |
michael@0 | 7518 | done |
michael@0 | 7519 | |
michael@0 | 7520 | (set) 2>&1 | |
michael@0 | 7521 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
michael@0 | 7522 | *${as_nl}ac_space=\ *) |
michael@0 | 7523 | # `set' does not quote correctly, so add quotes: double-quote |
michael@0 | 7524 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
michael@0 | 7525 | sed -n \ |
michael@0 | 7526 | "s/'/'\\\\''/g; |
michael@0 | 7527 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
michael@0 | 7528 | ;; #( |
michael@0 | 7529 | *) |
michael@0 | 7530 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
michael@0 | 7531 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
michael@0 | 7532 | ;; |
michael@0 | 7533 | esac | |
michael@0 | 7534 | sort |
michael@0 | 7535 | ) | |
michael@0 | 7536 | sed ' |
michael@0 | 7537 | /^ac_cv_env_/b end |
michael@0 | 7538 | t clear |
michael@0 | 7539 | :clear |
michael@0 | 7540 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
michael@0 | 7541 | t end |
michael@0 | 7542 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
michael@0 | 7543 | :end' >>confcache |
michael@0 | 7544 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
michael@0 | 7545 | if test -w "$cache_file"; then |
michael@0 | 7546 | if test "x$cache_file" != "x/dev/null"; then |
michael@0 | 7547 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
michael@0 | 7548 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
michael@0 | 7549 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
michael@0 | 7550 | cat confcache >"$cache_file" |
michael@0 | 7551 | else |
michael@0 | 7552 | case $cache_file in #( |
michael@0 | 7553 | */* | ?:*) |
michael@0 | 7554 | mv -f confcache "$cache_file"$$ && |
michael@0 | 7555 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
michael@0 | 7556 | *) |
michael@0 | 7557 | mv -f confcache "$cache_file" ;; |
michael@0 | 7558 | esac |
michael@0 | 7559 | fi |
michael@0 | 7560 | fi |
michael@0 | 7561 | else |
michael@0 | 7562 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
michael@0 | 7563 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
michael@0 | 7564 | fi |
michael@0 | 7565 | fi |
michael@0 | 7566 | rm -f confcache |
michael@0 | 7567 | |
michael@0 | 7568 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
michael@0 | 7569 | # Let make expand exec_prefix. |
michael@0 | 7570 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
michael@0 | 7571 | |
michael@0 | 7572 | # Transform confdefs.h into DEFS. |
michael@0 | 7573 | # Protect against shell expansion while executing Makefile rules. |
michael@0 | 7574 | # Protect against Makefile macro expansion. |
michael@0 | 7575 | # |
michael@0 | 7576 | # If the first sed substitution is executed (which looks for macros that |
michael@0 | 7577 | # take arguments), then branch to the quote section. Otherwise, |
michael@0 | 7578 | # look for a macro that doesn't take arguments. |
michael@0 | 7579 | ac_script=' |
michael@0 | 7580 | :mline |
michael@0 | 7581 | /\\$/{ |
michael@0 | 7582 | N |
michael@0 | 7583 | s,\\\n,, |
michael@0 | 7584 | b mline |
michael@0 | 7585 | } |
michael@0 | 7586 | t clear |
michael@0 | 7587 | :clear |
michael@0 | 7588 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
michael@0 | 7589 | t quote |
michael@0 | 7590 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
michael@0 | 7591 | t quote |
michael@0 | 7592 | b any |
michael@0 | 7593 | :quote |
michael@0 | 7594 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
michael@0 | 7595 | s/\[/\\&/g |
michael@0 | 7596 | s/\]/\\&/g |
michael@0 | 7597 | s/\$/$$/g |
michael@0 | 7598 | H |
michael@0 | 7599 | :any |
michael@0 | 7600 | ${ |
michael@0 | 7601 | g |
michael@0 | 7602 | s/^\n// |
michael@0 | 7603 | s/\n/ /g |
michael@0 | 7604 | p |
michael@0 | 7605 | } |
michael@0 | 7606 | ' |
michael@0 | 7607 | DEFS=`sed -n "$ac_script" confdefs.h` |
michael@0 | 7608 | |
michael@0 | 7609 | |
michael@0 | 7610 | ac_libobjs= |
michael@0 | 7611 | ac_ltlibobjs= |
michael@0 | 7612 | U= |
michael@0 | 7613 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
michael@0 | 7614 | # 1. Remove the extension, and $U if already installed. |
michael@0 | 7615 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
michael@0 | 7616 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
michael@0 | 7617 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
michael@0 | 7618 | # will be set to the directory where LIBOBJS objects are built. |
michael@0 | 7619 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
michael@0 | 7620 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
michael@0 | 7621 | done |
michael@0 | 7622 | LIBOBJS=$ac_libobjs |
michael@0 | 7623 | |
michael@0 | 7624 | LTLIBOBJS=$ac_ltlibobjs |
michael@0 | 7625 | |
michael@0 | 7626 | |
michael@0 | 7627 | |
michael@0 | 7628 | |
michael@0 | 7629 | : "${CONFIG_STATUS=./config.status}" |
michael@0 | 7630 | ac_write_fail=0 |
michael@0 | 7631 | ac_clean_files_save=$ac_clean_files |
michael@0 | 7632 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
michael@0 | 7633 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
michael@0 | 7634 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
michael@0 | 7635 | as_write_fail=0 |
michael@0 | 7636 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
michael@0 | 7637 | #! $SHELL |
michael@0 | 7638 | # Generated by $as_me. |
michael@0 | 7639 | # Run this file to recreate the current configuration. |
michael@0 | 7640 | # Compiler output produced by configure, useful for debugging |
michael@0 | 7641 | # configure, is in config.log if it exists. |
michael@0 | 7642 | |
michael@0 | 7643 | debug=false |
michael@0 | 7644 | ac_cs_recheck=false |
michael@0 | 7645 | ac_cs_silent=false |
michael@0 | 7646 | |
michael@0 | 7647 | SHELL=\${CONFIG_SHELL-$SHELL} |
michael@0 | 7648 | export SHELL |
michael@0 | 7649 | _ASEOF |
michael@0 | 7650 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
michael@0 | 7651 | ## -------------------- ## |
michael@0 | 7652 | ## M4sh Initialization. ## |
michael@0 | 7653 | ## -------------------- ## |
michael@0 | 7654 | |
michael@0 | 7655 | # Be more Bourne compatible |
michael@0 | 7656 | DUALCASE=1; export DUALCASE # for MKS sh |
michael@0 | 7657 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
michael@0 | 7658 | emulate sh |
michael@0 | 7659 | NULLCMD=: |
michael@0 | 7660 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
michael@0 | 7661 | # is contrary to our usage. Disable this feature. |
michael@0 | 7662 | alias -g '${1+"$@"}'='"$@"' |
michael@0 | 7663 | setopt NO_GLOB_SUBST |
michael@0 | 7664 | else |
michael@0 | 7665 | case `(set -o) 2>/dev/null` in #( |
michael@0 | 7666 | *posix*) : |
michael@0 | 7667 | set -o posix ;; #( |
michael@0 | 7668 | *) : |
michael@0 | 7669 | ;; |
michael@0 | 7670 | esac |
michael@0 | 7671 | fi |
michael@0 | 7672 | |
michael@0 | 7673 | |
michael@0 | 7674 | as_nl=' |
michael@0 | 7675 | ' |
michael@0 | 7676 | export as_nl |
michael@0 | 7677 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
michael@0 | 7678 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
michael@0 | 7679 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 7680 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
michael@0 | 7681 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
michael@0 | 7682 | # but without wasting forks for bash or zsh. |
michael@0 | 7683 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
michael@0 | 7684 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 7685 | as_echo='print -r --' |
michael@0 | 7686 | as_echo_n='print -rn --' |
michael@0 | 7687 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
michael@0 | 7688 | as_echo='printf %s\n' |
michael@0 | 7689 | as_echo_n='printf %s' |
michael@0 | 7690 | else |
michael@0 | 7691 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
michael@0 | 7692 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
michael@0 | 7693 | as_echo_n='/usr/ucb/echo -n' |
michael@0 | 7694 | else |
michael@0 | 7695 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
michael@0 | 7696 | as_echo_n_body='eval |
michael@0 | 7697 | arg=$1; |
michael@0 | 7698 | case $arg in #( |
michael@0 | 7699 | *"$as_nl"*) |
michael@0 | 7700 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
michael@0 | 7701 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
michael@0 | 7702 | esac; |
michael@0 | 7703 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
michael@0 | 7704 | ' |
michael@0 | 7705 | export as_echo_n_body |
michael@0 | 7706 | as_echo_n='sh -c $as_echo_n_body as_echo' |
michael@0 | 7707 | fi |
michael@0 | 7708 | export as_echo_body |
michael@0 | 7709 | as_echo='sh -c $as_echo_body as_echo' |
michael@0 | 7710 | fi |
michael@0 | 7711 | |
michael@0 | 7712 | # The user is always right. |
michael@0 | 7713 | if test "${PATH_SEPARATOR+set}" != set; then |
michael@0 | 7714 | PATH_SEPARATOR=: |
michael@0 | 7715 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
michael@0 | 7716 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
michael@0 | 7717 | PATH_SEPARATOR=';' |
michael@0 | 7718 | } |
michael@0 | 7719 | fi |
michael@0 | 7720 | |
michael@0 | 7721 | |
michael@0 | 7722 | # IFS |
michael@0 | 7723 | # We need space, tab and new line, in precisely that order. Quoting is |
michael@0 | 7724 | # there to prevent editors from complaining about space-tab. |
michael@0 | 7725 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
michael@0 | 7726 | # splitting by setting IFS to empty value.) |
michael@0 | 7727 | IFS=" "" $as_nl" |
michael@0 | 7728 | |
michael@0 | 7729 | # Find who we are. Look in the path if we contain no directory separator. |
michael@0 | 7730 | as_myself= |
michael@0 | 7731 | case $0 in #(( |
michael@0 | 7732 | *[\\/]* ) as_myself=$0 ;; |
michael@0 | 7733 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
michael@0 | 7734 | for as_dir in $PATH |
michael@0 | 7735 | do |
michael@0 | 7736 | IFS=$as_save_IFS |
michael@0 | 7737 | test -z "$as_dir" && as_dir=. |
michael@0 | 7738 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
michael@0 | 7739 | done |
michael@0 | 7740 | IFS=$as_save_IFS |
michael@0 | 7741 | |
michael@0 | 7742 | ;; |
michael@0 | 7743 | esac |
michael@0 | 7744 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
michael@0 | 7745 | # in which case we are not to be found in the path. |
michael@0 | 7746 | if test "x$as_myself" = x; then |
michael@0 | 7747 | as_myself=$0 |
michael@0 | 7748 | fi |
michael@0 | 7749 | if test ! -f "$as_myself"; then |
michael@0 | 7750 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
michael@0 | 7751 | exit 1 |
michael@0 | 7752 | fi |
michael@0 | 7753 | |
michael@0 | 7754 | # Unset variables that we do not need and which cause bugs (e.g. in |
michael@0 | 7755 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
michael@0 | 7756 | # suppresses any "Segmentation fault" message there. '((' could |
michael@0 | 7757 | # trigger a bug in pdksh 5.2.14. |
michael@0 | 7758 | for as_var in BASH_ENV ENV MAIL MAILPATH |
michael@0 | 7759 | do eval test x\${$as_var+set} = xset \ |
michael@0 | 7760 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
michael@0 | 7761 | done |
michael@0 | 7762 | PS1='$ ' |
michael@0 | 7763 | PS2='> ' |
michael@0 | 7764 | PS4='+ ' |
michael@0 | 7765 | |
michael@0 | 7766 | # NLS nuisances. |
michael@0 | 7767 | LC_ALL=C |
michael@0 | 7768 | export LC_ALL |
michael@0 | 7769 | LANGUAGE=C |
michael@0 | 7770 | export LANGUAGE |
michael@0 | 7771 | |
michael@0 | 7772 | # CDPATH. |
michael@0 | 7773 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
michael@0 | 7774 | |
michael@0 | 7775 | |
michael@0 | 7776 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
michael@0 | 7777 | # ---------------------------------------- |
michael@0 | 7778 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
michael@0 | 7779 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
michael@0 | 7780 | # script with STATUS, using 1 if that was 0. |
michael@0 | 7781 | as_fn_error () |
michael@0 | 7782 | { |
michael@0 | 7783 | as_status=$1; test $as_status -eq 0 && as_status=1 |
michael@0 | 7784 | if test "$4"; then |
michael@0 | 7785 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
michael@0 | 7786 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
michael@0 | 7787 | fi |
michael@0 | 7788 | $as_echo "$as_me: error: $2" >&2 |
michael@0 | 7789 | as_fn_exit $as_status |
michael@0 | 7790 | } # as_fn_error |
michael@0 | 7791 | |
michael@0 | 7792 | |
michael@0 | 7793 | # as_fn_set_status STATUS |
michael@0 | 7794 | # ----------------------- |
michael@0 | 7795 | # Set $? to STATUS, without forking. |
michael@0 | 7796 | as_fn_set_status () |
michael@0 | 7797 | { |
michael@0 | 7798 | return $1 |
michael@0 | 7799 | } # as_fn_set_status |
michael@0 | 7800 | |
michael@0 | 7801 | # as_fn_exit STATUS |
michael@0 | 7802 | # ----------------- |
michael@0 | 7803 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
michael@0 | 7804 | as_fn_exit () |
michael@0 | 7805 | { |
michael@0 | 7806 | set +e |
michael@0 | 7807 | as_fn_set_status $1 |
michael@0 | 7808 | exit $1 |
michael@0 | 7809 | } # as_fn_exit |
michael@0 | 7810 | |
michael@0 | 7811 | # as_fn_unset VAR |
michael@0 | 7812 | # --------------- |
michael@0 | 7813 | # Portably unset VAR. |
michael@0 | 7814 | as_fn_unset () |
michael@0 | 7815 | { |
michael@0 | 7816 | { eval $1=; unset $1;} |
michael@0 | 7817 | } |
michael@0 | 7818 | as_unset=as_fn_unset |
michael@0 | 7819 | # as_fn_append VAR VALUE |
michael@0 | 7820 | # ---------------------- |
michael@0 | 7821 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
michael@0 | 7822 | # advantage of any shell optimizations that allow amortized linear growth over |
michael@0 | 7823 | # repeated appends, instead of the typical quadratic growth present in naive |
michael@0 | 7824 | # implementations. |
michael@0 | 7825 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
michael@0 | 7826 | eval 'as_fn_append () |
michael@0 | 7827 | { |
michael@0 | 7828 | eval $1+=\$2 |
michael@0 | 7829 | }' |
michael@0 | 7830 | else |
michael@0 | 7831 | as_fn_append () |
michael@0 | 7832 | { |
michael@0 | 7833 | eval $1=\$$1\$2 |
michael@0 | 7834 | } |
michael@0 | 7835 | fi # as_fn_append |
michael@0 | 7836 | |
michael@0 | 7837 | # as_fn_arith ARG... |
michael@0 | 7838 | # ------------------ |
michael@0 | 7839 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
michael@0 | 7840 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
michael@0 | 7841 | # must be portable across $(()) and expr. |
michael@0 | 7842 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
michael@0 | 7843 | eval 'as_fn_arith () |
michael@0 | 7844 | { |
michael@0 | 7845 | as_val=$(( $* )) |
michael@0 | 7846 | }' |
michael@0 | 7847 | else |
michael@0 | 7848 | as_fn_arith () |
michael@0 | 7849 | { |
michael@0 | 7850 | as_val=`expr "$@" || test $? -eq 1` |
michael@0 | 7851 | } |
michael@0 | 7852 | fi # as_fn_arith |
michael@0 | 7853 | |
michael@0 | 7854 | |
michael@0 | 7855 | if expr a : '\(a\)' >/dev/null 2>&1 && |
michael@0 | 7856 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
michael@0 | 7857 | as_expr=expr |
michael@0 | 7858 | else |
michael@0 | 7859 | as_expr=false |
michael@0 | 7860 | fi |
michael@0 | 7861 | |
michael@0 | 7862 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
michael@0 | 7863 | as_basename=basename |
michael@0 | 7864 | else |
michael@0 | 7865 | as_basename=false |
michael@0 | 7866 | fi |
michael@0 | 7867 | |
michael@0 | 7868 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
michael@0 | 7869 | as_dirname=dirname |
michael@0 | 7870 | else |
michael@0 | 7871 | as_dirname=false |
michael@0 | 7872 | fi |
michael@0 | 7873 | |
michael@0 | 7874 | as_me=`$as_basename -- "$0" || |
michael@0 | 7875 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
michael@0 | 7876 | X"$0" : 'X\(//\)$' \| \ |
michael@0 | 7877 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 7878 | $as_echo X/"$0" | |
michael@0 | 7879 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
michael@0 | 7880 | s//\1/ |
michael@0 | 7881 | q |
michael@0 | 7882 | } |
michael@0 | 7883 | /^X\/\(\/\/\)$/{ |
michael@0 | 7884 | s//\1/ |
michael@0 | 7885 | q |
michael@0 | 7886 | } |
michael@0 | 7887 | /^X\/\(\/\).*/{ |
michael@0 | 7888 | s//\1/ |
michael@0 | 7889 | q |
michael@0 | 7890 | } |
michael@0 | 7891 | s/.*/./; q'` |
michael@0 | 7892 | |
michael@0 | 7893 | # Avoid depending upon Character Ranges. |
michael@0 | 7894 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
michael@0 | 7895 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
michael@0 | 7896 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
michael@0 | 7897 | as_cr_digits='0123456789' |
michael@0 | 7898 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
michael@0 | 7899 | |
michael@0 | 7900 | ECHO_C= ECHO_N= ECHO_T= |
michael@0 | 7901 | case `echo -n x` in #((((( |
michael@0 | 7902 | -n*) |
michael@0 | 7903 | case `echo 'xy\c'` in |
michael@0 | 7904 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
michael@0 | 7905 | xy) ECHO_C='\c';; |
michael@0 | 7906 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
michael@0 | 7907 | ECHO_T=' ';; |
michael@0 | 7908 | esac;; |
michael@0 | 7909 | *) |
michael@0 | 7910 | ECHO_N='-n';; |
michael@0 | 7911 | esac |
michael@0 | 7912 | |
michael@0 | 7913 | rm -f conf$$ conf$$.exe conf$$.file |
michael@0 | 7914 | if test -d conf$$.dir; then |
michael@0 | 7915 | rm -f conf$$.dir/conf$$.file |
michael@0 | 7916 | else |
michael@0 | 7917 | rm -f conf$$.dir |
michael@0 | 7918 | mkdir conf$$.dir 2>/dev/null |
michael@0 | 7919 | fi |
michael@0 | 7920 | if (echo >conf$$.file) 2>/dev/null; then |
michael@0 | 7921 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 7922 | as_ln_s='ln -s' |
michael@0 | 7923 | # ... but there are two gotchas: |
michael@0 | 7924 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
michael@0 | 7925 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
michael@0 | 7926 | # In both cases, we have to default to `cp -p'. |
michael@0 | 7927 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
michael@0 | 7928 | as_ln_s='cp -p' |
michael@0 | 7929 | elif ln conf$$.file conf$$ 2>/dev/null; then |
michael@0 | 7930 | as_ln_s=ln |
michael@0 | 7931 | else |
michael@0 | 7932 | as_ln_s='cp -p' |
michael@0 | 7933 | fi |
michael@0 | 7934 | else |
michael@0 | 7935 | as_ln_s='cp -p' |
michael@0 | 7936 | fi |
michael@0 | 7937 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
michael@0 | 7938 | rmdir conf$$.dir 2>/dev/null |
michael@0 | 7939 | |
michael@0 | 7940 | |
michael@0 | 7941 | # as_fn_mkdir_p |
michael@0 | 7942 | # ------------- |
michael@0 | 7943 | # Create "$as_dir" as a directory, including parents if necessary. |
michael@0 | 7944 | as_fn_mkdir_p () |
michael@0 | 7945 | { |
michael@0 | 7946 | |
michael@0 | 7947 | case $as_dir in #( |
michael@0 | 7948 | -*) as_dir=./$as_dir;; |
michael@0 | 7949 | esac |
michael@0 | 7950 | test -d "$as_dir" || eval $as_mkdir_p || { |
michael@0 | 7951 | as_dirs= |
michael@0 | 7952 | while :; do |
michael@0 | 7953 | case $as_dir in #( |
michael@0 | 7954 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
michael@0 | 7955 | *) as_qdir=$as_dir;; |
michael@0 | 7956 | esac |
michael@0 | 7957 | as_dirs="'$as_qdir' $as_dirs" |
michael@0 | 7958 | as_dir=`$as_dirname -- "$as_dir" || |
michael@0 | 7959 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 7960 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
michael@0 | 7961 | X"$as_dir" : 'X\(//\)$' \| \ |
michael@0 | 7962 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 7963 | $as_echo X"$as_dir" | |
michael@0 | 7964 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 7965 | s//\1/ |
michael@0 | 7966 | q |
michael@0 | 7967 | } |
michael@0 | 7968 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 7969 | s//\1/ |
michael@0 | 7970 | q |
michael@0 | 7971 | } |
michael@0 | 7972 | /^X\(\/\/\)$/{ |
michael@0 | 7973 | s//\1/ |
michael@0 | 7974 | q |
michael@0 | 7975 | } |
michael@0 | 7976 | /^X\(\/\).*/{ |
michael@0 | 7977 | s//\1/ |
michael@0 | 7978 | q |
michael@0 | 7979 | } |
michael@0 | 7980 | s/.*/./; q'` |
michael@0 | 7981 | test -d "$as_dir" && break |
michael@0 | 7982 | done |
michael@0 | 7983 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
michael@0 | 7984 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
michael@0 | 7985 | |
michael@0 | 7986 | |
michael@0 | 7987 | } # as_fn_mkdir_p |
michael@0 | 7988 | if mkdir -p . 2>/dev/null; then |
michael@0 | 7989 | as_mkdir_p='mkdir -p "$as_dir"' |
michael@0 | 7990 | else |
michael@0 | 7991 | test -d ./-p && rmdir ./-p |
michael@0 | 7992 | as_mkdir_p=false |
michael@0 | 7993 | fi |
michael@0 | 7994 | |
michael@0 | 7995 | if test -x / >/dev/null 2>&1; then |
michael@0 | 7996 | as_test_x='test -x' |
michael@0 | 7997 | else |
michael@0 | 7998 | if ls -dL / >/dev/null 2>&1; then |
michael@0 | 7999 | as_ls_L_option=L |
michael@0 | 8000 | else |
michael@0 | 8001 | as_ls_L_option= |
michael@0 | 8002 | fi |
michael@0 | 8003 | as_test_x=' |
michael@0 | 8004 | eval sh -c '\'' |
michael@0 | 8005 | if test -d "$1"; then |
michael@0 | 8006 | test -d "$1/."; |
michael@0 | 8007 | else |
michael@0 | 8008 | case $1 in #( |
michael@0 | 8009 | -*)set "./$1";; |
michael@0 | 8010 | esac; |
michael@0 | 8011 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
michael@0 | 8012 | ???[sx]*):;;*)false;;esac;fi |
michael@0 | 8013 | '\'' sh |
michael@0 | 8014 | ' |
michael@0 | 8015 | fi |
michael@0 | 8016 | as_executable_p=$as_test_x |
michael@0 | 8017 | |
michael@0 | 8018 | # Sed expression to map a string onto a valid CPP name. |
michael@0 | 8019 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 8020 | |
michael@0 | 8021 | # Sed expression to map a string onto a valid variable name. |
michael@0 | 8022 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
michael@0 | 8023 | |
michael@0 | 8024 | |
michael@0 | 8025 | exec 6>&1 |
michael@0 | 8026 | ## ----------------------------------- ## |
michael@0 | 8027 | ## Main body of $CONFIG_STATUS script. ## |
michael@0 | 8028 | ## ----------------------------------- ## |
michael@0 | 8029 | _ASEOF |
michael@0 | 8030 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 8031 | |
michael@0 | 8032 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8033 | # Save the log message, to keep $0 and so on meaningful, and to |
michael@0 | 8034 | # report actual input values of CONFIG_FILES etc. instead of their |
michael@0 | 8035 | # values after options handling. |
michael@0 | 8036 | ac_log=" |
michael@0 | 8037 | This file was extended by $as_me, which was |
michael@0 | 8038 | generated by GNU Autoconf 2.68. Invocation command line was |
michael@0 | 8039 | |
michael@0 | 8040 | CONFIG_FILES = $CONFIG_FILES |
michael@0 | 8041 | CONFIG_HEADERS = $CONFIG_HEADERS |
michael@0 | 8042 | CONFIG_LINKS = $CONFIG_LINKS |
michael@0 | 8043 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
michael@0 | 8044 | $ $0 $@ |
michael@0 | 8045 | |
michael@0 | 8046 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
michael@0 | 8047 | " |
michael@0 | 8048 | |
michael@0 | 8049 | _ACEOF |
michael@0 | 8050 | |
michael@0 | 8051 | case $ac_config_files in *" |
michael@0 | 8052 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
michael@0 | 8053 | esac |
michael@0 | 8054 | |
michael@0 | 8055 | |
michael@0 | 8056 | |
michael@0 | 8057 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8058 | # Files that config.status was made for. |
michael@0 | 8059 | config_files="$ac_config_files" |
michael@0 | 8060 | |
michael@0 | 8061 | _ACEOF |
michael@0 | 8062 | |
michael@0 | 8063 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8064 | ac_cs_usage="\ |
michael@0 | 8065 | \`$as_me' instantiates files and other configuration actions |
michael@0 | 8066 | from templates according to the current configuration. Unless the files |
michael@0 | 8067 | and actions are specified as TAGs, all are instantiated by default. |
michael@0 | 8068 | |
michael@0 | 8069 | Usage: $0 [OPTION]... [TAG]... |
michael@0 | 8070 | |
michael@0 | 8071 | -h, --help print this help, then exit |
michael@0 | 8072 | -V, --version print version number and configuration settings, then exit |
michael@0 | 8073 | --config print configuration, then exit |
michael@0 | 8074 | -q, --quiet, --silent |
michael@0 | 8075 | do not print progress messages |
michael@0 | 8076 | -d, --debug don't remove temporary files |
michael@0 | 8077 | --recheck update $as_me by reconfiguring in the same conditions |
michael@0 | 8078 | --file=FILE[:TEMPLATE] |
michael@0 | 8079 | instantiate the configuration file FILE |
michael@0 | 8080 | |
michael@0 | 8081 | Configuration files: |
michael@0 | 8082 | $config_files |
michael@0 | 8083 | |
michael@0 | 8084 | Report bugs to the package provider." |
michael@0 | 8085 | |
michael@0 | 8086 | _ACEOF |
michael@0 | 8087 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8088 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
michael@0 | 8089 | ac_cs_version="\\ |
michael@0 | 8090 | config.status |
michael@0 | 8091 | configured by $0, generated by GNU Autoconf 2.68, |
michael@0 | 8092 | with options \\"\$ac_cs_config\\" |
michael@0 | 8093 | |
michael@0 | 8094 | Copyright (C) 2010 Free Software Foundation, Inc. |
michael@0 | 8095 | This config.status script is free software; the Free Software Foundation |
michael@0 | 8096 | gives unlimited permission to copy, distribute and modify it." |
michael@0 | 8097 | |
michael@0 | 8098 | ac_pwd='$ac_pwd' |
michael@0 | 8099 | srcdir='$srcdir' |
michael@0 | 8100 | INSTALL='$INSTALL' |
michael@0 | 8101 | test -n "\$AWK" || AWK=awk |
michael@0 | 8102 | _ACEOF |
michael@0 | 8103 | |
michael@0 | 8104 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8105 | # The default lists apply if the user does not specify any file. |
michael@0 | 8106 | ac_need_defaults=: |
michael@0 | 8107 | while test $# != 0 |
michael@0 | 8108 | do |
michael@0 | 8109 | case $1 in |
michael@0 | 8110 | --*=?*) |
michael@0 | 8111 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
michael@0 | 8112 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
michael@0 | 8113 | ac_shift=: |
michael@0 | 8114 | ;; |
michael@0 | 8115 | --*=) |
michael@0 | 8116 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
michael@0 | 8117 | ac_optarg= |
michael@0 | 8118 | ac_shift=: |
michael@0 | 8119 | ;; |
michael@0 | 8120 | *) |
michael@0 | 8121 | ac_option=$1 |
michael@0 | 8122 | ac_optarg=$2 |
michael@0 | 8123 | ac_shift=shift |
michael@0 | 8124 | ;; |
michael@0 | 8125 | esac |
michael@0 | 8126 | |
michael@0 | 8127 | case $ac_option in |
michael@0 | 8128 | # Handling of the options. |
michael@0 | 8129 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
michael@0 | 8130 | ac_cs_recheck=: ;; |
michael@0 | 8131 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
michael@0 | 8132 | $as_echo "$ac_cs_version"; exit ;; |
michael@0 | 8133 | --config | --confi | --conf | --con | --co | --c ) |
michael@0 | 8134 | $as_echo "$ac_cs_config"; exit ;; |
michael@0 | 8135 | --debug | --debu | --deb | --de | --d | -d ) |
michael@0 | 8136 | debug=: ;; |
michael@0 | 8137 | --file | --fil | --fi | --f ) |
michael@0 | 8138 | $ac_shift |
michael@0 | 8139 | case $ac_optarg in |
michael@0 | 8140 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
michael@0 | 8141 | '') as_fn_error $? "missing file argument" ;; |
michael@0 | 8142 | esac |
michael@0 | 8143 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
michael@0 | 8144 | ac_need_defaults=false;; |
michael@0 | 8145 | --he | --h | --help | --hel | -h ) |
michael@0 | 8146 | $as_echo "$ac_cs_usage"; exit ;; |
michael@0 | 8147 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
michael@0 | 8148 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
michael@0 | 8149 | ac_cs_silent=: ;; |
michael@0 | 8150 | |
michael@0 | 8151 | # This is an error. |
michael@0 | 8152 | -*) as_fn_error $? "unrecognized option: \`$1' |
michael@0 | 8153 | Try \`$0 --help' for more information." ;; |
michael@0 | 8154 | |
michael@0 | 8155 | *) as_fn_append ac_config_targets " $1" |
michael@0 | 8156 | ac_need_defaults=false ;; |
michael@0 | 8157 | |
michael@0 | 8158 | esac |
michael@0 | 8159 | shift |
michael@0 | 8160 | done |
michael@0 | 8161 | |
michael@0 | 8162 | ac_configure_extra_args= |
michael@0 | 8163 | |
michael@0 | 8164 | if $ac_cs_silent; then |
michael@0 | 8165 | exec 6>/dev/null |
michael@0 | 8166 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
michael@0 | 8167 | fi |
michael@0 | 8168 | |
michael@0 | 8169 | _ACEOF |
michael@0 | 8170 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8171 | if \$ac_cs_recheck; then |
michael@0 | 8172 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
michael@0 | 8173 | shift |
michael@0 | 8174 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
michael@0 | 8175 | CONFIG_SHELL='$SHELL' |
michael@0 | 8176 | export CONFIG_SHELL |
michael@0 | 8177 | exec "\$@" |
michael@0 | 8178 | fi |
michael@0 | 8179 | |
michael@0 | 8180 | _ACEOF |
michael@0 | 8181 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8182 | exec 5>>config.log |
michael@0 | 8183 | { |
michael@0 | 8184 | echo |
michael@0 | 8185 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
michael@0 | 8186 | ## Running $as_me. ## |
michael@0 | 8187 | _ASBOX |
michael@0 | 8188 | $as_echo "$ac_log" |
michael@0 | 8189 | } >&5 |
michael@0 | 8190 | |
michael@0 | 8191 | _ACEOF |
michael@0 | 8192 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8193 | _ACEOF |
michael@0 | 8194 | |
michael@0 | 8195 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8196 | |
michael@0 | 8197 | # Handling of arguments. |
michael@0 | 8198 | for ac_config_target in $ac_config_targets |
michael@0 | 8199 | do |
michael@0 | 8200 | case $ac_config_target in |
michael@0 | 8201 | "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; |
michael@0 | 8202 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
michael@0 | 8203 | "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;; |
michael@0 | 8204 | "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; |
michael@0 | 8205 | "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;; |
michael@0 | 8206 | "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;; |
michael@0 | 8207 | "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; |
michael@0 | 8208 | "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; |
michael@0 | 8209 | "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; |
michael@0 | 8210 | "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; |
michael@0 | 8211 | "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; |
michael@0 | 8212 | "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; |
michael@0 | 8213 | "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; |
michael@0 | 8214 | "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; |
michael@0 | 8215 | "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; |
michael@0 | 8216 | "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;; |
michael@0 | 8217 | "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; |
michael@0 | 8218 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; |
michael@0 | 8219 | "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; |
michael@0 | 8220 | "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; |
michael@0 | 8221 | "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; |
michael@0 | 8222 | "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; |
michael@0 | 8223 | "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; |
michael@0 | 8224 | "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; |
michael@0 | 8225 | "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; |
michael@0 | 8226 | "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;; |
michael@0 | 8227 | "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; |
michael@0 | 8228 | "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;; |
michael@0 | 8229 | "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; |
michael@0 | 8230 | "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; |
michael@0 | 8231 | "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;; |
michael@0 | 8232 | "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; |
michael@0 | 8233 | "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; |
michael@0 | 8234 | "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; |
michael@0 | 8235 | "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; |
michael@0 | 8236 | "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;; |
michael@0 | 8237 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
michael@0 | 8238 | "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; |
michael@0 | 8239 | "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; |
michael@0 | 8240 | "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;; |
michael@0 | 8241 | "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; |
michael@0 | 8242 | "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; |
michael@0 | 8243 | "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; |
michael@0 | 8244 | "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; |
michael@0 | 8245 | "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; |
michael@0 | 8246 | "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; |
michael@0 | 8247 | "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; |
michael@0 | 8248 | "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;; |
michael@0 | 8249 | "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;; |
michael@0 | 8250 | "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; |
michael@0 | 8251 | "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; |
michael@0 | 8252 | "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; |
michael@0 | 8253 | "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; |
michael@0 | 8254 | "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;; |
michael@0 | 8255 | "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;; |
michael@0 | 8256 | "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;; |
michael@0 | 8257 | "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; |
michael@0 | 8258 | "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; |
michael@0 | 8259 | "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; |
michael@0 | 8260 | "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; |
michael@0 | 8261 | "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;; |
michael@0 | 8262 | "test/perf/leperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/leperf/Makefile" ;; |
michael@0 | 8263 | "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; |
michael@0 | 8264 | "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; |
michael@0 | 8265 | "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; |
michael@0 | 8266 | "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; |
michael@0 | 8267 | |
michael@0 | 8268 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
michael@0 | 8269 | esac |
michael@0 | 8270 | done |
michael@0 | 8271 | |
michael@0 | 8272 | |
michael@0 | 8273 | # If the user did not use the arguments to specify the items to instantiate, |
michael@0 | 8274 | # then the envvar interface is used. Set only those that are not. |
michael@0 | 8275 | # We use the long form for the default assignment because of an extremely |
michael@0 | 8276 | # bizarre bug on SunOS 4.1.3. |
michael@0 | 8277 | if $ac_need_defaults; then |
michael@0 | 8278 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
michael@0 | 8279 | fi |
michael@0 | 8280 | |
michael@0 | 8281 | # Have a temporary directory for convenience. Make it in the build tree |
michael@0 | 8282 | # simply because there is no reason against having it here, and in addition, |
michael@0 | 8283 | # creating and moving files from /tmp can sometimes cause problems. |
michael@0 | 8284 | # Hook for its removal unless debugging. |
michael@0 | 8285 | # Note that there is a small window in which the directory will not be cleaned: |
michael@0 | 8286 | # after its creation but before its name has been assigned to `$tmp'. |
michael@0 | 8287 | $debug || |
michael@0 | 8288 | { |
michael@0 | 8289 | tmp= ac_tmp= |
michael@0 | 8290 | trap 'exit_status=$? |
michael@0 | 8291 | : "${ac_tmp:=$tmp}" |
michael@0 | 8292 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
michael@0 | 8293 | ' 0 |
michael@0 | 8294 | trap 'as_fn_exit 1' 1 2 13 15 |
michael@0 | 8295 | } |
michael@0 | 8296 | # Create a (secure) tmp directory for tmp files. |
michael@0 | 8297 | |
michael@0 | 8298 | { |
michael@0 | 8299 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
michael@0 | 8300 | test -d "$tmp" |
michael@0 | 8301 | } || |
michael@0 | 8302 | { |
michael@0 | 8303 | tmp=./conf$$-$RANDOM |
michael@0 | 8304 | (umask 077 && mkdir "$tmp") |
michael@0 | 8305 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
michael@0 | 8306 | ac_tmp=$tmp |
michael@0 | 8307 | |
michael@0 | 8308 | # Set up the scripts for CONFIG_FILES section. |
michael@0 | 8309 | # No need to generate them if there are no CONFIG_FILES. |
michael@0 | 8310 | # This happens for instance with `./config.status config.h'. |
michael@0 | 8311 | if test -n "$CONFIG_FILES"; then |
michael@0 | 8312 | |
michael@0 | 8313 | |
michael@0 | 8314 | ac_cr=`echo X | tr X '\015'` |
michael@0 | 8315 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
michael@0 | 8316 | # But we know of no other shell where ac_cr would be empty at this |
michael@0 | 8317 | # point, so we can use a bashism as a fallback. |
michael@0 | 8318 | if test "x$ac_cr" = x; then |
michael@0 | 8319 | eval ac_cr=\$\'\\r\' |
michael@0 | 8320 | fi |
michael@0 | 8321 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
michael@0 | 8322 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
michael@0 | 8323 | ac_cs_awk_cr='\\r' |
michael@0 | 8324 | else |
michael@0 | 8325 | ac_cs_awk_cr=$ac_cr |
michael@0 | 8326 | fi |
michael@0 | 8327 | |
michael@0 | 8328 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
michael@0 | 8329 | _ACEOF |
michael@0 | 8330 | |
michael@0 | 8331 | |
michael@0 | 8332 | { |
michael@0 | 8333 | echo "cat >conf$$subs.awk <<_ACEOF" && |
michael@0 | 8334 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
michael@0 | 8335 | echo "_ACEOF" |
michael@0 | 8336 | } >conf$$subs.sh || |
michael@0 | 8337 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 8338 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
michael@0 | 8339 | ac_delim='%!_!# ' |
michael@0 | 8340 | for ac_last_try in false false false false false :; do |
michael@0 | 8341 | . ./conf$$subs.sh || |
michael@0 | 8342 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 8343 | |
michael@0 | 8344 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
michael@0 | 8345 | if test $ac_delim_n = $ac_delim_num; then |
michael@0 | 8346 | break |
michael@0 | 8347 | elif $ac_last_try; then |
michael@0 | 8348 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 8349 | else |
michael@0 | 8350 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
michael@0 | 8351 | fi |
michael@0 | 8352 | done |
michael@0 | 8353 | rm -f conf$$subs.sh |
michael@0 | 8354 | |
michael@0 | 8355 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8356 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
michael@0 | 8357 | _ACEOF |
michael@0 | 8358 | sed -n ' |
michael@0 | 8359 | h |
michael@0 | 8360 | s/^/S["/; s/!.*/"]=/ |
michael@0 | 8361 | p |
michael@0 | 8362 | g |
michael@0 | 8363 | s/^[^!]*!// |
michael@0 | 8364 | :repl |
michael@0 | 8365 | t repl |
michael@0 | 8366 | s/'"$ac_delim"'$// |
michael@0 | 8367 | t delim |
michael@0 | 8368 | :nl |
michael@0 | 8369 | h |
michael@0 | 8370 | s/\(.\{148\}\)..*/\1/ |
michael@0 | 8371 | t more1 |
michael@0 | 8372 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
michael@0 | 8373 | p |
michael@0 | 8374 | n |
michael@0 | 8375 | b repl |
michael@0 | 8376 | :more1 |
michael@0 | 8377 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
michael@0 | 8378 | p |
michael@0 | 8379 | g |
michael@0 | 8380 | s/.\{148\}// |
michael@0 | 8381 | t nl |
michael@0 | 8382 | :delim |
michael@0 | 8383 | h |
michael@0 | 8384 | s/\(.\{148\}\)..*/\1/ |
michael@0 | 8385 | t more2 |
michael@0 | 8386 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
michael@0 | 8387 | p |
michael@0 | 8388 | b |
michael@0 | 8389 | :more2 |
michael@0 | 8390 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
michael@0 | 8391 | p |
michael@0 | 8392 | g |
michael@0 | 8393 | s/.\{148\}// |
michael@0 | 8394 | t delim |
michael@0 | 8395 | ' <conf$$subs.awk | sed ' |
michael@0 | 8396 | /^[^""]/{ |
michael@0 | 8397 | N |
michael@0 | 8398 | s/\n// |
michael@0 | 8399 | } |
michael@0 | 8400 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
michael@0 | 8401 | rm -f conf$$subs.awk |
michael@0 | 8402 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8403 | _ACAWK |
michael@0 | 8404 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
michael@0 | 8405 | for (key in S) S_is_set[key] = 1 |
michael@0 | 8406 | FS = "" |
michael@0 | 8407 | |
michael@0 | 8408 | } |
michael@0 | 8409 | { |
michael@0 | 8410 | line = $ 0 |
michael@0 | 8411 | nfields = split(line, field, "@") |
michael@0 | 8412 | substed = 0 |
michael@0 | 8413 | len = length(field[1]) |
michael@0 | 8414 | for (i = 2; i < nfields; i++) { |
michael@0 | 8415 | key = field[i] |
michael@0 | 8416 | keylen = length(key) |
michael@0 | 8417 | if (S_is_set[key]) { |
michael@0 | 8418 | value = S[key] |
michael@0 | 8419 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
michael@0 | 8420 | len += length(value) + length(field[++i]) |
michael@0 | 8421 | substed = 1 |
michael@0 | 8422 | } else |
michael@0 | 8423 | len += 1 + keylen |
michael@0 | 8424 | } |
michael@0 | 8425 | |
michael@0 | 8426 | print line |
michael@0 | 8427 | } |
michael@0 | 8428 | |
michael@0 | 8429 | _ACAWK |
michael@0 | 8430 | _ACEOF |
michael@0 | 8431 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8432 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
michael@0 | 8433 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
michael@0 | 8434 | else |
michael@0 | 8435 | cat |
michael@0 | 8436 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
michael@0 | 8437 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
michael@0 | 8438 | _ACEOF |
michael@0 | 8439 | |
michael@0 | 8440 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
michael@0 | 8441 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
michael@0 | 8442 | # trailing colons and then remove the whole line if VPATH becomes empty |
michael@0 | 8443 | # (actually we leave an empty line to preserve line numbers). |
michael@0 | 8444 | if test "x$srcdir" = x.; then |
michael@0 | 8445 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
michael@0 | 8446 | h |
michael@0 | 8447 | s/// |
michael@0 | 8448 | s/^/:/ |
michael@0 | 8449 | s/[ ]*$/:/ |
michael@0 | 8450 | s/:\$(srcdir):/:/g |
michael@0 | 8451 | s/:\${srcdir}:/:/g |
michael@0 | 8452 | s/:@srcdir@:/:/g |
michael@0 | 8453 | s/^:*// |
michael@0 | 8454 | s/:*$// |
michael@0 | 8455 | x |
michael@0 | 8456 | s/\(=[ ]*\).*/\1/ |
michael@0 | 8457 | G |
michael@0 | 8458 | s/\n// |
michael@0 | 8459 | s/^[^=]*=[ ]*$// |
michael@0 | 8460 | }' |
michael@0 | 8461 | fi |
michael@0 | 8462 | |
michael@0 | 8463 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8464 | fi # test -n "$CONFIG_FILES" |
michael@0 | 8465 | |
michael@0 | 8466 | |
michael@0 | 8467 | eval set X " :F $CONFIG_FILES " |
michael@0 | 8468 | shift |
michael@0 | 8469 | for ac_tag |
michael@0 | 8470 | do |
michael@0 | 8471 | case $ac_tag in |
michael@0 | 8472 | :[FHLC]) ac_mode=$ac_tag; continue;; |
michael@0 | 8473 | esac |
michael@0 | 8474 | case $ac_mode$ac_tag in |
michael@0 | 8475 | :[FHL]*:*);; |
michael@0 | 8476 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
michael@0 | 8477 | :[FH]-) ac_tag=-:-;; |
michael@0 | 8478 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
michael@0 | 8479 | esac |
michael@0 | 8480 | ac_save_IFS=$IFS |
michael@0 | 8481 | IFS=: |
michael@0 | 8482 | set x $ac_tag |
michael@0 | 8483 | IFS=$ac_save_IFS |
michael@0 | 8484 | shift |
michael@0 | 8485 | ac_file=$1 |
michael@0 | 8486 | shift |
michael@0 | 8487 | |
michael@0 | 8488 | case $ac_mode in |
michael@0 | 8489 | :L) ac_source=$1;; |
michael@0 | 8490 | :[FH]) |
michael@0 | 8491 | ac_file_inputs= |
michael@0 | 8492 | for ac_f |
michael@0 | 8493 | do |
michael@0 | 8494 | case $ac_f in |
michael@0 | 8495 | -) ac_f="$ac_tmp/stdin";; |
michael@0 | 8496 | *) # Look for the file first in the build tree, then in the source tree |
michael@0 | 8497 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
michael@0 | 8498 | # because $ac_f cannot contain `:'. |
michael@0 | 8499 | test -f "$ac_f" || |
michael@0 | 8500 | case $ac_f in |
michael@0 | 8501 | [\\/$]*) false;; |
michael@0 | 8502 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
michael@0 | 8503 | esac || |
michael@0 | 8504 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
michael@0 | 8505 | esac |
michael@0 | 8506 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
michael@0 | 8507 | as_fn_append ac_file_inputs " '$ac_f'" |
michael@0 | 8508 | done |
michael@0 | 8509 | |
michael@0 | 8510 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
michael@0 | 8511 | # use $as_me), people would be surprised to read: |
michael@0 | 8512 | # /* config.h. Generated by config.status. */ |
michael@0 | 8513 | configure_input='Generated from '` |
michael@0 | 8514 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
michael@0 | 8515 | `' by configure.' |
michael@0 | 8516 | if test x"$ac_file" != x-; then |
michael@0 | 8517 | configure_input="$ac_file. $configure_input" |
michael@0 | 8518 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
michael@0 | 8519 | $as_echo "$as_me: creating $ac_file" >&6;} |
michael@0 | 8520 | fi |
michael@0 | 8521 | # Neutralize special characters interpreted by sed in replacement strings. |
michael@0 | 8522 | case $configure_input in #( |
michael@0 | 8523 | *\&* | *\|* | *\\* ) |
michael@0 | 8524 | ac_sed_conf_input=`$as_echo "$configure_input" | |
michael@0 | 8525 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
michael@0 | 8526 | *) ac_sed_conf_input=$configure_input;; |
michael@0 | 8527 | esac |
michael@0 | 8528 | |
michael@0 | 8529 | case $ac_tag in |
michael@0 | 8530 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
michael@0 | 8531 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
michael@0 | 8532 | esac |
michael@0 | 8533 | ;; |
michael@0 | 8534 | esac |
michael@0 | 8535 | |
michael@0 | 8536 | ac_dir=`$as_dirname -- "$ac_file" || |
michael@0 | 8537 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
michael@0 | 8538 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
michael@0 | 8539 | X"$ac_file" : 'X\(//\)$' \| \ |
michael@0 | 8540 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
michael@0 | 8541 | $as_echo X"$ac_file" | |
michael@0 | 8542 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
michael@0 | 8543 | s//\1/ |
michael@0 | 8544 | q |
michael@0 | 8545 | } |
michael@0 | 8546 | /^X\(\/\/\)[^/].*/{ |
michael@0 | 8547 | s//\1/ |
michael@0 | 8548 | q |
michael@0 | 8549 | } |
michael@0 | 8550 | /^X\(\/\/\)$/{ |
michael@0 | 8551 | s//\1/ |
michael@0 | 8552 | q |
michael@0 | 8553 | } |
michael@0 | 8554 | /^X\(\/\).*/{ |
michael@0 | 8555 | s//\1/ |
michael@0 | 8556 | q |
michael@0 | 8557 | } |
michael@0 | 8558 | s/.*/./; q'` |
michael@0 | 8559 | as_dir="$ac_dir"; as_fn_mkdir_p |
michael@0 | 8560 | ac_builddir=. |
michael@0 | 8561 | |
michael@0 | 8562 | case "$ac_dir" in |
michael@0 | 8563 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 8564 | *) |
michael@0 | 8565 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
michael@0 | 8566 | # A ".." for each directory in $ac_dir_suffix. |
michael@0 | 8567 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
michael@0 | 8568 | case $ac_top_builddir_sub in |
michael@0 | 8569 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
michael@0 | 8570 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
michael@0 | 8571 | esac ;; |
michael@0 | 8572 | esac |
michael@0 | 8573 | ac_abs_top_builddir=$ac_pwd |
michael@0 | 8574 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
michael@0 | 8575 | # for backward compatibility: |
michael@0 | 8576 | ac_top_builddir=$ac_top_build_prefix |
michael@0 | 8577 | |
michael@0 | 8578 | case $srcdir in |
michael@0 | 8579 | .) # We are building in place. |
michael@0 | 8580 | ac_srcdir=. |
michael@0 | 8581 | ac_top_srcdir=$ac_top_builddir_sub |
michael@0 | 8582 | ac_abs_top_srcdir=$ac_pwd ;; |
michael@0 | 8583 | [\\/]* | ?:[\\/]* ) # Absolute name. |
michael@0 | 8584 | ac_srcdir=$srcdir$ac_dir_suffix; |
michael@0 | 8585 | ac_top_srcdir=$srcdir |
michael@0 | 8586 | ac_abs_top_srcdir=$srcdir ;; |
michael@0 | 8587 | *) # Relative name. |
michael@0 | 8588 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
michael@0 | 8589 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
michael@0 | 8590 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
michael@0 | 8591 | esac |
michael@0 | 8592 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
michael@0 | 8593 | |
michael@0 | 8594 | |
michael@0 | 8595 | case $ac_mode in |
michael@0 | 8596 | :F) |
michael@0 | 8597 | # |
michael@0 | 8598 | # CONFIG_FILE |
michael@0 | 8599 | # |
michael@0 | 8600 | |
michael@0 | 8601 | case $INSTALL in |
michael@0 | 8602 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
michael@0 | 8603 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
michael@0 | 8604 | esac |
michael@0 | 8605 | _ACEOF |
michael@0 | 8606 | |
michael@0 | 8607 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8608 | # If the template does not know about datarootdir, expand it. |
michael@0 | 8609 | # FIXME: This hack should be removed a few years after 2.60. |
michael@0 | 8610 | ac_datarootdir_hack=; ac_datarootdir_seen= |
michael@0 | 8611 | ac_sed_dataroot=' |
michael@0 | 8612 | /datarootdir/ { |
michael@0 | 8613 | p |
michael@0 | 8614 | q |
michael@0 | 8615 | } |
michael@0 | 8616 | /@datadir@/p |
michael@0 | 8617 | /@docdir@/p |
michael@0 | 8618 | /@infodir@/p |
michael@0 | 8619 | /@localedir@/p |
michael@0 | 8620 | /@mandir@/p' |
michael@0 | 8621 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
michael@0 | 8622 | *datarootdir*) ac_datarootdir_seen=yes;; |
michael@0 | 8623 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
michael@0 | 8624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
michael@0 | 8625 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
michael@0 | 8626 | _ACEOF |
michael@0 | 8627 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8628 | ac_datarootdir_hack=' |
michael@0 | 8629 | s&@datadir@&$datadir&g |
michael@0 | 8630 | s&@docdir@&$docdir&g |
michael@0 | 8631 | s&@infodir@&$infodir&g |
michael@0 | 8632 | s&@localedir@&$localedir&g |
michael@0 | 8633 | s&@mandir@&$mandir&g |
michael@0 | 8634 | s&\\\${datarootdir}&$datarootdir&g' ;; |
michael@0 | 8635 | esac |
michael@0 | 8636 | _ACEOF |
michael@0 | 8637 | |
michael@0 | 8638 | # Neutralize VPATH when `$srcdir' = `.'. |
michael@0 | 8639 | # Shell code in configure.ac might set extrasub. |
michael@0 | 8640 | # FIXME: do we really want to maintain this feature? |
michael@0 | 8641 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
michael@0 | 8642 | ac_sed_extra="$ac_vpsub |
michael@0 | 8643 | $extrasub |
michael@0 | 8644 | _ACEOF |
michael@0 | 8645 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
michael@0 | 8646 | :t |
michael@0 | 8647 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
michael@0 | 8648 | s|@configure_input@|$ac_sed_conf_input|;t t |
michael@0 | 8649 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
michael@0 | 8650 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
michael@0 | 8651 | s&@srcdir@&$ac_srcdir&;t t |
michael@0 | 8652 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
michael@0 | 8653 | s&@top_srcdir@&$ac_top_srcdir&;t t |
michael@0 | 8654 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
michael@0 | 8655 | s&@builddir@&$ac_builddir&;t t |
michael@0 | 8656 | s&@abs_builddir@&$ac_abs_builddir&;t t |
michael@0 | 8657 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
michael@0 | 8658 | s&@INSTALL@&$ac_INSTALL&;t t |
michael@0 | 8659 | $ac_datarootdir_hack |
michael@0 | 8660 | " |
michael@0 | 8661 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
michael@0 | 8662 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 8663 | |
michael@0 | 8664 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
michael@0 | 8665 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
michael@0 | 8666 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
michael@0 | 8667 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
michael@0 | 8668 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
michael@0 | 8669 | which seems to be undefined. Please make sure it is defined" >&5 |
michael@0 | 8670 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
michael@0 | 8671 | which seems to be undefined. Please make sure it is defined" >&2;} |
michael@0 | 8672 | |
michael@0 | 8673 | rm -f "$ac_tmp/stdin" |
michael@0 | 8674 | case $ac_file in |
michael@0 | 8675 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
michael@0 | 8676 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
michael@0 | 8677 | esac \ |
michael@0 | 8678 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
michael@0 | 8679 | ;; |
michael@0 | 8680 | |
michael@0 | 8681 | |
michael@0 | 8682 | |
michael@0 | 8683 | esac |
michael@0 | 8684 | |
michael@0 | 8685 | done # for ac_tag |
michael@0 | 8686 | |
michael@0 | 8687 | |
michael@0 | 8688 | as_fn_exit 0 |
michael@0 | 8689 | _ACEOF |
michael@0 | 8690 | ac_clean_files=$ac_clean_files_save |
michael@0 | 8691 | |
michael@0 | 8692 | test $ac_write_fail = 0 || |
michael@0 | 8693 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
michael@0 | 8694 | |
michael@0 | 8695 | |
michael@0 | 8696 | # configure is writing to config.log, and then calls config.status. |
michael@0 | 8697 | # config.status does its own redirection, appending to config.log. |
michael@0 | 8698 | # Unfortunately, on DOS this fails, as config.log is still kept open |
michael@0 | 8699 | # by configure, so config.status won't be able to write to it; its |
michael@0 | 8700 | # output is simply discarded. So we exec the FD to /dev/null, |
michael@0 | 8701 | # effectively closing config.log, so it can be properly (re)opened and |
michael@0 | 8702 | # appended to by config.status. When coming back to configure, we |
michael@0 | 8703 | # need to make the FD available again. |
michael@0 | 8704 | if test "$no_create" != yes; then |
michael@0 | 8705 | ac_cs_success=: |
michael@0 | 8706 | ac_config_status_args= |
michael@0 | 8707 | test "$silent" = yes && |
michael@0 | 8708 | ac_config_status_args="$ac_config_status_args --quiet" |
michael@0 | 8709 | exec 5>/dev/null |
michael@0 | 8710 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
michael@0 | 8711 | exec 5>>config.log |
michael@0 | 8712 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
michael@0 | 8713 | # would make configure fail if this is the last instruction. |
michael@0 | 8714 | $ac_cs_success || as_fn_exit 1 |
michael@0 | 8715 | fi |
michael@0 | 8716 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
michael@0 | 8717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
michael@0 | 8718 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
michael@0 | 8719 | fi |
michael@0 | 8720 | |
michael@0 | 8721 | |
michael@0 | 8722 | echo |
michael@0 | 8723 | echo "ICU for C/C++ $VERSION is ready to be built." |
michael@0 | 8724 | echo "=== Important Notes: ===" |
michael@0 | 8725 | |
michael@0 | 8726 | echo "Data Packaging: $datapackaging" |
michael@0 | 8727 | echo " This means: $datapackaging_msg" |
michael@0 | 8728 | echo " To locate data: $datapackaging_howfound" |
michael@0 | 8729 | |
michael@0 | 8730 | if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then |
michael@0 | 8731 | echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU." |
michael@0 | 8732 | else |
michael@0 | 8733 | echo "** WARNING: $U_MAKE may not be GNU make." |
michael@0 | 8734 | echo "This may cause ICU to fail to build. Please make sure that GNU make" |
michael@0 | 8735 | echo "is in your PATH so that the configure script can detect its location." |
michael@0 | 8736 | fi |
michael@0 | 8737 | if test "x$AR" = "xfalse"; then |
michael@0 | 8738 | echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail." |
michael@0 | 8739 | fi |
michael@0 | 8740 | |
michael@0 | 8741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5 |
michael@0 | 8742 | $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; } |
michael@0 | 8743 | if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then |
michael@0 | 8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
michael@0 | 8745 | $as_echo "ok" >&6; } |
michael@0 | 8746 | else |
michael@0 | 8747 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5 |
michael@0 | 8748 | $as_echo "too old or test failed - try upgrading GNU Make" >&6; } |
michael@0 | 8749 | fi |
michael@0 | 8750 | |
michael@0 | 8751 | |
michael@0 | 8752 | if test -n "$UCONFIG_CPPFLAGS"; then |
michael@0 | 8753 | HDRFILE="uconfig.h.prepend" |
michael@0 | 8754 | echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:" |
michael@0 | 8755 | echo |
michael@0 | 8756 | echo " ${UCONFIG_CPPFLAGS}" |
michael@0 | 8757 | echo |
michael@0 | 8758 | echo 'The recommended way to do this is to prepend the following lines to source/common/unicode/uconfig.h or #include them near the top of that file.' |
michael@0 | 8759 | echo "Creating the file ${HDRFILE}" |
michael@0 | 8760 | echo |
michael@0 | 8761 | echo '--------------- ' "${HDRFILE}" |
michael@0 | 8762 | echo > "${HDRFILE}" |
michael@0 | 8763 | echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}" |
michael@0 | 8764 | echo >> "${HDRFILE}" |
michael@0 | 8765 | for flag in ${UCONFIG_CPPFLAGS}; |
michael@0 | 8766 | do |
michael@0 | 8767 | echo " /* $flag */" >> "${HDRFILE}" |
michael@0 | 8768 | case "${flag}" in |
michael@0 | 8769 | -D*=*) |
michael@0 | 8770 | \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" |
michael@0 | 8771 | \echo >> "${HDRFILE}" |
michael@0 | 8772 | ;; |
michael@0 | 8773 | -D*) |
michael@0 | 8774 | \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" |
michael@0 | 8775 | \echo >> "${HDRFILE}" |
michael@0 | 8776 | ;; |
michael@0 | 8777 | *) |
michael@0 | 8778 | \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}" |
michael@0 | 8779 | \echo >> "${HDRFILE}" |
michael@0 | 8780 | ;; |
michael@0 | 8781 | esac |
michael@0 | 8782 | done |
michael@0 | 8783 | cat "${HDRFILE}" |
michael@0 | 8784 | \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}" |
michael@0 | 8785 | echo >> "${HDRFILE}" |
michael@0 | 8786 | echo '--------------- end ' "${HDRFILE}" |
michael@0 | 8787 | fi |
michael@0 | 8788 | |
michael@0 | 8789 | |
michael@0 | 8790 | if test -n "$UCONFIG_CFLAGS"; then |
michael@0 | 8791 | echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}" |
michael@0 | 8792 | fi |
michael@0 | 8793 | |
michael@0 | 8794 | if test -n "$UCONFIG_CXXFLAGS"; then |
michael@0 | 8795 | echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}" |
michael@0 | 8796 | fi |
michael@0 | 8797 | |
michael@0 | 8798 | if test "$tools" = false; |
michael@0 | 8799 | then |
michael@0 | 8800 | echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests." |
michael@0 | 8801 | echo "## Expect build failures in the 'data', 'test', and other directories." |
michael@0 | 8802 | fi |
michael@0 | 8803 | |
michael@0 | 8804 | $as_unset _CXX_CXXSUFFIX |