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