configure 904 KB
Newer Older
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2001
2002
2003
    ,);;
    *)
      if test "x$ac_old_val" != "x$ac_new_val"; then
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
	# differences in whitespace do not lead to failure.
	ac_old_val_w=`echo x $ac_old_val`
	ac_new_val_w=`echo x $ac_new_val`
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
	  { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
	  ac_cache_corrupted=:
	else
	  { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
	  eval $ac_var=\$ac_old_val
	fi
	{ $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
	{ $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2020
2021
2022
2023
2024
      fi;;
  esac
  # Pass precious variables to config.status.
  if test "$ac_new_set" = set; then
    case $ac_new_val in
2025
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2026
2027
2028
2029
2030
2031
2032
2033
2034
    *) ac_arg=$ac_var=$ac_new_val ;;
    esac
    case " $ac_configure_args " in
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
    esac
  fi
done
if $ac_cache_corrupted; then
2035
2036
2037
2038
2039
2040
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
   { (exit 1); exit 1; }; }
fi

























Emmanuel Bertin's avatar
Emmanuel Bertin committed
2068
2069
2070
2071
2072
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2073
2074
2075
2076



ac_aux_dir=
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2077
2078
for ac_dir in autoconf "$srcdir"/autoconf; do
  if test -f "$ac_dir/install-sh"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2079
2080
2081
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install-sh -c"
    break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2082
  elif test -f "$ac_dir/install.sh"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2083
2084
2085
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/install.sh -c"
    break
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2086
  elif test -f "$ac_dir/shtool"; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2087
2088
2089
2090
2091
2092
    ac_aux_dir=$ac_dir
    ac_install_sh="$ac_aux_dir/shtool install -c"
    break
  fi
done
if test -z "$ac_aux_dir"; then
2093
2094
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
$as_echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2095
2096
2097
   { (exit 1); exit 1; }; }
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
# These three variables are undocumented and unsupported,
# and are intended to be withdrawn in a future Autoconf release.
# They can cause serious problems if a builder's source tree is in a directory
# whose full name contains unusual characters.
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.


ac_config_headers="$ac_config_headers config.h"

am__api_version='1.10'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123

# Find a good install program.  We prefer a C program (faster),
# so one script is as good as another.  But avoid the broken or
# incompatible versions:
# SysV /etc/install, /usr/sbin/install
# SunOS /usr/etc/install
# IRIX /sbin/install
# AIX /bin/install
# AmigaOS /C/install, which installs bootblocks on floppy discs
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
# OS/2's system install, which has a completely different semantic
# ./install, which can be erroneously created by make from ./install.sh.
2124
2125
2126
# Reject install programs that cannot install multiple files.
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
$as_echo_n "checking for a BSD-compatible install... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2127
2128
if test -z "$INSTALL"; then
if test "${ac_cv_path_install+set}" = set; then
2129
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  # Account for people who put trailing slashes in PATH elements.
case $as_dir/ in
  ./ | .// | /cC/* | \
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  /usr/ucb/* ) ;;
  *)
    # OSF1 and SCO ODT 3.0 have their own names for install.
    # Don't use installbsd from OSF since it installs stuff as root
    # by default.
    for ac_prog in ginstall scoinst install; do
      for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2148
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2149
2150
2151
2152
2153
2154
2155
2156
2157
	  if test $ac_prog = install &&
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # AIX install.  It has an incompatible calling convention.
	    :
	  elif test $ac_prog = install &&
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
	    # program-specific install script used by HP pwplus--don't use.
	    :
	  else
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
	    rm -rf conftest.one conftest.two conftest.dir
	    echo one > conftest.one
	    echo two > conftest.two
	    mkdir conftest.dir
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
	      test -s conftest.one && test -s conftest.two &&
	      test -s conftest.dir/conftest.one &&
	      test -s conftest.dir/conftest.two
	    then
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
	      break 3
	    fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2170
2171
2172
2173
2174
2175
	  fi
	fi
      done
    done
    ;;
esac
2176

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2177
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2178
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2179

2180
rm -rf conftest.one conftest.two conftest.dir
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2181
2182
2183
2184
2185

fi
  if test "${ac_cv_path_install+set}" = set; then
    INSTALL=$ac_cv_path_install
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2186
2187
    # As a last resort, use the slow shell script.  Don't cache a
    # value for INSTALL within a source directory, because that will
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2188
    # break other packages using the cache if that directory is
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2189
    # removed, or if the value is a relative name.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2190
2191
2192
    INSTALL=$ac_install_sh
  fi
fi
2193
2194
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
$as_echo "$INSTALL" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2195
2196
2197
2198
2199
2200
2201
2202
2203

# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
# It thinks the first close brace ends the variable substitution.
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'

test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'

2204
2205
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
$as_echo_n "checking whether build environment is sane... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
# Just in case
sleep 1
echo timestamp > conftest.file
# Do `set' in a subshell so we don't clobber the current shell's
# arguments.  Must try -L first in case configure is actually a
# symlink; some systems play weird games with the mod time of symlinks
# (eg FreeBSD returns the mod time of the symlink's containing
# directory).
if (
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
   if test "$*" = "X"; then
      # -L didn't work.
      set X `ls -t $srcdir/configure conftest.file`
   fi
   rm -f conftest.file
   if test "$*" != "X $srcdir/configure conftest.file" \
      && test "$*" != "X conftest.file $srcdir/configure"; then

      # If neither matched, then we have a broken ls.  This can happen
      # if, for instance, CONFIG_SHELL is bash and it inherits a
      # broken ls alias from the environment.  This has actually
      # happened.  Such a system could not be considered "sane".
2228
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2229
alias in your environment" >&5
2230
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
alias in your environment" >&2;}
   { (exit 1); exit 1; }; }
   fi

   test "$2" = conftest.file
   )
then
   # Ok.
   :
else
2241
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2242
Check your system clock" >&5
2243
$as_echo "$as_me: error: newly created file is older than distributed files!
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2244
2245
2246
Check your system clock" >&2;}
   { (exit 1); exit 1; }; }
fi
2247
2248
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2249
test "$program_prefix" != NONE &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2250
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2251
2252
# Use a double $ so make ignores it.
test "$program_suffix" != NONE &&
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2253
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2254
# Double any \ or $.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2255
# By default was `s,x,x', remove it if useless.
2256
2257
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267

# expand $ac_aux_dir to an absolute path
am_aux_dir=`cd $ac_aux_dir && pwd`

test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
# Use eval to expand $SHELL
if eval "$MISSING --run true"; then
  am_missing_run="$MISSING --run "
else
  am_missing_run=
2268
2269
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2270
2271
fi

2272
2273
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2274
2275
if test -z "$MKDIR_P"; then
  if test "${ac_cv_path_mkdir+set}" = set; then
2276
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
else
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_prog in mkdir gmkdir; do
	 for ac_exec_ext in '' $ac_executable_extensions; do
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
	     'mkdir (GNU coreutils) '* | \
	     'mkdir (coreutils) '* | \
	     'mkdir (fileutils) '4.1*)
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
	       break 3;;
	   esac
	 done
       done
done
IFS=$as_save_IFS

fi

  if test "${ac_cv_path_mkdir+set}" = set; then
    MKDIR_P="$ac_cv_path_mkdir -p"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2302
  else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2303
2304
2305
2306
2307
2308
    # As a last resort, use the slow shell script.  Don't cache a
    # value for MKDIR_P within a source directory, because that will
    # break other packages using the cache if that directory is
    # removed, or if the value is a relative name.
    test -d ./--version && rmdir ./--version
    MKDIR_P="$ac_install_sh -d"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2309
2310
  fi
fi
2311
2312
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
$as_echo "$MKDIR_P" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2313
2314
2315
2316
2317
2318

mkdir_p="$MKDIR_P"
case $mkdir_p in
  [\\/$]* | ?:[\\/]*) ;;
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2319
2320
2321
2322
2323

for ac_prog in gawk mawk nawk awk
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2324
2325
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2326
if test "${ac_cv_prog_AWK+set}" = set; then
2327
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
else
  if test -n "$AWK"; then
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2338
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2339
    ac_cv_prog_AWK="$ac_prog"
2340
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2341
2342
2343
2344
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2345
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2346
2347
2348
2349
2350

fi
fi
AWK=$ac_cv_prog_AWK
if test -n "$AWK"; then
2351
2352
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
$as_echo "$AWK" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2353
else
2354
2355
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2356
2357
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2358

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2359
2360
2361
  test -n "$AWK" && break
done

2362
2363
2364
2365
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
set x ${MAKE-make}
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2366
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2368
2369
else
  cat >conftest.make <<\_ACEOF
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2370
SHELL = /bin/sh
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2371
all:
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2372
	@echo '@@@%%%=$(MAKE)=@@@%%%'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2373
2374
_ACEOF
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2375
2376
2377
2378
2379
2380
case `${MAKE-make} -f conftest.make 2>/dev/null` in
  *@@@%%%=?*=@@@%%%*)
    eval ac_cv_prog_make_${ac_make}_set=yes;;
  *)
    eval ac_cv_prog_make_${ac_make}_set=no;;
esac
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2381
2382
rm -f conftest.make
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2383
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384
2385
  { $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2386
2387
  SET_MAKE=
else
2388
2389
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
  SET_MAKE="MAKE=${MAKE-make}"
fi

rm -rf .tst 2>/dev/null
mkdir .tst 2>/dev/null
if test -d .tst; then
  am__leading_dot=.
else
  am__leading_dot=_
fi
rmdir .tst 2>/dev/null

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2402
2403
2404
2405
2406
2407
if test "`cd $srcdir && pwd`" != "`pwd`"; then
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  # is not polluted with repeated "-I."
  am__isrc=' -I$(srcdir)'
  # test to see if srcdir already configured
  if test -f $srcdir/config.status; then
2408
2409
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2410
   { (exit 1); exit 1; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2411
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
fi

# test whether we have cygpath
if test -z "$CYGPATH_W"; then
  if (cygpath --version) >/dev/null 2>/dev/null; then
    CYGPATH_W='cygpath -w'
  else
    CYGPATH_W=echo
  fi
fi


# Define the identity of the package.
 PACKAGE='sextractor'
2426
 VERSION='2.9.5'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453


cat >>confdefs.h <<_ACEOF
#define PACKAGE "$PACKAGE"
_ACEOF


cat >>confdefs.h <<_ACEOF
#define VERSION "$VERSION"
_ACEOF

# Some tools Automake needs.

ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}


AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}


AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}


AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}


MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2454
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2455
2456
2457
2458
2459
2460
2461
2462
2463

# Installed binaries are usually stripped using `strip' when the user
# run `make install-strip'.  However `strip' might not be the right
# tool to use in cross-compilation environments, therefore Automake
# will honor the `STRIP' environment variable to overrule this program.
if test "$cross_compiling" != no; then
  if test -n "$ac_tool_prefix"; then
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
set dummy ${ac_tool_prefix}strip; ac_word=$2
2464
2465
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2466
if test "${ac_cv_prog_STRIP+set}" = set; then
2467
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
else
  if test -n "$STRIP"; then
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2478
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2479
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2481
2482
2483
2484
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2485
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2486
2487
2488
2489
2490

fi
fi
STRIP=$ac_cv_prog_STRIP
if test -n "$STRIP"; then
2491
2492
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
$as_echo "$STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2493
else
2494
2495
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2496
2497
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2498

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2499
2500
2501
2502
2503
fi
if test -z "$ac_cv_prog_STRIP"; then
  ac_ct_STRIP=$STRIP
  # Extract the first word of "strip", so it can be a program name with args.
set dummy strip; ac_word=$2
2504
2505
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2506
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2507
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
else
  if test -n "$ac_ct_STRIP"; then
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2519
    ac_cv_prog_ac_ct_STRIP="strip"
2520
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2521
2522
2523
2524
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2525
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2526
2527
2528
2529
2530

fi
fi
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
if test -n "$ac_ct_STRIP"; then
2531
2532
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
$as_echo "$ac_ct_STRIP" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2533
else
2534
2535
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2536
2537
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2538
2539
2540
2541
2542
  if test "x$ac_ct_STRIP" = x; then
    STRIP=":"
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
2543
2544
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2545
2546
2547
2548
ac_tool_warned=yes ;;
esac
    STRIP=$ac_ct_STRIP
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2549
2550
2551
2552
2553
else
  STRIP="$ac_cv_prog_STRIP"
fi

fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2554
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585

# We need awk for the "check" target.  The system "awk" is bad on
# some platforms.
# Always define AMTAR for backward compatibility.

AMTAR=${AMTAR-"${am_missing_run}tar"}

am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'





date=`date +%Y-%m-%d`
date2=`date +"%a %b %d %Y"`
date3=`date +"%B %Y"`

cat >>confdefs.h <<_ACEOF
#define DATE "$date"
_ACEOF

PACKAGER="Emmanuel Bertin"

DATE2="$date2"

DATE3="$date3"


# Include macros


Emmanuel Bertin's avatar
Emmanuel Bertin committed
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610








# URBI_RESOLVE_DIR_PREPARE
# ------------------------
# Define urbi_resolve_dir.



# PATH URBI_RESOLVE_DIR(DIR)
# --------------------------
# Return the DIR with all inner variables expanded.



## Local Variables:
## mode: autoconf
## End:


Emmanuel Bertin's avatar
Emmanuel Bertin committed
2611
# Display pakage and version number
2612
2613
{ $as_echo "$as_me:$LINENO: result: *********** Configuring:  $PACKAGE $VERSION ($date) **********" >&5
$as_echo "*********** Configuring:  $PACKAGE $VERSION ($date) **********" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2614
2615
2616
2617

# Initialize the list of compilers to consider
cclist="cc gcc"

2618
2619
2620
# Provide special option for choosing automatically the compilation flags.
{ $as_echo "$as_me:$LINENO: checking if compilation flags are set automatically" >&5
$as_echo_n "checking if compilation flags are set automatically... " >&6; }
2621
2622
# Check whether --enable-auto-flags was given.
if test "${enable_auto_flags+set}" = set; then
2623
  enableval=$enable_auto_flags; { $as_echo "$as_me:$LINENO: result: yes" >&5
2624
2625
$as_echo "yes" >&6; }
else
2626
  { $as_echo "$as_me:$LINENO: result: no" >&5
2627
2628
2629
$as_echo "no" >&6; }
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2630
2631

# Provide special option for the Linux Intel C compiler
2632
2633
{ $as_echo "$as_me:$LINENO: checking for Linux Intel C compiler mode" >&5
$as_echo_n "checking for Linux Intel C compiler mode... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2634
# Check whether --enable-icc was given.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2635
if test "${enable_icc+set}" = set; then
2636
  enableval=$enable_icc; cclist="icc $cclist"
2637
2638
	{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2639
else
2640
  { $as_echo "$as_me:$LINENO: result: no" >&5
2641
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2642
fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2643
2644
2645
2646


# Checks for programs.
# GCC is chosen last because it is likely to yield less optimized code
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2647
2648
2649
2650
2651
2652
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
ac_ext=c
ac_cpp='$CPP $CPPFLAGS'
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test -n "$ac_tool_prefix"; then
  for ac_prog in $cclist
  do
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2663
2664
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2665
if test "${ac_cv_prog_CC+set}" = set; then
2666
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
else
  if test -n "$CC"; then
  ac_cv_prog_CC="$CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2677
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2678
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2679
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2680
2681
2682
2683
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2684
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2685
2686
2687
2688
2689

fi
fi
CC=$ac_cv_prog_CC
if test -n "$CC"; then
2690
2691
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
$as_echo "$CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2692
else
2693
2694
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2695
2696
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2697

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2698
2699
2700
2701
2702
2703
2704
2705
2706
    test -n "$CC" && break
  done
fi
if test -z "$CC"; then
  ac_ct_CC=$CC
  for ac_prog in $cclist
do
  # Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
2707
2708
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
$as_echo_n "checking for $ac_word... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2709
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2710
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
else
  if test -n "$ac_ct_CC"; then
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
else
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
  IFS=$as_save_IFS
  test -z "$as_dir" && as_dir=.
  for ac_exec_ext in '' $ac_executable_extensions; do
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2721
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2722
    ac_cv_prog_ac_ct_CC="$ac_prog"
2723
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2724
2725
2726
2727
    break 2
  fi
done
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2728
IFS=$as_save_IFS
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2729
2730
2731
2732
2733

fi
fi
ac_ct_CC=$ac_cv_prog_ac_ct_CC
if test -n "$ac_ct_CC"; then
2734
2735
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
$as_echo "$ac_ct_CC" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2736
else
2737
2738
  { $as_echo "$as_me:$LINENO: result: no" >&5
$as_echo "no" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2739
2740
fi

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2741

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2742
2743
2744
  test -n "$ac_ct_CC" && break
done

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2745
2746
2747
2748
2749
  if test "x$ac_ct_CC" = x; then
    CC=""
  else
    case $cross_compiling:$ac_tool_warned in
yes:)
2750
2751
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2752
2753
2754
2755
ac_tool_warned=yes ;;
esac
    CC=$ac_ct_CC
  fi
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2756
2757
2758
fi


2759
2760
2761
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2762
See \`config.log' for more details." >&5
2763
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2764
See \`config.log' for more details." >&2;}
2765
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2766
2767

# Provide some information about the compiler.
2768
2769
2770
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
set X $ac_compile
ac_compiler=$2
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2771
2772
2773
2774
2775
{ (ac_try="$ac_compiler --version >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2776
2777
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2778
  (eval "$ac_compiler --version >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2779
  ac_status=$?
2780
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2781
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2782
2783
2784
2785
2786
{ (ac_try="$ac_compiler -v >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2787
2788
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2789
  (eval "$ac_compiler -v >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2790
  ac_status=$?
2791
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2792
  (exit $ac_status); }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2793
2794
2795
2796
2797
{ (ac_try="$ac_compiler -V >&5"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2798
2799
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2800
  (eval "$ac_compiler -V >&5") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2801
  ac_status=$?
2802
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
  (exit $ac_status); }

cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h.  */
_ACEOF
cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h.  */

int
main ()
{

  ;
  return 0;
}
_ACEOF
ac_clean_files_save=$ac_clean_files
2821
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2822
2823
2824
# Try to create an executable without -o first, disregard a.out.
# It will help us diagnose broken compilers, and finding out an intuition
# of exeext.
2825
2826
2827
2828
2829
2830
2831
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
$as_echo_n "checking for C compiler default output file name... " >&6; }
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`

# The possible output files:
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2832
2833
2834
2835
ac_rmfiles=
for ac_file in $ac_files
do
  case $ac_file in
2836
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  esac
done
rm -f $ac_rmfiles

if { (ac_try="$ac_link_default"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2847
2848
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2849
  (eval "$ac_link_default") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2850
  ac_status=$?
2851
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2852
  (exit $ac_status); }; then
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2853
2854
2855
2856
2857
2858
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
# so that the user can short-circuit this test for compilers unknown to
# Autoconf.
for ac_file in $ac_files ''
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2859
2860
2861
do
  test -f "$ac_file" || continue
  case $ac_file in
2862
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2863
2864
2865
2866
2867
2868
	;;
    [ab].out )
	# We found the default executable, but exeext='' is most
	# certainly right.
	break;;
    *.* )
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2869
2870
2871
2872
2873
2874
2875
2876
2877
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
	then :; else
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	fi
	# We set ac_cv_exeext here because the later test for it is not
	# safe: cross compilers may not add the suffix if given an `-o'
	# argument, so we may need to know it at that point already.
	# Even if this section looks crufty: it has the advantage of
	# actually working.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2878
