NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.68 for mingw-w64 3.0b. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 4 | # |
| 5 | # Report bugs to <mingw-w64-public@lists.sourceforge.net>. |
| 6 | # |
| 7 | # |
| 8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
| 10 | # Foundation, Inc. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 11 | # |
| 12 | # |
| 13 | # This configure script is free software; the Free Software Foundation |
| 14 | # gives unlimited permission to copy, distribute and modify it. |
| 15 | ## -------------------- ## |
| 16 | ## M4sh Initialization. ## |
| 17 | ## -------------------- ## |
| 18 | |
| 19 | # Be more Bourne compatible |
| 20 | DUALCASE=1; export DUALCASE # for MKS sh |
| 21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 22 | emulate sh |
| 23 | NULLCMD=: |
| 24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25 | # is contrary to our usage. Disable this feature. |
| 26 | alias -g '${1+"$@"}'='"$@"' |
| 27 | setopt NO_GLOB_SUBST |
| 28 | else |
| 29 | case `(set -o) 2>/dev/null` in #( |
| 30 | *posix*) : |
| 31 | set -o posix ;; #( |
| 32 | *) : |
| 33 | ;; |
| 34 | esac |
| 35 | fi |
| 36 | |
| 37 | |
| 38 | as_nl=' |
| 39 | ' |
| 40 | export as_nl |
| 41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 46 | # but without wasting forks for bash or zsh. |
| 47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 49 | as_echo='print -r --' |
| 50 | as_echo_n='print -rn --' |
| 51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 52 | as_echo='printf %s\n' |
| 53 | as_echo_n='printf %s' |
| 54 | else |
| 55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 57 | as_echo_n='/usr/ucb/echo -n' |
| 58 | else |
| 59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 60 | as_echo_n_body='eval |
| 61 | arg=$1; |
| 62 | case $arg in #( |
| 63 | *"$as_nl"*) |
| 64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 66 | esac; |
| 67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 68 | ' |
| 69 | export as_echo_n_body |
| 70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 71 | fi |
| 72 | export as_echo_body |
| 73 | as_echo='sh -c $as_echo_body as_echo' |
| 74 | fi |
| 75 | |
| 76 | # The user is always right. |
| 77 | if test "${PATH_SEPARATOR+set}" != set; then |
| 78 | PATH_SEPARATOR=: |
| 79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 81 | PATH_SEPARATOR=';' |
| 82 | } |
| 83 | fi |
| 84 | |
| 85 | |
| 86 | # IFS |
| 87 | # We need space, tab and new line, in precisely that order. Quoting is |
| 88 | # there to prevent editors from complaining about space-tab. |
| 89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 90 | # splitting by setting IFS to empty value.) |
| 91 | IFS=" "" $as_nl" |
| 92 | |
| 93 | # Find who we are. Look in the path if we contain no directory separator. |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 94 | as_myself= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 95 | case $0 in #(( |
| 96 | *[\\/]* ) as_myself=$0 ;; |
| 97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 98 | for as_dir in $PATH |
| 99 | do |
| 100 | IFS=$as_save_IFS |
| 101 | test -z "$as_dir" && as_dir=. |
| 102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 103 | done |
| 104 | IFS=$as_save_IFS |
| 105 | |
| 106 | ;; |
| 107 | esac |
| 108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 109 | # in which case we are not to be found in the path. |
| 110 | if test "x$as_myself" = x; then |
| 111 | as_myself=$0 |
| 112 | fi |
| 113 | if test ! -f "$as_myself"; then |
| 114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 115 | exit 1 |
| 116 | fi |
| 117 | |
| 118 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 120 | # suppresses any "Segmentation fault" message there. '((' could |
| 121 | # trigger a bug in pdksh 5.2.14. |
| 122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 123 | do eval test x\${$as_var+set} = xset \ |
| 124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 125 | done |
| 126 | PS1='$ ' |
| 127 | PS2='> ' |
| 128 | PS4='+ ' |
| 129 | |
| 130 | # NLS nuisances. |
| 131 | LC_ALL=C |
| 132 | export LC_ALL |
| 133 | LANGUAGE=C |
| 134 | export LANGUAGE |
| 135 | |
| 136 | # CDPATH. |
| 137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 138 | |
| 139 | if test "x$CONFIG_SHELL" = x; then |
| 140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 141 | emulate sh |
| 142 | NULLCMD=: |
| 143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 144 | # is contrary to our usage. Disable this feature. |
| 145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 146 | setopt NO_GLOB_SUBST |
| 147 | else |
| 148 | case \`(set -o) 2>/dev/null\` in #( |
| 149 | *posix*) : |
| 150 | set -o posix ;; #( |
| 151 | *) : |
| 152 | ;; |
| 153 | esac |
| 154 | fi |
| 155 | " |
| 156 | as_required="as_fn_return () { (exit \$1); } |
| 157 | as_fn_success () { as_fn_return 0; } |
| 158 | as_fn_failure () { as_fn_return 1; } |
| 159 | as_fn_ret_success () { return 0; } |
| 160 | as_fn_ret_failure () { return 1; } |
| 161 | |
| 162 | exitcode=0 |
| 163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 168 | |
| 169 | else |
| 170 | exitcode=1; echo positional parameters were not saved. |
| 171 | fi |
| 172 | test x\$exitcode = x0 || exit 1" |
| 173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" |
| 177 | if (eval "$as_required") 2>/dev/null; then : |
| 178 | as_have_required=yes |
| 179 | else |
| 180 | as_have_required=no |
| 181 | fi |
| 182 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 183 | |
| 184 | else |
| 185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 186 | as_found=false |
| 187 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 188 | do |
| 189 | IFS=$as_save_IFS |
| 190 | test -z "$as_dir" && as_dir=. |
| 191 | as_found=: |
| 192 | case $as_dir in #( |
| 193 | /*) |
| 194 | for as_base in sh bash ksh sh5; do |
| 195 | # Try only shells that exist, to save several forks. |
| 196 | as_shell=$as_dir/$as_base |
| 197 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 198 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 200 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 201 | break 2 |
| 202 | fi |
| 203 | fi |
| 204 | done;; |
| 205 | esac |
| 206 | as_found=false |
| 207 | done |
| 208 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 209 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 210 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 211 | fi; } |
| 212 | IFS=$as_save_IFS |
| 213 | |
| 214 | |
| 215 | if test "x$CONFIG_SHELL" != x; then : |
| 216 | # We cannot yet assume a decent shell, so we have to provide a |
| 217 | # neutralization value for shells without unset; and this also |
| 218 | # works around shells that cannot unset nonexistent variables. |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 219 | # Preserve -v and -x to the replacement shell. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 220 | BASH_ENV=/dev/null |
| 221 | ENV=/dev/null |
| 222 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 223 | export CONFIG_SHELL |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 224 | case $- in # (((( |
| 225 | *v*x* | *x*v* ) as_opts=-vx ;; |
| 226 | *v* ) as_opts=-v ;; |
| 227 | *x* ) as_opts=-x ;; |
| 228 | * ) as_opts= ;; |
| 229 | esac |
| 230 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 231 | fi |
| 232 | |
| 233 | if test x$as_have_required = xno; then : |
| 234 | $as_echo "$0: This script requires a shell more modern than all" |
| 235 | $as_echo "$0: the shells that I found on your system." |
| 236 | if test x${ZSH_VERSION+set} = xset ; then |
| 237 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 238 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 239 | else |
| 240 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
| 241 | $0: mingw-w64-public@lists.sourceforge.net about your |
| 242 | $0: system, including any error possibly output before this |
| 243 | $0: message. Then install a modern shell, or manually run |
| 244 | $0: the script under such a shell if you do have one." |
| 245 | fi |
| 246 | exit 1 |
| 247 | fi |
| 248 | fi |
| 249 | fi |
| 250 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 251 | export SHELL |
| 252 | # Unset more variables known to interfere with behavior of common tools. |
| 253 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 254 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 255 | |
| 256 | ## --------------------- ## |
| 257 | ## M4sh Shell Functions. ## |
| 258 | ## --------------------- ## |
| 259 | # as_fn_unset VAR |
| 260 | # --------------- |
| 261 | # Portably unset VAR. |
| 262 | as_fn_unset () |
| 263 | { |
| 264 | { eval $1=; unset $1;} |
| 265 | } |
| 266 | as_unset=as_fn_unset |
| 267 | |
| 268 | # as_fn_set_status STATUS |
| 269 | # ----------------------- |
| 270 | # Set $? to STATUS, without forking. |
| 271 | as_fn_set_status () |
| 272 | { |
| 273 | return $1 |
| 274 | } # as_fn_set_status |
| 275 | |
| 276 | # as_fn_exit STATUS |
| 277 | # ----------------- |
| 278 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 279 | as_fn_exit () |
| 280 | { |
| 281 | set +e |
| 282 | as_fn_set_status $1 |
| 283 | exit $1 |
| 284 | } # as_fn_exit |
| 285 | |
| 286 | # as_fn_mkdir_p |
| 287 | # ------------- |
| 288 | # Create "$as_dir" as a directory, including parents if necessary. |
| 289 | as_fn_mkdir_p () |
| 290 | { |
| 291 | |
| 292 | case $as_dir in #( |
| 293 | -*) as_dir=./$as_dir;; |
| 294 | esac |
| 295 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 296 | as_dirs= |
| 297 | while :; do |
| 298 | case $as_dir in #( |
| 299 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 300 | *) as_qdir=$as_dir;; |
| 301 | esac |
| 302 | as_dirs="'$as_qdir' $as_dirs" |
| 303 | as_dir=`$as_dirname -- "$as_dir" || |
| 304 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 305 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 306 | X"$as_dir" : 'X\(//\)$' \| \ |
| 307 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 308 | $as_echo X"$as_dir" | |
| 309 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 310 | s//\1/ |
| 311 | q |
| 312 | } |
| 313 | /^X\(\/\/\)[^/].*/{ |
| 314 | s//\1/ |
| 315 | q |
| 316 | } |
| 317 | /^X\(\/\/\)$/{ |
| 318 | s//\1/ |
| 319 | q |
| 320 | } |
| 321 | /^X\(\/\).*/{ |
| 322 | s//\1/ |
| 323 | q |
| 324 | } |
| 325 | s/.*/./; q'` |
| 326 | test -d "$as_dir" && break |
| 327 | done |
| 328 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 329 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 330 | |
| 331 | |
| 332 | } # as_fn_mkdir_p |
| 333 | # as_fn_append VAR VALUE |
| 334 | # ---------------------- |
| 335 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 336 | # advantage of any shell optimizations that allow amortized linear growth over |
| 337 | # repeated appends, instead of the typical quadratic growth present in naive |
| 338 | # implementations. |
| 339 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 340 | eval 'as_fn_append () |
| 341 | { |
| 342 | eval $1+=\$2 |
| 343 | }' |
| 344 | else |
| 345 | as_fn_append () |
| 346 | { |
| 347 | eval $1=\$$1\$2 |
| 348 | } |
| 349 | fi # as_fn_append |
| 350 | |
| 351 | # as_fn_arith ARG... |
| 352 | # ------------------ |
| 353 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 354 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 355 | # must be portable across $(()) and expr. |
| 356 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 357 | eval 'as_fn_arith () |
| 358 | { |
| 359 | as_val=$(( $* )) |
| 360 | }' |
| 361 | else |
| 362 | as_fn_arith () |
| 363 | { |
| 364 | as_val=`expr "$@" || test $? -eq 1` |
| 365 | } |
| 366 | fi # as_fn_arith |
| 367 | |
| 368 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 369 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 370 | # ---------------------------------------- |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 371 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 372 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 373 | # script with STATUS, using 1 if that was 0. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 374 | as_fn_error () |
| 375 | { |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 376 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 377 | if test "$4"; then |
| 378 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 379 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 380 | fi |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 381 | $as_echo "$as_me: error: $2" >&2 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 382 | as_fn_exit $as_status |
| 383 | } # as_fn_error |
| 384 | |
| 385 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 386 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 387 | as_expr=expr |
| 388 | else |
| 389 | as_expr=false |
| 390 | fi |
| 391 | |
| 392 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 393 | as_basename=basename |
| 394 | else |
| 395 | as_basename=false |
| 396 | fi |
| 397 | |
| 398 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 399 | as_dirname=dirname |
| 400 | else |
| 401 | as_dirname=false |
| 402 | fi |
| 403 | |
| 404 | as_me=`$as_basename -- "$0" || |
| 405 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 406 | X"$0" : 'X\(//\)$' \| \ |
| 407 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 408 | $as_echo X/"$0" | |
| 409 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 410 | s//\1/ |
| 411 | q |
| 412 | } |
| 413 | /^X\/\(\/\/\)$/{ |
| 414 | s//\1/ |
| 415 | q |
| 416 | } |
| 417 | /^X\/\(\/\).*/{ |
| 418 | s//\1/ |
| 419 | q |
| 420 | } |
| 421 | s/.*/./; q'` |
| 422 | |
| 423 | # Avoid depending upon Character Ranges. |
| 424 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 425 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 426 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 427 | as_cr_digits='0123456789' |
| 428 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 429 | |
| 430 | |
| 431 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 432 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 433 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 434 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 435 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 436 | sed -n ' |
| 437 | p |
| 438 | /[$]LINENO/= |
| 439 | ' <$as_myself | |
| 440 | sed ' |
| 441 | s/[$]LINENO.*/&-/ |
| 442 | t lineno |
| 443 | b |
| 444 | :lineno |
| 445 | N |
| 446 | :loop |
| 447 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 448 | t loop |
| 449 | s/-\n.*// |
| 450 | ' >$as_me.lineno && |
| 451 | chmod +x "$as_me.lineno" || |
| 452 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 453 | |
| 454 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 455 | # (the dirname of $[0] is not the place where we might find the |
| 456 | # original and so on. Autoconf is especially sensitive to this). |
| 457 | . "./$as_me.lineno" |
| 458 | # Exit status is that of the last command. |
| 459 | exit |
| 460 | } |
| 461 | |
| 462 | ECHO_C= ECHO_N= ECHO_T= |
| 463 | case `echo -n x` in #((((( |
| 464 | -n*) |
| 465 | case `echo 'xy\c'` in |
| 466 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 467 | xy) ECHO_C='\c';; |
| 468 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 469 | ECHO_T=' ';; |
| 470 | esac;; |
| 471 | *) |
| 472 | ECHO_N='-n';; |
| 473 | esac |
| 474 | |
| 475 | rm -f conf$$ conf$$.exe conf$$.file |
| 476 | if test -d conf$$.dir; then |
| 477 | rm -f conf$$.dir/conf$$.file |
| 478 | else |
| 479 | rm -f conf$$.dir |
| 480 | mkdir conf$$.dir 2>/dev/null |
| 481 | fi |
| 482 | if (echo >conf$$.file) 2>/dev/null; then |
| 483 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 484 | as_ln_s='ln -s' |
| 485 | # ... but there are two gotchas: |
| 486 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 487 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 488 | # In both cases, we have to default to `cp -p'. |
| 489 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 490 | as_ln_s='cp -p' |
| 491 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 492 | as_ln_s=ln |
| 493 | else |
| 494 | as_ln_s='cp -p' |
| 495 | fi |
| 496 | else |
| 497 | as_ln_s='cp -p' |
| 498 | fi |
| 499 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 500 | rmdir conf$$.dir 2>/dev/null |
| 501 | |
| 502 | if mkdir -p . 2>/dev/null; then |
| 503 | as_mkdir_p='mkdir -p "$as_dir"' |
| 504 | else |
| 505 | test -d ./-p && rmdir ./-p |
| 506 | as_mkdir_p=false |
| 507 | fi |
| 508 | |
| 509 | if test -x / >/dev/null 2>&1; then |
| 510 | as_test_x='test -x' |
| 511 | else |
| 512 | if ls -dL / >/dev/null 2>&1; then |
| 513 | as_ls_L_option=L |
| 514 | else |
| 515 | as_ls_L_option= |
| 516 | fi |
| 517 | as_test_x=' |
| 518 | eval sh -c '\'' |
| 519 | if test -d "$1"; then |
| 520 | test -d "$1/."; |
| 521 | else |
| 522 | case $1 in #( |
| 523 | -*)set "./$1";; |
| 524 | esac; |
| 525 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 526 | ???[sx]*):;;*)false;;esac;fi |
| 527 | '\'' sh |
| 528 | ' |
| 529 | fi |
| 530 | as_executable_p=$as_test_x |
| 531 | |
| 532 | # Sed expression to map a string onto a valid CPP name. |
| 533 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 534 | |
| 535 | # Sed expression to map a string onto a valid variable name. |
| 536 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 537 | |
| 538 | |
| 539 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 540 | exec 6>&1 |
| 541 | |
| 542 | # Name of the host. |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 543 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 544 | # so uname gets run too. |
| 545 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 546 | |
| 547 | # |
| 548 | # Initializations. |
| 549 | # |
| 550 | ac_default_prefix=/usr/local |
| 551 | ac_clean_files= |
| 552 | ac_config_libobj_dir=. |
| 553 | LIBOBJS= |
| 554 | cross_compiling=no |
| 555 | subdirs= |
| 556 | MFLAGS= |
| 557 | MAKEFLAGS= |
| 558 | |
| 559 | # Identity of this package. |
| 560 | PACKAGE_NAME='mingw-w64' |
| 561 | PACKAGE_TARNAME='mingw-w64' |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 562 | PACKAGE_VERSION='3.0b' |
| 563 | PACKAGE_STRING='mingw-w64 3.0b' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 564 | PACKAGE_BUGREPORT='mingw-w64-public@lists.sourceforge.net' |
| 565 | PACKAGE_URL='' |
| 566 | |
| 567 | ac_unique_file="AUTHORS" |
| 568 | enable_option_checking=no |
| 569 | ac_subst_vars='LTLIBOBJS |
| 570 | LIBOBJS |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 571 | TOOLS_GENIDL_FALSE |
| 572 | TOOLS_GENIDL_TRUE |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 573 | TOOLS_GENDEF_FALSE |
| 574 | TOOLS_GENDEF_TRUE |
| 575 | LIBRARIES_PSEH_FALSE |
| 576 | LIBRARIES_PSEH_TRUE |
| 577 | LIBRARIES_MANGLE_FALSE |
| 578 | LIBRARIES_MANGLE_TRUE |
| 579 | CRT_FALSE |
| 580 | CRT_TRUE |
| 581 | HEADER_FALSE |
| 582 | HEADER_TRUE |
| 583 | subdirs |
| 584 | host_os |
| 585 | host_vendor |
| 586 | host_cpu |
| 587 | host |
| 588 | build_os |
| 589 | build_vendor |
| 590 | build_cpu |
| 591 | build |
| 592 | am__untar |
| 593 | am__tar |
| 594 | AMTAR |
| 595 | am__leading_dot |
| 596 | SET_MAKE |
| 597 | AWK |
| 598 | mkdir_p |
| 599 | MKDIR_P |
| 600 | INSTALL_STRIP_PROGRAM |
| 601 | STRIP |
| 602 | install_sh |
| 603 | MAKEINFO |
| 604 | AUTOHEADER |
| 605 | AUTOMAKE |
| 606 | AUTOCONF |
| 607 | ACLOCAL |
| 608 | VERSION |
| 609 | PACKAGE |
| 610 | CYGPATH_W |
| 611 | am__isrc |
| 612 | INSTALL_DATA |
| 613 | INSTALL_SCRIPT |
| 614 | INSTALL_PROGRAM |
| 615 | MAINT |
| 616 | MAINTAINER_MODE_FALSE |
| 617 | MAINTAINER_MODE_TRUE |
| 618 | target_alias |
| 619 | host_alias |
| 620 | build_alias |
| 621 | LIBS |
| 622 | ECHO_T |
| 623 | ECHO_N |
| 624 | ECHO_C |
| 625 | DEFS |
| 626 | mandir |
| 627 | localedir |
| 628 | libdir |
| 629 | psdir |
| 630 | pdfdir |
| 631 | dvidir |
| 632 | htmldir |
| 633 | infodir |
| 634 | docdir |
| 635 | oldincludedir |
| 636 | includedir |
| 637 | localstatedir |
| 638 | sharedstatedir |
| 639 | sysconfdir |
| 640 | datadir |
| 641 | datarootdir |
| 642 | libexecdir |
| 643 | sbindir |
| 644 | bindir |
| 645 | program_transform_name |
| 646 | prefix |
| 647 | exec_prefix |
| 648 | PACKAGE_URL |
| 649 | PACKAGE_BUGREPORT |
| 650 | PACKAGE_STRING |
| 651 | PACKAGE_VERSION |
| 652 | PACKAGE_TARNAME |
| 653 | PACKAGE_NAME |
| 654 | PATH_SEPARATOR |
| 655 | SHELL' |
| 656 | ac_subst_files='' |
| 657 | ac_user_opts=' |
| 658 | enable_option_checking |
| 659 | enable_maintainer_mode |
| 660 | with_headers |
| 661 | with_crt |
| 662 | with_libraries |
| 663 | with_tools |
| 664 | ' |
| 665 | ac_precious_vars='build_alias |
| 666 | host_alias |
| 667 | target_alias' |
| 668 | ac_subdirs_all='mingw-w64-headers |
| 669 | mingw-w64-crt |
| 670 | mingw-w64-libraries/libmangle |
| 671 | mingw-w64-libraries/pseh |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 672 | mingw-w64-tools/gendef |
| 673 | mingw-w64-tools/genidl' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 674 | |
| 675 | # Initialize some variables set by options. |
| 676 | ac_init_help= |
| 677 | ac_init_version=false |
| 678 | ac_unrecognized_opts= |
| 679 | ac_unrecognized_sep= |
| 680 | # The variables have the same names as the options, with |
| 681 | # dashes changed to underlines. |
| 682 | cache_file=/dev/null |
| 683 | exec_prefix=NONE |
| 684 | no_create= |
| 685 | no_recursion= |
| 686 | prefix=NONE |
| 687 | program_prefix=NONE |
| 688 | program_suffix=NONE |
| 689 | program_transform_name=s,x,x, |
| 690 | silent= |
| 691 | site= |
| 692 | srcdir= |
| 693 | verbose= |
| 694 | x_includes=NONE |
| 695 | x_libraries=NONE |
| 696 | |
| 697 | # Installation directory options. |
| 698 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 699 | # and all the variables that are supposed to be based on exec_prefix |
| 700 | # by default will actually change. |
| 701 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 702 | # (The list follows the same order as the GNU Coding Standards.) |
| 703 | bindir='${exec_prefix}/bin' |
| 704 | sbindir='${exec_prefix}/sbin' |
| 705 | libexecdir='${exec_prefix}/libexec' |
| 706 | datarootdir='${prefix}/share' |
| 707 | datadir='${datarootdir}' |
| 708 | sysconfdir='${prefix}/etc' |
| 709 | sharedstatedir='${prefix}/com' |
| 710 | localstatedir='${prefix}/var' |
| 711 | includedir='${prefix}/include' |
| 712 | oldincludedir='/usr/include' |
| 713 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 714 | infodir='${datarootdir}/info' |
| 715 | htmldir='${docdir}' |
| 716 | dvidir='${docdir}' |
| 717 | pdfdir='${docdir}' |
| 718 | psdir='${docdir}' |
| 719 | libdir='${exec_prefix}/lib' |
| 720 | localedir='${datarootdir}/locale' |
| 721 | mandir='${datarootdir}/man' |
| 722 | |
| 723 | ac_prev= |
| 724 | ac_dashdash= |
| 725 | for ac_option |
| 726 | do |
| 727 | # If the previous option needs an argument, assign it. |
| 728 | if test -n "$ac_prev"; then |
| 729 | eval $ac_prev=\$ac_option |
| 730 | ac_prev= |
| 731 | continue |
| 732 | fi |
| 733 | |
| 734 | case $ac_option in |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 735 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 736 | *=) ac_optarg= ;; |
| 737 | *) ac_optarg=yes ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 738 | esac |
| 739 | |
| 740 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 741 | |
| 742 | case $ac_dashdash$ac_option in |
| 743 | --) |
| 744 | ac_dashdash=yes ;; |
| 745 | |
| 746 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 747 | ac_prev=bindir ;; |
| 748 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 749 | bindir=$ac_optarg ;; |
| 750 | |
| 751 | -build | --build | --buil | --bui | --bu) |
| 752 | ac_prev=build_alias ;; |
| 753 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 754 | build_alias=$ac_optarg ;; |
| 755 | |
| 756 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 757 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 758 | ac_prev=cache_file ;; |
| 759 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 760 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 761 | cache_file=$ac_optarg ;; |
| 762 | |
| 763 | --config-cache | -C) |
| 764 | cache_file=config.cache ;; |
| 765 | |
| 766 | -datadir | --datadir | --datadi | --datad) |
| 767 | ac_prev=datadir ;; |
| 768 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 769 | datadir=$ac_optarg ;; |
| 770 | |
| 771 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 772 | | --dataroo | --dataro | --datar) |
| 773 | ac_prev=datarootdir ;; |
| 774 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 775 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 776 | datarootdir=$ac_optarg ;; |
| 777 | |
| 778 | -disable-* | --disable-*) |
| 779 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 780 | # Reject names that are not valid shell variable names. |
| 781 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 782 | as_fn_error $? "invalid feature name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 783 | ac_useropt_orig=$ac_useropt |
| 784 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 785 | case $ac_user_opts in |
| 786 | *" |
| 787 | "enable_$ac_useropt" |
| 788 | "*) ;; |
| 789 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 790 | ac_unrecognized_sep=', ';; |
| 791 | esac |
| 792 | eval enable_$ac_useropt=no ;; |
| 793 | |
| 794 | -docdir | --docdir | --docdi | --doc | --do) |
| 795 | ac_prev=docdir ;; |
| 796 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 797 | docdir=$ac_optarg ;; |
| 798 | |
| 799 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 800 | ac_prev=dvidir ;; |
| 801 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 802 | dvidir=$ac_optarg ;; |
| 803 | |
| 804 | -enable-* | --enable-*) |
| 805 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 806 | # Reject names that are not valid shell variable names. |
| 807 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 808 | as_fn_error $? "invalid feature name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 809 | ac_useropt_orig=$ac_useropt |
| 810 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 811 | case $ac_user_opts in |
| 812 | *" |
| 813 | "enable_$ac_useropt" |
| 814 | "*) ;; |
| 815 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 816 | ac_unrecognized_sep=', ';; |
| 817 | esac |
| 818 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 819 | |
| 820 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 821 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 822 | | --exec | --exe | --ex) |
| 823 | ac_prev=exec_prefix ;; |
| 824 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 825 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 826 | | --exec=* | --exe=* | --ex=*) |
| 827 | exec_prefix=$ac_optarg ;; |
| 828 | |
| 829 | -gas | --gas | --ga | --g) |
| 830 | # Obsolete; use --with-gas. |
| 831 | with_gas=yes ;; |
| 832 | |
| 833 | -help | --help | --hel | --he | -h) |
| 834 | ac_init_help=long ;; |
| 835 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 836 | ac_init_help=recursive ;; |
| 837 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 838 | ac_init_help=short ;; |
| 839 | |
| 840 | -host | --host | --hos | --ho) |
| 841 | ac_prev=host_alias ;; |
| 842 | -host=* | --host=* | --hos=* | --ho=*) |
| 843 | host_alias=$ac_optarg ;; |
| 844 | |
| 845 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 846 | ac_prev=htmldir ;; |
| 847 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 848 | | --ht=*) |
| 849 | htmldir=$ac_optarg ;; |
| 850 | |
| 851 | -includedir | --includedir | --includedi | --included | --include \ |
| 852 | | --includ | --inclu | --incl | --inc) |
| 853 | ac_prev=includedir ;; |
| 854 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 855 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 856 | includedir=$ac_optarg ;; |
| 857 | |
| 858 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 859 | ac_prev=infodir ;; |
| 860 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 861 | infodir=$ac_optarg ;; |
| 862 | |
| 863 | -libdir | --libdir | --libdi | --libd) |
| 864 | ac_prev=libdir ;; |
| 865 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 866 | libdir=$ac_optarg ;; |
| 867 | |
| 868 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 869 | | --libexe | --libex | --libe) |
| 870 | ac_prev=libexecdir ;; |
| 871 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 872 | | --libexe=* | --libex=* | --libe=*) |
| 873 | libexecdir=$ac_optarg ;; |
| 874 | |
| 875 | -localedir | --localedir | --localedi | --localed | --locale) |
| 876 | ac_prev=localedir ;; |
| 877 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 878 | localedir=$ac_optarg ;; |
| 879 | |
| 880 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 881 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 882 | ac_prev=localstatedir ;; |
| 883 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 884 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 885 | localstatedir=$ac_optarg ;; |
| 886 | |
| 887 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 888 | ac_prev=mandir ;; |
| 889 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 890 | mandir=$ac_optarg ;; |
| 891 | |
| 892 | -nfp | --nfp | --nf) |
| 893 | # Obsolete; use --without-fp. |
| 894 | with_fp=no ;; |
| 895 | |
| 896 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 897 | | --no-cr | --no-c | -n) |
| 898 | no_create=yes ;; |
| 899 | |
| 900 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 901 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 902 | no_recursion=yes ;; |
| 903 | |
| 904 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 905 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 906 | | --oldin | --oldi | --old | --ol | --o) |
| 907 | ac_prev=oldincludedir ;; |
| 908 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 909 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 910 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 911 | oldincludedir=$ac_optarg ;; |
| 912 | |
| 913 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 914 | ac_prev=prefix ;; |
| 915 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 916 | prefix=$ac_optarg ;; |
| 917 | |
| 918 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 919 | | --program-pre | --program-pr | --program-p) |
| 920 | ac_prev=program_prefix ;; |
| 921 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 922 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 923 | program_prefix=$ac_optarg ;; |
| 924 | |
| 925 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 926 | | --program-suf | --program-su | --program-s) |
| 927 | ac_prev=program_suffix ;; |
| 928 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 929 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 930 | program_suffix=$ac_optarg ;; |
| 931 | |
| 932 | -program-transform-name | --program-transform-name \ |
| 933 | | --program-transform-nam | --program-transform-na \ |
| 934 | | --program-transform-n | --program-transform- \ |
| 935 | | --program-transform | --program-transfor \ |
| 936 | | --program-transfo | --program-transf \ |
| 937 | | --program-trans | --program-tran \ |
| 938 | | --progr-tra | --program-tr | --program-t) |
| 939 | ac_prev=program_transform_name ;; |
| 940 | -program-transform-name=* | --program-transform-name=* \ |
| 941 | | --program-transform-nam=* | --program-transform-na=* \ |
| 942 | | --program-transform-n=* | --program-transform-=* \ |
| 943 | | --program-transform=* | --program-transfor=* \ |
| 944 | | --program-transfo=* | --program-transf=* \ |
| 945 | | --program-trans=* | --program-tran=* \ |
| 946 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 947 | program_transform_name=$ac_optarg ;; |
| 948 | |
| 949 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 950 | ac_prev=pdfdir ;; |
| 951 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 952 | pdfdir=$ac_optarg ;; |
| 953 | |
| 954 | -psdir | --psdir | --psdi | --psd | --ps) |
| 955 | ac_prev=psdir ;; |
| 956 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 957 | psdir=$ac_optarg ;; |
| 958 | |
| 959 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 960 | | -silent | --silent | --silen | --sile | --sil) |
| 961 | silent=yes ;; |
| 962 | |
| 963 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 964 | ac_prev=sbindir ;; |
| 965 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 966 | | --sbi=* | --sb=*) |
| 967 | sbindir=$ac_optarg ;; |
| 968 | |
| 969 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 970 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 971 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 972 | | --sha | --sh) |
| 973 | ac_prev=sharedstatedir ;; |
| 974 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 975 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 976 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 977 | | --sha=* | --sh=*) |
| 978 | sharedstatedir=$ac_optarg ;; |
| 979 | |
| 980 | -site | --site | --sit) |
| 981 | ac_prev=site ;; |
| 982 | -site=* | --site=* | --sit=*) |
| 983 | site=$ac_optarg ;; |
| 984 | |
| 985 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 986 | ac_prev=srcdir ;; |
| 987 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 988 | srcdir=$ac_optarg ;; |
| 989 | |
| 990 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 991 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 992 | ac_prev=sysconfdir ;; |
| 993 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 994 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 995 | sysconfdir=$ac_optarg ;; |
| 996 | |
| 997 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 998 | ac_prev=target_alias ;; |
| 999 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1000 | target_alias=$ac_optarg ;; |
| 1001 | |
| 1002 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1003 | verbose=yes ;; |
| 1004 | |
| 1005 | -version | --version | --versio | --versi | --vers | -V) |
| 1006 | ac_init_version=: ;; |
| 1007 | |
| 1008 | -with-* | --with-*) |
| 1009 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1010 | # Reject names that are not valid shell variable names. |
| 1011 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1012 | as_fn_error $? "invalid package name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1013 | ac_useropt_orig=$ac_useropt |
| 1014 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1015 | case $ac_user_opts in |
| 1016 | *" |
| 1017 | "with_$ac_useropt" |
| 1018 | "*) ;; |
| 1019 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1020 | ac_unrecognized_sep=', ';; |
| 1021 | esac |
| 1022 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1023 | |
| 1024 | -without-* | --without-*) |
| 1025 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1026 | # Reject names that are not valid shell variable names. |
| 1027 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1028 | as_fn_error $? "invalid package name: $ac_useropt" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1029 | ac_useropt_orig=$ac_useropt |
| 1030 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1031 | case $ac_user_opts in |
| 1032 | *" |
| 1033 | "with_$ac_useropt" |
| 1034 | "*) ;; |
| 1035 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1036 | ac_unrecognized_sep=', ';; |
| 1037 | esac |
| 1038 | eval with_$ac_useropt=no ;; |
| 1039 | |
| 1040 | --x) |
| 1041 | # Obsolete; use --with-x. |
| 1042 | with_x=yes ;; |
| 1043 | |
| 1044 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1045 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1046 | ac_prev=x_includes ;; |
| 1047 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1048 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1049 | x_includes=$ac_optarg ;; |
| 1050 | |
| 1051 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1052 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1053 | ac_prev=x_libraries ;; |
| 1054 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1055 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1056 | x_libraries=$ac_optarg ;; |
| 1057 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1058 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
| 1059 | Try \`$0 --help' for more information" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1060 | ;; |
| 1061 | |
| 1062 | *=*) |
| 1063 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1064 | # Reject names that are not valid shell variable names. |
| 1065 | case $ac_envvar in #( |
| 1066 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1067 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1068 | esac |
| 1069 | eval $ac_envvar=\$ac_optarg |
| 1070 | export $ac_envvar ;; |
| 1071 | |
| 1072 | *) |
| 1073 | # FIXME: should be removed in autoconf 3.0. |
| 1074 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1075 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1076 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1077 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1078 | ;; |
| 1079 | |
| 1080 | esac |
| 1081 | done |
| 1082 | |
| 1083 | if test -n "$ac_prev"; then |
| 1084 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1085 | as_fn_error $? "missing argument to $ac_option" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1086 | fi |
| 1087 | |
| 1088 | if test -n "$ac_unrecognized_opts"; then |
| 1089 | case $enable_option_checking in |
| 1090 | no) ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1091 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1092 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1093 | esac |
| 1094 | fi |
| 1095 | |
| 1096 | # Check all directory arguments for consistency. |
| 1097 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1098 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1099 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1100 | libdir localedir mandir |
| 1101 | do |
| 1102 | eval ac_val=\$$ac_var |
| 1103 | # Remove trailing slashes. |
| 1104 | case $ac_val in |
| 1105 | */ ) |
| 1106 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1107 | eval $ac_var=\$ac_val;; |
| 1108 | esac |
| 1109 | # Be sure to have absolute directory names. |
| 1110 | case $ac_val in |
| 1111 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1112 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1113 | esac |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1114 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1115 | done |
| 1116 | |
| 1117 | # There might be people who depend on the old broken behavior: `$host' |
| 1118 | # used to hold the argument of --host etc. |
| 1119 | # FIXME: To remove some day. |
| 1120 | build=$build_alias |
| 1121 | host=$host_alias |
| 1122 | target=$target_alias |
| 1123 | |
| 1124 | # FIXME: To remove some day. |
| 1125 | if test "x$host_alias" != x; then |
| 1126 | if test "x$build_alias" = x; then |
| 1127 | cross_compiling=maybe |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1128 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
| 1129 | If a cross compiler is detected then cross compile mode will be used" >&2 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1130 | elif test "x$build_alias" != "x$host_alias"; then |
| 1131 | cross_compiling=yes |
| 1132 | fi |
| 1133 | fi |
| 1134 | |
| 1135 | ac_tool_prefix= |
| 1136 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1137 | |
| 1138 | test "$silent" = yes && exec 6>/dev/null |
| 1139 | |
| 1140 | |
| 1141 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1142 | ac_ls_di=`ls -di .` && |
| 1143 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1144 | as_fn_error $? "working directory cannot be determined" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1145 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1146 | as_fn_error $? "pwd does not report name of working directory" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1147 | |
| 1148 | |
| 1149 | # Find the source files, if location was not specified. |
| 1150 | if test -z "$srcdir"; then |
| 1151 | ac_srcdir_defaulted=yes |
| 1152 | # Try the directory containing this script, then the parent directory. |
| 1153 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1154 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1155 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1156 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1157 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1158 | $as_echo X"$as_myself" | |
| 1159 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1160 | s//\1/ |
| 1161 | q |
| 1162 | } |
| 1163 | /^X\(\/\/\)[^/].*/{ |
| 1164 | s//\1/ |
| 1165 | q |
| 1166 | } |
| 1167 | /^X\(\/\/\)$/{ |
| 1168 | s//\1/ |
| 1169 | q |
| 1170 | } |
| 1171 | /^X\(\/\).*/{ |
| 1172 | s//\1/ |
| 1173 | q |
| 1174 | } |
| 1175 | s/.*/./; q'` |
| 1176 | srcdir=$ac_confdir |
| 1177 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1178 | srcdir=.. |
| 1179 | fi |
| 1180 | else |
| 1181 | ac_srcdir_defaulted=no |
| 1182 | fi |
| 1183 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1184 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1185 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1186 | fi |
| 1187 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1188 | ac_abs_confdir=`( |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1189 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1190 | pwd)` |
| 1191 | # When building in place, set srcdir=. |
| 1192 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1193 | srcdir=. |
| 1194 | fi |
| 1195 | # Remove unnecessary trailing slashes from srcdir. |
| 1196 | # Double slashes in file names in object file debugging info |
| 1197 | # mess up M-x gdb in Emacs. |
| 1198 | case $srcdir in |
| 1199 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1200 | esac |
| 1201 | for ac_var in $ac_precious_vars; do |
| 1202 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1203 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1204 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1205 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1206 | done |
| 1207 | |
| 1208 | # |
| 1209 | # Report the --help message. |
| 1210 | # |
| 1211 | if test "$ac_init_help" = "long"; then |
| 1212 | # Omit some internal or obsolete options to make the list less imposing. |
| 1213 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1214 | cat <<_ACEOF |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1215 | \`configure' configures mingw-w64 3.0b to adapt to many kinds of systems. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1216 | |
| 1217 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1218 | |
| 1219 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1220 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1221 | |
| 1222 | Defaults for the options are specified in brackets. |
| 1223 | |
| 1224 | Configuration: |
| 1225 | -h, --help display this help and exit |
| 1226 | --help=short display options specific to this package |
| 1227 | --help=recursive display the short help of all the included packages |
| 1228 | -V, --version display version information and exit |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1229 | -q, --quiet, --silent do not print \`checking ...' messages |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1230 | --cache-file=FILE cache test results in FILE [disabled] |
| 1231 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1232 | -n, --no-create do not create output files |
| 1233 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1234 | |
| 1235 | Installation directories: |
| 1236 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1237 | [$ac_default_prefix] |
| 1238 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1239 | [PREFIX] |
| 1240 | |
| 1241 | By default, \`make install' will install all the files in |
| 1242 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1243 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1244 | for instance \`--prefix=\$HOME'. |
| 1245 | |
| 1246 | For better control, use the options below. |
| 1247 | |
| 1248 | Fine tuning of the installation directories: |
| 1249 | --bindir=DIR user executables [EPREFIX/bin] |
| 1250 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1251 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1252 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1253 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1254 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1255 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1256 | --includedir=DIR C header files [PREFIX/include] |
| 1257 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1258 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1259 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1260 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1261 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1262 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1263 | --docdir=DIR documentation root [DATAROOTDIR/doc/mingw-w64] |
| 1264 | --htmldir=DIR html documentation [DOCDIR] |
| 1265 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1266 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1267 | --psdir=DIR ps documentation [DOCDIR] |
| 1268 | _ACEOF |
| 1269 | |
| 1270 | cat <<\_ACEOF |
| 1271 | |
| 1272 | Program names: |
| 1273 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 1274 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 1275 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 1276 | |
| 1277 | System types: |
| 1278 | --build=BUILD configure for building on BUILD [guessed] |
| 1279 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1280 | _ACEOF |
| 1281 | fi |
| 1282 | |
| 1283 | if test -n "$ac_init_help"; then |
| 1284 | case $ac_init_help in |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1285 | short | recursive ) echo "Configuration of mingw-w64 3.0b:";; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1286 | esac |
| 1287 | cat <<\_ACEOF |
| 1288 | |
| 1289 | Optional Features: |
| 1290 | --disable-option-checking ignore unrecognized --enable/--with options |
| 1291 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1292 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 1293 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 1294 | (and sometimes confusing) to the casual installer |
| 1295 | |
| 1296 | Optional Packages: |
| 1297 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1298 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 1299 | --without-headers Skip building the mingw-w64 headers |
| 1300 | --without-crt Skip building the mingw-w64 crt |
| 1301 | --with-libraries=ARG Build the extra mingw-w64 libs, where ARG is one of |
| 1302 | libmangle, pseh, or all |
| 1303 | --with-tools=ARG Build the extra mingw-w64 tools, where ARG is one of |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 1304 | gendef, genidl, or all |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1305 | |
| 1306 | Report bugs to <mingw-w64-public@lists.sourceforge.net>. |
| 1307 | _ACEOF |
| 1308 | ac_status=$? |
| 1309 | fi |
| 1310 | |
| 1311 | if test "$ac_init_help" = "recursive"; then |
| 1312 | # If there are subdirs, report their specific --help. |
| 1313 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 1314 | test -d "$ac_dir" || |
| 1315 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1316 | continue |
| 1317 | ac_builddir=. |
| 1318 | |
| 1319 | case "$ac_dir" in |
| 1320 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1321 | *) |
| 1322 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 1323 | # A ".." for each directory in $ac_dir_suffix. |
| 1324 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 1325 | case $ac_top_builddir_sub in |
| 1326 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1327 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1328 | esac ;; |
| 1329 | esac |
| 1330 | ac_abs_top_builddir=$ac_pwd |
| 1331 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1332 | # for backward compatibility: |
| 1333 | ac_top_builddir=$ac_top_build_prefix |
| 1334 | |
| 1335 | case $srcdir in |
| 1336 | .) # We are building in place. |
| 1337 | ac_srcdir=. |
| 1338 | ac_top_srcdir=$ac_top_builddir_sub |
| 1339 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1340 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 1341 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 1342 | ac_top_srcdir=$srcdir |
| 1343 | ac_abs_top_srcdir=$srcdir ;; |
| 1344 | *) # Relative name. |
| 1345 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1346 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1347 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 1348 | esac |
| 1349 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 1350 | |
| 1351 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1352 | # Check for guested configure. |
| 1353 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1354 | echo && |
| 1355 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1356 | elif test -f "$ac_srcdir/configure"; then |
| 1357 | echo && |
| 1358 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 1359 | else |
| 1360 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 1361 | fi || ac_status=$? |
| 1362 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 1363 | done |
| 1364 | fi |
| 1365 | |
| 1366 | test -n "$ac_init_help" && exit $ac_status |
| 1367 | if $ac_init_version; then |
| 1368 | cat <<\_ACEOF |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1369 | mingw-w64 configure 3.0b |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1370 | generated by GNU Autoconf 2.68 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1371 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1372 | Copyright (C) 2010 Free Software Foundation, Inc. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1373 | This configure script is free software; the Free Software Foundation |
| 1374 | gives unlimited permission to copy, distribute and modify it. |
| 1375 | _ACEOF |
| 1376 | exit |
| 1377 | fi |
| 1378 | |
| 1379 | ## ------------------------ ## |
| 1380 | ## Autoconf initialization. ## |
| 1381 | ## ------------------------ ## |
| 1382 | cat >config.log <<_ACEOF |
| 1383 | This file contains any messages produced by compilers while |
| 1384 | running configure, to aid debugging if configure makes a mistake. |
| 1385 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1386 | It was created by mingw-w64 $as_me 3.0b, which was |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1387 | generated by GNU Autoconf 2.68. Invocation command line was |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1388 | |
| 1389 | $ $0 $@ |
| 1390 | |
| 1391 | _ACEOF |
| 1392 | exec 5>>config.log |
| 1393 | { |
| 1394 | cat <<_ASUNAME |
| 1395 | ## --------- ## |
| 1396 | ## Platform. ## |
| 1397 | ## --------- ## |
| 1398 | |
| 1399 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 1400 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 1401 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 1402 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 1403 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 1404 | |
| 1405 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 1406 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 1407 | |
| 1408 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 1409 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 1410 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 1411 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 1412 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 1413 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 1414 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 1415 | |
| 1416 | _ASUNAME |
| 1417 | |
| 1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1419 | for as_dir in $PATH |
| 1420 | do |
| 1421 | IFS=$as_save_IFS |
| 1422 | test -z "$as_dir" && as_dir=. |
| 1423 | $as_echo "PATH: $as_dir" |
| 1424 | done |
| 1425 | IFS=$as_save_IFS |
| 1426 | |
| 1427 | } >&5 |
| 1428 | |
| 1429 | cat >&5 <<_ACEOF |
| 1430 | |
| 1431 | |
| 1432 | ## ----------- ## |
| 1433 | ## Core tests. ## |
| 1434 | ## ----------- ## |
| 1435 | |
| 1436 | _ACEOF |
| 1437 | |
| 1438 | |
| 1439 | # Keep a trace of the command line. |
| 1440 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1441 | # Strip out --silent because we don't want to record it for future runs. |
| 1442 | # Also quote any args containing shell meta-characters. |
| 1443 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1444 | ac_configure_args= |
| 1445 | ac_configure_args0= |
| 1446 | ac_configure_args1= |
| 1447 | ac_must_keep_next=false |
| 1448 | for ac_pass in 1 2 |
| 1449 | do |
| 1450 | for ac_arg |
| 1451 | do |
| 1452 | case $ac_arg in |
| 1453 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1454 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1455 | | -silent | --silent | --silen | --sile | --sil) |
| 1456 | continue ;; |
| 1457 | *\'*) |
| 1458 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1459 | esac |
| 1460 | case $ac_pass in |
| 1461 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 1462 | 2) |
| 1463 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 1464 | if test $ac_must_keep_next = true; then |
| 1465 | ac_must_keep_next=false # Got value, back to normal. |
| 1466 | else |
| 1467 | case $ac_arg in |
| 1468 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1469 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1470 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1471 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1472 | case "$ac_configure_args0 " in |
| 1473 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1474 | esac |
| 1475 | ;; |
| 1476 | -* ) ac_must_keep_next=true ;; |
| 1477 | esac |
| 1478 | fi |
| 1479 | as_fn_append ac_configure_args " '$ac_arg'" |
| 1480 | ;; |
| 1481 | esac |
| 1482 | done |
| 1483 | done |
| 1484 | { ac_configure_args0=; unset ac_configure_args0;} |
| 1485 | { ac_configure_args1=; unset ac_configure_args1;} |
| 1486 | |
| 1487 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1488 | # config.log. We remove comments because anyway the quotes in there |
| 1489 | # would cause problems or look ugly. |
| 1490 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 1491 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 1492 | trap 'exit_status=$? |
| 1493 | # Save into config.log some information that might help in debugging. |
| 1494 | { |
| 1495 | echo |
| 1496 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1497 | $as_echo "## ---------------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1498 | ## Cache variables. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1499 | ## ---------------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1500 | echo |
| 1501 | # The following way of writing the cache mishandles newlines in values, |
| 1502 | ( |
| 1503 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 1504 | eval ac_val=\$$ac_var |
| 1505 | case $ac_val in #( |
| 1506 | *${as_nl}*) |
| 1507 | case $ac_var in #( |
| 1508 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 1509 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 1510 | esac |
| 1511 | case $ac_var in #( |
| 1512 | _ | IFS | as_nl) ;; #( |
| 1513 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 1514 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 1515 | esac ;; |
| 1516 | esac |
| 1517 | done |
| 1518 | (set) 2>&1 | |
| 1519 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 1520 | *${as_nl}ac_space=\ *) |
| 1521 | sed -n \ |
| 1522 | "s/'\''/'\''\\\\'\'''\''/g; |
| 1523 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 1524 | ;; #( |
| 1525 | *) |
| 1526 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 1527 | ;; |
| 1528 | esac | |
| 1529 | sort |
| 1530 | ) |
| 1531 | echo |
| 1532 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1533 | $as_echo "## ----------------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1534 | ## Output variables. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1535 | ## ----------------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1536 | echo |
| 1537 | for ac_var in $ac_subst_vars |
| 1538 | do |
| 1539 | eval ac_val=\$$ac_var |
| 1540 | case $ac_val in |
| 1541 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1542 | esac |
| 1543 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1544 | done | sort |
| 1545 | echo |
| 1546 | |
| 1547 | if test -n "$ac_subst_files"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1548 | $as_echo "## ------------------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1549 | ## File substitutions. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1550 | ## ------------------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1551 | echo |
| 1552 | for ac_var in $ac_subst_files |
| 1553 | do |
| 1554 | eval ac_val=\$$ac_var |
| 1555 | case $ac_val in |
| 1556 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 1557 | esac |
| 1558 | $as_echo "$ac_var='\''$ac_val'\''" |
| 1559 | done | sort |
| 1560 | echo |
| 1561 | fi |
| 1562 | |
| 1563 | if test -s confdefs.h; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1564 | $as_echo "## ----------- ## |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1565 | ## confdefs.h. ## |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1566 | ## ----------- ##" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1567 | echo |
| 1568 | cat confdefs.h |
| 1569 | echo |
| 1570 | fi |
| 1571 | test "$ac_signal" != 0 && |
| 1572 | $as_echo "$as_me: caught signal $ac_signal" |
| 1573 | $as_echo "$as_me: exit $exit_status" |
| 1574 | } >&5 |
| 1575 | rm -f core *.core core.conftest.* && |
| 1576 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 1577 | exit $exit_status |
| 1578 | ' 0 |
| 1579 | for ac_signal in 1 2 13 15; do |
| 1580 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 1581 | done |
| 1582 | ac_signal=0 |
| 1583 | |
| 1584 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1585 | rm -f -r conftest* confdefs.h |
| 1586 | |
| 1587 | $as_echo "/* confdefs.h */" > confdefs.h |
| 1588 | |
| 1589 | # Predefined preprocessor variables. |
| 1590 | |
| 1591 | cat >>confdefs.h <<_ACEOF |
| 1592 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1593 | _ACEOF |
| 1594 | |
| 1595 | cat >>confdefs.h <<_ACEOF |
| 1596 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1597 | _ACEOF |
| 1598 | |
| 1599 | cat >>confdefs.h <<_ACEOF |
| 1600 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1601 | _ACEOF |
| 1602 | |
| 1603 | cat >>confdefs.h <<_ACEOF |
| 1604 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1605 | _ACEOF |
| 1606 | |
| 1607 | cat >>confdefs.h <<_ACEOF |
| 1608 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1609 | _ACEOF |
| 1610 | |
| 1611 | cat >>confdefs.h <<_ACEOF |
| 1612 | #define PACKAGE_URL "$PACKAGE_URL" |
| 1613 | _ACEOF |
| 1614 | |
| 1615 | |
| 1616 | # Let the site file select an alternate cache file if it wants to. |
| 1617 | # Prefer an explicitly selected file to automatically selected ones. |
| 1618 | ac_site_file1=NONE |
| 1619 | ac_site_file2=NONE |
| 1620 | if test -n "$CONFIG_SITE"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1621 | # We do not want a PATH search for config.site. |
| 1622 | case $CONFIG_SITE in #(( |
| 1623 | -*) ac_site_file1=./$CONFIG_SITE;; |
| 1624 | */*) ac_site_file1=$CONFIG_SITE;; |
| 1625 | *) ac_site_file1=./$CONFIG_SITE;; |
| 1626 | esac |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1627 | elif test "x$prefix" != xNONE; then |
| 1628 | ac_site_file1=$prefix/share/config.site |
| 1629 | ac_site_file2=$prefix/etc/config.site |
| 1630 | else |
| 1631 | ac_site_file1=$ac_default_prefix/share/config.site |
| 1632 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 1633 | fi |
| 1634 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 1635 | do |
| 1636 | test "x$ac_site_file" = xNONE && continue |
| 1637 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 1639 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1640 | sed 's/^/| /' "$ac_site_file" >&5 |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1641 | . "$ac_site_file" \ |
| 1642 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1643 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1644 | as_fn_error $? "failed to load site script $ac_site_file |
| 1645 | See \`config.log' for more details" "$LINENO" 5; } |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1646 | fi |
| 1647 | done |
| 1648 | |
| 1649 | if test -r "$cache_file"; then |
| 1650 | # Some versions of bash will fail to source /dev/null (special files |
| 1651 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 1652 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 1653 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 1654 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 1655 | case $cache_file in |
| 1656 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 1657 | *) . "./$cache_file";; |
| 1658 | esac |
| 1659 | fi |
| 1660 | else |
| 1661 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 1662 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 1663 | >$cache_file |
| 1664 | fi |
| 1665 | |
| 1666 | # Check that the precious variables saved in the cache have kept the same |
| 1667 | # value. |
| 1668 | ac_cache_corrupted=false |
| 1669 | for ac_var in $ac_precious_vars; do |
| 1670 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1671 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1672 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 1673 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 1674 | case $ac_old_set,$ac_new_set in |
| 1675 | set,) |
| 1676 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1677 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1678 | ac_cache_corrupted=: ;; |
| 1679 | ,set) |
| 1680 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 1681 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1682 | ac_cache_corrupted=: ;; |
| 1683 | ,);; |
| 1684 | *) |
| 1685 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1686 | # differences in whitespace do not lead to failure. |
| 1687 | ac_old_val_w=`echo x $ac_old_val` |
| 1688 | ac_new_val_w=`echo x $ac_new_val` |
| 1689 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 1690 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1691 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1692 | ac_cache_corrupted=: |
| 1693 | else |
| 1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 1695 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 1696 | eval $ac_var=\$ac_old_val |
| 1697 | fi |
| 1698 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 1699 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 1700 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 1701 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 1702 | fi;; |
| 1703 | esac |
| 1704 | # Pass precious variables to config.status. |
| 1705 | if test "$ac_new_set" = set; then |
| 1706 | case $ac_new_val in |
| 1707 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1708 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1709 | esac |
| 1710 | case " $ac_configure_args " in |
| 1711 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1712 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 1713 | esac |
| 1714 | fi |
| 1715 | done |
| 1716 | if $ac_cache_corrupted; then |
| 1717 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 1718 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 1719 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 1720 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1721 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1722 | fi |
| 1723 | ## -------------------- ## |
| 1724 | ## Main body of script. ## |
| 1725 | ## -------------------- ## |
| 1726 | |
| 1727 | ac_ext=c |
| 1728 | ac_cpp='$CPP $CPPFLAGS' |
| 1729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1732 | |
| 1733 | |
| 1734 | ac_aux_dir= |
| 1735 | for ac_dir in build-aux "$srcdir"/build-aux; do |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1736 | if test -f "$ac_dir/install-sh"; then |
| 1737 | ac_aux_dir=$ac_dir |
| 1738 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1739 | break |
| 1740 | elif test -f "$ac_dir/install.sh"; then |
| 1741 | ac_aux_dir=$ac_dir |
| 1742 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1743 | break |
| 1744 | elif test -f "$ac_dir/shtool"; then |
| 1745 | ac_aux_dir=$ac_dir |
| 1746 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1747 | break |
| 1748 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1749 | done |
| 1750 | if test -z "$ac_aux_dir"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1751 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1752 | fi |
| 1753 | |
| 1754 | # These three variables are undocumented and unsupported, |
| 1755 | # and are intended to be withdrawn in a future Autoconf release. |
| 1756 | # They can cause serious problems if a builder's source tree is in a directory |
| 1757 | # whose full name contains unusual characters. |
| 1758 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 1759 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 1760 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 1761 | |
| 1762 | |
| 1763 | |
| 1764 | ac_config_headers="$ac_config_headers config.h" |
| 1765 | |
| 1766 | |
| 1767 | |
| 1768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1769 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } |
| 1770 | # Check whether --enable-maintainer-mode was given. |
| 1771 | if test "${enable_maintainer_mode+set}" = set; then : |
| 1772 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
| 1773 | else |
| 1774 | USE_MAINTAINER_MODE=no |
| 1775 | fi |
| 1776 | |
| 1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
| 1778 | $as_echo "$USE_MAINTAINER_MODE" >&6; } |
| 1779 | if test $USE_MAINTAINER_MODE = yes; then |
| 1780 | MAINTAINER_MODE_TRUE= |
| 1781 | MAINTAINER_MODE_FALSE='#' |
| 1782 | else |
| 1783 | MAINTAINER_MODE_TRUE='#' |
| 1784 | MAINTAINER_MODE_FALSE= |
| 1785 | fi |
| 1786 | |
| 1787 | MAINT=$MAINTAINER_MODE_TRUE |
| 1788 | |
| 1789 | |
| 1790 | am__api_version='1.11' |
| 1791 | |
| 1792 | # Find a good install program. We prefer a C program (faster), |
| 1793 | # so one script is as good as another. But avoid the broken or |
| 1794 | # incompatible versions: |
| 1795 | # SysV /etc/install, /usr/sbin/install |
| 1796 | # SunOS /usr/etc/install |
| 1797 | # IRIX /sbin/install |
| 1798 | # AIX /bin/install |
| 1799 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1800 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1801 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1802 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1803 | # OS/2's system install, which has a completely different semantic |
| 1804 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1805 | # Reject install programs that cannot install multiple files. |
| 1806 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 1807 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 1808 | if test -z "$INSTALL"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1809 | if ${ac_cv_path_install+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1810 | $as_echo_n "(cached) " >&6 |
| 1811 | else |
| 1812 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1813 | for as_dir in $PATH |
| 1814 | do |
| 1815 | IFS=$as_save_IFS |
| 1816 | test -z "$as_dir" && as_dir=. |
| 1817 | # Account for people who put trailing slashes in PATH elements. |
| 1818 | case $as_dir/ in #(( |
| 1819 | ./ | .// | /[cC]/* | \ |
| 1820 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1821 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 1822 | /usr/ucb/* ) ;; |
| 1823 | *) |
| 1824 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1825 | # Don't use installbsd from OSF since it installs stuff as root |
| 1826 | # by default. |
| 1827 | for ac_prog in ginstall scoinst install; do |
| 1828 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1829 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 1830 | if test $ac_prog = install && |
| 1831 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1832 | # AIX install. It has an incompatible calling convention. |
| 1833 | : |
| 1834 | elif test $ac_prog = install && |
| 1835 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1836 | # program-specific install script used by HP pwplus--don't use. |
| 1837 | : |
| 1838 | else |
| 1839 | rm -rf conftest.one conftest.two conftest.dir |
| 1840 | echo one > conftest.one |
| 1841 | echo two > conftest.two |
| 1842 | mkdir conftest.dir |
| 1843 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 1844 | test -s conftest.one && test -s conftest.two && |
| 1845 | test -s conftest.dir/conftest.one && |
| 1846 | test -s conftest.dir/conftest.two |
| 1847 | then |
| 1848 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1849 | break 3 |
| 1850 | fi |
| 1851 | fi |
| 1852 | fi |
| 1853 | done |
| 1854 | done |
| 1855 | ;; |
| 1856 | esac |
| 1857 | |
| 1858 | done |
| 1859 | IFS=$as_save_IFS |
| 1860 | |
| 1861 | rm -rf conftest.one conftest.two conftest.dir |
| 1862 | |
| 1863 | fi |
| 1864 | if test "${ac_cv_path_install+set}" = set; then |
| 1865 | INSTALL=$ac_cv_path_install |
| 1866 | else |
| 1867 | # As a last resort, use the slow shell script. Don't cache a |
| 1868 | # value for INSTALL within a source directory, because that will |
| 1869 | # break other packages using the cache if that directory is |
| 1870 | # removed, or if the value is a relative name. |
| 1871 | INSTALL=$ac_install_sh |
| 1872 | fi |
| 1873 | fi |
| 1874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 1875 | $as_echo "$INSTALL" >&6; } |
| 1876 | |
| 1877 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1878 | # It thinks the first close brace ends the variable substitution. |
| 1879 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1880 | |
| 1881 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1882 | |
| 1883 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1884 | |
| 1885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 1886 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 1887 | # Just in case |
| 1888 | sleep 1 |
| 1889 | echo timestamp > conftest.file |
| 1890 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 1891 | # name. Accept space and tab only in the latter. |
| 1892 | am_lf=' |
| 1893 | ' |
| 1894 | case `pwd` in |
| 1895 | *[\\\"\#\$\&\'\`$am_lf]*) |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1896 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1897 | esac |
| 1898 | case $srcdir in |
| 1899 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1900 | as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1901 | esac |
| 1902 | |
| 1903 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1904 | # arguments. Must try -L first in case configure is actually a |
| 1905 | # symlink; some systems play weird games with the mod time of symlinks |
| 1906 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1907 | # directory). |
| 1908 | if ( |
| 1909 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 1910 | if test "$*" = "X"; then |
| 1911 | # -L didn't work. |
| 1912 | set X `ls -t "$srcdir/configure" conftest.file` |
| 1913 | fi |
| 1914 | rm -f conftest.file |
| 1915 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1916 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1917 | |
| 1918 | # If neither matched, then we have a broken ls. This can happen |
| 1919 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1920 | # broken ls alias from the environment. This has actually |
| 1921 | # happened. Such a system could not be considered "sane". |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1922 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1923 | alias in your environment" "$LINENO" 5 |
| 1924 | fi |
| 1925 | |
| 1926 | test "$2" = conftest.file |
| 1927 | ) |
| 1928 | then |
| 1929 | # Ok. |
| 1930 | : |
| 1931 | else |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 1932 | as_fn_error $? "newly created file is older than distributed files! |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1933 | Check your system clock" "$LINENO" 5 |
| 1934 | fi |
| 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 1936 | $as_echo "yes" >&6; } |
| 1937 | test "$program_prefix" != NONE && |
| 1938 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 1939 | # Use a double $ so make ignores it. |
| 1940 | test "$program_suffix" != NONE && |
| 1941 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 1942 | # Double any \ or $. |
| 1943 | # By default was `s,x,x', remove it if useless. |
| 1944 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 1945 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 1946 | |
| 1947 | # expand $ac_aux_dir to an absolute path |
| 1948 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 1949 | |
| 1950 | if test x"${MISSING+set}" != xset; then |
| 1951 | case $am_aux_dir in |
| 1952 | *\ * | *\ *) |
| 1953 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 1954 | *) |
| 1955 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 1956 | esac |
| 1957 | fi |
| 1958 | # Use eval to expand $SHELL |
| 1959 | if eval "$MISSING --run true"; then |
| 1960 | am_missing_run="$MISSING --run " |
| 1961 | else |
| 1962 | am_missing_run= |
| 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 1964 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 1965 | fi |
| 1966 | |
| 1967 | if test x"${install_sh}" != xset; then |
| 1968 | case $am_aux_dir in |
| 1969 | *\ * | *\ *) |
| 1970 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 1971 | *) |
| 1972 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 1973 | esac |
| 1974 | fi |
| 1975 | |
| 1976 | # Installed binaries are usually stripped using `strip' when the user |
| 1977 | # run `make install-strip'. However `strip' might not be the right |
| 1978 | # tool to use in cross-compilation environments, therefore Automake |
| 1979 | # will honor the `STRIP' environment variable to overrule this program. |
| 1980 | if test "$cross_compiling" != no; then |
| 1981 | if test -n "$ac_tool_prefix"; then |
| 1982 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 1983 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 1985 | $as_echo_n "checking for $ac_word... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 1986 | if ${ac_cv_prog_STRIP+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 1987 | $as_echo_n "(cached) " >&6 |
| 1988 | else |
| 1989 | if test -n "$STRIP"; then |
| 1990 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 1991 | else |
| 1992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1993 | for as_dir in $PATH |
| 1994 | do |
| 1995 | IFS=$as_save_IFS |
| 1996 | test -z "$as_dir" && as_dir=. |
| 1997 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 1999 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 2000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2001 | break 2 |
| 2002 | fi |
| 2003 | done |
| 2004 | done |
| 2005 | IFS=$as_save_IFS |
| 2006 | |
| 2007 | fi |
| 2008 | fi |
| 2009 | STRIP=$ac_cv_prog_STRIP |
| 2010 | if test -n "$STRIP"; then |
| 2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 2012 | $as_echo "$STRIP" >&6; } |
| 2013 | else |
| 2014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2015 | $as_echo "no" >&6; } |
| 2016 | fi |
| 2017 | |
| 2018 | |
| 2019 | fi |
| 2020 | if test -z "$ac_cv_prog_STRIP"; then |
| 2021 | ac_ct_STRIP=$STRIP |
| 2022 | # Extract the first word of "strip", so it can be a program name with args. |
| 2023 | set dummy strip; ac_word=$2 |
| 2024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2025 | $as_echo_n "checking for $ac_word... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2026 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2027 | $as_echo_n "(cached) " >&6 |
| 2028 | else |
| 2029 | if test -n "$ac_ct_STRIP"; then |
| 2030 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 2031 | else |
| 2032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2033 | for as_dir in $PATH |
| 2034 | do |
| 2035 | IFS=$as_save_IFS |
| 2036 | test -z "$as_dir" && as_dir=. |
| 2037 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2038 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2039 | ac_cv_prog_ac_ct_STRIP="strip" |
| 2040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2041 | break 2 |
| 2042 | fi |
| 2043 | done |
| 2044 | done |
| 2045 | IFS=$as_save_IFS |
| 2046 | |
| 2047 | fi |
| 2048 | fi |
| 2049 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 2050 | if test -n "$ac_ct_STRIP"; then |
| 2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 2052 | $as_echo "$ac_ct_STRIP" >&6; } |
| 2053 | else |
| 2054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2055 | $as_echo "no" >&6; } |
| 2056 | fi |
| 2057 | |
| 2058 | if test "x$ac_ct_STRIP" = x; then |
| 2059 | STRIP=":" |
| 2060 | else |
| 2061 | case $cross_compiling:$ac_tool_warned in |
| 2062 | yes:) |
| 2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 2064 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 2065 | ac_tool_warned=yes ;; |
| 2066 | esac |
| 2067 | STRIP=$ac_ct_STRIP |
| 2068 | fi |
| 2069 | else |
| 2070 | STRIP="$ac_cv_prog_STRIP" |
| 2071 | fi |
| 2072 | |
| 2073 | fi |
| 2074 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 2075 | |
| 2076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 2077 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 2078 | if test -z "$MKDIR_P"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2079 | if ${ac_cv_path_mkdir+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2080 | $as_echo_n "(cached) " >&6 |
| 2081 | else |
| 2082 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2083 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 2084 | do |
| 2085 | IFS=$as_save_IFS |
| 2086 | test -z "$as_dir" && as_dir=. |
| 2087 | for ac_prog in mkdir gmkdir; do |
| 2088 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2089 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 2090 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 2091 | 'mkdir (GNU coreutils) '* | \ |
| 2092 | 'mkdir (coreutils) '* | \ |
| 2093 | 'mkdir (fileutils) '4.1*) |
| 2094 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 2095 | break 3;; |
| 2096 | esac |
| 2097 | done |
| 2098 | done |
| 2099 | done |
| 2100 | IFS=$as_save_IFS |
| 2101 | |
| 2102 | fi |
| 2103 | |
| 2104 | test -d ./--version && rmdir ./--version |
| 2105 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 2106 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 2107 | else |
| 2108 | # As a last resort, use the slow shell script. Don't cache a |
| 2109 | # value for MKDIR_P within a source directory, because that will |
| 2110 | # break other packages using the cache if that directory is |
| 2111 | # removed, or if the value is a relative name. |
| 2112 | MKDIR_P="$ac_install_sh -d" |
| 2113 | fi |
| 2114 | fi |
| 2115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 2116 | $as_echo "$MKDIR_P" >&6; } |
| 2117 | |
| 2118 | mkdir_p="$MKDIR_P" |
| 2119 | case $mkdir_p in |
| 2120 | [\\/$]* | ?:[\\/]*) ;; |
| 2121 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 2122 | esac |
| 2123 | |
| 2124 | for ac_prog in gawk mawk nawk awk |
| 2125 | do |
| 2126 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2127 | set dummy $ac_prog; ac_word=$2 |
| 2128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 2129 | $as_echo_n "checking for $ac_word... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2130 | if ${ac_cv_prog_AWK+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2131 | $as_echo_n "(cached) " >&6 |
| 2132 | else |
| 2133 | if test -n "$AWK"; then |
| 2134 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 2135 | else |
| 2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2137 | for as_dir in $PATH |
| 2138 | do |
| 2139 | IFS=$as_save_IFS |
| 2140 | test -z "$as_dir" && as_dir=. |
| 2141 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 2143 | ac_cv_prog_AWK="$ac_prog" |
| 2144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2145 | break 2 |
| 2146 | fi |
| 2147 | done |
| 2148 | done |
| 2149 | IFS=$as_save_IFS |
| 2150 | |
| 2151 | fi |
| 2152 | fi |
| 2153 | AWK=$ac_cv_prog_AWK |
| 2154 | if test -n "$AWK"; then |
| 2155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 2156 | $as_echo "$AWK" >&6; } |
| 2157 | else |
| 2158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2159 | $as_echo "no" >&6; } |
| 2160 | fi |
| 2161 | |
| 2162 | |
| 2163 | test -n "$AWK" && break |
| 2164 | done |
| 2165 | |
| 2166 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 2167 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 2168 | set x ${MAKE-make} |
| 2169 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2170 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2171 | $as_echo_n "(cached) " >&6 |
| 2172 | else |
| 2173 | cat >conftest.make <<\_ACEOF |
| 2174 | SHELL = /bin/sh |
| 2175 | all: |
| 2176 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 2177 | _ACEOF |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2178 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2179 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 2180 | *@@@%%%=?*=@@@%%%*) |
| 2181 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 2182 | *) |
| 2183 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 2184 | esac |
| 2185 | rm -f conftest.make |
| 2186 | fi |
| 2187 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 2188 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 2189 | $as_echo "yes" >&6; } |
| 2190 | SET_MAKE= |
| 2191 | else |
| 2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 2193 | $as_echo "no" >&6; } |
| 2194 | SET_MAKE="MAKE=${MAKE-make}" |
| 2195 | fi |
| 2196 | |
| 2197 | rm -rf .tst 2>/dev/null |
| 2198 | mkdir .tst 2>/dev/null |
| 2199 | if test -d .tst; then |
| 2200 | am__leading_dot=. |
| 2201 | else |
| 2202 | am__leading_dot=_ |
| 2203 | fi |
| 2204 | rmdir .tst 2>/dev/null |
| 2205 | |
| 2206 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 2207 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 2208 | # is not polluted with repeated "-I." |
| 2209 | am__isrc=' -I$(srcdir)' |
| 2210 | # test to see if srcdir already configured |
| 2211 | if test -f $srcdir/config.status; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2212 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2213 | fi |
| 2214 | fi |
| 2215 | |
| 2216 | # test whether we have cygpath |
| 2217 | if test -z "$CYGPATH_W"; then |
| 2218 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 2219 | CYGPATH_W='cygpath -w' |
| 2220 | else |
| 2221 | CYGPATH_W=echo |
| 2222 | fi |
| 2223 | fi |
| 2224 | |
| 2225 | |
| 2226 | # Define the identity of the package. |
| 2227 | PACKAGE='mingw-w64' |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2228 | VERSION='3.0b' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2229 | |
| 2230 | |
| 2231 | cat >>confdefs.h <<_ACEOF |
| 2232 | #define PACKAGE "$PACKAGE" |
| 2233 | _ACEOF |
| 2234 | |
| 2235 | |
| 2236 | cat >>confdefs.h <<_ACEOF |
| 2237 | #define VERSION "$VERSION" |
| 2238 | _ACEOF |
| 2239 | |
| 2240 | # Some tools Automake needs. |
| 2241 | |
| 2242 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 2243 | |
| 2244 | |
| 2245 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 2246 | |
| 2247 | |
| 2248 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 2249 | |
| 2250 | |
| 2251 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 2252 | |
| 2253 | |
| 2254 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 2255 | |
| 2256 | # We need awk for the "check" target. The system "awk" is bad on |
| 2257 | # some platforms. |
| 2258 | # Always define AMTAR for backward compatibility. |
| 2259 | |
| 2260 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 2261 | |
| 2262 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 2263 | |
| 2264 | |
| 2265 | |
| 2266 | |
| 2267 | |
| 2268 | |
| 2269 | # Make sure we can run config.sub. |
| 2270 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2271 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2272 | |
| 2273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 2274 | $as_echo_n "checking build system type... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2275 | if ${ac_cv_build+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2276 | $as_echo_n "(cached) " >&6 |
| 2277 | else |
| 2278 | ac_build_alias=$build_alias |
| 2279 | test "x$ac_build_alias" = x && |
| 2280 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2281 | test "x$ac_build_alias" = x && |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2282 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2283 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2284 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2285 | |
| 2286 | fi |
| 2287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 2288 | $as_echo "$ac_cv_build" >&6; } |
| 2289 | case $ac_cv_build in |
| 2290 | *-*-*) ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2291 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2292 | esac |
| 2293 | build=$ac_cv_build |
| 2294 | ac_save_IFS=$IFS; IFS='-' |
| 2295 | set x $ac_cv_build |
| 2296 | shift |
| 2297 | build_cpu=$1 |
| 2298 | build_vendor=$2 |
| 2299 | shift; shift |
| 2300 | # Remember, the first character of IFS is used to create $*, |
| 2301 | # except with old shells: |
| 2302 | build_os=$* |
| 2303 | IFS=$ac_save_IFS |
| 2304 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 2305 | |
| 2306 | |
| 2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 2308 | $as_echo_n "checking host system type... " >&6; } |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2309 | if ${ac_cv_host+:} false; then : |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2310 | $as_echo_n "(cached) " >&6 |
| 2311 | else |
| 2312 | if test "x$host_alias" = x; then |
| 2313 | ac_cv_host=$ac_cv_build |
| 2314 | else |
| 2315 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2316 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2317 | fi |
| 2318 | |
| 2319 | fi |
| 2320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 2321 | $as_echo "$ac_cv_host" >&6; } |
| 2322 | case $ac_cv_host in |
| 2323 | *-*-*) ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2324 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2325 | esac |
| 2326 | host=$ac_cv_host |
| 2327 | ac_save_IFS=$IFS; IFS='-' |
| 2328 | set x $ac_cv_host |
| 2329 | shift |
| 2330 | host_cpu=$1 |
| 2331 | host_vendor=$2 |
| 2332 | shift; shift |
| 2333 | # Remember, the first character of IFS is used to create $*, |
| 2334 | # except with old shells: |
| 2335 | host_os=$* |
| 2336 | IFS=$ac_save_IFS |
| 2337 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 2338 | |
| 2339 | |
| 2340 | |
NightStrike | d6b2d4b | 2010-03-04 16:48:56 +0000 | [diff] [blame] | 2341 | |
| 2342 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2343 | # Checks for programs. |
| 2344 | |
| 2345 | # Checks for libraries. |
| 2346 | |
| 2347 | # Checks for header files. |
| 2348 | |
| 2349 | # Checks for typedefs, structures, and compiler characteristics. |
| 2350 | |
| 2351 | # Checks for library functions. |
| 2352 | |
| 2353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the headers" >&5 |
| 2354 | $as_echo_n "checking whether to build the headers... " >&6; } |
| 2355 | |
| 2356 | # Check whether --with-headers was given. |
| 2357 | if test "${with_headers+set}" = set; then : |
| 2358 | withval=$with_headers; |
| 2359 | else |
| 2360 | with_headers=yes |
| 2361 | fi |
| 2362 | |
| 2363 | |
| 2364 | |
| 2365 | case $with_headers in #( |
| 2366 | yes) : |
| 2367 | subdirs="$subdirs mingw-w64-headers" |
| 2368 | ;; #( |
| 2369 | no) : |
| 2370 | ;; #( |
| 2371 | *) : |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2372 | as_fn_error $? "Invalid argument to --with-headers: $with_headers" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2373 | esac |
| 2374 | if test "x$with_headers" = xyes; then |
| 2375 | HEADER_TRUE= |
| 2376 | HEADER_FALSE='#' |
| 2377 | else |
| 2378 | HEADER_TRUE='#' |
| 2379 | HEADER_FALSE= |
| 2380 | fi |
| 2381 | |
| 2382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_headers" >&5 |
| 2383 | $as_echo "$with_headers" >&6; } |
| 2384 | |
| 2385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the crt" >&5 |
| 2386 | $as_echo_n "checking whether to build the crt... " >&6; } |
| 2387 | |
| 2388 | # Check whether --with-crt was given. |
| 2389 | if test "${with_crt+set}" = set; then : |
| 2390 | withval=$with_crt; |
| 2391 | else |
| 2392 | with_crt=yes |
| 2393 | fi |
| 2394 | |
| 2395 | case $with_crt in #( |
| 2396 | yes) : |
| 2397 | subdirs="$subdirs mingw-w64-crt" |
| 2398 | ;; #( |
| 2399 | no) : |
| 2400 | ;; #( |
| 2401 | *) : |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2402 | as_fn_error $? "Invalid argument to --with-crt: $with_crt" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2403 | esac |
| 2404 | if test "x$with_crt" = xyes; then |
| 2405 | CRT_TRUE= |
| 2406 | CRT_FALSE='#' |
| 2407 | else |
| 2408 | CRT_TRUE='#' |
| 2409 | CRT_FALSE= |
| 2410 | fi |
| 2411 | |
| 2412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_crt" >&5 |
| 2413 | $as_echo "$with_crt" >&6; } |
| 2414 | |
| 2415 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the optional libraries" >&5 |
| 2416 | $as_echo_n "checking whether to build the optional libraries... " >&6; } |
| 2417 | |
| 2418 | # Check whether --with-libraries was given. |
| 2419 | if test "${with_libraries+set}" = set; then : |
| 2420 | withval=$with_libraries; |
| 2421 | else |
| 2422 | with_libraries=no |
| 2423 | fi |
| 2424 | |
| 2425 | case $with_libraries in #( |
| 2426 | yes|all) : |
| 2427 | |
| 2428 | with_libraries="libmangle,pseh" |
| 2429 | with_libraries_mangle=yes |
| 2430 | with_libraries_pseh=yes ;; #( |
| 2431 | libmangle) : |
| 2432 | |
| 2433 | with_libraries="libmangle" |
| 2434 | with_libraries_mangle=yes |
| 2435 | with_libraries_pseh=no ;; #( |
| 2436 | pseh) : |
| 2437 | |
| 2438 | with_libraries="pseh" |
| 2439 | with_libraries_mangle=no |
| 2440 | with_libraries_pseh=yes ;; #( |
| 2441 | no) : |
| 2442 | |
| 2443 | with_libraries_mangle=no |
| 2444 | with_libraries_pseh=no ;; #( |
| 2445 | *) : |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2446 | as_fn_error $? "Invalid argument to --with-libraries: $with_libraries" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2447 | esac |
| 2448 | if test "x$with_libraries_mangle" = xyes; then |
| 2449 | LIBRARIES_MANGLE_TRUE= |
| 2450 | LIBRARIES_MANGLE_FALSE='#' |
| 2451 | else |
| 2452 | LIBRARIES_MANGLE_TRUE='#' |
| 2453 | LIBRARIES_MANGLE_FALSE= |
| 2454 | fi |
| 2455 | |
| 2456 | if test "x$with_libraries_pseh" = xyes; then |
| 2457 | LIBRARIES_PSEH_TRUE= |
| 2458 | LIBRARIES_PSEH_FALSE='#' |
| 2459 | else |
| 2460 | LIBRARIES_PSEH_TRUE='#' |
| 2461 | LIBRARIES_PSEH_FALSE= |
| 2462 | fi |
| 2463 | |
| 2464 | if test "x$with_libraries_mangle" = xyes; then |
| 2465 | subdirs="$subdirs mingw-w64-libraries/libmangle" |
| 2466 | |
| 2467 | fi |
| 2468 | if test "x$with_libraries_pseh" = xyes; then |
| 2469 | subdirs="$subdirs mingw-w64-libraries/pseh" |
| 2470 | |
| 2471 | fi |
| 2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libraries" >&5 |
| 2473 | $as_echo "$with_libraries" >&6; } |
| 2474 | |
| 2475 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the optional tools" >&5 |
| 2476 | $as_echo_n "checking whether to build the optional tools... " >&6; } |
| 2477 | |
| 2478 | # Check whether --with-tools was given. |
| 2479 | if test "${with_tools+set}" = set; then : |
| 2480 | withval=$with_tools; |
| 2481 | else |
| 2482 | with_tools=no |
| 2483 | fi |
| 2484 | |
| 2485 | case $with_tools in #( |
| 2486 | yes|all) : |
| 2487 | |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2488 | with_tools="gendef,genidl" |
| 2489 | with_tools_gendef=yes |
| 2490 | with_tools_genidl=yes ;; #( |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2491 | gendef) : |
| 2492 | |
| 2493 | with_tools="gendef" |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2494 | with_tools_gendef=yes |
| 2495 | with_tools_genidl=no ;; #( |
| 2496 | genidl) : |
| 2497 | |
| 2498 | with_tools="genidl" |
| 2499 | with_tools_gendef=no |
| 2500 | with_tools_genidl=yes ;; #( |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2501 | no) : |
| 2502 | |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2503 | with_tools_gendef=no |
| 2504 | with_tools_genidl=no ;; #( |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2505 | *) : |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2506 | as_fn_error $? "Invalid argument to --with-tools: $with_tools" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2507 | esac |
| 2508 | if test "x$with_tools_gendef" = xyes; then |
| 2509 | TOOLS_GENDEF_TRUE= |
| 2510 | TOOLS_GENDEF_FALSE='#' |
| 2511 | else |
| 2512 | TOOLS_GENDEF_TRUE='#' |
| 2513 | TOOLS_GENDEF_FALSE= |
| 2514 | fi |
| 2515 | |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2516 | if test "x$with_tools_genidl" = xyes; then |
| 2517 | TOOLS_GENIDL_TRUE= |
| 2518 | TOOLS_GENIDL_FALSE='#' |
| 2519 | else |
| 2520 | TOOLS_GENIDL_TRUE='#' |
| 2521 | TOOLS_GENIDL_FALSE= |
| 2522 | fi |
| 2523 | |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2524 | if test "x$with_tools_gendef" = xyes; then |
| 2525 | subdirs="$subdirs mingw-w64-tools/gendef" |
| 2526 | |
| 2527 | fi |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2528 | if test "x$with_tools_genidl" = xyes; then |
| 2529 | subdirs="$subdirs mingw-w64-tools/genidl" |
| 2530 | |
| 2531 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tools" >&5 |
| 2533 | $as_echo "$with_tools" >&6; } |
| 2534 | |
| 2535 | ac_config_files="$ac_config_files Makefile" |
| 2536 | |
| 2537 | cat >confcache <<\_ACEOF |
| 2538 | # This file is a shell script that caches the results of configure |
| 2539 | # tests run on this system so they can be shared between configure |
| 2540 | # scripts and configure runs, see configure's option --config-cache. |
| 2541 | # It is not useful on other systems. If it contains results you don't |
| 2542 | # want to keep, you may remove or edit it. |
| 2543 | # |
| 2544 | # config.status only pays attention to the cache file if you give it |
| 2545 | # the --recheck option to rerun configure. |
| 2546 | # |
| 2547 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2548 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2549 | # following values. |
| 2550 | |
| 2551 | _ACEOF |
| 2552 | |
| 2553 | # The following way of writing the cache mishandles newlines in values, |
| 2554 | # but we know of no workaround that is simple, portable, and efficient. |
| 2555 | # So, we kill variables containing newlines. |
| 2556 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 2557 | # and sets the high bit in the cache file unless we assign to the vars. |
| 2558 | ( |
| 2559 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 2560 | eval ac_val=\$$ac_var |
| 2561 | case $ac_val in #( |
| 2562 | *${as_nl}*) |
| 2563 | case $ac_var in #( |
| 2564 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 2565 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 2566 | esac |
| 2567 | case $ac_var in #( |
| 2568 | _ | IFS | as_nl) ;; #( |
| 2569 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 2570 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 2571 | esac ;; |
| 2572 | esac |
| 2573 | done |
| 2574 | |
| 2575 | (set) 2>&1 | |
| 2576 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 2577 | *${as_nl}ac_space=\ *) |
| 2578 | # `set' does not quote correctly, so add quotes: double-quote |
| 2579 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 2580 | sed -n \ |
| 2581 | "s/'/'\\\\''/g; |
| 2582 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 2583 | ;; #( |
| 2584 | *) |
| 2585 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2586 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 2587 | ;; |
| 2588 | esac | |
| 2589 | sort |
| 2590 | ) | |
| 2591 | sed ' |
| 2592 | /^ac_cv_env_/b end |
| 2593 | t clear |
| 2594 | :clear |
| 2595 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 2596 | t end |
| 2597 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 2598 | :end' >>confcache |
| 2599 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 2600 | if test -w "$cache_file"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2601 | if test "x$cache_file" != "x/dev/null"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2602 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 2603 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2604 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
| 2605 | cat confcache >"$cache_file" |
| 2606 | else |
| 2607 | case $cache_file in #( |
| 2608 | */* | ?:*) |
| 2609 | mv -f confcache "$cache_file"$$ && |
| 2610 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
| 2611 | *) |
| 2612 | mv -f confcache "$cache_file" ;; |
| 2613 | esac |
| 2614 | fi |
| 2615 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2616 | else |
| 2617 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 2618 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 2619 | fi |
| 2620 | fi |
| 2621 | rm -f confcache |
| 2622 | |
| 2623 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2624 | # Let make expand exec_prefix. |
| 2625 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2626 | |
| 2627 | DEFS=-DHAVE_CONFIG_H |
| 2628 | |
| 2629 | ac_libobjs= |
| 2630 | ac_ltlibobjs= |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2631 | U= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2632 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 2633 | # 1. Remove the extension, and $U if already installed. |
| 2634 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 2635 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 2636 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 2637 | # will be set to the directory where LIBOBJS objects are built. |
| 2638 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 2639 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 2640 | done |
| 2641 | LIBOBJS=$ac_libobjs |
| 2642 | |
| 2643 | LTLIBOBJS=$ac_ltlibobjs |
| 2644 | |
| 2645 | |
| 2646 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2647 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2648 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2649 | fi |
| 2650 | |
| 2651 | if test -z "${HEADER_TRUE}" && test -z "${HEADER_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2652 | as_fn_error $? "conditional \"HEADER\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2653 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2654 | fi |
| 2655 | if test -z "${CRT_TRUE}" && test -z "${CRT_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2656 | as_fn_error $? "conditional \"CRT\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2657 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2658 | fi |
| 2659 | if test -z "${LIBRARIES_MANGLE_TRUE}" && test -z "${LIBRARIES_MANGLE_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2660 | as_fn_error $? "conditional \"LIBRARIES_MANGLE\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2661 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2662 | fi |
| 2663 | if test -z "${LIBRARIES_PSEH_TRUE}" && test -z "${LIBRARIES_PSEH_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2664 | as_fn_error $? "conditional \"LIBRARIES_PSEH\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2665 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2666 | fi |
| 2667 | if test -z "${TOOLS_GENDEF_TRUE}" && test -z "${TOOLS_GENDEF_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2668 | as_fn_error $? "conditional \"TOOLS_GENDEF\" was never defined. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2669 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2670 | fi |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2671 | if test -z "${TOOLS_GENIDL_TRUE}" && test -z "${TOOLS_GENIDL_FALSE}"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2672 | as_fn_error $? "conditional \"TOOLS_GENIDL\" was never defined. |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 2673 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 2674 | fi |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2675 | |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2676 | : "${CONFIG_STATUS=./config.status}" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2677 | ac_write_fail=0 |
| 2678 | ac_clean_files_save=$ac_clean_files |
| 2679 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 2680 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 2681 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 2682 | as_write_fail=0 |
| 2683 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 2684 | #! $SHELL |
| 2685 | # Generated by $as_me. |
| 2686 | # Run this file to recreate the current configuration. |
| 2687 | # Compiler output produced by configure, useful for debugging |
| 2688 | # configure, is in config.log if it exists. |
| 2689 | |
| 2690 | debug=false |
| 2691 | ac_cs_recheck=false |
| 2692 | ac_cs_silent=false |
| 2693 | |
| 2694 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 2695 | export SHELL |
| 2696 | _ASEOF |
| 2697 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 2698 | ## -------------------- ## |
| 2699 | ## M4sh Initialization. ## |
| 2700 | ## -------------------- ## |
| 2701 | |
| 2702 | # Be more Bourne compatible |
| 2703 | DUALCASE=1; export DUALCASE # for MKS sh |
| 2704 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 2705 | emulate sh |
| 2706 | NULLCMD=: |
| 2707 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 2708 | # is contrary to our usage. Disable this feature. |
| 2709 | alias -g '${1+"$@"}'='"$@"' |
| 2710 | setopt NO_GLOB_SUBST |
| 2711 | else |
| 2712 | case `(set -o) 2>/dev/null` in #( |
| 2713 | *posix*) : |
| 2714 | set -o posix ;; #( |
| 2715 | *) : |
| 2716 | ;; |
| 2717 | esac |
| 2718 | fi |
| 2719 | |
| 2720 | |
| 2721 | as_nl=' |
| 2722 | ' |
| 2723 | export as_nl |
| 2724 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 2725 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 2726 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2727 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 2728 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 2729 | # but without wasting forks for bash or zsh. |
| 2730 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 2731 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2732 | as_echo='print -r --' |
| 2733 | as_echo_n='print -rn --' |
| 2734 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 2735 | as_echo='printf %s\n' |
| 2736 | as_echo_n='printf %s' |
| 2737 | else |
| 2738 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 2739 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 2740 | as_echo_n='/usr/ucb/echo -n' |
| 2741 | else |
| 2742 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 2743 | as_echo_n_body='eval |
| 2744 | arg=$1; |
| 2745 | case $arg in #( |
| 2746 | *"$as_nl"*) |
| 2747 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 2748 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 2749 | esac; |
| 2750 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 2751 | ' |
| 2752 | export as_echo_n_body |
| 2753 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 2754 | fi |
| 2755 | export as_echo_body |
| 2756 | as_echo='sh -c $as_echo_body as_echo' |
| 2757 | fi |
| 2758 | |
| 2759 | # The user is always right. |
| 2760 | if test "${PATH_SEPARATOR+set}" != set; then |
| 2761 | PATH_SEPARATOR=: |
| 2762 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 2763 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 2764 | PATH_SEPARATOR=';' |
| 2765 | } |
| 2766 | fi |
| 2767 | |
| 2768 | |
| 2769 | # IFS |
| 2770 | # We need space, tab and new line, in precisely that order. Quoting is |
| 2771 | # there to prevent editors from complaining about space-tab. |
| 2772 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 2773 | # splitting by setting IFS to empty value.) |
| 2774 | IFS=" "" $as_nl" |
| 2775 | |
| 2776 | # Find who we are. Look in the path if we contain no directory separator. |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 2777 | as_myself= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2778 | case $0 in #(( |
| 2779 | *[\\/]* ) as_myself=$0 ;; |
| 2780 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2781 | for as_dir in $PATH |
| 2782 | do |
| 2783 | IFS=$as_save_IFS |
| 2784 | test -z "$as_dir" && as_dir=. |
| 2785 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 2786 | done |
| 2787 | IFS=$as_save_IFS |
| 2788 | |
| 2789 | ;; |
| 2790 | esac |
| 2791 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 2792 | # in which case we are not to be found in the path. |
| 2793 | if test "x$as_myself" = x; then |
| 2794 | as_myself=$0 |
| 2795 | fi |
| 2796 | if test ! -f "$as_myself"; then |
| 2797 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 2798 | exit 1 |
| 2799 | fi |
| 2800 | |
| 2801 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 2802 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 2803 | # suppresses any "Segmentation fault" message there. '((' could |
| 2804 | # trigger a bug in pdksh 5.2.14. |
| 2805 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 2806 | do eval test x\${$as_var+set} = xset \ |
| 2807 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 2808 | done |
| 2809 | PS1='$ ' |
| 2810 | PS2='> ' |
| 2811 | PS4='+ ' |
| 2812 | |
| 2813 | # NLS nuisances. |
| 2814 | LC_ALL=C |
| 2815 | export LC_ALL |
| 2816 | LANGUAGE=C |
| 2817 | export LANGUAGE |
| 2818 | |
| 2819 | # CDPATH. |
| 2820 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 2821 | |
| 2822 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2823 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
| 2824 | # ---------------------------------------- |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2825 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 2826 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2827 | # script with STATUS, using 1 if that was 0. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2828 | as_fn_error () |
| 2829 | { |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2830 | as_status=$1; test $as_status -eq 0 && as_status=1 |
| 2831 | if test "$4"; then |
| 2832 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2833 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2834 | fi |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 2835 | $as_echo "$as_me: error: $2" >&2 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 2836 | as_fn_exit $as_status |
| 2837 | } # as_fn_error |
| 2838 | |
| 2839 | |
| 2840 | # as_fn_set_status STATUS |
| 2841 | # ----------------------- |
| 2842 | # Set $? to STATUS, without forking. |
| 2843 | as_fn_set_status () |
| 2844 | { |
| 2845 | return $1 |
| 2846 | } # as_fn_set_status |
| 2847 | |
| 2848 | # as_fn_exit STATUS |
| 2849 | # ----------------- |
| 2850 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 2851 | as_fn_exit () |
| 2852 | { |
| 2853 | set +e |
| 2854 | as_fn_set_status $1 |
| 2855 | exit $1 |
| 2856 | } # as_fn_exit |
| 2857 | |
| 2858 | # as_fn_unset VAR |
| 2859 | # --------------- |
| 2860 | # Portably unset VAR. |
| 2861 | as_fn_unset () |
| 2862 | { |
| 2863 | { eval $1=; unset $1;} |
| 2864 | } |
| 2865 | as_unset=as_fn_unset |
| 2866 | # as_fn_append VAR VALUE |
| 2867 | # ---------------------- |
| 2868 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 2869 | # advantage of any shell optimizations that allow amortized linear growth over |
| 2870 | # repeated appends, instead of the typical quadratic growth present in naive |
| 2871 | # implementations. |
| 2872 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 2873 | eval 'as_fn_append () |
| 2874 | { |
| 2875 | eval $1+=\$2 |
| 2876 | }' |
| 2877 | else |
| 2878 | as_fn_append () |
| 2879 | { |
| 2880 | eval $1=\$$1\$2 |
| 2881 | } |
| 2882 | fi # as_fn_append |
| 2883 | |
| 2884 | # as_fn_arith ARG... |
| 2885 | # ------------------ |
| 2886 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 2887 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 2888 | # must be portable across $(()) and expr. |
| 2889 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 2890 | eval 'as_fn_arith () |
| 2891 | { |
| 2892 | as_val=$(( $* )) |
| 2893 | }' |
| 2894 | else |
| 2895 | as_fn_arith () |
| 2896 | { |
| 2897 | as_val=`expr "$@" || test $? -eq 1` |
| 2898 | } |
| 2899 | fi # as_fn_arith |
| 2900 | |
| 2901 | |
| 2902 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 2903 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 2904 | as_expr=expr |
| 2905 | else |
| 2906 | as_expr=false |
| 2907 | fi |
| 2908 | |
| 2909 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 2910 | as_basename=basename |
| 2911 | else |
| 2912 | as_basename=false |
| 2913 | fi |
| 2914 | |
| 2915 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 2916 | as_dirname=dirname |
| 2917 | else |
| 2918 | as_dirname=false |
| 2919 | fi |
| 2920 | |
| 2921 | as_me=`$as_basename -- "$0" || |
| 2922 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 2923 | X"$0" : 'X\(//\)$' \| \ |
| 2924 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 2925 | $as_echo X/"$0" | |
| 2926 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 2927 | s//\1/ |
| 2928 | q |
| 2929 | } |
| 2930 | /^X\/\(\/\/\)$/{ |
| 2931 | s//\1/ |
| 2932 | q |
| 2933 | } |
| 2934 | /^X\/\(\/\).*/{ |
| 2935 | s//\1/ |
| 2936 | q |
| 2937 | } |
| 2938 | s/.*/./; q'` |
| 2939 | |
| 2940 | # Avoid depending upon Character Ranges. |
| 2941 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 2942 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 2943 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 2944 | as_cr_digits='0123456789' |
| 2945 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 2946 | |
| 2947 | ECHO_C= ECHO_N= ECHO_T= |
| 2948 | case `echo -n x` in #((((( |
| 2949 | -n*) |
| 2950 | case `echo 'xy\c'` in |
| 2951 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 2952 | xy) ECHO_C='\c';; |
| 2953 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 2954 | ECHO_T=' ';; |
| 2955 | esac;; |
| 2956 | *) |
| 2957 | ECHO_N='-n';; |
| 2958 | esac |
| 2959 | |
| 2960 | rm -f conf$$ conf$$.exe conf$$.file |
| 2961 | if test -d conf$$.dir; then |
| 2962 | rm -f conf$$.dir/conf$$.file |
| 2963 | else |
| 2964 | rm -f conf$$.dir |
| 2965 | mkdir conf$$.dir 2>/dev/null |
| 2966 | fi |
| 2967 | if (echo >conf$$.file) 2>/dev/null; then |
| 2968 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 2969 | as_ln_s='ln -s' |
| 2970 | # ... but there are two gotchas: |
| 2971 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 2972 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 2973 | # In both cases, we have to default to `cp -p'. |
| 2974 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 2975 | as_ln_s='cp -p' |
| 2976 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 2977 | as_ln_s=ln |
| 2978 | else |
| 2979 | as_ln_s='cp -p' |
| 2980 | fi |
| 2981 | else |
| 2982 | as_ln_s='cp -p' |
| 2983 | fi |
| 2984 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 2985 | rmdir conf$$.dir 2>/dev/null |
| 2986 | |
| 2987 | |
| 2988 | # as_fn_mkdir_p |
| 2989 | # ------------- |
| 2990 | # Create "$as_dir" as a directory, including parents if necessary. |
| 2991 | as_fn_mkdir_p () |
| 2992 | { |
| 2993 | |
| 2994 | case $as_dir in #( |
| 2995 | -*) as_dir=./$as_dir;; |
| 2996 | esac |
| 2997 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 2998 | as_dirs= |
| 2999 | while :; do |
| 3000 | case $as_dir in #( |
| 3001 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 3002 | *) as_qdir=$as_dir;; |
| 3003 | esac |
| 3004 | as_dirs="'$as_qdir' $as_dirs" |
| 3005 | as_dir=`$as_dirname -- "$as_dir" || |
| 3006 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3007 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 3008 | X"$as_dir" : 'X\(//\)$' \| \ |
| 3009 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 3010 | $as_echo X"$as_dir" | |
| 3011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3012 | s//\1/ |
| 3013 | q |
| 3014 | } |
| 3015 | /^X\(\/\/\)[^/].*/{ |
| 3016 | s//\1/ |
| 3017 | q |
| 3018 | } |
| 3019 | /^X\(\/\/\)$/{ |
| 3020 | s//\1/ |
| 3021 | q |
| 3022 | } |
| 3023 | /^X\(\/\).*/{ |
| 3024 | s//\1/ |
| 3025 | q |
| 3026 | } |
| 3027 | s/.*/./; q'` |
| 3028 | test -d "$as_dir" && break |
| 3029 | done |
| 3030 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3031 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3032 | |
| 3033 | |
| 3034 | } # as_fn_mkdir_p |
| 3035 | if mkdir -p . 2>/dev/null; then |
| 3036 | as_mkdir_p='mkdir -p "$as_dir"' |
| 3037 | else |
| 3038 | test -d ./-p && rmdir ./-p |
| 3039 | as_mkdir_p=false |
| 3040 | fi |
| 3041 | |
| 3042 | if test -x / >/dev/null 2>&1; then |
| 3043 | as_test_x='test -x' |
| 3044 | else |
| 3045 | if ls -dL / >/dev/null 2>&1; then |
| 3046 | as_ls_L_option=L |
| 3047 | else |
| 3048 | as_ls_L_option= |
| 3049 | fi |
| 3050 | as_test_x=' |
| 3051 | eval sh -c '\'' |
| 3052 | if test -d "$1"; then |
| 3053 | test -d "$1/."; |
| 3054 | else |
| 3055 | case $1 in #( |
| 3056 | -*)set "./$1";; |
| 3057 | esac; |
| 3058 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 3059 | ???[sx]*):;;*)false;;esac;fi |
| 3060 | '\'' sh |
| 3061 | ' |
| 3062 | fi |
| 3063 | as_executable_p=$as_test_x |
| 3064 | |
| 3065 | # Sed expression to map a string onto a valid CPP name. |
| 3066 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 3067 | |
| 3068 | # Sed expression to map a string onto a valid variable name. |
| 3069 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 3070 | |
| 3071 | |
| 3072 | exec 6>&1 |
| 3073 | ## ----------------------------------- ## |
| 3074 | ## Main body of $CONFIG_STATUS script. ## |
| 3075 | ## ----------------------------------- ## |
| 3076 | _ASEOF |
| 3077 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 3078 | |
| 3079 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3080 | # Save the log message, to keep $0 and so on meaningful, and to |
| 3081 | # report actual input values of CONFIG_FILES etc. instead of their |
| 3082 | # values after options handling. |
| 3083 | ac_log=" |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3084 | This file was extended by mingw-w64 $as_me 3.0b, which was |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3085 | generated by GNU Autoconf 2.68. Invocation command line was |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3086 | |
| 3087 | CONFIG_FILES = $CONFIG_FILES |
| 3088 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 3089 | CONFIG_LINKS = $CONFIG_LINKS |
| 3090 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 3091 | $ $0 $@ |
| 3092 | |
| 3093 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 3094 | " |
| 3095 | |
| 3096 | _ACEOF |
| 3097 | |
| 3098 | case $ac_config_files in *" |
| 3099 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 3100 | esac |
| 3101 | |
| 3102 | case $ac_config_headers in *" |
| 3103 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 3104 | esac |
| 3105 | |
| 3106 | |
| 3107 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3108 | # Files that config.status was made for. |
| 3109 | config_files="$ac_config_files" |
| 3110 | config_headers="$ac_config_headers" |
| 3111 | |
| 3112 | _ACEOF |
| 3113 | |
| 3114 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3115 | ac_cs_usage="\ |
| 3116 | \`$as_me' instantiates files and other configuration actions |
| 3117 | from templates according to the current configuration. Unless the files |
| 3118 | and actions are specified as TAGs, all are instantiated by default. |
| 3119 | |
| 3120 | Usage: $0 [OPTION]... [TAG]... |
| 3121 | |
| 3122 | -h, --help print this help, then exit |
| 3123 | -V, --version print version number and configuration settings, then exit |
| 3124 | --config print configuration, then exit |
| 3125 | -q, --quiet, --silent |
| 3126 | do not print progress messages |
| 3127 | -d, --debug don't remove temporary files |
| 3128 | --recheck update $as_me by reconfiguring in the same conditions |
| 3129 | --file=FILE[:TEMPLATE] |
| 3130 | instantiate the configuration file FILE |
| 3131 | --header=FILE[:TEMPLATE] |
| 3132 | instantiate the configuration header FILE |
| 3133 | |
| 3134 | Configuration files: |
| 3135 | $config_files |
| 3136 | |
| 3137 | Configuration headers: |
| 3138 | $config_headers |
| 3139 | |
| 3140 | Report bugs to <mingw-w64-public@lists.sourceforge.net>." |
| 3141 | |
| 3142 | _ACEOF |
| 3143 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3144 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 3145 | ac_cs_version="\\ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3146 | mingw-w64 config.status 3.0b |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3147 | configured by $0, generated by GNU Autoconf 2.68, |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3148 | with options \\"\$ac_cs_config\\" |
| 3149 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3150 | Copyright (C) 2010 Free Software Foundation, Inc. |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3151 | This config.status script is free software; the Free Software Foundation |
| 3152 | gives unlimited permission to copy, distribute and modify it." |
| 3153 | |
| 3154 | ac_pwd='$ac_pwd' |
| 3155 | srcdir='$srcdir' |
| 3156 | INSTALL='$INSTALL' |
| 3157 | MKDIR_P='$MKDIR_P' |
| 3158 | AWK='$AWK' |
| 3159 | test -n "\$AWK" || AWK=awk |
| 3160 | _ACEOF |
| 3161 | |
| 3162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3163 | # The default lists apply if the user does not specify any file. |
| 3164 | ac_need_defaults=: |
| 3165 | while test $# != 0 |
| 3166 | do |
| 3167 | case $1 in |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3168 | --*=?*) |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3169 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3170 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 3171 | ac_shift=: |
| 3172 | ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3173 | --*=) |
| 3174 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 3175 | ac_optarg= |
| 3176 | ac_shift=: |
| 3177 | ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3178 | *) |
| 3179 | ac_option=$1 |
| 3180 | ac_optarg=$2 |
| 3181 | ac_shift=shift |
| 3182 | ;; |
| 3183 | esac |
| 3184 | |
| 3185 | case $ac_option in |
| 3186 | # Handling of the options. |
| 3187 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 3188 | ac_cs_recheck=: ;; |
| 3189 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 3190 | $as_echo "$ac_cs_version"; exit ;; |
| 3191 | --config | --confi | --conf | --con | --co | --c ) |
| 3192 | $as_echo "$ac_cs_config"; exit ;; |
| 3193 | --debug | --debu | --deb | --de | --d | -d ) |
| 3194 | debug=: ;; |
| 3195 | --file | --fil | --fi | --f ) |
| 3196 | $ac_shift |
| 3197 | case $ac_optarg in |
| 3198 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3199 | '') as_fn_error $? "missing file argument" ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3200 | esac |
| 3201 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 3202 | ac_need_defaults=false;; |
| 3203 | --header | --heade | --head | --hea ) |
| 3204 | $ac_shift |
| 3205 | case $ac_optarg in |
| 3206 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3207 | esac |
| 3208 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 3209 | ac_need_defaults=false;; |
| 3210 | --he | --h) |
| 3211 | # Conflict between --help and --header |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3212 | as_fn_error $? "ambiguous option: \`$1' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3213 | Try \`$0 --help' for more information.";; |
| 3214 | --help | --hel | -h ) |
| 3215 | $as_echo "$ac_cs_usage"; exit ;; |
| 3216 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 3217 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 3218 | ac_cs_silent=: ;; |
| 3219 | |
| 3220 | # This is an error. |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3221 | -*) as_fn_error $? "unrecognized option: \`$1' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3222 | Try \`$0 --help' for more information." ;; |
| 3223 | |
| 3224 | *) as_fn_append ac_config_targets " $1" |
| 3225 | ac_need_defaults=false ;; |
| 3226 | |
| 3227 | esac |
| 3228 | shift |
| 3229 | done |
| 3230 | |
| 3231 | ac_configure_extra_args= |
| 3232 | |
| 3233 | if $ac_cs_silent; then |
| 3234 | exec 6>/dev/null |
| 3235 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 3236 | fi |
| 3237 | |
| 3238 | _ACEOF |
| 3239 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3240 | if \$ac_cs_recheck; then |
| 3241 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 3242 | shift |
| 3243 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 3244 | CONFIG_SHELL='$SHELL' |
| 3245 | export CONFIG_SHELL |
| 3246 | exec "\$@" |
| 3247 | fi |
| 3248 | |
| 3249 | _ACEOF |
| 3250 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3251 | exec 5>>config.log |
| 3252 | { |
| 3253 | echo |
| 3254 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 3255 | ## Running $as_me. ## |
| 3256 | _ASBOX |
| 3257 | $as_echo "$ac_log" |
| 3258 | } >&5 |
| 3259 | |
| 3260 | _ACEOF |
| 3261 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3262 | _ACEOF |
| 3263 | |
| 3264 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3265 | |
| 3266 | # Handling of arguments. |
| 3267 | for ac_config_target in $ac_config_targets |
| 3268 | do |
| 3269 | case $ac_config_target in |
| 3270 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 3271 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 3272 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3273 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3274 | esac |
| 3275 | done |
| 3276 | |
| 3277 | |
| 3278 | # If the user did not use the arguments to specify the items to instantiate, |
| 3279 | # then the envvar interface is used. Set only those that are not. |
| 3280 | # We use the long form for the default assignment because of an extremely |
| 3281 | # bizarre bug on SunOS 4.1.3. |
| 3282 | if $ac_need_defaults; then |
| 3283 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 3284 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 3285 | fi |
| 3286 | |
| 3287 | # Have a temporary directory for convenience. Make it in the build tree |
| 3288 | # simply because there is no reason against having it here, and in addition, |
| 3289 | # creating and moving files from /tmp can sometimes cause problems. |
| 3290 | # Hook for its removal unless debugging. |
| 3291 | # Note that there is a small window in which the directory will not be cleaned: |
| 3292 | # after its creation but before its name has been assigned to `$tmp'. |
| 3293 | $debug || |
| 3294 | { |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3295 | tmp= ac_tmp= |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3296 | trap 'exit_status=$? |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3297 | : "${ac_tmp:=$tmp}" |
| 3298 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3299 | ' 0 |
| 3300 | trap 'as_fn_exit 1' 1 2 13 15 |
| 3301 | } |
| 3302 | # Create a (secure) tmp directory for tmp files. |
| 3303 | |
| 3304 | { |
| 3305 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3306 | test -d "$tmp" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3307 | } || |
| 3308 | { |
| 3309 | tmp=./conf$$-$RANDOM |
| 3310 | (umask 077 && mkdir "$tmp") |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3311 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3312 | ac_tmp=$tmp |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3313 | |
| 3314 | # Set up the scripts for CONFIG_FILES section. |
| 3315 | # No need to generate them if there are no CONFIG_FILES. |
| 3316 | # This happens for instance with `./config.status config.h'. |
| 3317 | if test -n "$CONFIG_FILES"; then |
| 3318 | |
| 3319 | |
| 3320 | ac_cr=`echo X | tr X '\015'` |
| 3321 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 3322 | # But we know of no other shell where ac_cr would be empty at this |
| 3323 | # point, so we can use a bashism as a fallback. |
| 3324 | if test "x$ac_cr" = x; then |
| 3325 | eval ac_cr=\$\'\\r\' |
| 3326 | fi |
| 3327 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 3328 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3329 | ac_cs_awk_cr='\\r' |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3330 | else |
| 3331 | ac_cs_awk_cr=$ac_cr |
| 3332 | fi |
| 3333 | |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3334 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3335 | _ACEOF |
| 3336 | |
| 3337 | |
| 3338 | { |
| 3339 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 3340 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 3341 | echo "_ACEOF" |
| 3342 | } >conf$$subs.sh || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3343 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 3344 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3345 | ac_delim='%!_!# ' |
| 3346 | for ac_last_try in false false false false false :; do |
| 3347 | . ./conf$$subs.sh || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3348 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3349 | |
| 3350 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 3351 | if test $ac_delim_n = $ac_delim_num; then |
| 3352 | break |
| 3353 | elif $ac_last_try; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3354 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3355 | else |
| 3356 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 3357 | fi |
| 3358 | done |
| 3359 | rm -f conf$$subs.sh |
| 3360 | |
| 3361 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3362 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3363 | _ACEOF |
| 3364 | sed -n ' |
| 3365 | h |
| 3366 | s/^/S["/; s/!.*/"]=/ |
| 3367 | p |
| 3368 | g |
| 3369 | s/^[^!]*!// |
| 3370 | :repl |
| 3371 | t repl |
| 3372 | s/'"$ac_delim"'$// |
| 3373 | t delim |
| 3374 | :nl |
| 3375 | h |
| 3376 | s/\(.\{148\}\)..*/\1/ |
| 3377 | t more1 |
| 3378 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 3379 | p |
| 3380 | n |
| 3381 | b repl |
| 3382 | :more1 |
| 3383 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3384 | p |
| 3385 | g |
| 3386 | s/.\{148\}// |
| 3387 | t nl |
| 3388 | :delim |
| 3389 | h |
| 3390 | s/\(.\{148\}\)..*/\1/ |
| 3391 | t more2 |
| 3392 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 3393 | p |
| 3394 | b |
| 3395 | :more2 |
| 3396 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 3397 | p |
| 3398 | g |
| 3399 | s/.\{148\}// |
| 3400 | t delim |
| 3401 | ' <conf$$subs.awk | sed ' |
| 3402 | /^[^""]/{ |
| 3403 | N |
| 3404 | s/\n// |
| 3405 | } |
| 3406 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3407 | rm -f conf$$subs.awk |
| 3408 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3409 | _ACAWK |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3410 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3411 | for (key in S) S_is_set[key] = 1 |
| 3412 | FS = "" |
| 3413 | |
| 3414 | } |
| 3415 | { |
| 3416 | line = $ 0 |
| 3417 | nfields = split(line, field, "@") |
| 3418 | substed = 0 |
| 3419 | len = length(field[1]) |
| 3420 | for (i = 2; i < nfields; i++) { |
| 3421 | key = field[i] |
| 3422 | keylen = length(key) |
| 3423 | if (S_is_set[key]) { |
| 3424 | value = S[key] |
| 3425 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 3426 | len += length(value) + length(field[++i]) |
| 3427 | substed = 1 |
| 3428 | } else |
| 3429 | len += 1 + keylen |
| 3430 | } |
| 3431 | |
| 3432 | print line |
| 3433 | } |
| 3434 | |
| 3435 | _ACAWK |
| 3436 | _ACEOF |
| 3437 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3438 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 3439 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 3440 | else |
| 3441 | cat |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3442 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3443 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3444 | _ACEOF |
| 3445 | |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3446 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
| 3447 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3448 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 3449 | # (actually we leave an empty line to preserve line numbers). |
| 3450 | if test "x$srcdir" = x.; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3451 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
| 3452 | h |
| 3453 | s/// |
| 3454 | s/^/:/ |
| 3455 | s/[ ]*$/:/ |
| 3456 | s/:\$(srcdir):/:/g |
| 3457 | s/:\${srcdir}:/:/g |
| 3458 | s/:@srcdir@:/:/g |
| 3459 | s/^:*// |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3460 | s/:*$// |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3461 | x |
| 3462 | s/\(=[ ]*\).*/\1/ |
| 3463 | G |
| 3464 | s/\n// |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3465 | s/^[^=]*=[ ]*$// |
| 3466 | }' |
| 3467 | fi |
| 3468 | |
| 3469 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3470 | fi # test -n "$CONFIG_FILES" |
| 3471 | |
| 3472 | # Set up the scripts for CONFIG_HEADERS section. |
| 3473 | # No need to generate them if there are no CONFIG_HEADERS. |
| 3474 | # This happens for instance with `./config.status Makefile'. |
| 3475 | if test -n "$CONFIG_HEADERS"; then |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3476 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3477 | BEGIN { |
| 3478 | _ACEOF |
| 3479 | |
| 3480 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 3481 | # here-document in config.status, that substitutes the proper values into |
| 3482 | # config.h.in to produce config.h. |
| 3483 | |
| 3484 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 3485 | # handling of long lines. |
| 3486 | ac_delim='%!_!# ' |
| 3487 | for ac_last_try in false false :; do |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3488 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
| 3489 | if test -z "$ac_tt"; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3490 | break |
| 3491 | elif $ac_last_try; then |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3492 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3493 | else |
| 3494 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 3495 | fi |
| 3496 | done |
| 3497 | |
| 3498 | # For the awk script, D is an array of macro values keyed by name, |
| 3499 | # likewise P contains macro parameters if any. Preserve backslash |
| 3500 | # newline sequences. |
| 3501 | |
| 3502 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 3503 | sed -n ' |
| 3504 | s/.\{148\}/&'"$ac_delim"'/g |
| 3505 | t rset |
| 3506 | :rset |
| 3507 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 3508 | t def |
| 3509 | d |
| 3510 | :def |
| 3511 | s/\\$// |
| 3512 | t bsnl |
| 3513 | s/["\\]/\\&/g |
| 3514 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 3515 | D["\1"]=" \3"/p |
| 3516 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 3517 | d |
| 3518 | :bsnl |
| 3519 | s/["\\]/\\&/g |
| 3520 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 3521 | D["\1"]=" \3\\\\\\n"\\/p |
| 3522 | t cont |
| 3523 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 3524 | t cont |
| 3525 | d |
| 3526 | :cont |
| 3527 | n |
| 3528 | s/.\{148\}/&'"$ac_delim"'/g |
| 3529 | t clear |
| 3530 | :clear |
| 3531 | s/\\$// |
| 3532 | t bsnlc |
| 3533 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 3534 | d |
| 3535 | :bsnlc |
| 3536 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 3537 | b cont |
| 3538 | ' <confdefs.h | sed ' |
| 3539 | s/'"$ac_delim"'/"\\\ |
| 3540 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 3541 | |
| 3542 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3543 | for (key in D) D_is_set[key] = 1 |
| 3544 | FS = "" |
| 3545 | } |
| 3546 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 3547 | line = \$ 0 |
| 3548 | split(line, arg, " ") |
| 3549 | if (arg[1] == "#") { |
| 3550 | defundef = arg[2] |
| 3551 | mac1 = arg[3] |
| 3552 | } else { |
| 3553 | defundef = substr(arg[1], 2) |
| 3554 | mac1 = arg[2] |
| 3555 | } |
| 3556 | split(mac1, mac2, "(") #) |
| 3557 | macro = mac2[1] |
| 3558 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 3559 | if (D_is_set[macro]) { |
| 3560 | # Preserve the white space surrounding the "#". |
| 3561 | print prefix "define", macro P[macro] D[macro] |
| 3562 | next |
| 3563 | } else { |
| 3564 | # Replace #undef with comments. This is necessary, for example, |
| 3565 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 3566 | # on some systems where configure will not decide to define it. |
| 3567 | if (defundef == "undef") { |
| 3568 | print "/*", prefix defundef, macro, "*/" |
| 3569 | next |
| 3570 | } |
| 3571 | } |
| 3572 | } |
| 3573 | { print } |
| 3574 | _ACAWK |
| 3575 | _ACEOF |
| 3576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3577 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3578 | fi # test -n "$CONFIG_HEADERS" |
| 3579 | |
| 3580 | |
| 3581 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " |
| 3582 | shift |
| 3583 | for ac_tag |
| 3584 | do |
| 3585 | case $ac_tag in |
| 3586 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 3587 | esac |
| 3588 | case $ac_mode$ac_tag in |
| 3589 | :[FHL]*:*);; |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3590 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3591 | :[FH]-) ac_tag=-:-;; |
| 3592 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 3593 | esac |
| 3594 | ac_save_IFS=$IFS |
| 3595 | IFS=: |
| 3596 | set x $ac_tag |
| 3597 | IFS=$ac_save_IFS |
| 3598 | shift |
| 3599 | ac_file=$1 |
| 3600 | shift |
| 3601 | |
| 3602 | case $ac_mode in |
| 3603 | :L) ac_source=$1;; |
| 3604 | :[FH]) |
| 3605 | ac_file_inputs= |
| 3606 | for ac_f |
| 3607 | do |
| 3608 | case $ac_f in |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3609 | -) ac_f="$ac_tmp/stdin";; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3610 | *) # Look for the file first in the build tree, then in the source tree |
| 3611 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 3612 | # because $ac_f cannot contain `:'. |
| 3613 | test -f "$ac_f" || |
| 3614 | case $ac_f in |
| 3615 | [\\/$]*) false;; |
| 3616 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 3617 | esac || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3618 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3619 | esac |
| 3620 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 3621 | as_fn_append ac_file_inputs " '$ac_f'" |
| 3622 | done |
| 3623 | |
| 3624 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 3625 | # use $as_me), people would be surprised to read: |
| 3626 | # /* config.h. Generated by config.status. */ |
| 3627 | configure_input='Generated from '` |
| 3628 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 3629 | `' by configure.' |
| 3630 | if test x"$ac_file" != x-; then |
| 3631 | configure_input="$ac_file. $configure_input" |
| 3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 3633 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 3634 | fi |
| 3635 | # Neutralize special characters interpreted by sed in replacement strings. |
| 3636 | case $configure_input in #( |
| 3637 | *\&* | *\|* | *\\* ) |
| 3638 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 3639 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 3640 | *) ac_sed_conf_input=$configure_input;; |
| 3641 | esac |
| 3642 | |
| 3643 | case $ac_tag in |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3644 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3645 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3646 | esac |
| 3647 | ;; |
| 3648 | esac |
| 3649 | |
| 3650 | ac_dir=`$as_dirname -- "$ac_file" || |
| 3651 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3652 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 3653 | X"$ac_file" : 'X\(//\)$' \| \ |
| 3654 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 3655 | $as_echo X"$ac_file" | |
| 3656 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3657 | s//\1/ |
| 3658 | q |
| 3659 | } |
| 3660 | /^X\(\/\/\)[^/].*/{ |
| 3661 | s//\1/ |
| 3662 | q |
| 3663 | } |
| 3664 | /^X\(\/\/\)$/{ |
| 3665 | s//\1/ |
| 3666 | q |
| 3667 | } |
| 3668 | /^X\(\/\).*/{ |
| 3669 | s//\1/ |
| 3670 | q |
| 3671 | } |
| 3672 | s/.*/./; q'` |
| 3673 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 3674 | ac_builddir=. |
| 3675 | |
| 3676 | case "$ac_dir" in |
| 3677 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3678 | *) |
| 3679 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 3680 | # A ".." for each directory in $ac_dir_suffix. |
| 3681 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 3682 | case $ac_top_builddir_sub in |
| 3683 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3684 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 3685 | esac ;; |
| 3686 | esac |
| 3687 | ac_abs_top_builddir=$ac_pwd |
| 3688 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 3689 | # for backward compatibility: |
| 3690 | ac_top_builddir=$ac_top_build_prefix |
| 3691 | |
| 3692 | case $srcdir in |
| 3693 | .) # We are building in place. |
| 3694 | ac_srcdir=. |
| 3695 | ac_top_srcdir=$ac_top_builddir_sub |
| 3696 | ac_abs_top_srcdir=$ac_pwd ;; |
| 3697 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 3698 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 3699 | ac_top_srcdir=$srcdir |
| 3700 | ac_abs_top_srcdir=$srcdir ;; |
| 3701 | *) # Relative name. |
| 3702 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 3703 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 3704 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 3705 | esac |
| 3706 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 3707 | |
| 3708 | |
| 3709 | case $ac_mode in |
| 3710 | :F) |
| 3711 | # |
| 3712 | # CONFIG_FILE |
| 3713 | # |
| 3714 | |
| 3715 | case $INSTALL in |
| 3716 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 3717 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 3718 | esac |
| 3719 | ac_MKDIR_P=$MKDIR_P |
| 3720 | case $MKDIR_P in |
| 3721 | [\\/$]* | ?:[\\/]* ) ;; |
| 3722 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 3723 | esac |
| 3724 | _ACEOF |
| 3725 | |
| 3726 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3727 | # If the template does not know about datarootdir, expand it. |
| 3728 | # FIXME: This hack should be removed a few years after 2.60. |
| 3729 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 3730 | ac_sed_dataroot=' |
| 3731 | /datarootdir/ { |
| 3732 | p |
| 3733 | q |
| 3734 | } |
| 3735 | /@datadir@/p |
| 3736 | /@docdir@/p |
| 3737 | /@infodir@/p |
| 3738 | /@localedir@/p |
| 3739 | /@mandir@/p' |
| 3740 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 3741 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 3742 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 3744 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 3745 | _ACEOF |
| 3746 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3747 | ac_datarootdir_hack=' |
| 3748 | s&@datadir@&$datadir&g |
| 3749 | s&@docdir@&$docdir&g |
| 3750 | s&@infodir@&$infodir&g |
| 3751 | s&@localedir@&$localedir&g |
| 3752 | s&@mandir@&$mandir&g |
| 3753 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 3754 | esac |
| 3755 | _ACEOF |
| 3756 | |
| 3757 | # Neutralize VPATH when `$srcdir' = `.'. |
| 3758 | # Shell code in configure.ac might set extrasub. |
| 3759 | # FIXME: do we really want to maintain this feature? |
| 3760 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 3761 | ac_sed_extra="$ac_vpsub |
| 3762 | $extrasub |
| 3763 | _ACEOF |
| 3764 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 3765 | :t |
| 3766 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 3767 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 3768 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 3769 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 3770 | s&@srcdir@&$ac_srcdir&;t t |
| 3771 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 3772 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 3773 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 3774 | s&@builddir@&$ac_builddir&;t t |
| 3775 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 3776 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 3777 | s&@INSTALL@&$ac_INSTALL&;t t |
| 3778 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 3779 | $ac_datarootdir_hack |
| 3780 | " |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3781 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
| 3782 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3783 | |
| 3784 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3785 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
| 3786 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
| 3787 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3789 | which seems to be undefined. Please make sure it is defined" >&5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3790 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3791 | which seems to be undefined. Please make sure it is defined" >&2;} |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3792 | |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3793 | rm -f "$ac_tmp/stdin" |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3794 | case $ac_file in |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3795 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
| 3796 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3797 | esac \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3798 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3799 | ;; |
| 3800 | :H) |
| 3801 | # |
| 3802 | # CONFIG_HEADER |
| 3803 | # |
| 3804 | if test x"$ac_file" != x-; then |
| 3805 | { |
| 3806 | $as_echo "/* $configure_input */" \ |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3807 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
| 3808 | } >"$ac_tmp/config.h" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3809 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3810 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3811 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 3812 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 3813 | else |
| 3814 | rm -f "$ac_file" |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3815 | mv "$ac_tmp/config.h" "$ac_file" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3816 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3817 | fi |
| 3818 | else |
| 3819 | $as_echo "/* $configure_input */" \ |
Ozkan Sezer | 9e09a80 | 2011-11-17 07:42:03 +0000 | [diff] [blame] | 3820 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3821 | || as_fn_error $? "could not create -" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3822 | fi |
| 3823 | # Compute "$ac_file"'s index in $config_headers. |
| 3824 | _am_arg="$ac_file" |
| 3825 | _am_stamp_count=1 |
| 3826 | for _am_header in $config_headers :; do |
| 3827 | case $_am_header in |
| 3828 | $_am_arg | $_am_arg:* ) |
| 3829 | break ;; |
| 3830 | * ) |
| 3831 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 3832 | esac |
| 3833 | done |
| 3834 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 3835 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3836 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 3837 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 3838 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 3839 | $as_echo X"$_am_arg" | |
| 3840 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 3841 | s//\1/ |
| 3842 | q |
| 3843 | } |
| 3844 | /^X\(\/\/\)[^/].*/{ |
| 3845 | s//\1/ |
| 3846 | q |
| 3847 | } |
| 3848 | /^X\(\/\/\)$/{ |
| 3849 | s//\1/ |
| 3850 | q |
| 3851 | } |
| 3852 | /^X\(\/\).*/{ |
| 3853 | s//\1/ |
| 3854 | q |
| 3855 | } |
| 3856 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 3857 | ;; |
| 3858 | |
| 3859 | |
| 3860 | esac |
| 3861 | |
| 3862 | done # for ac_tag |
| 3863 | |
| 3864 | |
| 3865 | as_fn_exit 0 |
| 3866 | _ACEOF |
| 3867 | ac_clean_files=$ac_clean_files_save |
| 3868 | |
| 3869 | test $ac_write_fail = 0 || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3870 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3871 | |
| 3872 | |
| 3873 | # configure is writing to config.log, and then calls config.status. |
| 3874 | # config.status does its own redirection, appending to config.log. |
| 3875 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 3876 | # by configure, so config.status won't be able to write to it; its |
| 3877 | # output is simply discarded. So we exec the FD to /dev/null, |
| 3878 | # effectively closing config.log, so it can be properly (re)opened and |
| 3879 | # appended to by config.status. When coming back to configure, we |
| 3880 | # need to make the FD available again. |
| 3881 | if test "$no_create" != yes; then |
| 3882 | ac_cs_success=: |
| 3883 | ac_config_status_args= |
| 3884 | test "$silent" = yes && |
| 3885 | ac_config_status_args="$ac_config_status_args --quiet" |
| 3886 | exec 5>/dev/null |
| 3887 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 3888 | exec 5>>config.log |
| 3889 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 3890 | # would make configure fail if this is the last instruction. |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 3891 | $ac_cs_success || as_fn_exit 1 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 3892 | fi |
| 3893 | |
| 3894 | # |
| 3895 | # CONFIG_SUBDIRS section. |
| 3896 | # |
| 3897 | if test "$no_recursion" != yes; then |
| 3898 | |
| 3899 | # Remove --cache-file, --srcdir, and --disable-option-checking arguments |
| 3900 | # so they do not pile up. |
| 3901 | ac_sub_configure_args= |
| 3902 | ac_prev= |
| 3903 | eval "set x $ac_configure_args" |
| 3904 | shift |
| 3905 | for ac_arg |
| 3906 | do |
| 3907 | if test -n "$ac_prev"; then |
| 3908 | ac_prev= |
| 3909 | continue |
| 3910 | fi |
| 3911 | case $ac_arg in |
| 3912 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 3913 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 3914 | ac_prev=cache_file ;; |
| 3915 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 3916 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ |
| 3917 | | --c=*) |
| 3918 | ;; |
| 3919 | --config-cache | -C) |
| 3920 | ;; |
| 3921 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 3922 | ac_prev=srcdir ;; |
| 3923 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 3924 | ;; |
| 3925 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 3926 | ac_prev=prefix ;; |
| 3927 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 3928 | ;; |
| 3929 | --disable-option-checking) |
| 3930 | ;; |
| 3931 | *) |
| 3932 | case $ac_arg in |
| 3933 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3934 | esac |
| 3935 | as_fn_append ac_sub_configure_args " '$ac_arg'" ;; |
| 3936 | esac |
| 3937 | done |
| 3938 | |
| 3939 | # Always prepend --prefix to ensure using the same prefix |
| 3940 | # in subdir configurations. |
| 3941 | ac_arg="--prefix=$prefix" |
| 3942 | case $ac_arg in |
| 3943 | *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3944 | esac |
| 3945 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" |
| 3946 | |
| 3947 | # Pass --silent |
| 3948 | if test "$silent" = yes; then |
| 3949 | ac_sub_configure_args="--silent $ac_sub_configure_args" |
| 3950 | fi |
| 3951 | |
| 3952 | # Always prepend --disable-option-checking to silence warnings, since |
| 3953 | # different subdirs can have different --enable and --with options. |
| 3954 | ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args" |
| 3955 | |
| 3956 | ac_popdir=`pwd` |
| 3957 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue |
| 3958 | |
| 3959 | # Do not complain, so a configure script can configure whichever |
| 3960 | # parts of a large source tree are present. |
| 3961 | test -d "$srcdir/$ac_dir" || continue |
| 3962 | |
| 3963 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" |
| 3964 | $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5 |
| 3965 | $as_echo "$ac_msg" >&6 |
| 3966 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 3967 | ac_builddir=. |
| 3968 | |
| 3969 | case "$ac_dir" in |
| 3970 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3971 | *) |
| 3972 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 3973 | # A ".." for each directory in $ac_dir_suffix. |
| 3974 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 3975 | case $ac_top_builddir_sub in |
| 3976 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 3977 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 3978 | esac ;; |
| 3979 | esac |
| 3980 | ac_abs_top_builddir=$ac_pwd |
| 3981 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 3982 | # for backward compatibility: |
| 3983 | ac_top_builddir=$ac_top_build_prefix |
| 3984 | |
| 3985 | case $srcdir in |
| 3986 | .) # We are building in place. |
| 3987 | ac_srcdir=. |
| 3988 | ac_top_srcdir=$ac_top_builddir_sub |
| 3989 | ac_abs_top_srcdir=$ac_pwd ;; |
| 3990 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 3991 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 3992 | ac_top_srcdir=$srcdir |
| 3993 | ac_abs_top_srcdir=$srcdir ;; |
| 3994 | *) # Relative name. |
| 3995 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 3996 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 3997 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 3998 | esac |
| 3999 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 4000 | |
| 4001 | |
| 4002 | cd "$ac_dir" |
| 4003 | |
| 4004 | # Check for guested configure; otherwise get Cygnus style configure. |
| 4005 | if test -f "$ac_srcdir/configure.gnu"; then |
| 4006 | ac_sub_configure=$ac_srcdir/configure.gnu |
| 4007 | elif test -f "$ac_srcdir/configure"; then |
| 4008 | ac_sub_configure=$ac_srcdir/configure |
| 4009 | elif test -f "$ac_srcdir/configure.in"; then |
| 4010 | # This should be Cygnus configure. |
| 4011 | ac_sub_configure=$ac_aux_dir/configure |
| 4012 | else |
| 4013 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5 |
| 4014 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} |
| 4015 | ac_sub_configure= |
| 4016 | fi |
| 4017 | |
| 4018 | # The recursion is here. |
| 4019 | if test -n "$ac_sub_configure"; then |
| 4020 | # Make the cache file name correct relative to the subdirectory. |
| 4021 | case $cache_file in |
| 4022 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; |
| 4023 | *) # Relative name. |
| 4024 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; |
| 4025 | esac |
| 4026 | |
| 4027 | { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 |
| 4028 | $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} |
| 4029 | # The eval makes quoting arguments work. |
| 4030 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ |
| 4031 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || |
Jonathan Yong | 4906b26 | 2011-08-10 11:39:25 +0000 | [diff] [blame] | 4032 | as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5 |
NightStrike | 748174d | 2010-02-24 17:55:02 +0000 | [diff] [blame] | 4033 | fi |
| 4034 | |
| 4035 | cd "$ac_popdir" |
| 4036 | done |
| 4037 | fi |
| 4038 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 4040 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 4041 | fi |
| 4042 | |
NightStrike | adb344b | 2010-02-26 14:13:00 +0000 | [diff] [blame] | 4043 | |