2879
2880
2881
2882
	break;;
    * )
	break;;
  esac
done
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2883
2884
test "$ac_cv_exeext" = no && ac_cv_exeext=

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2885
else
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2886
2887
2888
  ac_file=''
fi

2889
2890
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
$as_echo "$ac_file" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2891
if test -z "$ac_file"; then
2892
  $as_echo "$as_me: failed program was:" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2893
2894
sed 's/^/| /' conftest.$ac_ext >&5

2895
2896
2897
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2898
See \`config.log' for more details." >&5
2899
$as_echo "$as_me: error: C compiler cannot create executables
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2900
See \`config.log' for more details." >&2;}
2901
   { (exit 77); exit 77; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2902
2903
2904
2905
fi

ac_exeext=$ac_cv_exeext

Emmanuel Bertin's avatar
Emmanuel Bertin committed
2906
# Check that the compiler produces executables we can run.  If not, either
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2907
# the compiler is broken, or we cross compile.
2908
2909
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
$as_echo_n "checking whether the C compiler works... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2910
2911
2912
2913
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
# If not cross compiling, check that we can run a simple program.
if test "$cross_compiling" != yes; then
  if { ac_try='./$ac_file'
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2914
2915
2916
2917
  { (case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2918
2919
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2920
  (eval "$ac_try") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2921
  ac_status=$?
2922
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2923
2924
2925
2926
2927
2928
  (exit $ac_status); }; }; then
    cross_compiling=no
  else
    if test "$cross_compiling" = maybe; then
	cross_compiling=yes
    else
2929
2930
2931
	{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2932
2933
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&5
2934
$as_echo "$as_me: error: cannot run C compiled programs.
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2935
2936
If you meant to cross compile, use \`--host'.
See \`config.log' for more details." >&2;}
2937
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2938
2939
2940
    fi
  fi
fi
2941
2942
{ $as_echo "$as_me:$LINENO: result: yes" >&5
$as_echo "yes" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2943

2944
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2945
ac_clean_files=$ac_clean_files_save
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2946
# Check that the compiler produces executables we can run.  If not, either
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2947
# the compiler is broken, or we cross compile.
2948
2949
2950
2951
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
$as_echo_n "checking whether we are cross compiling... " >&6; }
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
$as_echo "$cross_compiling" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2952

2953
2954
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
$as_echo_n "checking for suffix of executables... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2955
2956
2957
2958
2959
if { (ac_try="$ac_link"
case "(($ac_try" in
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  *) ac_try_echo=$ac_try;;
esac
2960
2961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
$as_echo "$ac_try_echo") >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2962
  (eval "$ac_link") 2>&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2963
  ac_status=$?
2964
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2965
2966
2967
2968
2969
2970
2971
2972
  (exit $ac_status); }; then
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
# work properly (i.e., refer to `conftest.exe'), while it won't with
# `rm'.
for ac_file in conftest.exe conftest conftest.*; do
  test -f "$ac_file" || continue
  case $ac_file in
2973
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2974
2975
2976
2977
2978
2979
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
	  break;;
    * ) break;;
  esac
done
else
2980
2981
2982
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2983
See \`config.log' for more details." >&5
2984
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2985
See \`config.log' for more details." >&2;}
2986
   { (exit 1); exit 1; }; }; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2987
2988
2989
fi

rm -f conftest$ac_cv_exeext
2990
2991
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
$as_echo "$ac_cv_exeext" >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2992
2993
2994
2995

rm -f conftest.$ac_ext
EXEEXT=$ac_cv_exeext
ac_exeext=$EXEEXT
2996
2997
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
$as_echo_n "checking for suffix of object files... " >&6; }
Emmanuel Bertin's avatar
Emmanuel Bertin committed
2998
if test "${ac_cv_objext+set}" = set; then
2999
  $as_echo_n "(cached) " >&6
Emmanuel Bertin's avatar
Emmanuel Bertin committed
3000
else
For faster browsing, not all history is shown. View entire blame