configure revision 6ea72052
16ea72052Smrg#! /bin/sh 26ea72052Smrg# Guess values for system-dependent variables and create Makefiles. 36ea72052Smrg# Generated by GNU Autoconf 2.59 for oclock 1.0.1. 46ea72052Smrg# 56ea72052Smrg# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 66ea72052Smrg# 76ea72052Smrg# Copyright (C) 2003 Free Software Foundation, Inc. 86ea72052Smrg# This configure script is free software; the Free Software Foundation 96ea72052Smrg# gives unlimited permission to copy, distribute and modify it. 106ea72052Smrg## --------------------- ## 116ea72052Smrg## M4sh Initialization. ## 126ea72052Smrg## --------------------- ## 136ea72052Smrg 146ea72052Smrg# Be Bourne compatible 156ea72052Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 166ea72052Smrg emulate sh 176ea72052Smrg NULLCMD=: 186ea72052Smrg # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 196ea72052Smrg # is contrary to our usage. Disable this feature. 206ea72052Smrg alias -g '${1+"$@"}'='"$@"' 216ea72052Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 226ea72052Smrg set -o posix 236ea72052Smrgfi 246ea72052SmrgDUALCASE=1; export DUALCASE # for MKS sh 256ea72052Smrg 266ea72052Smrg# Support unset when possible. 276ea72052Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 286ea72052Smrg as_unset=unset 296ea72052Smrgelse 306ea72052Smrg as_unset=false 316ea72052Smrgfi 326ea72052Smrg 336ea72052Smrg 346ea72052Smrg# Work around bugs in pre-3.0 UWIN ksh. 356ea72052Smrg$as_unset ENV MAIL MAILPATH 366ea72052SmrgPS1='$ ' 376ea72052SmrgPS2='> ' 386ea72052SmrgPS4='+ ' 396ea72052Smrg 406ea72052Smrg# NLS nuisances. 416ea72052Smrgfor as_var in \ 426ea72052Smrg LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 436ea72052Smrg LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 446ea72052Smrg LC_TELEPHONE LC_TIME 456ea72052Smrgdo 466ea72052Smrg if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 476ea72052Smrg eval $as_var=C; export $as_var 486ea72052Smrg else 496ea72052Smrg $as_unset $as_var 506ea72052Smrg fi 516ea72052Smrgdone 526ea72052Smrg 536ea72052Smrg# Required to use basename. 546ea72052Smrgif expr a : '\(a\)' >/dev/null 2>&1; then 556ea72052Smrg as_expr=expr 566ea72052Smrgelse 576ea72052Smrg as_expr=false 586ea72052Smrgfi 596ea72052Smrg 606ea72052Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 616ea72052Smrg as_basename=basename 626ea72052Smrgelse 636ea72052Smrg as_basename=false 646ea72052Smrgfi 656ea72052Smrg 666ea72052Smrg 676ea72052Smrg# Name of the executable. 686ea72052Smrgas_me=`$as_basename "$0" || 696ea72052Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 706ea72052Smrg X"$0" : 'X\(//\)$' \| \ 716ea72052Smrg X"$0" : 'X\(/\)$' \| \ 726ea72052Smrg . : '\(.\)' 2>/dev/null || 736ea72052Smrgecho X/"$0" | 746ea72052Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 756ea72052Smrg /^X\/\(\/\/\)$/{ s//\1/; q; } 766ea72052Smrg /^X\/\(\/\).*/{ s//\1/; q; } 776ea72052Smrg s/.*/./; q'` 786ea72052Smrg 796ea72052Smrg 806ea72052Smrg# PATH needs CR, and LINENO needs CR and PATH. 816ea72052Smrg# Avoid depending upon Character Ranges. 826ea72052Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 836ea72052Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 846ea72052Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 856ea72052Smrgas_cr_digits='0123456789' 866ea72052Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 876ea72052Smrg 886ea72052Smrg# The user is always right. 896ea72052Smrgif test "${PATH_SEPARATOR+set}" != set; then 906ea72052Smrg echo "#! /bin/sh" >conf$$.sh 916ea72052Smrg echo "exit 0" >>conf$$.sh 926ea72052Smrg chmod +x conf$$.sh 936ea72052Smrg if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 946ea72052Smrg PATH_SEPARATOR=';' 956ea72052Smrg else 966ea72052Smrg PATH_SEPARATOR=: 976ea72052Smrg fi 986ea72052Smrg rm -f conf$$.sh 996ea72052Smrgfi 1006ea72052Smrg 1016ea72052Smrg 1026ea72052Smrg as_lineno_1=$LINENO 1036ea72052Smrg as_lineno_2=$LINENO 1046ea72052Smrg as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 1056ea72052Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 1066ea72052Smrg test "x$as_lineno_3" = "x$as_lineno_2" || { 1076ea72052Smrg # Find who we are. Look in the path if we contain no path at all 1086ea72052Smrg # relative or not. 1096ea72052Smrg case $0 in 1106ea72052Smrg *[\\/]* ) as_myself=$0 ;; 1116ea72052Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1126ea72052Smrgfor as_dir in $PATH 1136ea72052Smrgdo 1146ea72052Smrg IFS=$as_save_IFS 1156ea72052Smrg test -z "$as_dir" && as_dir=. 1166ea72052Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 1176ea72052Smrgdone 1186ea72052Smrg 1196ea72052Smrg ;; 1206ea72052Smrg esac 1216ea72052Smrg # We did not find ourselves, most probably we were run as `sh COMMAND' 1226ea72052Smrg # in which case we are not to be found in the path. 1236ea72052Smrg if test "x$as_myself" = x; then 1246ea72052Smrg as_myself=$0 1256ea72052Smrg fi 1266ea72052Smrg if test ! -f "$as_myself"; then 1276ea72052Smrg { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 1286ea72052Smrg { (exit 1); exit 1; }; } 1296ea72052Smrg fi 1306ea72052Smrg case $CONFIG_SHELL in 1316ea72052Smrg '') 1326ea72052Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1336ea72052Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 1346ea72052Smrgdo 1356ea72052Smrg IFS=$as_save_IFS 1366ea72052Smrg test -z "$as_dir" && as_dir=. 1376ea72052Smrg for as_base in sh bash ksh sh5; do 1386ea72052Smrg case $as_dir in 1396ea72052Smrg /*) 1406ea72052Smrg if ("$as_dir/$as_base" -c ' 1416ea72052Smrg as_lineno_1=$LINENO 1426ea72052Smrg as_lineno_2=$LINENO 1436ea72052Smrg as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 1446ea72052Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 1456ea72052Smrg test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 1466ea72052Smrg $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 1476ea72052Smrg $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 1486ea72052Smrg CONFIG_SHELL=$as_dir/$as_base 1496ea72052Smrg export CONFIG_SHELL 1506ea72052Smrg exec "$CONFIG_SHELL" "$0" ${1+"$@"} 1516ea72052Smrg fi;; 1526ea72052Smrg esac 1536ea72052Smrg done 1546ea72052Smrgdone 1556ea72052Smrg;; 1566ea72052Smrg esac 1576ea72052Smrg 1586ea72052Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 1596ea72052Smrg # uniformly replaced by the line number. The first 'sed' inserts a 1606ea72052Smrg # line-number line before each line; the second 'sed' does the real 1616ea72052Smrg # work. The second script uses 'N' to pair each line-number line 1626ea72052Smrg # with the numbered line, and appends trailing '-' during 1636ea72052Smrg # substitution so that $LINENO is not a special case at line end. 1646ea72052Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 1656ea72052Smrg # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 1666ea72052Smrg sed '=' <$as_myself | 1676ea72052Smrg sed ' 1686ea72052Smrg N 1696ea72052Smrg s,$,-, 1706ea72052Smrg : loop 1716ea72052Smrg s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 1726ea72052Smrg t loop 1736ea72052Smrg s,-$,, 1746ea72052Smrg s,^['$as_cr_digits']*\n,, 1756ea72052Smrg ' >$as_me.lineno && 1766ea72052Smrg chmod +x $as_me.lineno || 1776ea72052Smrg { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 1786ea72052Smrg { (exit 1); exit 1; }; } 1796ea72052Smrg 1806ea72052Smrg # Don't try to exec as it changes $[0], causing all sort of problems 1816ea72052Smrg # (the dirname of $[0] is not the place where we might find the 1826ea72052Smrg # original and so on. Autoconf is especially sensible to this). 1836ea72052Smrg . ./$as_me.lineno 1846ea72052Smrg # Exit status is that of the last command. 1856ea72052Smrg exit 1866ea72052Smrg} 1876ea72052Smrg 1886ea72052Smrg 1896ea72052Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 1906ea72052Smrg *c*,-n*) ECHO_N= ECHO_C=' 1916ea72052Smrg' ECHO_T=' ' ;; 1926ea72052Smrg *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 1936ea72052Smrg *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 1946ea72052Smrgesac 1956ea72052Smrg 1966ea72052Smrgif expr a : '\(a\)' >/dev/null 2>&1; then 1976ea72052Smrg as_expr=expr 1986ea72052Smrgelse 1996ea72052Smrg as_expr=false 2006ea72052Smrgfi 2016ea72052Smrg 2026ea72052Smrgrm -f conf$$ conf$$.exe conf$$.file 2036ea72052Smrgecho >conf$$.file 2046ea72052Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then 2056ea72052Smrg # We could just check for DJGPP; but this test a) works b) is more generic 2066ea72052Smrg # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 2076ea72052Smrg if test -f conf$$.exe; then 2086ea72052Smrg # Don't use ln at all; we don't have any links 2096ea72052Smrg as_ln_s='cp -p' 2106ea72052Smrg else 2116ea72052Smrg as_ln_s='ln -s' 2126ea72052Smrg fi 2136ea72052Smrgelif ln conf$$.file conf$$ 2>/dev/null; then 2146ea72052Smrg as_ln_s=ln 2156ea72052Smrgelse 2166ea72052Smrg as_ln_s='cp -p' 2176ea72052Smrgfi 2186ea72052Smrgrm -f conf$$ conf$$.exe conf$$.file 2196ea72052Smrg 2206ea72052Smrgif mkdir -p . 2>/dev/null; then 2216ea72052Smrg as_mkdir_p=: 2226ea72052Smrgelse 2236ea72052Smrg test -d ./-p && rmdir ./-p 2246ea72052Smrg as_mkdir_p=false 2256ea72052Smrgfi 2266ea72052Smrg 2276ea72052Smrgas_executable_p="test -f" 2286ea72052Smrg 2296ea72052Smrg# Sed expression to map a string onto a valid CPP name. 2306ea72052Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 2316ea72052Smrg 2326ea72052Smrg# Sed expression to map a string onto a valid variable name. 2336ea72052Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 2346ea72052Smrg 2356ea72052Smrg 2366ea72052Smrg# IFS 2376ea72052Smrg# We need space, tab and new line, in precisely that order. 2386ea72052Smrgas_nl=' 2396ea72052Smrg' 2406ea72052SmrgIFS=" $as_nl" 2416ea72052Smrg 2426ea72052Smrg# CDPATH. 2436ea72052Smrg$as_unset CDPATH 2446ea72052Smrg 2456ea72052Smrg 2466ea72052Smrg# Name of the host. 2476ea72052Smrg# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 2486ea72052Smrg# so uname gets run too. 2496ea72052Smrgac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 2506ea72052Smrg 2516ea72052Smrgexec 6>&1 2526ea72052Smrg 2536ea72052Smrg# 2546ea72052Smrg# Initializations. 2556ea72052Smrg# 2566ea72052Smrgac_default_prefix=/usr/local 2576ea72052Smrgac_config_libobj_dir=. 2586ea72052Smrgcross_compiling=no 2596ea72052Smrgsubdirs= 2606ea72052SmrgMFLAGS= 2616ea72052SmrgMAKEFLAGS= 2626ea72052SmrgSHELL=${CONFIG_SHELL-/bin/sh} 2636ea72052Smrg 2646ea72052Smrg# Maximum number of lines to put in a shell here document. 2656ea72052Smrg# This variable seems obsolete. It should probably be removed, and 2666ea72052Smrg# only ac_max_sed_lines should be used. 2676ea72052Smrg: ${ac_max_here_lines=38} 2686ea72052Smrg 2696ea72052Smrg# Identity of this package. 2706ea72052SmrgPACKAGE_NAME='oclock' 2716ea72052SmrgPACKAGE_TARNAME='oclock' 2726ea72052SmrgPACKAGE_VERSION='1.0.1' 2736ea72052SmrgPACKAGE_STRING='oclock 1.0.1' 2746ea72052SmrgPACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 2756ea72052Smrg 2766ea72052Smrgac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE PKG_CONFIG ac_pt_PKG_CONFIG OCLOCK_CFLAGS OCLOCK_LIBS APPDEFS_CFLAGS APPDEFS_LIBS appdefaultdir build build_cpu build_vendor build_os host host_cpu host_vendor host_os APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS' 2776ea72052Smrgac_subst_files='' 2786ea72052Smrg 2796ea72052Smrg# Initialize some variables set by options. 2806ea72052Smrgac_init_help= 2816ea72052Smrgac_init_version=false 2826ea72052Smrg# The variables have the same names as the options, with 2836ea72052Smrg# dashes changed to underlines. 2846ea72052Smrgcache_file=/dev/null 2856ea72052Smrgexec_prefix=NONE 2866ea72052Smrgno_create= 2876ea72052Smrgno_recursion= 2886ea72052Smrgprefix=NONE 2896ea72052Smrgprogram_prefix=NONE 2906ea72052Smrgprogram_suffix=NONE 2916ea72052Smrgprogram_transform_name=s,x,x, 2926ea72052Smrgsilent= 2936ea72052Smrgsite= 2946ea72052Smrgsrcdir= 2956ea72052Smrgverbose= 2966ea72052Smrgx_includes=NONE 2976ea72052Smrgx_libraries=NONE 2986ea72052Smrg 2996ea72052Smrg# Installation directory options. 3006ea72052Smrg# These are left unexpanded so users can "make install exec_prefix=/foo" 3016ea72052Smrg# and all the variables that are supposed to be based on exec_prefix 3026ea72052Smrg# by default will actually change. 3036ea72052Smrg# Use braces instead of parens because sh, perl, etc. also accept them. 3046ea72052Smrgbindir='${exec_prefix}/bin' 3056ea72052Smrgsbindir='${exec_prefix}/sbin' 3066ea72052Smrglibexecdir='${exec_prefix}/libexec' 3076ea72052Smrgdatadir='${prefix}/share' 3086ea72052Smrgsysconfdir='${prefix}/etc' 3096ea72052Smrgsharedstatedir='${prefix}/com' 3106ea72052Smrglocalstatedir='${prefix}/var' 3116ea72052Smrglibdir='${exec_prefix}/lib' 3126ea72052Smrgincludedir='${prefix}/include' 3136ea72052Smrgoldincludedir='/usr/include' 3146ea72052Smrginfodir='${prefix}/info' 3156ea72052Smrgmandir='${prefix}/man' 3166ea72052Smrg 3176ea72052Smrgac_prev= 3186ea72052Smrgfor ac_option 3196ea72052Smrgdo 3206ea72052Smrg # If the previous option needs an argument, assign it. 3216ea72052Smrg if test -n "$ac_prev"; then 3226ea72052Smrg eval "$ac_prev=\$ac_option" 3236ea72052Smrg ac_prev= 3246ea72052Smrg continue 3256ea72052Smrg fi 3266ea72052Smrg 3276ea72052Smrg ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 3286ea72052Smrg 3296ea72052Smrg # Accept the important Cygnus configure options, so we can diagnose typos. 3306ea72052Smrg 3316ea72052Smrg case $ac_option in 3326ea72052Smrg 3336ea72052Smrg -bindir | --bindir | --bindi | --bind | --bin | --bi) 3346ea72052Smrg ac_prev=bindir ;; 3356ea72052Smrg -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 3366ea72052Smrg bindir=$ac_optarg ;; 3376ea72052Smrg 3386ea72052Smrg -build | --build | --buil | --bui | --bu) 3396ea72052Smrg ac_prev=build_alias ;; 3406ea72052Smrg -build=* | --build=* | --buil=* | --bui=* | --bu=*) 3416ea72052Smrg build_alias=$ac_optarg ;; 3426ea72052Smrg 3436ea72052Smrg -cache-file | --cache-file | --cache-fil | --cache-fi \ 3446ea72052Smrg | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 3456ea72052Smrg ac_prev=cache_file ;; 3466ea72052Smrg -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 3476ea72052Smrg | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 3486ea72052Smrg cache_file=$ac_optarg ;; 3496ea72052Smrg 3506ea72052Smrg --config-cache | -C) 3516ea72052Smrg cache_file=config.cache ;; 3526ea72052Smrg 3536ea72052Smrg -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 3546ea72052Smrg ac_prev=datadir ;; 3556ea72052Smrg -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 3566ea72052Smrg | --da=*) 3576ea72052Smrg datadir=$ac_optarg ;; 3586ea72052Smrg 3596ea72052Smrg -disable-* | --disable-*) 3606ea72052Smrg ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 3616ea72052Smrg # Reject names that are not valid shell variable names. 3626ea72052Smrg expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 3636ea72052Smrg { echo "$as_me: error: invalid feature name: $ac_feature" >&2 3646ea72052Smrg { (exit 1); exit 1; }; } 3656ea72052Smrg ac_feature=`echo $ac_feature | sed 's/-/_/g'` 3666ea72052Smrg eval "enable_$ac_feature=no" ;; 3676ea72052Smrg 3686ea72052Smrg -enable-* | --enable-*) 3696ea72052Smrg ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 3706ea72052Smrg # Reject names that are not valid shell variable names. 3716ea72052Smrg expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 3726ea72052Smrg { echo "$as_me: error: invalid feature name: $ac_feature" >&2 3736ea72052Smrg { (exit 1); exit 1; }; } 3746ea72052Smrg ac_feature=`echo $ac_feature | sed 's/-/_/g'` 3756ea72052Smrg case $ac_option in 3766ea72052Smrg *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 3776ea72052Smrg *) ac_optarg=yes ;; 3786ea72052Smrg esac 3796ea72052Smrg eval "enable_$ac_feature='$ac_optarg'" ;; 3806ea72052Smrg 3816ea72052Smrg -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 3826ea72052Smrg | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 3836ea72052Smrg | --exec | --exe | --ex) 3846ea72052Smrg ac_prev=exec_prefix ;; 3856ea72052Smrg -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 3866ea72052Smrg | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 3876ea72052Smrg | --exec=* | --exe=* | --ex=*) 3886ea72052Smrg exec_prefix=$ac_optarg ;; 3896ea72052Smrg 3906ea72052Smrg -gas | --gas | --ga | --g) 3916ea72052Smrg # Obsolete; use --with-gas. 3926ea72052Smrg with_gas=yes ;; 3936ea72052Smrg 3946ea72052Smrg -help | --help | --hel | --he | -h) 3956ea72052Smrg ac_init_help=long ;; 3966ea72052Smrg -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 3976ea72052Smrg ac_init_help=recursive ;; 3986ea72052Smrg -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 3996ea72052Smrg ac_init_help=short ;; 4006ea72052Smrg 4016ea72052Smrg -host | --host | --hos | --ho) 4026ea72052Smrg ac_prev=host_alias ;; 4036ea72052Smrg -host=* | --host=* | --hos=* | --ho=*) 4046ea72052Smrg host_alias=$ac_optarg ;; 4056ea72052Smrg 4066ea72052Smrg -includedir | --includedir | --includedi | --included | --include \ 4076ea72052Smrg | --includ | --inclu | --incl | --inc) 4086ea72052Smrg ac_prev=includedir ;; 4096ea72052Smrg -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 4106ea72052Smrg | --includ=* | --inclu=* | --incl=* | --inc=*) 4116ea72052Smrg includedir=$ac_optarg ;; 4126ea72052Smrg 4136ea72052Smrg -infodir | --infodir | --infodi | --infod | --info | --inf) 4146ea72052Smrg ac_prev=infodir ;; 4156ea72052Smrg -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 4166ea72052Smrg infodir=$ac_optarg ;; 4176ea72052Smrg 4186ea72052Smrg -libdir | --libdir | --libdi | --libd) 4196ea72052Smrg ac_prev=libdir ;; 4206ea72052Smrg -libdir=* | --libdir=* | --libdi=* | --libd=*) 4216ea72052Smrg libdir=$ac_optarg ;; 4226ea72052Smrg 4236ea72052Smrg -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 4246ea72052Smrg | --libexe | --libex | --libe) 4256ea72052Smrg ac_prev=libexecdir ;; 4266ea72052Smrg -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 4276ea72052Smrg | --libexe=* | --libex=* | --libe=*) 4286ea72052Smrg libexecdir=$ac_optarg ;; 4296ea72052Smrg 4306ea72052Smrg -localstatedir | --localstatedir | --localstatedi | --localstated \ 4316ea72052Smrg | --localstate | --localstat | --localsta | --localst \ 4326ea72052Smrg | --locals | --local | --loca | --loc | --lo) 4336ea72052Smrg ac_prev=localstatedir ;; 4346ea72052Smrg -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 4356ea72052Smrg | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 4366ea72052Smrg | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 4376ea72052Smrg localstatedir=$ac_optarg ;; 4386ea72052Smrg 4396ea72052Smrg -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 4406ea72052Smrg ac_prev=mandir ;; 4416ea72052Smrg -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 4426ea72052Smrg mandir=$ac_optarg ;; 4436ea72052Smrg 4446ea72052Smrg -nfp | --nfp | --nf) 4456ea72052Smrg # Obsolete; use --without-fp. 4466ea72052Smrg with_fp=no ;; 4476ea72052Smrg 4486ea72052Smrg -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 4496ea72052Smrg | --no-cr | --no-c | -n) 4506ea72052Smrg no_create=yes ;; 4516ea72052Smrg 4526ea72052Smrg -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 4536ea72052Smrg | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 4546ea72052Smrg no_recursion=yes ;; 4556ea72052Smrg 4566ea72052Smrg -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 4576ea72052Smrg | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 4586ea72052Smrg | --oldin | --oldi | --old | --ol | --o) 4596ea72052Smrg ac_prev=oldincludedir ;; 4606ea72052Smrg -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 4616ea72052Smrg | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 4626ea72052Smrg | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 4636ea72052Smrg oldincludedir=$ac_optarg ;; 4646ea72052Smrg 4656ea72052Smrg -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 4666ea72052Smrg ac_prev=prefix ;; 4676ea72052Smrg -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 4686ea72052Smrg prefix=$ac_optarg ;; 4696ea72052Smrg 4706ea72052Smrg -program-prefix | --program-prefix | --program-prefi | --program-pref \ 4716ea72052Smrg | --program-pre | --program-pr | --program-p) 4726ea72052Smrg ac_prev=program_prefix ;; 4736ea72052Smrg -program-prefix=* | --program-prefix=* | --program-prefi=* \ 4746ea72052Smrg | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 4756ea72052Smrg program_prefix=$ac_optarg ;; 4766ea72052Smrg 4776ea72052Smrg -program-suffix | --program-suffix | --program-suffi | --program-suff \ 4786ea72052Smrg | --program-suf | --program-su | --program-s) 4796ea72052Smrg ac_prev=program_suffix ;; 4806ea72052Smrg -program-suffix=* | --program-suffix=* | --program-suffi=* \ 4816ea72052Smrg | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 4826ea72052Smrg program_suffix=$ac_optarg ;; 4836ea72052Smrg 4846ea72052Smrg -program-transform-name | --program-transform-name \ 4856ea72052Smrg | --program-transform-nam | --program-transform-na \ 4866ea72052Smrg | --program-transform-n | --program-transform- \ 4876ea72052Smrg | --program-transform | --program-transfor \ 4886ea72052Smrg | --program-transfo | --program-transf \ 4896ea72052Smrg | --program-trans | --program-tran \ 4906ea72052Smrg | --progr-tra | --program-tr | --program-t) 4916ea72052Smrg ac_prev=program_transform_name ;; 4926ea72052Smrg -program-transform-name=* | --program-transform-name=* \ 4936ea72052Smrg | --program-transform-nam=* | --program-transform-na=* \ 4946ea72052Smrg | --program-transform-n=* | --program-transform-=* \ 4956ea72052Smrg | --program-transform=* | --program-transfor=* \ 4966ea72052Smrg | --program-transfo=* | --program-transf=* \ 4976ea72052Smrg | --program-trans=* | --program-tran=* \ 4986ea72052Smrg | --progr-tra=* | --program-tr=* | --program-t=*) 4996ea72052Smrg program_transform_name=$ac_optarg ;; 5006ea72052Smrg 5016ea72052Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5026ea72052Smrg | -silent | --silent | --silen | --sile | --sil) 5036ea72052Smrg silent=yes ;; 5046ea72052Smrg 5056ea72052Smrg -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 5066ea72052Smrg ac_prev=sbindir ;; 5076ea72052Smrg -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 5086ea72052Smrg | --sbi=* | --sb=*) 5096ea72052Smrg sbindir=$ac_optarg ;; 5106ea72052Smrg 5116ea72052Smrg -sharedstatedir | --sharedstatedir | --sharedstatedi \ 5126ea72052Smrg | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 5136ea72052Smrg | --sharedst | --shareds | --shared | --share | --shar \ 5146ea72052Smrg | --sha | --sh) 5156ea72052Smrg ac_prev=sharedstatedir ;; 5166ea72052Smrg -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 5176ea72052Smrg | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 5186ea72052Smrg | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 5196ea72052Smrg | --sha=* | --sh=*) 5206ea72052Smrg sharedstatedir=$ac_optarg ;; 5216ea72052Smrg 5226ea72052Smrg -site | --site | --sit) 5236ea72052Smrg ac_prev=site ;; 5246ea72052Smrg -site=* | --site=* | --sit=*) 5256ea72052Smrg site=$ac_optarg ;; 5266ea72052Smrg 5276ea72052Smrg -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 5286ea72052Smrg ac_prev=srcdir ;; 5296ea72052Smrg -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 5306ea72052Smrg srcdir=$ac_optarg ;; 5316ea72052Smrg 5326ea72052Smrg -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 5336ea72052Smrg | --syscon | --sysco | --sysc | --sys | --sy) 5346ea72052Smrg ac_prev=sysconfdir ;; 5356ea72052Smrg -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 5366ea72052Smrg | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 5376ea72052Smrg sysconfdir=$ac_optarg ;; 5386ea72052Smrg 5396ea72052Smrg -target | --target | --targe | --targ | --tar | --ta | --t) 5406ea72052Smrg ac_prev=target_alias ;; 5416ea72052Smrg -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 5426ea72052Smrg target_alias=$ac_optarg ;; 5436ea72052Smrg 5446ea72052Smrg -v | -verbose | --verbose | --verbos | --verbo | --verb) 5456ea72052Smrg verbose=yes ;; 5466ea72052Smrg 5476ea72052Smrg -version | --version | --versio | --versi | --vers | -V) 5486ea72052Smrg ac_init_version=: ;; 5496ea72052Smrg 5506ea72052Smrg -with-* | --with-*) 5516ea72052Smrg ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 5526ea72052Smrg # Reject names that are not valid shell variable names. 5536ea72052Smrg expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 5546ea72052Smrg { echo "$as_me: error: invalid package name: $ac_package" >&2 5556ea72052Smrg { (exit 1); exit 1; }; } 5566ea72052Smrg ac_package=`echo $ac_package| sed 's/-/_/g'` 5576ea72052Smrg case $ac_option in 5586ea72052Smrg *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 5596ea72052Smrg *) ac_optarg=yes ;; 5606ea72052Smrg esac 5616ea72052Smrg eval "with_$ac_package='$ac_optarg'" ;; 5626ea72052Smrg 5636ea72052Smrg -without-* | --without-*) 5646ea72052Smrg ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 5656ea72052Smrg # Reject names that are not valid shell variable names. 5666ea72052Smrg expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 5676ea72052Smrg { echo "$as_me: error: invalid package name: $ac_package" >&2 5686ea72052Smrg { (exit 1); exit 1; }; } 5696ea72052Smrg ac_package=`echo $ac_package | sed 's/-/_/g'` 5706ea72052Smrg eval "with_$ac_package=no" ;; 5716ea72052Smrg 5726ea72052Smrg --x) 5736ea72052Smrg # Obsolete; use --with-x. 5746ea72052Smrg with_x=yes ;; 5756ea72052Smrg 5766ea72052Smrg -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 5776ea72052Smrg | --x-incl | --x-inc | --x-in | --x-i) 5786ea72052Smrg ac_prev=x_includes ;; 5796ea72052Smrg -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 5806ea72052Smrg | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 5816ea72052Smrg x_includes=$ac_optarg ;; 5826ea72052Smrg 5836ea72052Smrg -x-libraries | --x-libraries | --x-librarie | --x-librari \ 5846ea72052Smrg | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 5856ea72052Smrg ac_prev=x_libraries ;; 5866ea72052Smrg -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 5876ea72052Smrg | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 5886ea72052Smrg x_libraries=$ac_optarg ;; 5896ea72052Smrg 5906ea72052Smrg -*) { echo "$as_me: error: unrecognized option: $ac_option 5916ea72052SmrgTry \`$0 --help' for more information." >&2 5926ea72052Smrg { (exit 1); exit 1; }; } 5936ea72052Smrg ;; 5946ea72052Smrg 5956ea72052Smrg *=*) 5966ea72052Smrg ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 5976ea72052Smrg # Reject names that are not valid shell variable names. 5986ea72052Smrg expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 5996ea72052Smrg { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 6006ea72052Smrg { (exit 1); exit 1; }; } 6016ea72052Smrg ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 6026ea72052Smrg eval "$ac_envvar='$ac_optarg'" 6036ea72052Smrg export $ac_envvar ;; 6046ea72052Smrg 6056ea72052Smrg *) 6066ea72052Smrg # FIXME: should be removed in autoconf 3.0. 6076ea72052Smrg echo "$as_me: WARNING: you should use --build, --host, --target" >&2 6086ea72052Smrg expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 6096ea72052Smrg echo "$as_me: WARNING: invalid host type: $ac_option" >&2 6106ea72052Smrg : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 6116ea72052Smrg ;; 6126ea72052Smrg 6136ea72052Smrg esac 6146ea72052Smrgdone 6156ea72052Smrg 6166ea72052Smrgif test -n "$ac_prev"; then 6176ea72052Smrg ac_option=--`echo $ac_prev | sed 's/_/-/g'` 6186ea72052Smrg { echo "$as_me: error: missing argument to $ac_option" >&2 6196ea72052Smrg { (exit 1); exit 1; }; } 6206ea72052Smrgfi 6216ea72052Smrg 6226ea72052Smrg# Be sure to have absolute paths. 6236ea72052Smrgfor ac_var in exec_prefix prefix 6246ea72052Smrgdo 6256ea72052Smrg eval ac_val=$`echo $ac_var` 6266ea72052Smrg case $ac_val in 6276ea72052Smrg [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 6286ea72052Smrg *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 6296ea72052Smrg { (exit 1); exit 1; }; };; 6306ea72052Smrg esac 6316ea72052Smrgdone 6326ea72052Smrg 6336ea72052Smrg# Be sure to have absolute paths. 6346ea72052Smrgfor ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 6356ea72052Smrg localstatedir libdir includedir oldincludedir infodir mandir 6366ea72052Smrgdo 6376ea72052Smrg eval ac_val=$`echo $ac_var` 6386ea72052Smrg case $ac_val in 6396ea72052Smrg [\\/$]* | ?:[\\/]* ) ;; 6406ea72052Smrg *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 6416ea72052Smrg { (exit 1); exit 1; }; };; 6426ea72052Smrg esac 6436ea72052Smrgdone 6446ea72052Smrg 6456ea72052Smrg# There might be people who depend on the old broken behavior: `$host' 6466ea72052Smrg# used to hold the argument of --host etc. 6476ea72052Smrg# FIXME: To remove some day. 6486ea72052Smrgbuild=$build_alias 6496ea72052Smrghost=$host_alias 6506ea72052Smrgtarget=$target_alias 6516ea72052Smrg 6526ea72052Smrg# FIXME: To remove some day. 6536ea72052Smrgif test "x$host_alias" != x; then 6546ea72052Smrg if test "x$build_alias" = x; then 6556ea72052Smrg cross_compiling=maybe 6566ea72052Smrg echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 6576ea72052Smrg If a cross compiler is detected then cross compile mode will be used." >&2 6586ea72052Smrg elif test "x$build_alias" != "x$host_alias"; then 6596ea72052Smrg cross_compiling=yes 6606ea72052Smrg fi 6616ea72052Smrgfi 6626ea72052Smrg 6636ea72052Smrgac_tool_prefix= 6646ea72052Smrgtest -n "$host_alias" && ac_tool_prefix=$host_alias- 6656ea72052Smrg 6666ea72052Smrgtest "$silent" = yes && exec 6>/dev/null 6676ea72052Smrg 6686ea72052Smrg 6696ea72052Smrg# Find the source files, if location was not specified. 6706ea72052Smrgif test -z "$srcdir"; then 6716ea72052Smrg ac_srcdir_defaulted=yes 6726ea72052Smrg # Try the directory containing this script, then its parent. 6736ea72052Smrg ac_confdir=`(dirname "$0") 2>/dev/null || 6746ea72052Smrg$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6756ea72052Smrg X"$0" : 'X\(//\)[^/]' \| \ 6766ea72052Smrg X"$0" : 'X\(//\)$' \| \ 6776ea72052Smrg X"$0" : 'X\(/\)' \| \ 6786ea72052Smrg . : '\(.\)' 2>/dev/null || 6796ea72052Smrgecho X"$0" | 6806ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 6816ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 6826ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 6836ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 6846ea72052Smrg s/.*/./; q'` 6856ea72052Smrg srcdir=$ac_confdir 6866ea72052Smrg if test ! -r $srcdir/$ac_unique_file; then 6876ea72052Smrg srcdir=.. 6886ea72052Smrg fi 6896ea72052Smrgelse 6906ea72052Smrg ac_srcdir_defaulted=no 6916ea72052Smrgfi 6926ea72052Smrgif test ! -r $srcdir/$ac_unique_file; then 6936ea72052Smrg if test "$ac_srcdir_defaulted" = yes; then 6946ea72052Smrg { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 6956ea72052Smrg { (exit 1); exit 1; }; } 6966ea72052Smrg else 6976ea72052Smrg { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 6986ea72052Smrg { (exit 1); exit 1; }; } 6996ea72052Smrg fi 7006ea72052Smrgfi 7016ea72052Smrg(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 7026ea72052Smrg { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 7036ea72052Smrg { (exit 1); exit 1; }; } 7046ea72052Smrgsrcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 7056ea72052Smrgac_env_build_alias_set=${build_alias+set} 7066ea72052Smrgac_env_build_alias_value=$build_alias 7076ea72052Smrgac_cv_env_build_alias_set=${build_alias+set} 7086ea72052Smrgac_cv_env_build_alias_value=$build_alias 7096ea72052Smrgac_env_host_alias_set=${host_alias+set} 7106ea72052Smrgac_env_host_alias_value=$host_alias 7116ea72052Smrgac_cv_env_host_alias_set=${host_alias+set} 7126ea72052Smrgac_cv_env_host_alias_value=$host_alias 7136ea72052Smrgac_env_target_alias_set=${target_alias+set} 7146ea72052Smrgac_env_target_alias_value=$target_alias 7156ea72052Smrgac_cv_env_target_alias_set=${target_alias+set} 7166ea72052Smrgac_cv_env_target_alias_value=$target_alias 7176ea72052Smrgac_env_CC_set=${CC+set} 7186ea72052Smrgac_env_CC_value=$CC 7196ea72052Smrgac_cv_env_CC_set=${CC+set} 7206ea72052Smrgac_cv_env_CC_value=$CC 7216ea72052Smrgac_env_CFLAGS_set=${CFLAGS+set} 7226ea72052Smrgac_env_CFLAGS_value=$CFLAGS 7236ea72052Smrgac_cv_env_CFLAGS_set=${CFLAGS+set} 7246ea72052Smrgac_cv_env_CFLAGS_value=$CFLAGS 7256ea72052Smrgac_env_LDFLAGS_set=${LDFLAGS+set} 7266ea72052Smrgac_env_LDFLAGS_value=$LDFLAGS 7276ea72052Smrgac_cv_env_LDFLAGS_set=${LDFLAGS+set} 7286ea72052Smrgac_cv_env_LDFLAGS_value=$LDFLAGS 7296ea72052Smrgac_env_CPPFLAGS_set=${CPPFLAGS+set} 7306ea72052Smrgac_env_CPPFLAGS_value=$CPPFLAGS 7316ea72052Smrgac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 7326ea72052Smrgac_cv_env_CPPFLAGS_value=$CPPFLAGS 7336ea72052Smrgac_env_PKG_CONFIG_set=${PKG_CONFIG+set} 7346ea72052Smrgac_env_PKG_CONFIG_value=$PKG_CONFIG 7356ea72052Smrgac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set} 7366ea72052Smrgac_cv_env_PKG_CONFIG_value=$PKG_CONFIG 7376ea72052Smrgac_env_OCLOCK_CFLAGS_set=${OCLOCK_CFLAGS+set} 7386ea72052Smrgac_env_OCLOCK_CFLAGS_value=$OCLOCK_CFLAGS 7396ea72052Smrgac_cv_env_OCLOCK_CFLAGS_set=${OCLOCK_CFLAGS+set} 7406ea72052Smrgac_cv_env_OCLOCK_CFLAGS_value=$OCLOCK_CFLAGS 7416ea72052Smrgac_env_OCLOCK_LIBS_set=${OCLOCK_LIBS+set} 7426ea72052Smrgac_env_OCLOCK_LIBS_value=$OCLOCK_LIBS 7436ea72052Smrgac_cv_env_OCLOCK_LIBS_set=${OCLOCK_LIBS+set} 7446ea72052Smrgac_cv_env_OCLOCK_LIBS_value=$OCLOCK_LIBS 7456ea72052Smrgac_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set} 7466ea72052Smrgac_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS 7476ea72052Smrgac_cv_env_APPDEFS_CFLAGS_set=${APPDEFS_CFLAGS+set} 7486ea72052Smrgac_cv_env_APPDEFS_CFLAGS_value=$APPDEFS_CFLAGS 7496ea72052Smrgac_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set} 7506ea72052Smrgac_env_APPDEFS_LIBS_value=$APPDEFS_LIBS 7516ea72052Smrgac_cv_env_APPDEFS_LIBS_set=${APPDEFS_LIBS+set} 7526ea72052Smrgac_cv_env_APPDEFS_LIBS_value=$APPDEFS_LIBS 7536ea72052Smrg 7546ea72052Smrg# 7556ea72052Smrg# Report the --help message. 7566ea72052Smrg# 7576ea72052Smrgif test "$ac_init_help" = "long"; then 7586ea72052Smrg # Omit some internal or obsolete options to make the list less imposing. 7596ea72052Smrg # This message is too long to be a string in the A/UX 3.1 sh. 7606ea72052Smrg cat <<_ACEOF 7616ea72052Smrg\`configure' configures oclock 1.0.1 to adapt to many kinds of systems. 7626ea72052Smrg 7636ea72052SmrgUsage: $0 [OPTION]... [VAR=VALUE]... 7646ea72052Smrg 7656ea72052SmrgTo assign environment variables (e.g., CC, CFLAGS...), specify them as 7666ea72052SmrgVAR=VALUE. See below for descriptions of some of the useful variables. 7676ea72052Smrg 7686ea72052SmrgDefaults for the options are specified in brackets. 7696ea72052Smrg 7706ea72052SmrgConfiguration: 7716ea72052Smrg -h, --help display this help and exit 7726ea72052Smrg --help=short display options specific to this package 7736ea72052Smrg --help=recursive display the short help of all the included packages 7746ea72052Smrg -V, --version display version information and exit 7756ea72052Smrg -q, --quiet, --silent do not print \`checking...' messages 7766ea72052Smrg --cache-file=FILE cache test results in FILE [disabled] 7776ea72052Smrg -C, --config-cache alias for \`--cache-file=config.cache' 7786ea72052Smrg -n, --no-create do not create output files 7796ea72052Smrg --srcdir=DIR find the sources in DIR [configure dir or \`..'] 7806ea72052Smrg 7816ea72052Smrg_ACEOF 7826ea72052Smrg 7836ea72052Smrg cat <<_ACEOF 7846ea72052SmrgInstallation directories: 7856ea72052Smrg --prefix=PREFIX install architecture-independent files in PREFIX 7866ea72052Smrg [$ac_default_prefix] 7876ea72052Smrg --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 7886ea72052Smrg [PREFIX] 7896ea72052Smrg 7906ea72052SmrgBy default, \`make install' will install all the files in 7916ea72052Smrg\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 7926ea72052Smrgan installation prefix other than \`$ac_default_prefix' using \`--prefix', 7936ea72052Smrgfor instance \`--prefix=\$HOME'. 7946ea72052Smrg 7956ea72052SmrgFor better control, use the options below. 7966ea72052Smrg 7976ea72052SmrgFine tuning of the installation directories: 7986ea72052Smrg --bindir=DIR user executables [EPREFIX/bin] 7996ea72052Smrg --sbindir=DIR system admin executables [EPREFIX/sbin] 8006ea72052Smrg --libexecdir=DIR program executables [EPREFIX/libexec] 8016ea72052Smrg --datadir=DIR read-only architecture-independent data [PREFIX/share] 8026ea72052Smrg --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 8036ea72052Smrg --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 8046ea72052Smrg --localstatedir=DIR modifiable single-machine data [PREFIX/var] 8056ea72052Smrg --libdir=DIR object code libraries [EPREFIX/lib] 8066ea72052Smrg --includedir=DIR C header files [PREFIX/include] 8076ea72052Smrg --oldincludedir=DIR C header files for non-gcc [/usr/include] 8086ea72052Smrg --infodir=DIR info documentation [PREFIX/info] 8096ea72052Smrg --mandir=DIR man documentation [PREFIX/man] 8106ea72052Smrg_ACEOF 8116ea72052Smrg 8126ea72052Smrg cat <<\_ACEOF 8136ea72052Smrg 8146ea72052SmrgProgram names: 8156ea72052Smrg --program-prefix=PREFIX prepend PREFIX to installed program names 8166ea72052Smrg --program-suffix=SUFFIX append SUFFIX to installed program names 8176ea72052Smrg --program-transform-name=PROGRAM run sed PROGRAM on installed program names 8186ea72052Smrg 8196ea72052SmrgSystem types: 8206ea72052Smrg --build=BUILD configure for building on BUILD [guessed] 8216ea72052Smrg --host=HOST cross-compile to build programs to run on HOST [BUILD] 8226ea72052Smrg_ACEOF 8236ea72052Smrgfi 8246ea72052Smrg 8256ea72052Smrgif test -n "$ac_init_help"; then 8266ea72052Smrg case $ac_init_help in 8276ea72052Smrg short | recursive ) echo "Configuration of oclock 1.0.1:";; 8286ea72052Smrg esac 8296ea72052Smrg cat <<\_ACEOF 8306ea72052Smrg 8316ea72052SmrgOptional Features: 8326ea72052Smrg --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 8336ea72052Smrg --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 8346ea72052Smrg --enable-maintainer-mode enable make rules and dependencies not useful 8356ea72052Smrg (and sometimes confusing) to the casual installer 8366ea72052Smrg --disable-dependency-tracking Speeds up one-time builds 8376ea72052Smrg --enable-dependency-tracking Do not reject slow dependency extractors 8386ea72052Smrg 8396ea72052SmrgOptional Packages: 8406ea72052Smrg --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 8416ea72052Smrg --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 8426ea72052Smrg --with-release-version=STRING 8436ea72052Smrg Use release version string in package name 8446ea72052Smrg 8456ea72052SmrgSome influential environment variables: 8466ea72052Smrg CC C compiler command 8476ea72052Smrg CFLAGS C compiler flags 8486ea72052Smrg LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 8496ea72052Smrg nonstandard directory <lib dir> 8506ea72052Smrg CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 8516ea72052Smrg headers in a nonstandard directory <include dir> 8526ea72052Smrg PKG_CONFIG path to pkg-config utility 8536ea72052Smrg OCLOCK_CFLAGS 8546ea72052Smrg C compiler flags for OCLOCK, overriding pkg-config 8556ea72052Smrg OCLOCK_LIBS linker flags for OCLOCK, overriding pkg-config 8566ea72052Smrg APPDEFS_CFLAGS 8576ea72052Smrg C compiler flags for APPDEFS, overriding pkg-config 8586ea72052Smrg APPDEFS_LIBS 8596ea72052Smrg linker flags for APPDEFS, overriding pkg-config 8606ea72052Smrg 8616ea72052SmrgUse these variables to override the choices made by `configure' or to help 8626ea72052Smrgit to find libraries and programs with nonstandard names/locations. 8636ea72052Smrg 8646ea72052SmrgReport bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 8656ea72052Smrg_ACEOF 8666ea72052Smrgfi 8676ea72052Smrg 8686ea72052Smrgif test "$ac_init_help" = "recursive"; then 8696ea72052Smrg # If there are subdirs, report their specific --help. 8706ea72052Smrg ac_popdir=`pwd` 8716ea72052Smrg for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 8726ea72052Smrg test -d $ac_dir || continue 8736ea72052Smrg ac_builddir=. 8746ea72052Smrg 8756ea72052Smrgif test "$ac_dir" != .; then 8766ea72052Smrg ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 8776ea72052Smrg # A "../" for each directory in $ac_dir_suffix. 8786ea72052Smrg ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 8796ea72052Smrgelse 8806ea72052Smrg ac_dir_suffix= ac_top_builddir= 8816ea72052Smrgfi 8826ea72052Smrg 8836ea72052Smrgcase $srcdir in 8846ea72052Smrg .) # No --srcdir option. We are building in place. 8856ea72052Smrg ac_srcdir=. 8866ea72052Smrg if test -z "$ac_top_builddir"; then 8876ea72052Smrg ac_top_srcdir=. 8886ea72052Smrg else 8896ea72052Smrg ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 8906ea72052Smrg fi ;; 8916ea72052Smrg [\\/]* | ?:[\\/]* ) # Absolute path. 8926ea72052Smrg ac_srcdir=$srcdir$ac_dir_suffix; 8936ea72052Smrg ac_top_srcdir=$srcdir ;; 8946ea72052Smrg *) # Relative path. 8956ea72052Smrg ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 8966ea72052Smrg ac_top_srcdir=$ac_top_builddir$srcdir ;; 8976ea72052Smrgesac 8986ea72052Smrg 8996ea72052Smrg# Do not use `cd foo && pwd` to compute absolute paths, because 9006ea72052Smrg# the directories may not exist. 9016ea72052Smrgcase `pwd` in 9026ea72052Smrg.) ac_abs_builddir="$ac_dir";; 9036ea72052Smrg*) 9046ea72052Smrg case "$ac_dir" in 9056ea72052Smrg .) ac_abs_builddir=`pwd`;; 9066ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9076ea72052Smrg *) ac_abs_builddir=`pwd`/"$ac_dir";; 9086ea72052Smrg esac;; 9096ea72052Smrgesac 9106ea72052Smrgcase $ac_abs_builddir in 9116ea72052Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;; 9126ea72052Smrg*) 9136ea72052Smrg case ${ac_top_builddir}. in 9146ea72052Smrg .) ac_abs_top_builddir=$ac_abs_builddir;; 9156ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 9166ea72052Smrg *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 9176ea72052Smrg esac;; 9186ea72052Smrgesac 9196ea72052Smrgcase $ac_abs_builddir in 9206ea72052Smrg.) ac_abs_srcdir=$ac_srcdir;; 9216ea72052Smrg*) 9226ea72052Smrg case $ac_srcdir in 9236ea72052Smrg .) ac_abs_srcdir=$ac_abs_builddir;; 9246ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 9256ea72052Smrg *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 9266ea72052Smrg esac;; 9276ea72052Smrgesac 9286ea72052Smrgcase $ac_abs_builddir in 9296ea72052Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;; 9306ea72052Smrg*) 9316ea72052Smrg case $ac_top_srcdir in 9326ea72052Smrg .) ac_abs_top_srcdir=$ac_abs_builddir;; 9336ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 9346ea72052Smrg *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 9356ea72052Smrg esac;; 9366ea72052Smrgesac 9376ea72052Smrg 9386ea72052Smrg cd $ac_dir 9396ea72052Smrg # Check for guested configure; otherwise get Cygnus style configure. 9406ea72052Smrg if test -f $ac_srcdir/configure.gnu; then 9416ea72052Smrg echo 9426ea72052Smrg $SHELL $ac_srcdir/configure.gnu --help=recursive 9436ea72052Smrg elif test -f $ac_srcdir/configure; then 9446ea72052Smrg echo 9456ea72052Smrg $SHELL $ac_srcdir/configure --help=recursive 9466ea72052Smrg elif test -f $ac_srcdir/configure.ac || 9476ea72052Smrg test -f $ac_srcdir/configure.in; then 9486ea72052Smrg echo 9496ea72052Smrg $ac_configure --help 9506ea72052Smrg else 9516ea72052Smrg echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 9526ea72052Smrg fi 9536ea72052Smrg cd $ac_popdir 9546ea72052Smrg done 9556ea72052Smrgfi 9566ea72052Smrg 9576ea72052Smrgtest -n "$ac_init_help" && exit 0 9586ea72052Smrgif $ac_init_version; then 9596ea72052Smrg cat <<\_ACEOF 9606ea72052Smrgoclock configure 1.0.1 9616ea72052Smrggenerated by GNU Autoconf 2.59 9626ea72052Smrg 9636ea72052SmrgCopyright (C) 2003 Free Software Foundation, Inc. 9646ea72052SmrgThis configure script is free software; the Free Software Foundation 9656ea72052Smrggives unlimited permission to copy, distribute and modify it. 9666ea72052Smrg_ACEOF 9676ea72052Smrg exit 0 9686ea72052Smrgfi 9696ea72052Smrgexec 5>config.log 9706ea72052Smrgcat >&5 <<_ACEOF 9716ea72052SmrgThis file contains any messages produced by compilers while 9726ea72052Smrgrunning configure, to aid debugging if configure makes a mistake. 9736ea72052Smrg 9746ea72052SmrgIt was created by oclock $as_me 1.0.1, which was 9756ea72052Smrggenerated by GNU Autoconf 2.59. Invocation command line was 9766ea72052Smrg 9776ea72052Smrg $ $0 $@ 9786ea72052Smrg 9796ea72052Smrg_ACEOF 9806ea72052Smrg{ 9816ea72052Smrgcat <<_ASUNAME 9826ea72052Smrg## --------- ## 9836ea72052Smrg## Platform. ## 9846ea72052Smrg## --------- ## 9856ea72052Smrg 9866ea72052Smrghostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 9876ea72052Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 9886ea72052Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 9896ea72052Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 9906ea72052Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 9916ea72052Smrg 9926ea72052Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 9936ea72052Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 9946ea72052Smrg 9956ea72052Smrg/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 9966ea72052Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 9976ea72052Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 9986ea72052Smrghostinfo = `(hostinfo) 2>/dev/null || echo unknown` 9996ea72052Smrg/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 10006ea72052Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 10016ea72052Smrg/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 10026ea72052Smrg 10036ea72052Smrg_ASUNAME 10046ea72052Smrg 10056ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10066ea72052Smrgfor as_dir in $PATH 10076ea72052Smrgdo 10086ea72052Smrg IFS=$as_save_IFS 10096ea72052Smrg test -z "$as_dir" && as_dir=. 10106ea72052Smrg echo "PATH: $as_dir" 10116ea72052Smrgdone 10126ea72052Smrg 10136ea72052Smrg} >&5 10146ea72052Smrg 10156ea72052Smrgcat >&5 <<_ACEOF 10166ea72052Smrg 10176ea72052Smrg 10186ea72052Smrg## ----------- ## 10196ea72052Smrg## Core tests. ## 10206ea72052Smrg## ----------- ## 10216ea72052Smrg 10226ea72052Smrg_ACEOF 10236ea72052Smrg 10246ea72052Smrg 10256ea72052Smrg# Keep a trace of the command line. 10266ea72052Smrg# Strip out --no-create and --no-recursion so they do not pile up. 10276ea72052Smrg# Strip out --silent because we don't want to record it for future runs. 10286ea72052Smrg# Also quote any args containing shell meta-characters. 10296ea72052Smrg# Make two passes to allow for proper duplicate-argument suppression. 10306ea72052Smrgac_configure_args= 10316ea72052Smrgac_configure_args0= 10326ea72052Smrgac_configure_args1= 10336ea72052Smrgac_sep= 10346ea72052Smrgac_must_keep_next=false 10356ea72052Smrgfor ac_pass in 1 2 10366ea72052Smrgdo 10376ea72052Smrg for ac_arg 10386ea72052Smrg do 10396ea72052Smrg case $ac_arg in 10406ea72052Smrg -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 10416ea72052Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10426ea72052Smrg | -silent | --silent | --silen | --sile | --sil) 10436ea72052Smrg continue ;; 10446ea72052Smrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 10456ea72052Smrg ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 10466ea72052Smrg esac 10476ea72052Smrg case $ac_pass in 10486ea72052Smrg 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 10496ea72052Smrg 2) 10506ea72052Smrg ac_configure_args1="$ac_configure_args1 '$ac_arg'" 10516ea72052Smrg if test $ac_must_keep_next = true; then 10526ea72052Smrg ac_must_keep_next=false # Got value, back to normal. 10536ea72052Smrg else 10546ea72052Smrg case $ac_arg in 10556ea72052Smrg *=* | --config-cache | -C | -disable-* | --disable-* \ 10566ea72052Smrg | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 10576ea72052Smrg | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 10586ea72052Smrg | -with-* | --with-* | -without-* | --without-* | --x) 10596ea72052Smrg case "$ac_configure_args0 " in 10606ea72052Smrg "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 10616ea72052Smrg esac 10626ea72052Smrg ;; 10636ea72052Smrg -* ) ac_must_keep_next=true ;; 10646ea72052Smrg esac 10656ea72052Smrg fi 10666ea72052Smrg ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 10676ea72052Smrg # Get rid of the leading space. 10686ea72052Smrg ac_sep=" " 10696ea72052Smrg ;; 10706ea72052Smrg esac 10716ea72052Smrg done 10726ea72052Smrgdone 10736ea72052Smrg$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 10746ea72052Smrg$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 10756ea72052Smrg 10766ea72052Smrg# When interrupted or exit'd, cleanup temporary files, and complete 10776ea72052Smrg# config.log. We remove comments because anyway the quotes in there 10786ea72052Smrg# would cause problems or look ugly. 10796ea72052Smrg# WARNING: Be sure not to use single quotes in there, as some shells, 10806ea72052Smrg# such as our DU 5.0 friend, will then `close' the trap. 10816ea72052Smrgtrap 'exit_status=$? 10826ea72052Smrg # Save into config.log some information that might help in debugging. 10836ea72052Smrg { 10846ea72052Smrg echo 10856ea72052Smrg 10866ea72052Smrg cat <<\_ASBOX 10876ea72052Smrg## ---------------- ## 10886ea72052Smrg## Cache variables. ## 10896ea72052Smrg## ---------------- ## 10906ea72052Smrg_ASBOX 10916ea72052Smrg echo 10926ea72052Smrg # The following way of writing the cache mishandles newlines in values, 10936ea72052Smrg{ 10946ea72052Smrg (set) 2>&1 | 10956ea72052Smrg case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 10966ea72052Smrg *ac_space=\ *) 10976ea72052Smrg sed -n \ 10986ea72052Smrg "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 10996ea72052Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 11006ea72052Smrg ;; 11016ea72052Smrg *) 11026ea72052Smrg sed -n \ 11036ea72052Smrg "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 11046ea72052Smrg ;; 11056ea72052Smrg esac; 11066ea72052Smrg} 11076ea72052Smrg echo 11086ea72052Smrg 11096ea72052Smrg cat <<\_ASBOX 11106ea72052Smrg## ----------------- ## 11116ea72052Smrg## Output variables. ## 11126ea72052Smrg## ----------------- ## 11136ea72052Smrg_ASBOX 11146ea72052Smrg echo 11156ea72052Smrg for ac_var in $ac_subst_vars 11166ea72052Smrg do 11176ea72052Smrg eval ac_val=$`echo $ac_var` 11186ea72052Smrg echo "$ac_var='"'"'$ac_val'"'"'" 11196ea72052Smrg done | sort 11206ea72052Smrg echo 11216ea72052Smrg 11226ea72052Smrg if test -n "$ac_subst_files"; then 11236ea72052Smrg cat <<\_ASBOX 11246ea72052Smrg## ------------- ## 11256ea72052Smrg## Output files. ## 11266ea72052Smrg## ------------- ## 11276ea72052Smrg_ASBOX 11286ea72052Smrg echo 11296ea72052Smrg for ac_var in $ac_subst_files 11306ea72052Smrg do 11316ea72052Smrg eval ac_val=$`echo $ac_var` 11326ea72052Smrg echo "$ac_var='"'"'$ac_val'"'"'" 11336ea72052Smrg done | sort 11346ea72052Smrg echo 11356ea72052Smrg fi 11366ea72052Smrg 11376ea72052Smrg if test -s confdefs.h; then 11386ea72052Smrg cat <<\_ASBOX 11396ea72052Smrg## ----------- ## 11406ea72052Smrg## confdefs.h. ## 11416ea72052Smrg## ----------- ## 11426ea72052Smrg_ASBOX 11436ea72052Smrg echo 11446ea72052Smrg sed "/^$/d" confdefs.h | sort 11456ea72052Smrg echo 11466ea72052Smrg fi 11476ea72052Smrg test "$ac_signal" != 0 && 11486ea72052Smrg echo "$as_me: caught signal $ac_signal" 11496ea72052Smrg echo "$as_me: exit $exit_status" 11506ea72052Smrg } >&5 11516ea72052Smrg rm -f core *.core && 11526ea72052Smrg rm -rf conftest* confdefs* conf$$* $ac_clean_files && 11536ea72052Smrg exit $exit_status 11546ea72052Smrg ' 0 11556ea72052Smrgfor ac_signal in 1 2 13 15; do 11566ea72052Smrg trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 11576ea72052Smrgdone 11586ea72052Smrgac_signal=0 11596ea72052Smrg 11606ea72052Smrg# confdefs.h avoids OS command line length limits that DEFS can exceed. 11616ea72052Smrgrm -rf conftest* confdefs.h 11626ea72052Smrg# AIX cpp loses on an empty file, so make sure it contains at least a newline. 11636ea72052Smrgecho >confdefs.h 11646ea72052Smrg 11656ea72052Smrg# Predefined preprocessor variables. 11666ea72052Smrg 11676ea72052Smrgcat >>confdefs.h <<_ACEOF 11686ea72052Smrg#define PACKAGE_NAME "$PACKAGE_NAME" 11696ea72052Smrg_ACEOF 11706ea72052Smrg 11716ea72052Smrg 11726ea72052Smrgcat >>confdefs.h <<_ACEOF 11736ea72052Smrg#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 11746ea72052Smrg_ACEOF 11756ea72052Smrg 11766ea72052Smrg 11776ea72052Smrgcat >>confdefs.h <<_ACEOF 11786ea72052Smrg#define PACKAGE_VERSION "$PACKAGE_VERSION" 11796ea72052Smrg_ACEOF 11806ea72052Smrg 11816ea72052Smrg 11826ea72052Smrgcat >>confdefs.h <<_ACEOF 11836ea72052Smrg#define PACKAGE_STRING "$PACKAGE_STRING" 11846ea72052Smrg_ACEOF 11856ea72052Smrg 11866ea72052Smrg 11876ea72052Smrgcat >>confdefs.h <<_ACEOF 11886ea72052Smrg#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 11896ea72052Smrg_ACEOF 11906ea72052Smrg 11916ea72052Smrg 11926ea72052Smrg# Let the site file select an alternate cache file if it wants to. 11936ea72052Smrg# Prefer explicitly selected file to automatically selected ones. 11946ea72052Smrgif test -z "$CONFIG_SITE"; then 11956ea72052Smrg if test "x$prefix" != xNONE; then 11966ea72052Smrg CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 11976ea72052Smrg else 11986ea72052Smrg CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 11996ea72052Smrg fi 12006ea72052Smrgfi 12016ea72052Smrgfor ac_site_file in $CONFIG_SITE; do 12026ea72052Smrg if test -r "$ac_site_file"; then 12036ea72052Smrg { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 12046ea72052Smrgecho "$as_me: loading site script $ac_site_file" >&6;} 12056ea72052Smrg sed 's/^/| /' "$ac_site_file" >&5 12066ea72052Smrg . "$ac_site_file" 12076ea72052Smrg fi 12086ea72052Smrgdone 12096ea72052Smrg 12106ea72052Smrgif test -r "$cache_file"; then 12116ea72052Smrg # Some versions of bash will fail to source /dev/null (special 12126ea72052Smrg # files actually), so we avoid doing that. 12136ea72052Smrg if test -f "$cache_file"; then 12146ea72052Smrg { echo "$as_me:$LINENO: loading cache $cache_file" >&5 12156ea72052Smrgecho "$as_me: loading cache $cache_file" >&6;} 12166ea72052Smrg case $cache_file in 12176ea72052Smrg [\\/]* | ?:[\\/]* ) . $cache_file;; 12186ea72052Smrg *) . ./$cache_file;; 12196ea72052Smrg esac 12206ea72052Smrg fi 12216ea72052Smrgelse 12226ea72052Smrg { echo "$as_me:$LINENO: creating cache $cache_file" >&5 12236ea72052Smrgecho "$as_me: creating cache $cache_file" >&6;} 12246ea72052Smrg >$cache_file 12256ea72052Smrgfi 12266ea72052Smrg 12276ea72052Smrg# Check that the precious variables saved in the cache have kept the same 12286ea72052Smrg# value. 12296ea72052Smrgac_cache_corrupted=false 12306ea72052Smrgfor ac_var in `(set) 2>&1 | 12316ea72052Smrg sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 12326ea72052Smrg eval ac_old_set=\$ac_cv_env_${ac_var}_set 12336ea72052Smrg eval ac_new_set=\$ac_env_${ac_var}_set 12346ea72052Smrg eval ac_old_val="\$ac_cv_env_${ac_var}_value" 12356ea72052Smrg eval ac_new_val="\$ac_env_${ac_var}_value" 12366ea72052Smrg case $ac_old_set,$ac_new_set in 12376ea72052Smrg set,) 12386ea72052Smrg { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 12396ea72052Smrgecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 12406ea72052Smrg ac_cache_corrupted=: ;; 12416ea72052Smrg ,set) 12426ea72052Smrg { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 12436ea72052Smrgecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 12446ea72052Smrg ac_cache_corrupted=: ;; 12456ea72052Smrg ,);; 12466ea72052Smrg *) 12476ea72052Smrg if test "x$ac_old_val" != "x$ac_new_val"; then 12486ea72052Smrg { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 12496ea72052Smrgecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 12506ea72052Smrg { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 12516ea72052Smrgecho "$as_me: former value: $ac_old_val" >&2;} 12526ea72052Smrg { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 12536ea72052Smrgecho "$as_me: current value: $ac_new_val" >&2;} 12546ea72052Smrg ac_cache_corrupted=: 12556ea72052Smrg fi;; 12566ea72052Smrg esac 12576ea72052Smrg # Pass precious variables to config.status. 12586ea72052Smrg if test "$ac_new_set" = set; then 12596ea72052Smrg case $ac_new_val in 12606ea72052Smrg *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 12616ea72052Smrg ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 12626ea72052Smrg *) ac_arg=$ac_var=$ac_new_val ;; 12636ea72052Smrg esac 12646ea72052Smrg case " $ac_configure_args " in 12656ea72052Smrg *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 12666ea72052Smrg *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 12676ea72052Smrg esac 12686ea72052Smrg fi 12696ea72052Smrgdone 12706ea72052Smrgif $ac_cache_corrupted; then 12716ea72052Smrg { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 12726ea72052Smrgecho "$as_me: error: changes in the environment can compromise the build" >&2;} 12736ea72052Smrg { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 12746ea72052Smrgecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 12756ea72052Smrg { (exit 1); exit 1; }; } 12766ea72052Smrgfi 12776ea72052Smrg 12786ea72052Smrgac_ext=c 12796ea72052Smrgac_cpp='$CPP $CPPFLAGS' 12806ea72052Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12816ea72052Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12826ea72052Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 12836ea72052Smrg 12846ea72052Smrg 12856ea72052Smrg 12866ea72052Smrg 12876ea72052Smrg 12886ea72052Smrg 12896ea72052Smrg 12906ea72052Smrg 12916ea72052Smrg 12926ea72052Smrg 12936ea72052Smrg 12946ea72052Smrg 12956ea72052Smrg 12966ea72052Smrg 12976ea72052Smrg 12986ea72052Smrg 12996ea72052Smrg 13006ea72052Smrg 13016ea72052Smrg 13026ea72052Smrg 13036ea72052Smrg 13046ea72052Smrg 13056ea72052Smrg 13066ea72052Smrg 13076ea72052Smrg 13086ea72052Smrg 13096ea72052Smrg 13106ea72052Smrgam__api_version="1.7" 13116ea72052Smrgac_aux_dir= 13126ea72052Smrgfor ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 13136ea72052Smrg if test -f $ac_dir/install-sh; then 13146ea72052Smrg ac_aux_dir=$ac_dir 13156ea72052Smrg ac_install_sh="$ac_aux_dir/install-sh -c" 13166ea72052Smrg break 13176ea72052Smrg elif test -f $ac_dir/install.sh; then 13186ea72052Smrg ac_aux_dir=$ac_dir 13196ea72052Smrg ac_install_sh="$ac_aux_dir/install.sh -c" 13206ea72052Smrg break 13216ea72052Smrg elif test -f $ac_dir/shtool; then 13226ea72052Smrg ac_aux_dir=$ac_dir 13236ea72052Smrg ac_install_sh="$ac_aux_dir/shtool install -c" 13246ea72052Smrg break 13256ea72052Smrg fi 13266ea72052Smrgdone 13276ea72052Smrgif test -z "$ac_aux_dir"; then 13286ea72052Smrg { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 13296ea72052Smrgecho "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 13306ea72052Smrg { (exit 1); exit 1; }; } 13316ea72052Smrgfi 13326ea72052Smrgac_config_guess="$SHELL $ac_aux_dir/config.guess" 13336ea72052Smrgac_config_sub="$SHELL $ac_aux_dir/config.sub" 13346ea72052Smrgac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 13356ea72052Smrg 13366ea72052Smrg# Find a good install program. We prefer a C program (faster), 13376ea72052Smrg# so one script is as good as another. But avoid the broken or 13386ea72052Smrg# incompatible versions: 13396ea72052Smrg# SysV /etc/install, /usr/sbin/install 13406ea72052Smrg# SunOS /usr/etc/install 13416ea72052Smrg# IRIX /sbin/install 13426ea72052Smrg# AIX /bin/install 13436ea72052Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 13446ea72052Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 13456ea72052Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 13466ea72052Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 13476ea72052Smrg# OS/2's system install, which has a completely different semantic 13486ea72052Smrg# ./install, which can be erroneously created by make from ./install.sh. 13496ea72052Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5 13506ea72052Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 13516ea72052Smrgif test -z "$INSTALL"; then 13526ea72052Smrgif test "${ac_cv_path_install+set}" = set; then 13536ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 13546ea72052Smrgelse 13556ea72052Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13566ea72052Smrgfor as_dir in $PATH 13576ea72052Smrgdo 13586ea72052Smrg IFS=$as_save_IFS 13596ea72052Smrg test -z "$as_dir" && as_dir=. 13606ea72052Smrg # Account for people who put trailing slashes in PATH elements. 13616ea72052Smrgcase $as_dir/ in 13626ea72052Smrg ./ | .// | /cC/* | \ 13636ea72052Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 13646ea72052Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 13656ea72052Smrg /usr/ucb/* ) ;; 13666ea72052Smrg *) 13676ea72052Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 13686ea72052Smrg # Don't use installbsd from OSF since it installs stuff as root 13696ea72052Smrg # by default. 13706ea72052Smrg for ac_prog in ginstall scoinst install; do 13716ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 13726ea72052Smrg if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 13736ea72052Smrg if test $ac_prog = install && 13746ea72052Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 13756ea72052Smrg # AIX install. It has an incompatible calling convention. 13766ea72052Smrg : 13776ea72052Smrg elif test $ac_prog = install && 13786ea72052Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 13796ea72052Smrg # program-specific install script used by HP pwplus--don't use. 13806ea72052Smrg : 13816ea72052Smrg else 13826ea72052Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 13836ea72052Smrg break 3 13846ea72052Smrg fi 13856ea72052Smrg fi 13866ea72052Smrg done 13876ea72052Smrg done 13886ea72052Smrg ;; 13896ea72052Smrgesac 13906ea72052Smrgdone 13916ea72052Smrg 13926ea72052Smrg 13936ea72052Smrgfi 13946ea72052Smrg if test "${ac_cv_path_install+set}" = set; then 13956ea72052Smrg INSTALL=$ac_cv_path_install 13966ea72052Smrg else 13976ea72052Smrg # As a last resort, use the slow shell script. We don't cache a 13986ea72052Smrg # path for INSTALL within a source directory, because that will 13996ea72052Smrg # break other packages using the cache if that directory is 14006ea72052Smrg # removed, or if the path is relative. 14016ea72052Smrg INSTALL=$ac_install_sh 14026ea72052Smrg fi 14036ea72052Smrgfi 14046ea72052Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5 14056ea72052Smrgecho "${ECHO_T}$INSTALL" >&6 14066ea72052Smrg 14076ea72052Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 14086ea72052Smrg# It thinks the first close brace ends the variable substitution. 14096ea72052Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 14106ea72052Smrg 14116ea72052Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 14126ea72052Smrg 14136ea72052Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 14146ea72052Smrg 14156ea72052Smrgecho "$as_me:$LINENO: checking whether build environment is sane" >&5 14166ea72052Smrgecho $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 14176ea72052Smrg# Just in case 14186ea72052Smrgsleep 1 14196ea72052Smrgecho timestamp > conftest.file 14206ea72052Smrg# Do `set' in a subshell so we don't clobber the current shell's 14216ea72052Smrg# arguments. Must try -L first in case configure is actually a 14226ea72052Smrg# symlink; some systems play weird games with the mod time of symlinks 14236ea72052Smrg# (eg FreeBSD returns the mod time of the symlink's containing 14246ea72052Smrg# directory). 14256ea72052Smrgif ( 14266ea72052Smrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 14276ea72052Smrg if test "$*" = "X"; then 14286ea72052Smrg # -L didn't work. 14296ea72052Smrg set X `ls -t $srcdir/configure conftest.file` 14306ea72052Smrg fi 14316ea72052Smrg rm -f conftest.file 14326ea72052Smrg if test "$*" != "X $srcdir/configure conftest.file" \ 14336ea72052Smrg && test "$*" != "X conftest.file $srcdir/configure"; then 14346ea72052Smrg 14356ea72052Smrg # If neither matched, then we have a broken ls. This can happen 14366ea72052Smrg # if, for instance, CONFIG_SHELL is bash and it inherits a 14376ea72052Smrg # broken ls alias from the environment. This has actually 14386ea72052Smrg # happened. Such a system could not be considered "sane". 14396ea72052Smrg { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 14406ea72052Smrgalias in your environment" >&5 14416ea72052Smrgecho "$as_me: error: ls -t appears to fail. Make sure there is not a broken 14426ea72052Smrgalias in your environment" >&2;} 14436ea72052Smrg { (exit 1); exit 1; }; } 14446ea72052Smrg fi 14456ea72052Smrg 14466ea72052Smrg test "$2" = conftest.file 14476ea72052Smrg ) 14486ea72052Smrgthen 14496ea72052Smrg # Ok. 14506ea72052Smrg : 14516ea72052Smrgelse 14526ea72052Smrg { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 14536ea72052SmrgCheck your system clock" >&5 14546ea72052Smrgecho "$as_me: error: newly created file is older than distributed files! 14556ea72052SmrgCheck your system clock" >&2;} 14566ea72052Smrg { (exit 1); exit 1; }; } 14576ea72052Smrgfi 14586ea72052Smrgecho "$as_me:$LINENO: result: yes" >&5 14596ea72052Smrgecho "${ECHO_T}yes" >&6 14606ea72052Smrgtest "$program_prefix" != NONE && 14616ea72052Smrg program_transform_name="s,^,$program_prefix,;$program_transform_name" 14626ea72052Smrg# Use a double $ so make ignores it. 14636ea72052Smrgtest "$program_suffix" != NONE && 14646ea72052Smrg program_transform_name="s,\$,$program_suffix,;$program_transform_name" 14656ea72052Smrg# Double any \ or $. echo might interpret backslashes. 14666ea72052Smrg# By default was `s,x,x', remove it if useless. 14676ea72052Smrgcat <<\_ACEOF >conftest.sed 14686ea72052Smrgs/[\\$]/&&/g;s/;s,x,x,$// 14696ea72052Smrg_ACEOF 14706ea72052Smrgprogram_transform_name=`echo $program_transform_name | sed -f conftest.sed` 14716ea72052Smrgrm conftest.sed 14726ea72052Smrg 14736ea72052Smrg 14746ea72052Smrg# expand $ac_aux_dir to an absolute path 14756ea72052Smrgam_aux_dir=`cd $ac_aux_dir && pwd` 14766ea72052Smrg 14776ea72052Smrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 14786ea72052Smrg# Use eval to expand $SHELL 14796ea72052Smrgif eval "$MISSING --run true"; then 14806ea72052Smrg am_missing_run="$MISSING --run " 14816ea72052Smrgelse 14826ea72052Smrg am_missing_run= 14836ea72052Smrg { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 14846ea72052Smrgecho "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 14856ea72052Smrgfi 14866ea72052Smrg 14876ea72052Smrgfor ac_prog in gawk mawk nawk awk 14886ea72052Smrgdo 14896ea72052Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 14906ea72052Smrgset dummy $ac_prog; ac_word=$2 14916ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 14926ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 14936ea72052Smrgif test "${ac_cv_prog_AWK+set}" = set; then 14946ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 14956ea72052Smrgelse 14966ea72052Smrg if test -n "$AWK"; then 14976ea72052Smrg ac_cv_prog_AWK="$AWK" # Let the user override the test. 14986ea72052Smrgelse 14996ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15006ea72052Smrgfor as_dir in $PATH 15016ea72052Smrgdo 15026ea72052Smrg IFS=$as_save_IFS 15036ea72052Smrg test -z "$as_dir" && as_dir=. 15046ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 15056ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15066ea72052Smrg ac_cv_prog_AWK="$ac_prog" 15076ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 15086ea72052Smrg break 2 15096ea72052Smrg fi 15106ea72052Smrgdone 15116ea72052Smrgdone 15126ea72052Smrg 15136ea72052Smrgfi 15146ea72052Smrgfi 15156ea72052SmrgAWK=$ac_cv_prog_AWK 15166ea72052Smrgif test -n "$AWK"; then 15176ea72052Smrg echo "$as_me:$LINENO: result: $AWK" >&5 15186ea72052Smrgecho "${ECHO_T}$AWK" >&6 15196ea72052Smrgelse 15206ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 15216ea72052Smrgecho "${ECHO_T}no" >&6 15226ea72052Smrgfi 15236ea72052Smrg 15246ea72052Smrg test -n "$AWK" && break 15256ea72052Smrgdone 15266ea72052Smrg 15276ea72052Smrgecho "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 15286ea72052Smrgecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 15296ea72052Smrgset dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 15306ea72052Smrgif eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 15316ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 15326ea72052Smrgelse 15336ea72052Smrg cat >conftest.make <<\_ACEOF 15346ea72052Smrgall: 15356ea72052Smrg @echo 'ac_maketemp="$(MAKE)"' 15366ea72052Smrg_ACEOF 15376ea72052Smrg# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 15386ea72052Smrgeval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 15396ea72052Smrgif test -n "$ac_maketemp"; then 15406ea72052Smrg eval ac_cv_prog_make_${ac_make}_set=yes 15416ea72052Smrgelse 15426ea72052Smrg eval ac_cv_prog_make_${ac_make}_set=no 15436ea72052Smrgfi 15446ea72052Smrgrm -f conftest.make 15456ea72052Smrgfi 15466ea72052Smrgif eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 15476ea72052Smrg echo "$as_me:$LINENO: result: yes" >&5 15486ea72052Smrgecho "${ECHO_T}yes" >&6 15496ea72052Smrg SET_MAKE= 15506ea72052Smrgelse 15516ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 15526ea72052Smrgecho "${ECHO_T}no" >&6 15536ea72052Smrg SET_MAKE="MAKE=${MAKE-make}" 15546ea72052Smrgfi 15556ea72052Smrg 15566ea72052Smrgrm -rf .tst 2>/dev/null 15576ea72052Smrgmkdir .tst 2>/dev/null 15586ea72052Smrgif test -d .tst; then 15596ea72052Smrg am__leading_dot=. 15606ea72052Smrgelse 15616ea72052Smrg am__leading_dot=_ 15626ea72052Smrgfi 15636ea72052Smrgrmdir .tst 2>/dev/null 15646ea72052Smrg 15656ea72052Smrg # test to see if srcdir already configured 15666ea72052Smrgif test "`cd $srcdir && pwd`" != "`pwd`" && 15676ea72052Smrg test -f $srcdir/config.status; then 15686ea72052Smrg { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 15696ea72052Smrgecho "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 15706ea72052Smrg { (exit 1); exit 1; }; } 15716ea72052Smrgfi 15726ea72052Smrg 15736ea72052Smrg# test whether we have cygpath 15746ea72052Smrgif test -z "$CYGPATH_W"; then 15756ea72052Smrg if (cygpath --version) >/dev/null 2>/dev/null; then 15766ea72052Smrg CYGPATH_W='cygpath -w' 15776ea72052Smrg else 15786ea72052Smrg CYGPATH_W=echo 15796ea72052Smrg fi 15806ea72052Smrgfi 15816ea72052Smrg 15826ea72052Smrg 15836ea72052Smrg# Define the identity of the package. 15846ea72052Smrg PACKAGE='oclock' 15856ea72052Smrg VERSION='1.0.1' 15866ea72052Smrg 15876ea72052Smrg 15886ea72052Smrgcat >>confdefs.h <<_ACEOF 15896ea72052Smrg#define PACKAGE "$PACKAGE" 15906ea72052Smrg_ACEOF 15916ea72052Smrg 15926ea72052Smrg 15936ea72052Smrgcat >>confdefs.h <<_ACEOF 15946ea72052Smrg#define VERSION "$VERSION" 15956ea72052Smrg_ACEOF 15966ea72052Smrg 15976ea72052Smrg# Some tools Automake needs. 15986ea72052Smrg 15996ea72052SmrgACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 16006ea72052Smrg 16016ea72052Smrg 16026ea72052SmrgAUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 16036ea72052Smrg 16046ea72052Smrg 16056ea72052SmrgAUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 16066ea72052Smrg 16076ea72052Smrg 16086ea72052SmrgAUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 16096ea72052Smrg 16106ea72052Smrg 16116ea72052SmrgMAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 16126ea72052Smrg 16136ea72052Smrg 16146ea72052SmrgAMTAR=${AMTAR-"${am_missing_run}tar"} 16156ea72052Smrg 16166ea72052Smrginstall_sh=${install_sh-"$am_aux_dir/install-sh"} 16176ea72052Smrg 16186ea72052Smrg# Installed binaries are usually stripped using `strip' when the user 16196ea72052Smrg# run `make install-strip'. However `strip' might not be the right 16206ea72052Smrg# tool to use in cross-compilation environments, therefore Automake 16216ea72052Smrg# will honor the `STRIP' environment variable to overrule this program. 16226ea72052Smrgif test "$cross_compiling" != no; then 16236ea72052Smrg if test -n "$ac_tool_prefix"; then 16246ea72052Smrg # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 16256ea72052Smrgset dummy ${ac_tool_prefix}strip; ac_word=$2 16266ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 16276ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16286ea72052Smrgif test "${ac_cv_prog_STRIP+set}" = set; then 16296ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 16306ea72052Smrgelse 16316ea72052Smrg if test -n "$STRIP"; then 16326ea72052Smrg ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 16336ea72052Smrgelse 16346ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16356ea72052Smrgfor as_dir in $PATH 16366ea72052Smrgdo 16376ea72052Smrg IFS=$as_save_IFS 16386ea72052Smrg test -z "$as_dir" && as_dir=. 16396ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 16406ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16416ea72052Smrg ac_cv_prog_STRIP="${ac_tool_prefix}strip" 16426ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16436ea72052Smrg break 2 16446ea72052Smrg fi 16456ea72052Smrgdone 16466ea72052Smrgdone 16476ea72052Smrg 16486ea72052Smrgfi 16496ea72052Smrgfi 16506ea72052SmrgSTRIP=$ac_cv_prog_STRIP 16516ea72052Smrgif test -n "$STRIP"; then 16526ea72052Smrg echo "$as_me:$LINENO: result: $STRIP" >&5 16536ea72052Smrgecho "${ECHO_T}$STRIP" >&6 16546ea72052Smrgelse 16556ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 16566ea72052Smrgecho "${ECHO_T}no" >&6 16576ea72052Smrgfi 16586ea72052Smrg 16596ea72052Smrgfi 16606ea72052Smrgif test -z "$ac_cv_prog_STRIP"; then 16616ea72052Smrg ac_ct_STRIP=$STRIP 16626ea72052Smrg # Extract the first word of "strip", so it can be a program name with args. 16636ea72052Smrgset dummy strip; ac_word=$2 16646ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 16656ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 16666ea72052Smrgif test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 16676ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 16686ea72052Smrgelse 16696ea72052Smrg if test -n "$ac_ct_STRIP"; then 16706ea72052Smrg ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 16716ea72052Smrgelse 16726ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16736ea72052Smrgfor as_dir in $PATH 16746ea72052Smrgdo 16756ea72052Smrg IFS=$as_save_IFS 16766ea72052Smrg test -z "$as_dir" && as_dir=. 16776ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 16786ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16796ea72052Smrg ac_cv_prog_ac_ct_STRIP="strip" 16806ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 16816ea72052Smrg break 2 16826ea72052Smrg fi 16836ea72052Smrgdone 16846ea72052Smrgdone 16856ea72052Smrg 16866ea72052Smrg test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 16876ea72052Smrgfi 16886ea72052Smrgfi 16896ea72052Smrgac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 16906ea72052Smrgif test -n "$ac_ct_STRIP"; then 16916ea72052Smrg echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 16926ea72052Smrgecho "${ECHO_T}$ac_ct_STRIP" >&6 16936ea72052Smrgelse 16946ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 16956ea72052Smrgecho "${ECHO_T}no" >&6 16966ea72052Smrgfi 16976ea72052Smrg 16986ea72052Smrg STRIP=$ac_ct_STRIP 16996ea72052Smrgelse 17006ea72052Smrg STRIP="$ac_cv_prog_STRIP" 17016ea72052Smrgfi 17026ea72052Smrg 17036ea72052Smrgfi 17046ea72052SmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 17056ea72052Smrg 17066ea72052Smrg# We need awk for the "check" target. The system "awk" is bad on 17076ea72052Smrg# some platforms. 17086ea72052Smrg 17096ea72052Smrg 17106ea72052Smrg 17116ea72052Smrgecho "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 17126ea72052Smrgecho $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 17136ea72052Smrg # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 17146ea72052Smrgif test "${enable_maintainer_mode+set}" = set; then 17156ea72052Smrg enableval="$enable_maintainer_mode" 17166ea72052Smrg USE_MAINTAINER_MODE=$enableval 17176ea72052Smrgelse 17186ea72052Smrg USE_MAINTAINER_MODE=no 17196ea72052Smrgfi; 17206ea72052Smrg echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 17216ea72052Smrgecho "${ECHO_T}$USE_MAINTAINER_MODE" >&6 17226ea72052Smrg 17236ea72052Smrg 17246ea72052Smrgif test $USE_MAINTAINER_MODE = yes; then 17256ea72052Smrg MAINTAINER_MODE_TRUE= 17266ea72052Smrg MAINTAINER_MODE_FALSE='#' 17276ea72052Smrgelse 17286ea72052Smrg MAINTAINER_MODE_TRUE='#' 17296ea72052Smrg MAINTAINER_MODE_FALSE= 17306ea72052Smrgfi 17316ea72052Smrg 17326ea72052Smrg MAINT=$MAINTAINER_MODE_TRUE 17336ea72052Smrg 17346ea72052Smrg 17356ea72052Smrg 17366ea72052Smrg ac_config_headers="$ac_config_headers config.h" 17376ea72052Smrg 17386ea72052Smrg 17396ea72052Smrgac_ext=c 17406ea72052Smrgac_cpp='$CPP $CPPFLAGS' 17416ea72052Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17426ea72052Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17436ea72052Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 17446ea72052Smrgif test -n "$ac_tool_prefix"; then 17456ea72052Smrg # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 17466ea72052Smrgset dummy ${ac_tool_prefix}gcc; ac_word=$2 17476ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 17486ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17496ea72052Smrgif test "${ac_cv_prog_CC+set}" = set; then 17506ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 17516ea72052Smrgelse 17526ea72052Smrg if test -n "$CC"; then 17536ea72052Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 17546ea72052Smrgelse 17556ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17566ea72052Smrgfor as_dir in $PATH 17576ea72052Smrgdo 17586ea72052Smrg IFS=$as_save_IFS 17596ea72052Smrg test -z "$as_dir" && as_dir=. 17606ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 17616ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17626ea72052Smrg ac_cv_prog_CC="${ac_tool_prefix}gcc" 17636ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 17646ea72052Smrg break 2 17656ea72052Smrg fi 17666ea72052Smrgdone 17676ea72052Smrgdone 17686ea72052Smrg 17696ea72052Smrgfi 17706ea72052Smrgfi 17716ea72052SmrgCC=$ac_cv_prog_CC 17726ea72052Smrgif test -n "$CC"; then 17736ea72052Smrg echo "$as_me:$LINENO: result: $CC" >&5 17746ea72052Smrgecho "${ECHO_T}$CC" >&6 17756ea72052Smrgelse 17766ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 17776ea72052Smrgecho "${ECHO_T}no" >&6 17786ea72052Smrgfi 17796ea72052Smrg 17806ea72052Smrgfi 17816ea72052Smrgif test -z "$ac_cv_prog_CC"; then 17826ea72052Smrg ac_ct_CC=$CC 17836ea72052Smrg # Extract the first word of "gcc", so it can be a program name with args. 17846ea72052Smrgset dummy gcc; ac_word=$2 17856ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 17866ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 17876ea72052Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 17886ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 17896ea72052Smrgelse 17906ea72052Smrg if test -n "$ac_ct_CC"; then 17916ea72052Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 17926ea72052Smrgelse 17936ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17946ea72052Smrgfor as_dir in $PATH 17956ea72052Smrgdo 17966ea72052Smrg IFS=$as_save_IFS 17976ea72052Smrg test -z "$as_dir" && as_dir=. 17986ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 17996ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18006ea72052Smrg ac_cv_prog_ac_ct_CC="gcc" 18016ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18026ea72052Smrg break 2 18036ea72052Smrg fi 18046ea72052Smrgdone 18056ea72052Smrgdone 18066ea72052Smrg 18076ea72052Smrgfi 18086ea72052Smrgfi 18096ea72052Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 18106ea72052Smrgif test -n "$ac_ct_CC"; then 18116ea72052Smrg echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18126ea72052Smrgecho "${ECHO_T}$ac_ct_CC" >&6 18136ea72052Smrgelse 18146ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 18156ea72052Smrgecho "${ECHO_T}no" >&6 18166ea72052Smrgfi 18176ea72052Smrg 18186ea72052Smrg CC=$ac_ct_CC 18196ea72052Smrgelse 18206ea72052Smrg CC="$ac_cv_prog_CC" 18216ea72052Smrgfi 18226ea72052Smrg 18236ea72052Smrgif test -z "$CC"; then 18246ea72052Smrg if test -n "$ac_tool_prefix"; then 18256ea72052Smrg # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 18266ea72052Smrgset dummy ${ac_tool_prefix}cc; ac_word=$2 18276ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 18286ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18296ea72052Smrgif test "${ac_cv_prog_CC+set}" = set; then 18306ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 18316ea72052Smrgelse 18326ea72052Smrg if test -n "$CC"; then 18336ea72052Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 18346ea72052Smrgelse 18356ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18366ea72052Smrgfor as_dir in $PATH 18376ea72052Smrgdo 18386ea72052Smrg IFS=$as_save_IFS 18396ea72052Smrg test -z "$as_dir" && as_dir=. 18406ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 18416ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18426ea72052Smrg ac_cv_prog_CC="${ac_tool_prefix}cc" 18436ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18446ea72052Smrg break 2 18456ea72052Smrg fi 18466ea72052Smrgdone 18476ea72052Smrgdone 18486ea72052Smrg 18496ea72052Smrgfi 18506ea72052Smrgfi 18516ea72052SmrgCC=$ac_cv_prog_CC 18526ea72052Smrgif test -n "$CC"; then 18536ea72052Smrg echo "$as_me:$LINENO: result: $CC" >&5 18546ea72052Smrgecho "${ECHO_T}$CC" >&6 18556ea72052Smrgelse 18566ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 18576ea72052Smrgecho "${ECHO_T}no" >&6 18586ea72052Smrgfi 18596ea72052Smrg 18606ea72052Smrgfi 18616ea72052Smrgif test -z "$ac_cv_prog_CC"; then 18626ea72052Smrg ac_ct_CC=$CC 18636ea72052Smrg # Extract the first word of "cc", so it can be a program name with args. 18646ea72052Smrgset dummy cc; ac_word=$2 18656ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 18666ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18676ea72052Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 18686ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 18696ea72052Smrgelse 18706ea72052Smrg if test -n "$ac_ct_CC"; then 18716ea72052Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 18726ea72052Smrgelse 18736ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18746ea72052Smrgfor as_dir in $PATH 18756ea72052Smrgdo 18766ea72052Smrg IFS=$as_save_IFS 18776ea72052Smrg test -z "$as_dir" && as_dir=. 18786ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 18796ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18806ea72052Smrg ac_cv_prog_ac_ct_CC="cc" 18816ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18826ea72052Smrg break 2 18836ea72052Smrg fi 18846ea72052Smrgdone 18856ea72052Smrgdone 18866ea72052Smrg 18876ea72052Smrgfi 18886ea72052Smrgfi 18896ea72052Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 18906ea72052Smrgif test -n "$ac_ct_CC"; then 18916ea72052Smrg echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 18926ea72052Smrgecho "${ECHO_T}$ac_ct_CC" >&6 18936ea72052Smrgelse 18946ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 18956ea72052Smrgecho "${ECHO_T}no" >&6 18966ea72052Smrgfi 18976ea72052Smrg 18986ea72052Smrg CC=$ac_ct_CC 18996ea72052Smrgelse 19006ea72052Smrg CC="$ac_cv_prog_CC" 19016ea72052Smrgfi 19026ea72052Smrg 19036ea72052Smrgfi 19046ea72052Smrgif test -z "$CC"; then 19056ea72052Smrg # Extract the first word of "cc", so it can be a program name with args. 19066ea72052Smrgset dummy cc; ac_word=$2 19076ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 19086ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19096ea72052Smrgif test "${ac_cv_prog_CC+set}" = set; then 19106ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 19116ea72052Smrgelse 19126ea72052Smrg if test -n "$CC"; then 19136ea72052Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 19146ea72052Smrgelse 19156ea72052Smrg ac_prog_rejected=no 19166ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19176ea72052Smrgfor as_dir in $PATH 19186ea72052Smrgdo 19196ea72052Smrg IFS=$as_save_IFS 19206ea72052Smrg test -z "$as_dir" && as_dir=. 19216ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 19226ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19236ea72052Smrg if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 19246ea72052Smrg ac_prog_rejected=yes 19256ea72052Smrg continue 19266ea72052Smrg fi 19276ea72052Smrg ac_cv_prog_CC="cc" 19286ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19296ea72052Smrg break 2 19306ea72052Smrg fi 19316ea72052Smrgdone 19326ea72052Smrgdone 19336ea72052Smrg 19346ea72052Smrgif test $ac_prog_rejected = yes; then 19356ea72052Smrg # We found a bogon in the path, so make sure we never use it. 19366ea72052Smrg set dummy $ac_cv_prog_CC 19376ea72052Smrg shift 19386ea72052Smrg if test $# != 0; then 19396ea72052Smrg # We chose a different compiler from the bogus one. 19406ea72052Smrg # However, it has the same basename, so the bogon will be chosen 19416ea72052Smrg # first if we set CC to just the basename; use the full file name. 19426ea72052Smrg shift 19436ea72052Smrg ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 19446ea72052Smrg fi 19456ea72052Smrgfi 19466ea72052Smrgfi 19476ea72052Smrgfi 19486ea72052SmrgCC=$ac_cv_prog_CC 19496ea72052Smrgif test -n "$CC"; then 19506ea72052Smrg echo "$as_me:$LINENO: result: $CC" >&5 19516ea72052Smrgecho "${ECHO_T}$CC" >&6 19526ea72052Smrgelse 19536ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 19546ea72052Smrgecho "${ECHO_T}no" >&6 19556ea72052Smrgfi 19566ea72052Smrg 19576ea72052Smrgfi 19586ea72052Smrgif test -z "$CC"; then 19596ea72052Smrg if test -n "$ac_tool_prefix"; then 19606ea72052Smrg for ac_prog in cl 19616ea72052Smrg do 19626ea72052Smrg # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 19636ea72052Smrgset dummy $ac_tool_prefix$ac_prog; ac_word=$2 19646ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 19656ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 19666ea72052Smrgif test "${ac_cv_prog_CC+set}" = set; then 19676ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 19686ea72052Smrgelse 19696ea72052Smrg if test -n "$CC"; then 19706ea72052Smrg ac_cv_prog_CC="$CC" # Let the user override the test. 19716ea72052Smrgelse 19726ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19736ea72052Smrgfor as_dir in $PATH 19746ea72052Smrgdo 19756ea72052Smrg IFS=$as_save_IFS 19766ea72052Smrg test -z "$as_dir" && as_dir=. 19776ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 19786ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19796ea72052Smrg ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 19806ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 19816ea72052Smrg break 2 19826ea72052Smrg fi 19836ea72052Smrgdone 19846ea72052Smrgdone 19856ea72052Smrg 19866ea72052Smrgfi 19876ea72052Smrgfi 19886ea72052SmrgCC=$ac_cv_prog_CC 19896ea72052Smrgif test -n "$CC"; then 19906ea72052Smrg echo "$as_me:$LINENO: result: $CC" >&5 19916ea72052Smrgecho "${ECHO_T}$CC" >&6 19926ea72052Smrgelse 19936ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 19946ea72052Smrgecho "${ECHO_T}no" >&6 19956ea72052Smrgfi 19966ea72052Smrg 19976ea72052Smrg test -n "$CC" && break 19986ea72052Smrg done 19996ea72052Smrgfi 20006ea72052Smrgif test -z "$CC"; then 20016ea72052Smrg ac_ct_CC=$CC 20026ea72052Smrg for ac_prog in cl 20036ea72052Smrgdo 20046ea72052Smrg # Extract the first word of "$ac_prog", so it can be a program name with args. 20056ea72052Smrgset dummy $ac_prog; ac_word=$2 20066ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 20076ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20086ea72052Smrgif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 20096ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 20106ea72052Smrgelse 20116ea72052Smrg if test -n "$ac_ct_CC"; then 20126ea72052Smrg ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 20136ea72052Smrgelse 20146ea72052Smrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20156ea72052Smrgfor as_dir in $PATH 20166ea72052Smrgdo 20176ea72052Smrg IFS=$as_save_IFS 20186ea72052Smrg test -z "$as_dir" && as_dir=. 20196ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 20206ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20216ea72052Smrg ac_cv_prog_ac_ct_CC="$ac_prog" 20226ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20236ea72052Smrg break 2 20246ea72052Smrg fi 20256ea72052Smrgdone 20266ea72052Smrgdone 20276ea72052Smrg 20286ea72052Smrgfi 20296ea72052Smrgfi 20306ea72052Smrgac_ct_CC=$ac_cv_prog_ac_ct_CC 20316ea72052Smrgif test -n "$ac_ct_CC"; then 20326ea72052Smrg echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 20336ea72052Smrgecho "${ECHO_T}$ac_ct_CC" >&6 20346ea72052Smrgelse 20356ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 20366ea72052Smrgecho "${ECHO_T}no" >&6 20376ea72052Smrgfi 20386ea72052Smrg 20396ea72052Smrg test -n "$ac_ct_CC" && break 20406ea72052Smrgdone 20416ea72052Smrg 20426ea72052Smrg CC=$ac_ct_CC 20436ea72052Smrgfi 20446ea72052Smrg 20456ea72052Smrgfi 20466ea72052Smrg 20476ea72052Smrg 20486ea72052Smrgtest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 20496ea72052SmrgSee \`config.log' for more details." >&5 20506ea72052Smrgecho "$as_me: error: no acceptable C compiler found in \$PATH 20516ea72052SmrgSee \`config.log' for more details." >&2;} 20526ea72052Smrg { (exit 1); exit 1; }; } 20536ea72052Smrg 20546ea72052Smrg# Provide some information about the compiler. 20556ea72052Smrgecho "$as_me:$LINENO:" \ 20566ea72052Smrg "checking for C compiler version" >&5 20576ea72052Smrgac_compiler=`set X $ac_compile; echo $2` 20586ea72052Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 20596ea72052Smrg (eval $ac_compiler --version </dev/null >&5) 2>&5 20606ea72052Smrg ac_status=$? 20616ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 20626ea72052Smrg (exit $ac_status); } 20636ea72052Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 20646ea72052Smrg (eval $ac_compiler -v </dev/null >&5) 2>&5 20656ea72052Smrg ac_status=$? 20666ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 20676ea72052Smrg (exit $ac_status); } 20686ea72052Smrg{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 20696ea72052Smrg (eval $ac_compiler -V </dev/null >&5) 2>&5 20706ea72052Smrg ac_status=$? 20716ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 20726ea72052Smrg (exit $ac_status); } 20736ea72052Smrg 20746ea72052Smrgcat >conftest.$ac_ext <<_ACEOF 20756ea72052Smrg/* confdefs.h. */ 20766ea72052Smrg_ACEOF 20776ea72052Smrgcat confdefs.h >>conftest.$ac_ext 20786ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 20796ea72052Smrg/* end confdefs.h. */ 20806ea72052Smrg 20816ea72052Smrgint 20826ea72052Smrgmain () 20836ea72052Smrg{ 20846ea72052Smrg 20856ea72052Smrg ; 20866ea72052Smrg return 0; 20876ea72052Smrg} 20886ea72052Smrg_ACEOF 20896ea72052Smrgac_clean_files_save=$ac_clean_files 20906ea72052Smrgac_clean_files="$ac_clean_files a.out a.exe b.out" 20916ea72052Smrg# Try to create an executable without -o first, disregard a.out. 20926ea72052Smrg# It will help us diagnose broken compilers, and finding out an intuition 20936ea72052Smrg# of exeext. 20946ea72052Smrgecho "$as_me:$LINENO: checking for C compiler default output file name" >&5 20956ea72052Smrgecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 20966ea72052Smrgac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 20976ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 20986ea72052Smrg (eval $ac_link_default) 2>&5 20996ea72052Smrg ac_status=$? 21006ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 21016ea72052Smrg (exit $ac_status); }; then 21026ea72052Smrg # Find the output, starting from the most likely. This scheme is 21036ea72052Smrg# not robust to junk in `.', hence go to wildcards (a.*) only as a last 21046ea72052Smrg# resort. 21056ea72052Smrg 21066ea72052Smrg# Be careful to initialize this variable, since it used to be cached. 21076ea72052Smrg# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 21086ea72052Smrgac_cv_exeext= 21096ea72052Smrg# b.out is created by i960 compilers. 21106ea72052Smrgfor ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 21116ea72052Smrgdo 21126ea72052Smrg test -f "$ac_file" || continue 21136ea72052Smrg case $ac_file in 21146ea72052Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 21156ea72052Smrg ;; 21166ea72052Smrg conftest.$ac_ext ) 21176ea72052Smrg # This is the source file. 21186ea72052Smrg ;; 21196ea72052Smrg [ab].out ) 21206ea72052Smrg # We found the default executable, but exeext='' is most 21216ea72052Smrg # certainly right. 21226ea72052Smrg break;; 21236ea72052Smrg *.* ) 21246ea72052Smrg ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 21256ea72052Smrg # FIXME: I believe we export ac_cv_exeext for Libtool, 21266ea72052Smrg # but it would be cool to find out if it's true. Does anybody 21276ea72052Smrg # maintain Libtool? --akim. 21286ea72052Smrg export ac_cv_exeext 21296ea72052Smrg break;; 21306ea72052Smrg * ) 21316ea72052Smrg break;; 21326ea72052Smrg esac 21336ea72052Smrgdone 21346ea72052Smrgelse 21356ea72052Smrg echo "$as_me: failed program was:" >&5 21366ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 21376ea72052Smrg 21386ea72052Smrg{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 21396ea72052SmrgSee \`config.log' for more details." >&5 21406ea72052Smrgecho "$as_me: error: C compiler cannot create executables 21416ea72052SmrgSee \`config.log' for more details." >&2;} 21426ea72052Smrg { (exit 77); exit 77; }; } 21436ea72052Smrgfi 21446ea72052Smrg 21456ea72052Smrgac_exeext=$ac_cv_exeext 21466ea72052Smrgecho "$as_me:$LINENO: result: $ac_file" >&5 21476ea72052Smrgecho "${ECHO_T}$ac_file" >&6 21486ea72052Smrg 21496ea72052Smrg# Check the compiler produces executables we can run. If not, either 21506ea72052Smrg# the compiler is broken, or we cross compile. 21516ea72052Smrgecho "$as_me:$LINENO: checking whether the C compiler works" >&5 21526ea72052Smrgecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 21536ea72052Smrg# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 21546ea72052Smrg# If not cross compiling, check that we can run a simple program. 21556ea72052Smrgif test "$cross_compiling" != yes; then 21566ea72052Smrg if { ac_try='./$ac_file' 21576ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21586ea72052Smrg (eval $ac_try) 2>&5 21596ea72052Smrg ac_status=$? 21606ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 21616ea72052Smrg (exit $ac_status); }; }; then 21626ea72052Smrg cross_compiling=no 21636ea72052Smrg else 21646ea72052Smrg if test "$cross_compiling" = maybe; then 21656ea72052Smrg cross_compiling=yes 21666ea72052Smrg else 21676ea72052Smrg { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 21686ea72052SmrgIf you meant to cross compile, use \`--host'. 21696ea72052SmrgSee \`config.log' for more details." >&5 21706ea72052Smrgecho "$as_me: error: cannot run C compiled programs. 21716ea72052SmrgIf you meant to cross compile, use \`--host'. 21726ea72052SmrgSee \`config.log' for more details." >&2;} 21736ea72052Smrg { (exit 1); exit 1; }; } 21746ea72052Smrg fi 21756ea72052Smrg fi 21766ea72052Smrgfi 21776ea72052Smrgecho "$as_me:$LINENO: result: yes" >&5 21786ea72052Smrgecho "${ECHO_T}yes" >&6 21796ea72052Smrg 21806ea72052Smrgrm -f a.out a.exe conftest$ac_cv_exeext b.out 21816ea72052Smrgac_clean_files=$ac_clean_files_save 21826ea72052Smrg# Check the compiler produces executables we can run. If not, either 21836ea72052Smrg# the compiler is broken, or we cross compile. 21846ea72052Smrgecho "$as_me:$LINENO: checking whether we are cross compiling" >&5 21856ea72052Smrgecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 21866ea72052Smrgecho "$as_me:$LINENO: result: $cross_compiling" >&5 21876ea72052Smrgecho "${ECHO_T}$cross_compiling" >&6 21886ea72052Smrg 21896ea72052Smrgecho "$as_me:$LINENO: checking for suffix of executables" >&5 21906ea72052Smrgecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 21916ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21926ea72052Smrg (eval $ac_link) 2>&5 21936ea72052Smrg ac_status=$? 21946ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 21956ea72052Smrg (exit $ac_status); }; then 21966ea72052Smrg # If both `conftest.exe' and `conftest' are `present' (well, observable) 21976ea72052Smrg# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 21986ea72052Smrg# work properly (i.e., refer to `conftest.exe'), while it won't with 21996ea72052Smrg# `rm'. 22006ea72052Smrgfor ac_file in conftest.exe conftest conftest.*; do 22016ea72052Smrg test -f "$ac_file" || continue 22026ea72052Smrg case $ac_file in 22036ea72052Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 22046ea72052Smrg *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 22056ea72052Smrg export ac_cv_exeext 22066ea72052Smrg break;; 22076ea72052Smrg * ) break;; 22086ea72052Smrg esac 22096ea72052Smrgdone 22106ea72052Smrgelse 22116ea72052Smrg { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 22126ea72052SmrgSee \`config.log' for more details." >&5 22136ea72052Smrgecho "$as_me: error: cannot compute suffix of executables: cannot compile and link 22146ea72052SmrgSee \`config.log' for more details." >&2;} 22156ea72052Smrg { (exit 1); exit 1; }; } 22166ea72052Smrgfi 22176ea72052Smrg 22186ea72052Smrgrm -f conftest$ac_cv_exeext 22196ea72052Smrgecho "$as_me:$LINENO: result: $ac_cv_exeext" >&5 22206ea72052Smrgecho "${ECHO_T}$ac_cv_exeext" >&6 22216ea72052Smrg 22226ea72052Smrgrm -f conftest.$ac_ext 22236ea72052SmrgEXEEXT=$ac_cv_exeext 22246ea72052Smrgac_exeext=$EXEEXT 22256ea72052Smrgecho "$as_me:$LINENO: checking for suffix of object files" >&5 22266ea72052Smrgecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 22276ea72052Smrgif test "${ac_cv_objext+set}" = set; then 22286ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 22296ea72052Smrgelse 22306ea72052Smrg cat >conftest.$ac_ext <<_ACEOF 22316ea72052Smrg/* confdefs.h. */ 22326ea72052Smrg_ACEOF 22336ea72052Smrgcat confdefs.h >>conftest.$ac_ext 22346ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 22356ea72052Smrg/* end confdefs.h. */ 22366ea72052Smrg 22376ea72052Smrgint 22386ea72052Smrgmain () 22396ea72052Smrg{ 22406ea72052Smrg 22416ea72052Smrg ; 22426ea72052Smrg return 0; 22436ea72052Smrg} 22446ea72052Smrg_ACEOF 22456ea72052Smrgrm -f conftest.o conftest.obj 22466ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22476ea72052Smrg (eval $ac_compile) 2>&5 22486ea72052Smrg ac_status=$? 22496ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 22506ea72052Smrg (exit $ac_status); }; then 22516ea72052Smrg for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 22526ea72052Smrg case $ac_file in 22536ea72052Smrg *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 22546ea72052Smrg *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 22556ea72052Smrg break;; 22566ea72052Smrg esac 22576ea72052Smrgdone 22586ea72052Smrgelse 22596ea72052Smrg echo "$as_me: failed program was:" >&5 22606ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 22616ea72052Smrg 22626ea72052Smrg{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 22636ea72052SmrgSee \`config.log' for more details." >&5 22646ea72052Smrgecho "$as_me: error: cannot compute suffix of object files: cannot compile 22656ea72052SmrgSee \`config.log' for more details." >&2;} 22666ea72052Smrg { (exit 1); exit 1; }; } 22676ea72052Smrgfi 22686ea72052Smrg 22696ea72052Smrgrm -f conftest.$ac_cv_objext conftest.$ac_ext 22706ea72052Smrgfi 22716ea72052Smrgecho "$as_me:$LINENO: result: $ac_cv_objext" >&5 22726ea72052Smrgecho "${ECHO_T}$ac_cv_objext" >&6 22736ea72052SmrgOBJEXT=$ac_cv_objext 22746ea72052Smrgac_objext=$OBJEXT 22756ea72052Smrgecho "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 22766ea72052Smrgecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 22776ea72052Smrgif test "${ac_cv_c_compiler_gnu+set}" = set; then 22786ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 22796ea72052Smrgelse 22806ea72052Smrg cat >conftest.$ac_ext <<_ACEOF 22816ea72052Smrg/* confdefs.h. */ 22826ea72052Smrg_ACEOF 22836ea72052Smrgcat confdefs.h >>conftest.$ac_ext 22846ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 22856ea72052Smrg/* end confdefs.h. */ 22866ea72052Smrg 22876ea72052Smrgint 22886ea72052Smrgmain () 22896ea72052Smrg{ 22906ea72052Smrg#ifndef __GNUC__ 22916ea72052Smrg choke me 22926ea72052Smrg#endif 22936ea72052Smrg 22946ea72052Smrg ; 22956ea72052Smrg return 0; 22966ea72052Smrg} 22976ea72052Smrg_ACEOF 22986ea72052Smrgrm -f conftest.$ac_objext 22996ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23006ea72052Smrg (eval $ac_compile) 2>conftest.er1 23016ea72052Smrg ac_status=$? 23026ea72052Smrg grep -v '^ *+' conftest.er1 >conftest.err 23036ea72052Smrg rm -f conftest.er1 23046ea72052Smrg cat conftest.err >&5 23056ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 23066ea72052Smrg (exit $ac_status); } && 23076ea72052Smrg { ac_try='test -z "$ac_c_werror_flag" 23086ea72052Smrg || test ! -s conftest.err' 23096ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23106ea72052Smrg (eval $ac_try) 2>&5 23116ea72052Smrg ac_status=$? 23126ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 23136ea72052Smrg (exit $ac_status); }; } && 23146ea72052Smrg { ac_try='test -s conftest.$ac_objext' 23156ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23166ea72052Smrg (eval $ac_try) 2>&5 23176ea72052Smrg ac_status=$? 23186ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 23196ea72052Smrg (exit $ac_status); }; }; then 23206ea72052Smrg ac_compiler_gnu=yes 23216ea72052Smrgelse 23226ea72052Smrg echo "$as_me: failed program was:" >&5 23236ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 23246ea72052Smrg 23256ea72052Smrgac_compiler_gnu=no 23266ea72052Smrgfi 23276ea72052Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23286ea72052Smrgac_cv_c_compiler_gnu=$ac_compiler_gnu 23296ea72052Smrg 23306ea72052Smrgfi 23316ea72052Smrgecho "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 23326ea72052Smrgecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 23336ea72052SmrgGCC=`test $ac_compiler_gnu = yes && echo yes` 23346ea72052Smrgac_test_CFLAGS=${CFLAGS+set} 23356ea72052Smrgac_save_CFLAGS=$CFLAGS 23366ea72052SmrgCFLAGS="-g" 23376ea72052Smrgecho "$as_me:$LINENO: checking whether $CC accepts -g" >&5 23386ea72052Smrgecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 23396ea72052Smrgif test "${ac_cv_prog_cc_g+set}" = set; then 23406ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 23416ea72052Smrgelse 23426ea72052Smrg cat >conftest.$ac_ext <<_ACEOF 23436ea72052Smrg/* confdefs.h. */ 23446ea72052Smrg_ACEOF 23456ea72052Smrgcat confdefs.h >>conftest.$ac_ext 23466ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 23476ea72052Smrg/* end confdefs.h. */ 23486ea72052Smrg 23496ea72052Smrgint 23506ea72052Smrgmain () 23516ea72052Smrg{ 23526ea72052Smrg 23536ea72052Smrg ; 23546ea72052Smrg return 0; 23556ea72052Smrg} 23566ea72052Smrg_ACEOF 23576ea72052Smrgrm -f conftest.$ac_objext 23586ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23596ea72052Smrg (eval $ac_compile) 2>conftest.er1 23606ea72052Smrg ac_status=$? 23616ea72052Smrg grep -v '^ *+' conftest.er1 >conftest.err 23626ea72052Smrg rm -f conftest.er1 23636ea72052Smrg cat conftest.err >&5 23646ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 23656ea72052Smrg (exit $ac_status); } && 23666ea72052Smrg { ac_try='test -z "$ac_c_werror_flag" 23676ea72052Smrg || test ! -s conftest.err' 23686ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23696ea72052Smrg (eval $ac_try) 2>&5 23706ea72052Smrg ac_status=$? 23716ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 23726ea72052Smrg (exit $ac_status); }; } && 23736ea72052Smrg { ac_try='test -s conftest.$ac_objext' 23746ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23756ea72052Smrg (eval $ac_try) 2>&5 23766ea72052Smrg ac_status=$? 23776ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 23786ea72052Smrg (exit $ac_status); }; }; then 23796ea72052Smrg ac_cv_prog_cc_g=yes 23806ea72052Smrgelse 23816ea72052Smrg echo "$as_me: failed program was:" >&5 23826ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 23836ea72052Smrg 23846ea72052Smrgac_cv_prog_cc_g=no 23856ea72052Smrgfi 23866ea72052Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23876ea72052Smrgfi 23886ea72052Smrgecho "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 23896ea72052Smrgecho "${ECHO_T}$ac_cv_prog_cc_g" >&6 23906ea72052Smrgif test "$ac_test_CFLAGS" = set; then 23916ea72052Smrg CFLAGS=$ac_save_CFLAGS 23926ea72052Smrgelif test $ac_cv_prog_cc_g = yes; then 23936ea72052Smrg if test "$GCC" = yes; then 23946ea72052Smrg CFLAGS="-g -O2" 23956ea72052Smrg else 23966ea72052Smrg CFLAGS="-g" 23976ea72052Smrg fi 23986ea72052Smrgelse 23996ea72052Smrg if test "$GCC" = yes; then 24006ea72052Smrg CFLAGS="-O2" 24016ea72052Smrg else 24026ea72052Smrg CFLAGS= 24036ea72052Smrg fi 24046ea72052Smrgfi 24056ea72052Smrgecho "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 24066ea72052Smrgecho $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 24076ea72052Smrgif test "${ac_cv_prog_cc_stdc+set}" = set; then 24086ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 24096ea72052Smrgelse 24106ea72052Smrg ac_cv_prog_cc_stdc=no 24116ea72052Smrgac_save_CC=$CC 24126ea72052Smrgcat >conftest.$ac_ext <<_ACEOF 24136ea72052Smrg/* confdefs.h. */ 24146ea72052Smrg_ACEOF 24156ea72052Smrgcat confdefs.h >>conftest.$ac_ext 24166ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 24176ea72052Smrg/* end confdefs.h. */ 24186ea72052Smrg#include <stdarg.h> 24196ea72052Smrg#include <stdio.h> 24206ea72052Smrg#include <sys/types.h> 24216ea72052Smrg#include <sys/stat.h> 24226ea72052Smrg/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 24236ea72052Smrgstruct buf { int x; }; 24246ea72052SmrgFILE * (*rcsopen) (struct buf *, struct stat *, int); 24256ea72052Smrgstatic char *e (p, i) 24266ea72052Smrg char **p; 24276ea72052Smrg int i; 24286ea72052Smrg{ 24296ea72052Smrg return p[i]; 24306ea72052Smrg} 24316ea72052Smrgstatic char *f (char * (*g) (char **, int), char **p, ...) 24326ea72052Smrg{ 24336ea72052Smrg char *s; 24346ea72052Smrg va_list v; 24356ea72052Smrg va_start (v,p); 24366ea72052Smrg s = g (p, va_arg (v,int)); 24376ea72052Smrg va_end (v); 24386ea72052Smrg return s; 24396ea72052Smrg} 24406ea72052Smrg 24416ea72052Smrg/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 24426ea72052Smrg function prototypes and stuff, but not '\xHH' hex character constants. 24436ea72052Smrg These don't provoke an error unfortunately, instead are silently treated 24446ea72052Smrg as 'x'. The following induces an error, until -std1 is added to get 24456ea72052Smrg proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 24466ea72052Smrg array size at least. It's necessary to write '\x00'==0 to get something 24476ea72052Smrg that's true only with -std1. */ 24486ea72052Smrgint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 24496ea72052Smrg 24506ea72052Smrgint test (int i, double x); 24516ea72052Smrgstruct s1 {int (*f) (int a);}; 24526ea72052Smrgstruct s2 {int (*f) (double a);}; 24536ea72052Smrgint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 24546ea72052Smrgint argc; 24556ea72052Smrgchar **argv; 24566ea72052Smrgint 24576ea72052Smrgmain () 24586ea72052Smrg{ 24596ea72052Smrgreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 24606ea72052Smrg ; 24616ea72052Smrg return 0; 24626ea72052Smrg} 24636ea72052Smrg_ACEOF 24646ea72052Smrg# Don't try gcc -ansi; that turns off useful extensions and 24656ea72052Smrg# breaks some systems' header files. 24666ea72052Smrg# AIX -qlanglvl=ansi 24676ea72052Smrg# Ultrix and OSF/1 -std1 24686ea72052Smrg# HP-UX 10.20 and later -Ae 24696ea72052Smrg# HP-UX older versions -Aa -D_HPUX_SOURCE 24706ea72052Smrg# SVR4 -Xc -D__EXTENSIONS__ 24716ea72052Smrgfor ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 24726ea72052Smrgdo 24736ea72052Smrg CC="$ac_save_CC $ac_arg" 24746ea72052Smrg rm -f conftest.$ac_objext 24756ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24766ea72052Smrg (eval $ac_compile) 2>conftest.er1 24776ea72052Smrg ac_status=$? 24786ea72052Smrg grep -v '^ *+' conftest.er1 >conftest.err 24796ea72052Smrg rm -f conftest.er1 24806ea72052Smrg cat conftest.err >&5 24816ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 24826ea72052Smrg (exit $ac_status); } && 24836ea72052Smrg { ac_try='test -z "$ac_c_werror_flag" 24846ea72052Smrg || test ! -s conftest.err' 24856ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24866ea72052Smrg (eval $ac_try) 2>&5 24876ea72052Smrg ac_status=$? 24886ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 24896ea72052Smrg (exit $ac_status); }; } && 24906ea72052Smrg { ac_try='test -s conftest.$ac_objext' 24916ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24926ea72052Smrg (eval $ac_try) 2>&5 24936ea72052Smrg ac_status=$? 24946ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 24956ea72052Smrg (exit $ac_status); }; }; then 24966ea72052Smrg ac_cv_prog_cc_stdc=$ac_arg 24976ea72052Smrgbreak 24986ea72052Smrgelse 24996ea72052Smrg echo "$as_me: failed program was:" >&5 25006ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 25016ea72052Smrg 25026ea72052Smrgfi 25036ea72052Smrgrm -f conftest.err conftest.$ac_objext 25046ea72052Smrgdone 25056ea72052Smrgrm -f conftest.$ac_ext conftest.$ac_objext 25066ea72052SmrgCC=$ac_save_CC 25076ea72052Smrg 25086ea72052Smrgfi 25096ea72052Smrg 25106ea72052Smrgcase "x$ac_cv_prog_cc_stdc" in 25116ea72052Smrg x|xno) 25126ea72052Smrg echo "$as_me:$LINENO: result: none needed" >&5 25136ea72052Smrgecho "${ECHO_T}none needed" >&6 ;; 25146ea72052Smrg *) 25156ea72052Smrg echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 25166ea72052Smrgecho "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 25176ea72052Smrg CC="$CC $ac_cv_prog_cc_stdc" ;; 25186ea72052Smrgesac 25196ea72052Smrg 25206ea72052Smrg# Some people use a C++ compiler to compile C. Since we use `exit', 25216ea72052Smrg# in C++ we need to declare it. In case someone uses the same compiler 25226ea72052Smrg# for both compiling C and C++ we need to have the C++ compiler decide 25236ea72052Smrg# the declaration of exit, since it's the most demanding environment. 25246ea72052Smrgcat >conftest.$ac_ext <<_ACEOF 25256ea72052Smrg#ifndef __cplusplus 25266ea72052Smrg choke me 25276ea72052Smrg#endif 25286ea72052Smrg_ACEOF 25296ea72052Smrgrm -f conftest.$ac_objext 25306ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25316ea72052Smrg (eval $ac_compile) 2>conftest.er1 25326ea72052Smrg ac_status=$? 25336ea72052Smrg grep -v '^ *+' conftest.er1 >conftest.err 25346ea72052Smrg rm -f conftest.er1 25356ea72052Smrg cat conftest.err >&5 25366ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 25376ea72052Smrg (exit $ac_status); } && 25386ea72052Smrg { ac_try='test -z "$ac_c_werror_flag" 25396ea72052Smrg || test ! -s conftest.err' 25406ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25416ea72052Smrg (eval $ac_try) 2>&5 25426ea72052Smrg ac_status=$? 25436ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 25446ea72052Smrg (exit $ac_status); }; } && 25456ea72052Smrg { ac_try='test -s conftest.$ac_objext' 25466ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25476ea72052Smrg (eval $ac_try) 2>&5 25486ea72052Smrg ac_status=$? 25496ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 25506ea72052Smrg (exit $ac_status); }; }; then 25516ea72052Smrg for ac_declaration in \ 25526ea72052Smrg '' \ 25536ea72052Smrg 'extern "C" void std::exit (int) throw (); using std::exit;' \ 25546ea72052Smrg 'extern "C" void std::exit (int); using std::exit;' \ 25556ea72052Smrg 'extern "C" void exit (int) throw ();' \ 25566ea72052Smrg 'extern "C" void exit (int);' \ 25576ea72052Smrg 'void exit (int);' 25586ea72052Smrgdo 25596ea72052Smrg cat >conftest.$ac_ext <<_ACEOF 25606ea72052Smrg/* confdefs.h. */ 25616ea72052Smrg_ACEOF 25626ea72052Smrgcat confdefs.h >>conftest.$ac_ext 25636ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 25646ea72052Smrg/* end confdefs.h. */ 25656ea72052Smrg$ac_declaration 25666ea72052Smrg#include <stdlib.h> 25676ea72052Smrgint 25686ea72052Smrgmain () 25696ea72052Smrg{ 25706ea72052Smrgexit (42); 25716ea72052Smrg ; 25726ea72052Smrg return 0; 25736ea72052Smrg} 25746ea72052Smrg_ACEOF 25756ea72052Smrgrm -f conftest.$ac_objext 25766ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25776ea72052Smrg (eval $ac_compile) 2>conftest.er1 25786ea72052Smrg ac_status=$? 25796ea72052Smrg grep -v '^ *+' conftest.er1 >conftest.err 25806ea72052Smrg rm -f conftest.er1 25816ea72052Smrg cat conftest.err >&5 25826ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 25836ea72052Smrg (exit $ac_status); } && 25846ea72052Smrg { ac_try='test -z "$ac_c_werror_flag" 25856ea72052Smrg || test ! -s conftest.err' 25866ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25876ea72052Smrg (eval $ac_try) 2>&5 25886ea72052Smrg ac_status=$? 25896ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 25906ea72052Smrg (exit $ac_status); }; } && 25916ea72052Smrg { ac_try='test -s conftest.$ac_objext' 25926ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25936ea72052Smrg (eval $ac_try) 2>&5 25946ea72052Smrg ac_status=$? 25956ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 25966ea72052Smrg (exit $ac_status); }; }; then 25976ea72052Smrg : 25986ea72052Smrgelse 25996ea72052Smrg echo "$as_me: failed program was:" >&5 26006ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 26016ea72052Smrg 26026ea72052Smrgcontinue 26036ea72052Smrgfi 26046ea72052Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26056ea72052Smrg cat >conftest.$ac_ext <<_ACEOF 26066ea72052Smrg/* confdefs.h. */ 26076ea72052Smrg_ACEOF 26086ea72052Smrgcat confdefs.h >>conftest.$ac_ext 26096ea72052Smrgcat >>conftest.$ac_ext <<_ACEOF 26106ea72052Smrg/* end confdefs.h. */ 26116ea72052Smrg$ac_declaration 26126ea72052Smrgint 26136ea72052Smrgmain () 26146ea72052Smrg{ 26156ea72052Smrgexit (42); 26166ea72052Smrg ; 26176ea72052Smrg return 0; 26186ea72052Smrg} 26196ea72052Smrg_ACEOF 26206ea72052Smrgrm -f conftest.$ac_objext 26216ea72052Smrgif { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26226ea72052Smrg (eval $ac_compile) 2>conftest.er1 26236ea72052Smrg ac_status=$? 26246ea72052Smrg grep -v '^ *+' conftest.er1 >conftest.err 26256ea72052Smrg rm -f conftest.er1 26266ea72052Smrg cat conftest.err >&5 26276ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 26286ea72052Smrg (exit $ac_status); } && 26296ea72052Smrg { ac_try='test -z "$ac_c_werror_flag" 26306ea72052Smrg || test ! -s conftest.err' 26316ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26326ea72052Smrg (eval $ac_try) 2>&5 26336ea72052Smrg ac_status=$? 26346ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 26356ea72052Smrg (exit $ac_status); }; } && 26366ea72052Smrg { ac_try='test -s conftest.$ac_objext' 26376ea72052Smrg { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26386ea72052Smrg (eval $ac_try) 2>&5 26396ea72052Smrg ac_status=$? 26406ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 26416ea72052Smrg (exit $ac_status); }; }; then 26426ea72052Smrg break 26436ea72052Smrgelse 26446ea72052Smrg echo "$as_me: failed program was:" >&5 26456ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 26466ea72052Smrg 26476ea72052Smrgfi 26486ea72052Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26496ea72052Smrgdone 26506ea72052Smrgrm -f conftest* 26516ea72052Smrgif test -n "$ac_declaration"; then 26526ea72052Smrg echo '#ifdef __cplusplus' >>confdefs.h 26536ea72052Smrg echo $ac_declaration >>confdefs.h 26546ea72052Smrg echo '#endif' >>confdefs.h 26556ea72052Smrgfi 26566ea72052Smrg 26576ea72052Smrgelse 26586ea72052Smrg echo "$as_me: failed program was:" >&5 26596ea72052Smrgsed 's/^/| /' conftest.$ac_ext >&5 26606ea72052Smrg 26616ea72052Smrgfi 26626ea72052Smrgrm -f conftest.err conftest.$ac_objext conftest.$ac_ext 26636ea72052Smrgac_ext=c 26646ea72052Smrgac_cpp='$CPP $CPPFLAGS' 26656ea72052Smrgac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26666ea72052Smrgac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26676ea72052Smrgac_compiler_gnu=$ac_cv_c_compiler_gnu 26686ea72052SmrgDEPDIR="${am__leading_dot}deps" 26696ea72052Smrg 26706ea72052Smrg ac_config_commands="$ac_config_commands depfiles" 26716ea72052Smrg 26726ea72052Smrg 26736ea72052Smrgam_make=${MAKE-make} 26746ea72052Smrgcat > confinc << 'END' 26756ea72052Smrgam__doit: 26766ea72052Smrg @echo done 26776ea72052Smrg.PHONY: am__doit 26786ea72052SmrgEND 26796ea72052Smrg# If we don't find an include directive, just comment out the code. 26806ea72052Smrgecho "$as_me:$LINENO: checking for style of include used by $am_make" >&5 26816ea72052Smrgecho $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 26826ea72052Smrgam__include="#" 26836ea72052Smrgam__quote= 26846ea72052Smrg_am_result=none 26856ea72052Smrg# First try GNU make style include. 26866ea72052Smrgecho "include confinc" > confmf 26876ea72052Smrg# We grep out `Entering directory' and `Leaving directory' 26886ea72052Smrg# messages which can occur if `w' ends up in MAKEFLAGS. 26896ea72052Smrg# In particular we don't look at `^make:' because GNU make might 26906ea72052Smrg# be invoked under some other name (usually "gmake"), in which 26916ea72052Smrg# case it prints its new name instead of `make'. 26926ea72052Smrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 26936ea72052Smrg am__include=include 26946ea72052Smrg am__quote= 26956ea72052Smrg _am_result=GNU 26966ea72052Smrgfi 26976ea72052Smrg# Now try BSD make style include. 26986ea72052Smrgif test "$am__include" = "#"; then 26996ea72052Smrg echo '.include "confinc"' > confmf 27006ea72052Smrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 27016ea72052Smrg am__include=.include 27026ea72052Smrg am__quote="\"" 27036ea72052Smrg _am_result=BSD 27046ea72052Smrg fi 27056ea72052Smrgfi 27066ea72052Smrg 27076ea72052Smrg 27086ea72052Smrgecho "$as_me:$LINENO: result: $_am_result" >&5 27096ea72052Smrgecho "${ECHO_T}$_am_result" >&6 27106ea72052Smrgrm -f confinc confmf 27116ea72052Smrg 27126ea72052Smrg# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 27136ea72052Smrgif test "${enable_dependency_tracking+set}" = set; then 27146ea72052Smrg enableval="$enable_dependency_tracking" 27156ea72052Smrg 27166ea72052Smrgfi; 27176ea72052Smrgif test "x$enable_dependency_tracking" != xno; then 27186ea72052Smrg am_depcomp="$ac_aux_dir/depcomp" 27196ea72052Smrg AMDEPBACKSLASH='\' 27206ea72052Smrgfi 27216ea72052Smrg 27226ea72052Smrg 27236ea72052Smrgif test "x$enable_dependency_tracking" != xno; then 27246ea72052Smrg AMDEP_TRUE= 27256ea72052Smrg AMDEP_FALSE='#' 27266ea72052Smrgelse 27276ea72052Smrg AMDEP_TRUE='#' 27286ea72052Smrg AMDEP_FALSE= 27296ea72052Smrgfi 27306ea72052Smrg 27316ea72052Smrg 27326ea72052Smrg 27336ea72052Smrg 27346ea72052Smrgdepcc="$CC" am_compiler_list= 27356ea72052Smrg 27366ea72052Smrgecho "$as_me:$LINENO: checking dependency style of $depcc" >&5 27376ea72052Smrgecho $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 27386ea72052Smrgif test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 27396ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 27406ea72052Smrgelse 27416ea72052Smrg if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 27426ea72052Smrg # We make a subdir and do the tests there. Otherwise we can end up 27436ea72052Smrg # making bogus files that we don't know about and never remove. For 27446ea72052Smrg # instance it was reported that on HP-UX the gcc test will end up 27456ea72052Smrg # making a dummy file named `D' -- because `-MD' means `put the output 27466ea72052Smrg # in D'. 27476ea72052Smrg mkdir conftest.dir 27486ea72052Smrg # Copy depcomp to subdir because otherwise we won't find it if we're 27496ea72052Smrg # using a relative directory. 27506ea72052Smrg cp "$am_depcomp" conftest.dir 27516ea72052Smrg cd conftest.dir 27526ea72052Smrg # We will build objects and dependencies in a subdirectory because 27536ea72052Smrg # it helps to detect inapplicable dependency modes. For instance 27546ea72052Smrg # both Tru64's cc and ICC support -MD to output dependencies as a 27556ea72052Smrg # side effect of compilation, but ICC will put the dependencies in 27566ea72052Smrg # the current directory while Tru64 will put them in the object 27576ea72052Smrg # directory. 27586ea72052Smrg mkdir sub 27596ea72052Smrg 27606ea72052Smrg am_cv_CC_dependencies_compiler_type=none 27616ea72052Smrg if test "$am_compiler_list" = ""; then 27626ea72052Smrg am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 27636ea72052Smrg fi 27646ea72052Smrg for depmode in $am_compiler_list; do 27656ea72052Smrg # Setup a source with many dependencies, because some compilers 27666ea72052Smrg # like to wrap large dependency lists on column 80 (with \), and 27676ea72052Smrg # we should not choose a depcomp mode which is confused by this. 27686ea72052Smrg # 27696ea72052Smrg # We need to recreate these files for each test, as the compiler may 27706ea72052Smrg # overwrite some of them when testing with obscure command lines. 27716ea72052Smrg # This happens at least with the AIX C compiler. 27726ea72052Smrg : > sub/conftest.c 27736ea72052Smrg for i in 1 2 3 4 5 6; do 27746ea72052Smrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 27756ea72052Smrg : > sub/conftst$i.h 27766ea72052Smrg done 27776ea72052Smrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 27786ea72052Smrg 27796ea72052Smrg case $depmode in 27806ea72052Smrg nosideeffect) 27816ea72052Smrg # after this tag, mechanisms are not by side-effect, so they'll 27826ea72052Smrg # only be used when explicitly requested 27836ea72052Smrg if test "x$enable_dependency_tracking" = xyes; then 27846ea72052Smrg continue 27856ea72052Smrg else 27866ea72052Smrg break 27876ea72052Smrg fi 27886ea72052Smrg ;; 27896ea72052Smrg none) break ;; 27906ea72052Smrg esac 27916ea72052Smrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 27926ea72052Smrg # mode. It turns out that the SunPro C++ compiler does not properly 27936ea72052Smrg # handle `-M -o', and we need to detect this. 27946ea72052Smrg if depmode=$depmode \ 27956ea72052Smrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 27966ea72052Smrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 27976ea72052Smrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 27986ea72052Smrg >/dev/null 2>conftest.err && 27996ea72052Smrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 28006ea72052Smrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 28016ea72052Smrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 28026ea72052Smrg # icc doesn't choke on unknown options, it will just issue warnings 28036ea72052Smrg # (even with -Werror). So we grep stderr for any message 28046ea72052Smrg # that says an option was ignored. 28056ea72052Smrg if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else 28066ea72052Smrg am_cv_CC_dependencies_compiler_type=$depmode 28076ea72052Smrg break 28086ea72052Smrg fi 28096ea72052Smrg fi 28106ea72052Smrg done 28116ea72052Smrg 28126ea72052Smrg cd .. 28136ea72052Smrg rm -rf conftest.dir 28146ea72052Smrgelse 28156ea72052Smrg am_cv_CC_dependencies_compiler_type=none 28166ea72052Smrgfi 28176ea72052Smrg 28186ea72052Smrgfi 28196ea72052Smrgecho "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 28206ea72052Smrgecho "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 28216ea72052SmrgCCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 28226ea72052Smrg 28236ea72052Smrg 28246ea72052Smrg 28256ea72052Smrgif 28266ea72052Smrg test "x$enable_dependency_tracking" != xno \ 28276ea72052Smrg && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 28286ea72052Smrg am__fastdepCC_TRUE= 28296ea72052Smrg am__fastdepCC_FALSE='#' 28306ea72052Smrgelse 28316ea72052Smrg am__fastdepCC_TRUE='#' 28326ea72052Smrg am__fastdepCC_FALSE= 28336ea72052Smrgfi 28346ea72052Smrg 28356ea72052Smrg 28366ea72052Smrg# Find a good install program. We prefer a C program (faster), 28376ea72052Smrg# so one script is as good as another. But avoid the broken or 28386ea72052Smrg# incompatible versions: 28396ea72052Smrg# SysV /etc/install, /usr/sbin/install 28406ea72052Smrg# SunOS /usr/etc/install 28416ea72052Smrg# IRIX /sbin/install 28426ea72052Smrg# AIX /bin/install 28436ea72052Smrg# AmigaOS /C/install, which installs bootblocks on floppy discs 28446ea72052Smrg# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 28456ea72052Smrg# AFS /usr/afsws/bin/install, which mishandles nonexistent args 28466ea72052Smrg# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 28476ea72052Smrg# OS/2's system install, which has a completely different semantic 28486ea72052Smrg# ./install, which can be erroneously created by make from ./install.sh. 28496ea72052Smrgecho "$as_me:$LINENO: checking for a BSD-compatible install" >&5 28506ea72052Smrgecho $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 28516ea72052Smrgif test -z "$INSTALL"; then 28526ea72052Smrgif test "${ac_cv_path_install+set}" = set; then 28536ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 28546ea72052Smrgelse 28556ea72052Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28566ea72052Smrgfor as_dir in $PATH 28576ea72052Smrgdo 28586ea72052Smrg IFS=$as_save_IFS 28596ea72052Smrg test -z "$as_dir" && as_dir=. 28606ea72052Smrg # Account for people who put trailing slashes in PATH elements. 28616ea72052Smrgcase $as_dir/ in 28626ea72052Smrg ./ | .// | /cC/* | \ 28636ea72052Smrg /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 28646ea72052Smrg ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 28656ea72052Smrg /usr/ucb/* ) ;; 28666ea72052Smrg *) 28676ea72052Smrg # OSF1 and SCO ODT 3.0 have their own names for install. 28686ea72052Smrg # Don't use installbsd from OSF since it installs stuff as root 28696ea72052Smrg # by default. 28706ea72052Smrg for ac_prog in ginstall scoinst install; do 28716ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 28726ea72052Smrg if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 28736ea72052Smrg if test $ac_prog = install && 28746ea72052Smrg grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 28756ea72052Smrg # AIX install. It has an incompatible calling convention. 28766ea72052Smrg : 28776ea72052Smrg elif test $ac_prog = install && 28786ea72052Smrg grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 28796ea72052Smrg # program-specific install script used by HP pwplus--don't use. 28806ea72052Smrg : 28816ea72052Smrg else 28826ea72052Smrg ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 28836ea72052Smrg break 3 28846ea72052Smrg fi 28856ea72052Smrg fi 28866ea72052Smrg done 28876ea72052Smrg done 28886ea72052Smrg ;; 28896ea72052Smrgesac 28906ea72052Smrgdone 28916ea72052Smrg 28926ea72052Smrg 28936ea72052Smrgfi 28946ea72052Smrg if test "${ac_cv_path_install+set}" = set; then 28956ea72052Smrg INSTALL=$ac_cv_path_install 28966ea72052Smrg else 28976ea72052Smrg # As a last resort, use the slow shell script. We don't cache a 28986ea72052Smrg # path for INSTALL within a source directory, because that will 28996ea72052Smrg # break other packages using the cache if that directory is 29006ea72052Smrg # removed, or if the path is relative. 29016ea72052Smrg INSTALL=$ac_install_sh 29026ea72052Smrg fi 29036ea72052Smrgfi 29046ea72052Smrgecho "$as_me:$LINENO: result: $INSTALL" >&5 29056ea72052Smrgecho "${ECHO_T}$INSTALL" >&6 29066ea72052Smrg 29076ea72052Smrg# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 29086ea72052Smrg# It thinks the first close brace ends the variable substitution. 29096ea72052Smrgtest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 29106ea72052Smrg 29116ea72052Smrgtest -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 29126ea72052Smrg 29136ea72052Smrgtest -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 29146ea72052Smrg 29156ea72052Smrg 29166ea72052Smrg# Checks for pkg-config packages 29176ea72052Smrg 29186ea72052Smrg 29196ea72052Smrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 29206ea72052Smrg if test -n "$ac_tool_prefix"; then 29216ea72052Smrg # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 29226ea72052Smrgset dummy ${ac_tool_prefix}pkg-config; ac_word=$2 29236ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 29246ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 29256ea72052Smrgif test "${ac_cv_path_PKG_CONFIG+set}" = set; then 29266ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 29276ea72052Smrgelse 29286ea72052Smrg case $PKG_CONFIG in 29296ea72052Smrg [\\/]* | ?:[\\/]*) 29306ea72052Smrg ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 29316ea72052Smrg ;; 29326ea72052Smrg *) 29336ea72052Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29346ea72052Smrgfor as_dir in $PATH 29356ea72052Smrgdo 29366ea72052Smrg IFS=$as_save_IFS 29376ea72052Smrg test -z "$as_dir" && as_dir=. 29386ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29396ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29406ea72052Smrg ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 29416ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 29426ea72052Smrg break 2 29436ea72052Smrg fi 29446ea72052Smrgdone 29456ea72052Smrgdone 29466ea72052Smrg 29476ea72052Smrg ;; 29486ea72052Smrgesac 29496ea72052Smrgfi 29506ea72052SmrgPKG_CONFIG=$ac_cv_path_PKG_CONFIG 29516ea72052Smrg 29526ea72052Smrgif test -n "$PKG_CONFIG"; then 29536ea72052Smrg echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 29546ea72052Smrgecho "${ECHO_T}$PKG_CONFIG" >&6 29556ea72052Smrgelse 29566ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 29576ea72052Smrgecho "${ECHO_T}no" >&6 29586ea72052Smrgfi 29596ea72052Smrg 29606ea72052Smrgfi 29616ea72052Smrgif test -z "$ac_cv_path_PKG_CONFIG"; then 29626ea72052Smrg ac_pt_PKG_CONFIG=$PKG_CONFIG 29636ea72052Smrg # Extract the first word of "pkg-config", so it can be a program name with args. 29646ea72052Smrgset dummy pkg-config; ac_word=$2 29656ea72052Smrgecho "$as_me:$LINENO: checking for $ac_word" >&5 29666ea72052Smrgecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6 29676ea72052Smrgif test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then 29686ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 29696ea72052Smrgelse 29706ea72052Smrg case $ac_pt_PKG_CONFIG in 29716ea72052Smrg [\\/]* | ?:[\\/]*) 29726ea72052Smrg ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 29736ea72052Smrg ;; 29746ea72052Smrg *) 29756ea72052Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29766ea72052Smrgfor as_dir in $PATH 29776ea72052Smrgdo 29786ea72052Smrg IFS=$as_save_IFS 29796ea72052Smrg test -z "$as_dir" && as_dir=. 29806ea72052Smrg for ac_exec_ext in '' $ac_executable_extensions; do 29816ea72052Smrg if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29826ea72052Smrg ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 29836ea72052Smrg echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 29846ea72052Smrg break 2 29856ea72052Smrg fi 29866ea72052Smrgdone 29876ea72052Smrgdone 29886ea72052Smrg 29896ea72052Smrg ;; 29906ea72052Smrgesac 29916ea72052Smrgfi 29926ea72052Smrgac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 29936ea72052Smrg 29946ea72052Smrgif test -n "$ac_pt_PKG_CONFIG"; then 29956ea72052Smrg echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 29966ea72052Smrgecho "${ECHO_T}$ac_pt_PKG_CONFIG" >&6 29976ea72052Smrgelse 29986ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 29996ea72052Smrgecho "${ECHO_T}no" >&6 30006ea72052Smrgfi 30016ea72052Smrg 30026ea72052Smrg PKG_CONFIG=$ac_pt_PKG_CONFIG 30036ea72052Smrgelse 30046ea72052Smrg PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 30056ea72052Smrgfi 30066ea72052Smrg 30076ea72052Smrgfi 30086ea72052Smrgif test -n "$PKG_CONFIG"; then 30096ea72052Smrg _pkg_min_version=0.9.0 30106ea72052Smrg echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 30116ea72052Smrgecho $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6 30126ea72052Smrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 30136ea72052Smrg echo "$as_me:$LINENO: result: yes" >&5 30146ea72052Smrgecho "${ECHO_T}yes" >&6 30156ea72052Smrg else 30166ea72052Smrg echo "$as_me:$LINENO: result: no" >&5 30176ea72052Smrgecho "${ECHO_T}no" >&6 30186ea72052Smrg PKG_CONFIG="" 30196ea72052Smrg fi 30206ea72052Smrg 30216ea72052Smrgfi 30226ea72052Smrg 30236ea72052Smrgpkg_failed=no 30246ea72052Smrgecho "$as_me:$LINENO: checking for OCLOCK" >&5 30256ea72052Smrgecho $ECHO_N "checking for OCLOCK... $ECHO_C" >&6 30266ea72052Smrg 30276ea72052Smrgif test -n "$PKG_CONFIG"; then 30286ea72052Smrg if test -n "$OCLOCK_CFLAGS"; then 30296ea72052Smrg pkg_cv_OCLOCK_CFLAGS="$OCLOCK_CFLAGS" 30306ea72052Smrg else 30316ea72052Smrg if test -n "$PKG_CONFIG" && \ 30326ea72052Smrg { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext\"") >&5 30336ea72052Smrg ($PKG_CONFIG --exists --print-errors "x11 xmu xext") 2>&5 30346ea72052Smrg ac_status=$? 30356ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 30366ea72052Smrg (exit $ac_status); }; then 30376ea72052Smrg pkg_cv_OCLOCK_CFLAGS=`$PKG_CONFIG --cflags "x11 xmu xext" 2>/dev/null` 30386ea72052Smrgelse 30396ea72052Smrg pkg_failed=yes 30406ea72052Smrgfi 30416ea72052Smrg fi 30426ea72052Smrgelse 30436ea72052Smrg pkg_failed=untried 30446ea72052Smrgfi 30456ea72052Smrgif test -n "$PKG_CONFIG"; then 30466ea72052Smrg if test -n "$OCLOCK_LIBS"; then 30476ea72052Smrg pkg_cv_OCLOCK_LIBS="$OCLOCK_LIBS" 30486ea72052Smrg else 30496ea72052Smrg if test -n "$PKG_CONFIG" && \ 30506ea72052Smrg { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xmu xext\"") >&5 30516ea72052Smrg ($PKG_CONFIG --exists --print-errors "x11 xmu xext") 2>&5 30526ea72052Smrg ac_status=$? 30536ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 30546ea72052Smrg (exit $ac_status); }; then 30556ea72052Smrg pkg_cv_OCLOCK_LIBS=`$PKG_CONFIG --libs "x11 xmu xext" 2>/dev/null` 30566ea72052Smrgelse 30576ea72052Smrg pkg_failed=yes 30586ea72052Smrgfi 30596ea72052Smrg fi 30606ea72052Smrgelse 30616ea72052Smrg pkg_failed=untried 30626ea72052Smrgfi 30636ea72052Smrg 30646ea72052Smrg 30656ea72052Smrg 30666ea72052Smrgif test $pkg_failed = yes; then 30676ea72052Smrg 30686ea72052Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 30696ea72052Smrg _pkg_short_errors_supported=yes 30706ea72052Smrgelse 30716ea72052Smrg _pkg_short_errors_supported=no 30726ea72052Smrgfi 30736ea72052Smrg if test $_pkg_short_errors_supported = yes; then 30746ea72052Smrg OCLOCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "x11 xmu xext"` 30756ea72052Smrg else 30766ea72052Smrg OCLOCK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "x11 xmu xext"` 30776ea72052Smrg fi 30786ea72052Smrg # Put the nasty error message in config.log where it belongs 30796ea72052Smrg echo "$OCLOCK_PKG_ERRORS" >&5 30806ea72052Smrg 30816ea72052Smrg { { echo "$as_me:$LINENO: error: Package requirements (x11 xmu xext) were not met: 30826ea72052Smrg 30836ea72052Smrg$OCLOCK_PKG_ERRORS 30846ea72052Smrg 30856ea72052SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 30866ea72052Smrginstalled software in a non-standard prefix. 30876ea72052Smrg 30886ea72052SmrgAlternatively, you may set the environment variables OCLOCK_CFLAGS 30896ea72052Smrgand OCLOCK_LIBS to avoid the need to call pkg-config. 30906ea72052SmrgSee the pkg-config man page for more details. 30916ea72052Smrg" >&5 30926ea72052Smrgecho "$as_me: error: Package requirements (x11 xmu xext) were not met: 30936ea72052Smrg 30946ea72052Smrg$OCLOCK_PKG_ERRORS 30956ea72052Smrg 30966ea72052SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 30976ea72052Smrginstalled software in a non-standard prefix. 30986ea72052Smrg 30996ea72052SmrgAlternatively, you may set the environment variables OCLOCK_CFLAGS 31006ea72052Smrgand OCLOCK_LIBS to avoid the need to call pkg-config. 31016ea72052SmrgSee the pkg-config man page for more details. 31026ea72052Smrg" >&2;} 31036ea72052Smrg { (exit 1); exit 1; }; } 31046ea72052Smrgelif test $pkg_failed = untried; then 31056ea72052Smrg { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 31066ea72052Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 31076ea72052Smrgpath to pkg-config. 31086ea72052Smrg 31096ea72052SmrgAlternatively, you may set the environment variables OCLOCK_CFLAGS 31106ea72052Smrgand OCLOCK_LIBS to avoid the need to call pkg-config. 31116ea72052SmrgSee the pkg-config man page for more details. 31126ea72052Smrg 31136ea72052SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 31146ea72052SmrgSee \`config.log' for more details." >&5 31156ea72052Smrgecho "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 31166ea72052Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 31176ea72052Smrgpath to pkg-config. 31186ea72052Smrg 31196ea72052SmrgAlternatively, you may set the environment variables OCLOCK_CFLAGS 31206ea72052Smrgand OCLOCK_LIBS to avoid the need to call pkg-config. 31216ea72052SmrgSee the pkg-config man page for more details. 31226ea72052Smrg 31236ea72052SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 31246ea72052SmrgSee \`config.log' for more details." >&2;} 31256ea72052Smrg { (exit 1); exit 1; }; } 31266ea72052Smrgelse 31276ea72052Smrg OCLOCK_CFLAGS=$pkg_cv_OCLOCK_CFLAGS 31286ea72052Smrg OCLOCK_LIBS=$pkg_cv_OCLOCK_LIBS 31296ea72052Smrg echo "$as_me:$LINENO: result: yes" >&5 31306ea72052Smrgecho "${ECHO_T}yes" >&6 31316ea72052Smrg : 31326ea72052Smrgfi 31336ea72052Smrg 31346ea72052Smrg 31356ea72052Smrg 31366ea72052Smrg 31376ea72052Smrgpkg_failed=no 31386ea72052Smrgecho "$as_me:$LINENO: checking for APPDEFS" >&5 31396ea72052Smrgecho $ECHO_N "checking for APPDEFS... $ECHO_C" >&6 31406ea72052Smrg 31416ea72052Smrgif test -n "$PKG_CONFIG"; then 31426ea72052Smrg if test -n "$APPDEFS_CFLAGS"; then 31436ea72052Smrg pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS" 31446ea72052Smrg else 31456ea72052Smrg if test -n "$PKG_CONFIG" && \ 31466ea72052Smrg { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 31476ea72052Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 31486ea72052Smrg ac_status=$? 31496ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 31506ea72052Smrg (exit $ac_status); }; then 31516ea72052Smrg pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null` 31526ea72052Smrgelse 31536ea72052Smrg pkg_failed=yes 31546ea72052Smrgfi 31556ea72052Smrg fi 31566ea72052Smrgelse 31576ea72052Smrg pkg_failed=untried 31586ea72052Smrgfi 31596ea72052Smrgif test -n "$PKG_CONFIG"; then 31606ea72052Smrg if test -n "$APPDEFS_LIBS"; then 31616ea72052Smrg pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS" 31626ea72052Smrg else 31636ea72052Smrg if test -n "$PKG_CONFIG" && \ 31646ea72052Smrg { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xt\"") >&5 31656ea72052Smrg ($PKG_CONFIG --exists --print-errors "xt") 2>&5 31666ea72052Smrg ac_status=$? 31676ea72052Smrg echo "$as_me:$LINENO: \$? = $ac_status" >&5 31686ea72052Smrg (exit $ac_status); }; then 31696ea72052Smrg pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null` 31706ea72052Smrgelse 31716ea72052Smrg pkg_failed=yes 31726ea72052Smrgfi 31736ea72052Smrg fi 31746ea72052Smrgelse 31756ea72052Smrg pkg_failed=untried 31766ea72052Smrgfi 31776ea72052Smrg 31786ea72052Smrg 31796ea72052Smrg 31806ea72052Smrgif test $pkg_failed = yes; then 31816ea72052Smrg 31826ea72052Smrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 31836ea72052Smrg _pkg_short_errors_supported=yes 31846ea72052Smrgelse 31856ea72052Smrg _pkg_short_errors_supported=no 31866ea72052Smrgfi 31876ea72052Smrg if test $_pkg_short_errors_supported = yes; then 31886ea72052Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xt"` 31896ea72052Smrg else 31906ea72052Smrg APPDEFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xt"` 31916ea72052Smrg fi 31926ea72052Smrg # Put the nasty error message in config.log where it belongs 31936ea72052Smrg echo "$APPDEFS_PKG_ERRORS" >&5 31946ea72052Smrg 31956ea72052Smrg { { echo "$as_me:$LINENO: error: Package requirements (xt) were not met: 31966ea72052Smrg 31976ea72052Smrg$APPDEFS_PKG_ERRORS 31986ea72052Smrg 31996ea72052SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 32006ea72052Smrginstalled software in a non-standard prefix. 32016ea72052Smrg 32026ea72052SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 32036ea72052Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 32046ea72052SmrgSee the pkg-config man page for more details. 32056ea72052Smrg" >&5 32066ea72052Smrgecho "$as_me: error: Package requirements (xt) were not met: 32076ea72052Smrg 32086ea72052Smrg$APPDEFS_PKG_ERRORS 32096ea72052Smrg 32106ea72052SmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 32116ea72052Smrginstalled software in a non-standard prefix. 32126ea72052Smrg 32136ea72052SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 32146ea72052Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 32156ea72052SmrgSee the pkg-config man page for more details. 32166ea72052Smrg" >&2;} 32176ea72052Smrg { (exit 1); exit 1; }; } 32186ea72052Smrgelif test $pkg_failed = untried; then 32196ea72052Smrg { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it 32206ea72052Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 32216ea72052Smrgpath to pkg-config. 32226ea72052Smrg 32236ea72052SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 32246ea72052Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 32256ea72052SmrgSee the pkg-config man page for more details. 32266ea72052Smrg 32276ea72052SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 32286ea72052SmrgSee \`config.log' for more details." >&5 32296ea72052Smrgecho "$as_me: error: The pkg-config script could not be found or is too old. Make sure it 32306ea72052Smrgis in your PATH or set the PKG_CONFIG environment variable to the full 32316ea72052Smrgpath to pkg-config. 32326ea72052Smrg 32336ea72052SmrgAlternatively, you may set the environment variables APPDEFS_CFLAGS 32346ea72052Smrgand APPDEFS_LIBS to avoid the need to call pkg-config. 32356ea72052SmrgSee the pkg-config man page for more details. 32366ea72052Smrg 32376ea72052SmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. 32386ea72052SmrgSee \`config.log' for more details." >&2;} 32396ea72052Smrg { (exit 1); exit 1; }; } 32406ea72052Smrgelse 32416ea72052Smrg APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS 32426ea72052Smrg APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS 32436ea72052Smrg echo "$as_me:$LINENO: result: yes" >&5 32446ea72052Smrgecho "${ECHO_T}yes" >&6 32456ea72052Smrg : 32466ea72052Smrgfi 32476ea72052Smrgappdefaultdir=$(pkg-config --variable=appdefaultdir xt) 32486ea72052Smrg 32496ea72052Smrg 32506ea72052Smrg# Make sure we can run config.sub. 32516ea72052Smrg$ac_config_sub sun4 >/dev/null 2>&1 || 32526ea72052Smrg { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 32536ea72052Smrgecho "$as_me: error: cannot run $ac_config_sub" >&2;} 32546ea72052Smrg { (exit 1); exit 1; }; } 32556ea72052Smrg 32566ea72052Smrgecho "$as_me:$LINENO: checking build system type" >&5 32576ea72052Smrgecho $ECHO_N "checking build system type... $ECHO_C" >&6 32586ea72052Smrgif test "${ac_cv_build+set}" = set; then 32596ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 32606ea72052Smrgelse 32616ea72052Smrg ac_cv_build_alias=$build_alias 32626ea72052Smrgtest -z "$ac_cv_build_alias" && 32636ea72052Smrg ac_cv_build_alias=`$ac_config_guess` 32646ea72052Smrgtest -z "$ac_cv_build_alias" && 32656ea72052Smrg { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 32666ea72052Smrgecho "$as_me: error: cannot guess build type; you must specify one" >&2;} 32676ea72052Smrg { (exit 1); exit 1; }; } 32686ea72052Smrgac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 32696ea72052Smrg { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 32706ea72052Smrgecho "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 32716ea72052Smrg { (exit 1); exit 1; }; } 32726ea72052Smrg 32736ea72052Smrgfi 32746ea72052Smrgecho "$as_me:$LINENO: result: $ac_cv_build" >&5 32756ea72052Smrgecho "${ECHO_T}$ac_cv_build" >&6 32766ea72052Smrgbuild=$ac_cv_build 32776ea72052Smrgbuild_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 32786ea72052Smrgbuild_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 32796ea72052Smrgbuild_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 32806ea72052Smrg 32816ea72052Smrg 32826ea72052Smrgecho "$as_me:$LINENO: checking host system type" >&5 32836ea72052Smrgecho $ECHO_N "checking host system type... $ECHO_C" >&6 32846ea72052Smrgif test "${ac_cv_host+set}" = set; then 32856ea72052Smrg echo $ECHO_N "(cached) $ECHO_C" >&6 32866ea72052Smrgelse 32876ea72052Smrg ac_cv_host_alias=$host_alias 32886ea72052Smrgtest -z "$ac_cv_host_alias" && 32896ea72052Smrg ac_cv_host_alias=$ac_cv_build_alias 32906ea72052Smrgac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 32916ea72052Smrg { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 32926ea72052Smrgecho "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 32936ea72052Smrg { (exit 1); exit 1; }; } 32946ea72052Smrg 32956ea72052Smrgfi 32966ea72052Smrgecho "$as_me:$LINENO: result: $ac_cv_host" >&5 32976ea72052Smrgecho "${ECHO_T}$ac_cv_host" >&6 32986ea72052Smrghost=$ac_cv_host 32996ea72052Smrghost_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 33006ea72052Smrghost_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 33016ea72052Smrghost_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 33026ea72052Smrg 33036ea72052Smrg 33046ea72052Smrg 33056ea72052Smrg 33066ea72052Smrg 33076ea72052Smrgif test x$APP_MAN_SUFFIX = x ; then 33086ea72052Smrg case $host_os in 33096ea72052Smrg linux*) APP_MAN_SUFFIX=1x ;; 33106ea72052Smrg *) APP_MAN_SUFFIX=1 ;; 33116ea72052Smrg esac 33126ea72052Smrgfi 33136ea72052Smrgif test x$APP_MAN_DIR = x ; then 33146ea72052Smrg case $host_os in 33156ea72052Smrg linux*) APP_MAN_DIR='$(mandir)/man1' ;; 33166ea72052Smrg *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;; 33176ea72052Smrg esac 33186ea72052Smrgfi 33196ea72052Smrg 33206ea72052Smrgif test x$LIB_MAN_SUFFIX = x ; then 33216ea72052Smrg case $host_os in 33226ea72052Smrg linux*) LIB_MAN_SUFFIX=3x ;; 33236ea72052Smrg *) LIB_MAN_SUFFIX=3 ;; 33246ea72052Smrg esac 33256ea72052Smrgfi 33266ea72052Smrgif test x$LIB_MAN_DIR = x ; then 33276ea72052Smrg case $host_os in 33286ea72052Smrg linux*) LIB_MAN_DIR='$(mandir)/man3' ;; 33296ea72052Smrg *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;; 33306ea72052Smrg esac 33316ea72052Smrgfi 33326ea72052Smrg 33336ea72052Smrgif test x$FILE_MAN_SUFFIX = x ; then 33346ea72052Smrg case $host_os in 33356ea72052Smrg linux*) FILE_MAN_SUFFIX=5x ;; 33366ea72052Smrg solaris*) FILE_MAN_SUFFIX=4 ;; 33376ea72052Smrg *) FILE_MAN_SUFFIX=5 ;; 33386ea72052Smrg esac 33396ea72052Smrgfi 33406ea72052Smrgif test x$FILE_MAN_DIR = x ; then 33416ea72052Smrg case $host_os in 33426ea72052Smrg linux*) FILE_MAN_DIR='$(mandir)/man5' ;; 33436ea72052Smrg *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;; 33446ea72052Smrg esac 33456ea72052Smrgfi 33466ea72052Smrg 33476ea72052Smrg# In Imake's linux.cf, the misc man suffix & dir was only changed for 33486ea72052Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here 33496ea72052Smrgif test x$MISC_MAN_SUFFIX = x ; then 33506ea72052Smrg case $host_os in 33516ea72052Smrg# linux*) MISC_MAN_SUFFIX=7x ;; 33526ea72052Smrg solaris*) MISC_MAN_SUFFIX=5 ;; 33536ea72052Smrg *) MISC_MAN_SUFFIX=7 ;; 33546ea72052Smrg esac 33556ea72052Smrgfi 33566ea72052Smrgif test x$MISC_MAN_DIR = x ; then 33576ea72052Smrg case $host_os in 33586ea72052Smrg# linux*) MISC_MAN_DIR='$(mandir)/man7' ;; 33596ea72052Smrg *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;; 33606ea72052Smrg esac 33616ea72052Smrgfi 33626ea72052Smrg 33636ea72052Smrg# In Imake's linux.cf, the driver man suffix & dir was only changed for 33646ea72052Smrg# LinuxDebian, not other Linuxes, so we leave it unchanged here 33656ea72052Smrgif test x$DRIVER_MAN_SUFFIX = x ; then 33666ea72052Smrg case $host_os in 33676ea72052Smrg# linux*) DRIVER_MAN_SUFFIX=4x ;; 33686ea72052Smrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 33696ea72052Smrg *) DRIVER_MAN_SUFFIX=4 ;; 33706ea72052Smrg esac 33716ea72052Smrgfi 33726ea72052Smrgif test x$DRIVER_MAN_DIR = x ; then 33736ea72052Smrg case $host_os in 33746ea72052Smrg# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;; 33756ea72052Smrg *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;; 33766ea72052Smrg esac 33776ea72052Smrgfi 33786ea72052Smrg 33796ea72052Smrgif test x$ADMIN_MAN_SUFFIX = x ; then 33806ea72052Smrg case $host_os in 33816ea72052Smrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 33826ea72052Smrg *) ADMIN_MAN_SUFFIX=8 ;; 33836ea72052Smrg esac 33846ea72052Smrgfi 33856ea72052Smrgif test x$ADMIN_MAN_DIR = x ; then 33866ea72052Smrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 33876ea72052Smrgfi 33886ea72052Smrg 33896ea72052Smrg 33906ea72052Smrg 33916ea72052Smrg 33926ea72052Smrg 33936ea72052Smrg 33946ea72052Smrg 33956ea72052Smrg 33966ea72052Smrg 33976ea72052Smrg 33986ea72052Smrg 33996ea72052Smrg 34006ea72052Smrg 34016ea72052Smrg 34026ea72052Smrg 34036ea72052Smrg 34046ea72052Smrg 34056ea72052Smrg# Check whether --with-release-version or --without-release-version was given. 34066ea72052Smrgif test "${with_release_version+set}" = set; then 34076ea72052Smrg withval="$with_release_version" 34086ea72052Smrg RELEASE_VERSION="$withval" 34096ea72052Smrgelse 34106ea72052Smrg RELEASE_VERSION="" 34116ea72052Smrgfi; 34126ea72052Smrg if test "x$RELEASE_VERSION" != "x"; then 34136ea72052Smrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 34146ea72052Smrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 34156ea72052Smrg { echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5 34166ea72052Smrgecho "$as_me: Building with package name set to $PACKAGE" >&6;} 34176ea72052Smrg fi 34186ea72052Smrg 34196ea72052Smrg 34206ea72052Smrg ac_config_files="$ac_config_files Makefile" 34216ea72052Smrgcat >confcache <<\_ACEOF 34226ea72052Smrg# This file is a shell script that caches the results of configure 34236ea72052Smrg# tests run on this system so they can be shared between configure 34246ea72052Smrg# scripts and configure runs, see configure's option --config-cache. 34256ea72052Smrg# It is not useful on other systems. If it contains results you don't 34266ea72052Smrg# want to keep, you may remove or edit it. 34276ea72052Smrg# 34286ea72052Smrg# config.status only pays attention to the cache file if you give it 34296ea72052Smrg# the --recheck option to rerun configure. 34306ea72052Smrg# 34316ea72052Smrg# `ac_cv_env_foo' variables (set or unset) will be overridden when 34326ea72052Smrg# loading this file, other *unset* `ac_cv_foo' will be assigned the 34336ea72052Smrg# following values. 34346ea72052Smrg 34356ea72052Smrg_ACEOF 34366ea72052Smrg 34376ea72052Smrg# The following way of writing the cache mishandles newlines in values, 34386ea72052Smrg# but we know of no workaround that is simple, portable, and efficient. 34396ea72052Smrg# So, don't put newlines in cache variables' values. 34406ea72052Smrg# Ultrix sh set writes to stderr and can't be redirected directly, 34416ea72052Smrg# and sets the high bit in the cache file unless we assign to the vars. 34426ea72052Smrg{ 34436ea72052Smrg (set) 2>&1 | 34446ea72052Smrg case `(ac_space=' '; set | grep ac_space) 2>&1` in 34456ea72052Smrg *ac_space=\ *) 34466ea72052Smrg # `set' does not quote correctly, so add quotes (double-quote 34476ea72052Smrg # substitution turns \\\\ into \\, and sed turns \\ into \). 34486ea72052Smrg sed -n \ 34496ea72052Smrg "s/'/'\\\\''/g; 34506ea72052Smrg s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 34516ea72052Smrg ;; 34526ea72052Smrg *) 34536ea72052Smrg # `set' quotes correctly as required by POSIX, so do not add quotes. 34546ea72052Smrg sed -n \ 34556ea72052Smrg "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 34566ea72052Smrg ;; 34576ea72052Smrg esac; 34586ea72052Smrg} | 34596ea72052Smrg sed ' 34606ea72052Smrg t clear 34616ea72052Smrg : clear 34626ea72052Smrg s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 34636ea72052Smrg t end 34646ea72052Smrg /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 34656ea72052Smrg : end' >>confcache 34666ea72052Smrgif diff $cache_file confcache >/dev/null 2>&1; then :; else 34676ea72052Smrg if test -w $cache_file; then 34686ea72052Smrg test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 34696ea72052Smrg cat confcache >$cache_file 34706ea72052Smrg else 34716ea72052Smrg echo "not updating unwritable cache $cache_file" 34726ea72052Smrg fi 34736ea72052Smrgfi 34746ea72052Smrgrm -f confcache 34756ea72052Smrg 34766ea72052Smrgtest "x$prefix" = xNONE && prefix=$ac_default_prefix 34776ea72052Smrg# Let make expand exec_prefix. 34786ea72052Smrgtest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 34796ea72052Smrg 34806ea72052Smrg# VPATH may cause trouble with some makes, so we remove $(srcdir), 34816ea72052Smrg# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 34826ea72052Smrg# trailing colons and then remove the whole line if VPATH becomes empty 34836ea72052Smrg# (actually we leave an empty line to preserve line numbers). 34846ea72052Smrgif test "x$srcdir" = x.; then 34856ea72052Smrg ac_vpsub='/^[ ]*VPATH[ ]*=/{ 34866ea72052Smrgs/:*\$(srcdir):*/:/; 34876ea72052Smrgs/:*\${srcdir}:*/:/; 34886ea72052Smrgs/:*@srcdir@:*/:/; 34896ea72052Smrgs/^\([^=]*=[ ]*\):*/\1/; 34906ea72052Smrgs/:*$//; 34916ea72052Smrgs/^[^=]*=[ ]*$//; 34926ea72052Smrg}' 34936ea72052Smrgfi 34946ea72052Smrg 34956ea72052SmrgDEFS=-DHAVE_CONFIG_H 34966ea72052Smrg 34976ea72052Smrgac_libobjs= 34986ea72052Smrgac_ltlibobjs= 34996ea72052Smrgfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 35006ea72052Smrg # 1. Remove the extension, and $U if already installed. 35016ea72052Smrg ac_i=`echo "$ac_i" | 35026ea72052Smrg sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 35036ea72052Smrg # 2. Add them. 35046ea72052Smrg ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 35056ea72052Smrg ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 35066ea72052Smrgdone 35076ea72052SmrgLIBOBJS=$ac_libobjs 35086ea72052Smrg 35096ea72052SmrgLTLIBOBJS=$ac_ltlibobjs 35106ea72052Smrg 35116ea72052Smrg 35126ea72052Smrgif test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 35136ea72052Smrg { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 35146ea72052SmrgUsually this means the macro was only invoked conditionally." >&5 35156ea72052Smrgecho "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 35166ea72052SmrgUsually this means the macro was only invoked conditionally." >&2;} 35176ea72052Smrg { (exit 1); exit 1; }; } 35186ea72052Smrgfi 35196ea72052Smrgif test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 35206ea72052Smrg { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 35216ea72052SmrgUsually this means the macro was only invoked conditionally." >&5 35226ea72052Smrgecho "$as_me: error: conditional \"AMDEP\" was never defined. 35236ea72052SmrgUsually this means the macro was only invoked conditionally." >&2;} 35246ea72052Smrg { (exit 1); exit 1; }; } 35256ea72052Smrgfi 35266ea72052Smrgif test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 35276ea72052Smrg { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 35286ea72052SmrgUsually this means the macro was only invoked conditionally." >&5 35296ea72052Smrgecho "$as_me: error: conditional \"am__fastdepCC\" was never defined. 35306ea72052SmrgUsually this means the macro was only invoked conditionally." >&2;} 35316ea72052Smrg { (exit 1); exit 1; }; } 35326ea72052Smrgfi 35336ea72052Smrg 35346ea72052Smrg: ${CONFIG_STATUS=./config.status} 35356ea72052Smrgac_clean_files_save=$ac_clean_files 35366ea72052Smrgac_clean_files="$ac_clean_files $CONFIG_STATUS" 35376ea72052Smrg{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 35386ea72052Smrgecho "$as_me: creating $CONFIG_STATUS" >&6;} 35396ea72052Smrgcat >$CONFIG_STATUS <<_ACEOF 35406ea72052Smrg#! $SHELL 35416ea72052Smrg# Generated by $as_me. 35426ea72052Smrg# Run this file to recreate the current configuration. 35436ea72052Smrg# Compiler output produced by configure, useful for debugging 35446ea72052Smrg# configure, is in config.log if it exists. 35456ea72052Smrg 35466ea72052Smrgdebug=false 35476ea72052Smrgac_cs_recheck=false 35486ea72052Smrgac_cs_silent=false 35496ea72052SmrgSHELL=\${CONFIG_SHELL-$SHELL} 35506ea72052Smrg_ACEOF 35516ea72052Smrg 35526ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 35536ea72052Smrg## --------------------- ## 35546ea72052Smrg## M4sh Initialization. ## 35556ea72052Smrg## --------------------- ## 35566ea72052Smrg 35576ea72052Smrg# Be Bourne compatible 35586ea72052Smrgif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 35596ea72052Smrg emulate sh 35606ea72052Smrg NULLCMD=: 35616ea72052Smrg # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 35626ea72052Smrg # is contrary to our usage. Disable this feature. 35636ea72052Smrg alias -g '${1+"$@"}'='"$@"' 35646ea72052Smrgelif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 35656ea72052Smrg set -o posix 35666ea72052Smrgfi 35676ea72052SmrgDUALCASE=1; export DUALCASE # for MKS sh 35686ea72052Smrg 35696ea72052Smrg# Support unset when possible. 35706ea72052Smrgif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 35716ea72052Smrg as_unset=unset 35726ea72052Smrgelse 35736ea72052Smrg as_unset=false 35746ea72052Smrgfi 35756ea72052Smrg 35766ea72052Smrg 35776ea72052Smrg# Work around bugs in pre-3.0 UWIN ksh. 35786ea72052Smrg$as_unset ENV MAIL MAILPATH 35796ea72052SmrgPS1='$ ' 35806ea72052SmrgPS2='> ' 35816ea72052SmrgPS4='+ ' 35826ea72052Smrg 35836ea72052Smrg# NLS nuisances. 35846ea72052Smrgfor as_var in \ 35856ea72052Smrg LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 35866ea72052Smrg LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 35876ea72052Smrg LC_TELEPHONE LC_TIME 35886ea72052Smrgdo 35896ea72052Smrg if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 35906ea72052Smrg eval $as_var=C; export $as_var 35916ea72052Smrg else 35926ea72052Smrg $as_unset $as_var 35936ea72052Smrg fi 35946ea72052Smrgdone 35956ea72052Smrg 35966ea72052Smrg# Required to use basename. 35976ea72052Smrgif expr a : '\(a\)' >/dev/null 2>&1; then 35986ea72052Smrg as_expr=expr 35996ea72052Smrgelse 36006ea72052Smrg as_expr=false 36016ea72052Smrgfi 36026ea72052Smrg 36036ea72052Smrgif (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 36046ea72052Smrg as_basename=basename 36056ea72052Smrgelse 36066ea72052Smrg as_basename=false 36076ea72052Smrgfi 36086ea72052Smrg 36096ea72052Smrg 36106ea72052Smrg# Name of the executable. 36116ea72052Smrgas_me=`$as_basename "$0" || 36126ea72052Smrg$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 36136ea72052Smrg X"$0" : 'X\(//\)$' \| \ 36146ea72052Smrg X"$0" : 'X\(/\)$' \| \ 36156ea72052Smrg . : '\(.\)' 2>/dev/null || 36166ea72052Smrgecho X/"$0" | 36176ea72052Smrg sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 36186ea72052Smrg /^X\/\(\/\/\)$/{ s//\1/; q; } 36196ea72052Smrg /^X\/\(\/\).*/{ s//\1/; q; } 36206ea72052Smrg s/.*/./; q'` 36216ea72052Smrg 36226ea72052Smrg 36236ea72052Smrg# PATH needs CR, and LINENO needs CR and PATH. 36246ea72052Smrg# Avoid depending upon Character Ranges. 36256ea72052Smrgas_cr_letters='abcdefghijklmnopqrstuvwxyz' 36266ea72052Smrgas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36276ea72052Smrgas_cr_Letters=$as_cr_letters$as_cr_LETTERS 36286ea72052Smrgas_cr_digits='0123456789' 36296ea72052Smrgas_cr_alnum=$as_cr_Letters$as_cr_digits 36306ea72052Smrg 36316ea72052Smrg# The user is always right. 36326ea72052Smrgif test "${PATH_SEPARATOR+set}" != set; then 36336ea72052Smrg echo "#! /bin/sh" >conf$$.sh 36346ea72052Smrg echo "exit 0" >>conf$$.sh 36356ea72052Smrg chmod +x conf$$.sh 36366ea72052Smrg if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 36376ea72052Smrg PATH_SEPARATOR=';' 36386ea72052Smrg else 36396ea72052Smrg PATH_SEPARATOR=: 36406ea72052Smrg fi 36416ea72052Smrg rm -f conf$$.sh 36426ea72052Smrgfi 36436ea72052Smrg 36446ea72052Smrg 36456ea72052Smrg as_lineno_1=$LINENO 36466ea72052Smrg as_lineno_2=$LINENO 36476ea72052Smrg as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 36486ea72052Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 36496ea72052Smrg test "x$as_lineno_3" = "x$as_lineno_2" || { 36506ea72052Smrg # Find who we are. Look in the path if we contain no path at all 36516ea72052Smrg # relative or not. 36526ea72052Smrg case $0 in 36536ea72052Smrg *[\\/]* ) as_myself=$0 ;; 36546ea72052Smrg *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36556ea72052Smrgfor as_dir in $PATH 36566ea72052Smrgdo 36576ea72052Smrg IFS=$as_save_IFS 36586ea72052Smrg test -z "$as_dir" && as_dir=. 36596ea72052Smrg test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 36606ea72052Smrgdone 36616ea72052Smrg 36626ea72052Smrg ;; 36636ea72052Smrg esac 36646ea72052Smrg # We did not find ourselves, most probably we were run as `sh COMMAND' 36656ea72052Smrg # in which case we are not to be found in the path. 36666ea72052Smrg if test "x$as_myself" = x; then 36676ea72052Smrg as_myself=$0 36686ea72052Smrg fi 36696ea72052Smrg if test ! -f "$as_myself"; then 36706ea72052Smrg { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 36716ea72052Smrgecho "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 36726ea72052Smrg { (exit 1); exit 1; }; } 36736ea72052Smrg fi 36746ea72052Smrg case $CONFIG_SHELL in 36756ea72052Smrg '') 36766ea72052Smrg as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36776ea72052Smrgfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 36786ea72052Smrgdo 36796ea72052Smrg IFS=$as_save_IFS 36806ea72052Smrg test -z "$as_dir" && as_dir=. 36816ea72052Smrg for as_base in sh bash ksh sh5; do 36826ea72052Smrg case $as_dir in 36836ea72052Smrg /*) 36846ea72052Smrg if ("$as_dir/$as_base" -c ' 36856ea72052Smrg as_lineno_1=$LINENO 36866ea72052Smrg as_lineno_2=$LINENO 36876ea72052Smrg as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 36886ea72052Smrg test "x$as_lineno_1" != "x$as_lineno_2" && 36896ea72052Smrg test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 36906ea72052Smrg $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 36916ea72052Smrg $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 36926ea72052Smrg CONFIG_SHELL=$as_dir/$as_base 36936ea72052Smrg export CONFIG_SHELL 36946ea72052Smrg exec "$CONFIG_SHELL" "$0" ${1+"$@"} 36956ea72052Smrg fi;; 36966ea72052Smrg esac 36976ea72052Smrg done 36986ea72052Smrgdone 36996ea72052Smrg;; 37006ea72052Smrg esac 37016ea72052Smrg 37026ea72052Smrg # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 37036ea72052Smrg # uniformly replaced by the line number. The first 'sed' inserts a 37046ea72052Smrg # line-number line before each line; the second 'sed' does the real 37056ea72052Smrg # work. The second script uses 'N' to pair each line-number line 37066ea72052Smrg # with the numbered line, and appends trailing '-' during 37076ea72052Smrg # substitution so that $LINENO is not a special case at line end. 37086ea72052Smrg # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 37096ea72052Smrg # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 37106ea72052Smrg sed '=' <$as_myself | 37116ea72052Smrg sed ' 37126ea72052Smrg N 37136ea72052Smrg s,$,-, 37146ea72052Smrg : loop 37156ea72052Smrg s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 37166ea72052Smrg t loop 37176ea72052Smrg s,-$,, 37186ea72052Smrg s,^['$as_cr_digits']*\n,, 37196ea72052Smrg ' >$as_me.lineno && 37206ea72052Smrg chmod +x $as_me.lineno || 37216ea72052Smrg { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 37226ea72052Smrgecho "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 37236ea72052Smrg { (exit 1); exit 1; }; } 37246ea72052Smrg 37256ea72052Smrg # Don't try to exec as it changes $[0], causing all sort of problems 37266ea72052Smrg # (the dirname of $[0] is not the place where we might find the 37276ea72052Smrg # original and so on. Autoconf is especially sensible to this). 37286ea72052Smrg . ./$as_me.lineno 37296ea72052Smrg # Exit status is that of the last command. 37306ea72052Smrg exit 37316ea72052Smrg} 37326ea72052Smrg 37336ea72052Smrg 37346ea72052Smrgcase `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 37356ea72052Smrg *c*,-n*) ECHO_N= ECHO_C=' 37366ea72052Smrg' ECHO_T=' ' ;; 37376ea72052Smrg *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 37386ea72052Smrg *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 37396ea72052Smrgesac 37406ea72052Smrg 37416ea72052Smrgif expr a : '\(a\)' >/dev/null 2>&1; then 37426ea72052Smrg as_expr=expr 37436ea72052Smrgelse 37446ea72052Smrg as_expr=false 37456ea72052Smrgfi 37466ea72052Smrg 37476ea72052Smrgrm -f conf$$ conf$$.exe conf$$.file 37486ea72052Smrgecho >conf$$.file 37496ea72052Smrgif ln -s conf$$.file conf$$ 2>/dev/null; then 37506ea72052Smrg # We could just check for DJGPP; but this test a) works b) is more generic 37516ea72052Smrg # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 37526ea72052Smrg if test -f conf$$.exe; then 37536ea72052Smrg # Don't use ln at all; we don't have any links 37546ea72052Smrg as_ln_s='cp -p' 37556ea72052Smrg else 37566ea72052Smrg as_ln_s='ln -s' 37576ea72052Smrg fi 37586ea72052Smrgelif ln conf$$.file conf$$ 2>/dev/null; then 37596ea72052Smrg as_ln_s=ln 37606ea72052Smrgelse 37616ea72052Smrg as_ln_s='cp -p' 37626ea72052Smrgfi 37636ea72052Smrgrm -f conf$$ conf$$.exe conf$$.file 37646ea72052Smrg 37656ea72052Smrgif mkdir -p . 2>/dev/null; then 37666ea72052Smrg as_mkdir_p=: 37676ea72052Smrgelse 37686ea72052Smrg test -d ./-p && rmdir ./-p 37696ea72052Smrg as_mkdir_p=false 37706ea72052Smrgfi 37716ea72052Smrg 37726ea72052Smrgas_executable_p="test -f" 37736ea72052Smrg 37746ea72052Smrg# Sed expression to map a string onto a valid CPP name. 37756ea72052Smrgas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 37766ea72052Smrg 37776ea72052Smrg# Sed expression to map a string onto a valid variable name. 37786ea72052Smrgas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 37796ea72052Smrg 37806ea72052Smrg 37816ea72052Smrg# IFS 37826ea72052Smrg# We need space, tab and new line, in precisely that order. 37836ea72052Smrgas_nl=' 37846ea72052Smrg' 37856ea72052SmrgIFS=" $as_nl" 37866ea72052Smrg 37876ea72052Smrg# CDPATH. 37886ea72052Smrg$as_unset CDPATH 37896ea72052Smrg 37906ea72052Smrgexec 6>&1 37916ea72052Smrg 37926ea72052Smrg# Open the log real soon, to keep \$[0] and so on meaningful, and to 37936ea72052Smrg# report actual input values of CONFIG_FILES etc. instead of their 37946ea72052Smrg# values after options handling. Logging --version etc. is OK. 37956ea72052Smrgexec 5>>config.log 37966ea72052Smrg{ 37976ea72052Smrg echo 37986ea72052Smrg sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 37996ea72052Smrg## Running $as_me. ## 38006ea72052Smrg_ASBOX 38016ea72052Smrg} >&5 38026ea72052Smrgcat >&5 <<_CSEOF 38036ea72052Smrg 38046ea72052SmrgThis file was extended by oclock $as_me 1.0.1, which was 38056ea72052Smrggenerated by GNU Autoconf 2.59. Invocation command line was 38066ea72052Smrg 38076ea72052Smrg CONFIG_FILES = $CONFIG_FILES 38086ea72052Smrg CONFIG_HEADERS = $CONFIG_HEADERS 38096ea72052Smrg CONFIG_LINKS = $CONFIG_LINKS 38106ea72052Smrg CONFIG_COMMANDS = $CONFIG_COMMANDS 38116ea72052Smrg $ $0 $@ 38126ea72052Smrg 38136ea72052Smrg_CSEOF 38146ea72052Smrgecho "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 38156ea72052Smrgecho >&5 38166ea72052Smrg_ACEOF 38176ea72052Smrg 38186ea72052Smrg# Files that config.status was made for. 38196ea72052Smrgif test -n "$ac_config_files"; then 38206ea72052Smrg echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 38216ea72052Smrgfi 38226ea72052Smrg 38236ea72052Smrgif test -n "$ac_config_headers"; then 38246ea72052Smrg echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 38256ea72052Smrgfi 38266ea72052Smrg 38276ea72052Smrgif test -n "$ac_config_links"; then 38286ea72052Smrg echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 38296ea72052Smrgfi 38306ea72052Smrg 38316ea72052Smrgif test -n "$ac_config_commands"; then 38326ea72052Smrg echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 38336ea72052Smrgfi 38346ea72052Smrg 38356ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 38366ea72052Smrg 38376ea72052Smrgac_cs_usage="\ 38386ea72052Smrg\`$as_me' instantiates files from templates according to the 38396ea72052Smrgcurrent configuration. 38406ea72052Smrg 38416ea72052SmrgUsage: $0 [OPTIONS] [FILE]... 38426ea72052Smrg 38436ea72052Smrg -h, --help print this help, then exit 38446ea72052Smrg -V, --version print version number, then exit 38456ea72052Smrg -q, --quiet do not print progress messages 38466ea72052Smrg -d, --debug don't remove temporary files 38476ea72052Smrg --recheck update $as_me by reconfiguring in the same conditions 38486ea72052Smrg --file=FILE[:TEMPLATE] 38496ea72052Smrg instantiate the configuration file FILE 38506ea72052Smrg --header=FILE[:TEMPLATE] 38516ea72052Smrg instantiate the configuration header FILE 38526ea72052Smrg 38536ea72052SmrgConfiguration files: 38546ea72052Smrg$config_files 38556ea72052Smrg 38566ea72052SmrgConfiguration headers: 38576ea72052Smrg$config_headers 38586ea72052Smrg 38596ea72052SmrgConfiguration commands: 38606ea72052Smrg$config_commands 38616ea72052Smrg 38626ea72052SmrgReport bugs to <bug-autoconf@gnu.org>." 38636ea72052Smrg_ACEOF 38646ea72052Smrg 38656ea72052Smrgcat >>$CONFIG_STATUS <<_ACEOF 38666ea72052Smrgac_cs_version="\\ 38676ea72052Smrgoclock config.status 1.0.1 38686ea72052Smrgconfigured by $0, generated by GNU Autoconf 2.59, 38696ea72052Smrg with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 38706ea72052Smrg 38716ea72052SmrgCopyright (C) 2003 Free Software Foundation, Inc. 38726ea72052SmrgThis config.status script is free software; the Free Software Foundation 38736ea72052Smrggives unlimited permission to copy, distribute and modify it." 38746ea72052Smrgsrcdir=$srcdir 38756ea72052SmrgINSTALL="$INSTALL" 38766ea72052Smrg_ACEOF 38776ea72052Smrg 38786ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 38796ea72052Smrg# If no file are specified by the user, then we need to provide default 38806ea72052Smrg# value. By we need to know if files were specified by the user. 38816ea72052Smrgac_need_defaults=: 38826ea72052Smrgwhile test $# != 0 38836ea72052Smrgdo 38846ea72052Smrg case $1 in 38856ea72052Smrg --*=*) 38866ea72052Smrg ac_option=`expr "x$1" : 'x\([^=]*\)='` 38876ea72052Smrg ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 38886ea72052Smrg ac_shift=: 38896ea72052Smrg ;; 38906ea72052Smrg -*) 38916ea72052Smrg ac_option=$1 38926ea72052Smrg ac_optarg=$2 38936ea72052Smrg ac_shift=shift 38946ea72052Smrg ;; 38956ea72052Smrg *) # This is not an option, so the user has probably given explicit 38966ea72052Smrg # arguments. 38976ea72052Smrg ac_option=$1 38986ea72052Smrg ac_need_defaults=false;; 38996ea72052Smrg esac 39006ea72052Smrg 39016ea72052Smrg case $ac_option in 39026ea72052Smrg # Handling of the options. 39036ea72052Smrg_ACEOF 39046ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 39056ea72052Smrg -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 39066ea72052Smrg ac_cs_recheck=: ;; 39076ea72052Smrg --version | --vers* | -V ) 39086ea72052Smrg echo "$ac_cs_version"; exit 0 ;; 39096ea72052Smrg --he | --h) 39106ea72052Smrg # Conflict between --help and --header 39116ea72052Smrg { { echo "$as_me:$LINENO: error: ambiguous option: $1 39126ea72052SmrgTry \`$0 --help' for more information." >&5 39136ea72052Smrgecho "$as_me: error: ambiguous option: $1 39146ea72052SmrgTry \`$0 --help' for more information." >&2;} 39156ea72052Smrg { (exit 1); exit 1; }; };; 39166ea72052Smrg --help | --hel | -h ) 39176ea72052Smrg echo "$ac_cs_usage"; exit 0 ;; 39186ea72052Smrg --debug | --d* | -d ) 39196ea72052Smrg debug=: ;; 39206ea72052Smrg --file | --fil | --fi | --f ) 39216ea72052Smrg $ac_shift 39226ea72052Smrg CONFIG_FILES="$CONFIG_FILES $ac_optarg" 39236ea72052Smrg ac_need_defaults=false;; 39246ea72052Smrg --header | --heade | --head | --hea ) 39256ea72052Smrg $ac_shift 39266ea72052Smrg CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 39276ea72052Smrg ac_need_defaults=false;; 39286ea72052Smrg -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 39296ea72052Smrg | -silent | --silent | --silen | --sile | --sil | --si | --s) 39306ea72052Smrg ac_cs_silent=: ;; 39316ea72052Smrg 39326ea72052Smrg # This is an error. 39336ea72052Smrg -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 39346ea72052SmrgTry \`$0 --help' for more information." >&5 39356ea72052Smrgecho "$as_me: error: unrecognized option: $1 39366ea72052SmrgTry \`$0 --help' for more information." >&2;} 39376ea72052Smrg { (exit 1); exit 1; }; } ;; 39386ea72052Smrg 39396ea72052Smrg *) ac_config_targets="$ac_config_targets $1" ;; 39406ea72052Smrg 39416ea72052Smrg esac 39426ea72052Smrg shift 39436ea72052Smrgdone 39446ea72052Smrg 39456ea72052Smrgac_configure_extra_args= 39466ea72052Smrg 39476ea72052Smrgif $ac_cs_silent; then 39486ea72052Smrg exec 6>/dev/null 39496ea72052Smrg ac_configure_extra_args="$ac_configure_extra_args --silent" 39506ea72052Smrgfi 39516ea72052Smrg 39526ea72052Smrg_ACEOF 39536ea72052Smrgcat >>$CONFIG_STATUS <<_ACEOF 39546ea72052Smrgif \$ac_cs_recheck; then 39556ea72052Smrg echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 39566ea72052Smrg exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 39576ea72052Smrgfi 39586ea72052Smrg 39596ea72052Smrg_ACEOF 39606ea72052Smrg 39616ea72052Smrgcat >>$CONFIG_STATUS <<_ACEOF 39626ea72052Smrg# 39636ea72052Smrg# INIT-COMMANDS section. 39646ea72052Smrg# 39656ea72052Smrg 39666ea72052SmrgAMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 39676ea72052Smrg 39686ea72052Smrg_ACEOF 39696ea72052Smrg 39706ea72052Smrg 39716ea72052Smrg 39726ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 39736ea72052Smrgfor ac_config_target in $ac_config_targets 39746ea72052Smrgdo 39756ea72052Smrg case "$ac_config_target" in 39766ea72052Smrg # Handling of arguments. 39776ea72052Smrg "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 39786ea72052Smrg "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 39796ea72052Smrg "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 39806ea72052Smrg *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 39816ea72052Smrgecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 39826ea72052Smrg { (exit 1); exit 1; }; };; 39836ea72052Smrg esac 39846ea72052Smrgdone 39856ea72052Smrg 39866ea72052Smrg# If the user did not use the arguments to specify the items to instantiate, 39876ea72052Smrg# then the envvar interface is used. Set only those that are not. 39886ea72052Smrg# We use the long form for the default assignment because of an extremely 39896ea72052Smrg# bizarre bug on SunOS 4.1.3. 39906ea72052Smrgif $ac_need_defaults; then 39916ea72052Smrg test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 39926ea72052Smrg test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 39936ea72052Smrg test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 39946ea72052Smrgfi 39956ea72052Smrg 39966ea72052Smrg# Have a temporary directory for convenience. Make it in the build tree 39976ea72052Smrg# simply because there is no reason to put it here, and in addition, 39986ea72052Smrg# creating and moving files from /tmp can sometimes cause problems. 39996ea72052Smrg# Create a temporary directory, and hook for its removal unless debugging. 40006ea72052Smrg$debug || 40016ea72052Smrg{ 40026ea72052Smrg trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 40036ea72052Smrg trap '{ (exit 1); exit 1; }' 1 2 13 15 40046ea72052Smrg} 40056ea72052Smrg 40066ea72052Smrg# Create a (secure) tmp directory for tmp files. 40076ea72052Smrg 40086ea72052Smrg{ 40096ea72052Smrg tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 40106ea72052Smrg test -n "$tmp" && test -d "$tmp" 40116ea72052Smrg} || 40126ea72052Smrg{ 40136ea72052Smrg tmp=./confstat$$-$RANDOM 40146ea72052Smrg (umask 077 && mkdir $tmp) 40156ea72052Smrg} || 40166ea72052Smrg{ 40176ea72052Smrg echo "$me: cannot create a temporary directory in ." >&2 40186ea72052Smrg { (exit 1); exit 1; } 40196ea72052Smrg} 40206ea72052Smrg 40216ea72052Smrg_ACEOF 40226ea72052Smrg 40236ea72052Smrgcat >>$CONFIG_STATUS <<_ACEOF 40246ea72052Smrg 40256ea72052Smrg# 40266ea72052Smrg# CONFIG_FILES section. 40276ea72052Smrg# 40286ea72052Smrg 40296ea72052Smrg# No need to generate the scripts if there are no CONFIG_FILES. 40306ea72052Smrg# This happens for instance when ./config.status config.h 40316ea72052Smrgif test -n "\$CONFIG_FILES"; then 40326ea72052Smrg # Protect against being on the right side of a sed subst in config.status. 40336ea72052Smrg sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 40346ea72052Smrg s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 40356ea72052Smrgs,@SHELL@,$SHELL,;t t 40366ea72052Smrgs,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 40376ea72052Smrgs,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 40386ea72052Smrgs,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 40396ea72052Smrgs,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 40406ea72052Smrgs,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 40416ea72052Smrgs,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 40426ea72052Smrgs,@exec_prefix@,$exec_prefix,;t t 40436ea72052Smrgs,@prefix@,$prefix,;t t 40446ea72052Smrgs,@program_transform_name@,$program_transform_name,;t t 40456ea72052Smrgs,@bindir@,$bindir,;t t 40466ea72052Smrgs,@sbindir@,$sbindir,;t t 40476ea72052Smrgs,@libexecdir@,$libexecdir,;t t 40486ea72052Smrgs,@datadir@,$datadir,;t t 40496ea72052Smrgs,@sysconfdir@,$sysconfdir,;t t 40506ea72052Smrgs,@sharedstatedir@,$sharedstatedir,;t t 40516ea72052Smrgs,@localstatedir@,$localstatedir,;t t 40526ea72052Smrgs,@libdir@,$libdir,;t t 40536ea72052Smrgs,@includedir@,$includedir,;t t 40546ea72052Smrgs,@oldincludedir@,$oldincludedir,;t t 40556ea72052Smrgs,@infodir@,$infodir,;t t 40566ea72052Smrgs,@mandir@,$mandir,;t t 40576ea72052Smrgs,@build_alias@,$build_alias,;t t 40586ea72052Smrgs,@host_alias@,$host_alias,;t t 40596ea72052Smrgs,@target_alias@,$target_alias,;t t 40606ea72052Smrgs,@DEFS@,$DEFS,;t t 40616ea72052Smrgs,@ECHO_C@,$ECHO_C,;t t 40626ea72052Smrgs,@ECHO_N@,$ECHO_N,;t t 40636ea72052Smrgs,@ECHO_T@,$ECHO_T,;t t 40646ea72052Smrgs,@LIBS@,$LIBS,;t t 40656ea72052Smrgs,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 40666ea72052Smrgs,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 40676ea72052Smrgs,@INSTALL_DATA@,$INSTALL_DATA,;t t 40686ea72052Smrgs,@CYGPATH_W@,$CYGPATH_W,;t t 40696ea72052Smrgs,@PACKAGE@,$PACKAGE,;t t 40706ea72052Smrgs,@VERSION@,$VERSION,;t t 40716ea72052Smrgs,@ACLOCAL@,$ACLOCAL,;t t 40726ea72052Smrgs,@AUTOCONF@,$AUTOCONF,;t t 40736ea72052Smrgs,@AUTOMAKE@,$AUTOMAKE,;t t 40746ea72052Smrgs,@AUTOHEADER@,$AUTOHEADER,;t t 40756ea72052Smrgs,@MAKEINFO@,$MAKEINFO,;t t 40766ea72052Smrgs,@AMTAR@,$AMTAR,;t t 40776ea72052Smrgs,@install_sh@,$install_sh,;t t 40786ea72052Smrgs,@STRIP@,$STRIP,;t t 40796ea72052Smrgs,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 40806ea72052Smrgs,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 40816ea72052Smrgs,@AWK@,$AWK,;t t 40826ea72052Smrgs,@SET_MAKE@,$SET_MAKE,;t t 40836ea72052Smrgs,@am__leading_dot@,$am__leading_dot,;t t 40846ea72052Smrgs,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 40856ea72052Smrgs,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 40866ea72052Smrgs,@MAINT@,$MAINT,;t t 40876ea72052Smrgs,@CC@,$CC,;t t 40886ea72052Smrgs,@CFLAGS@,$CFLAGS,;t t 40896ea72052Smrgs,@LDFLAGS@,$LDFLAGS,;t t 40906ea72052Smrgs,@CPPFLAGS@,$CPPFLAGS,;t t 40916ea72052Smrgs,@ac_ct_CC@,$ac_ct_CC,;t t 40926ea72052Smrgs,@EXEEXT@,$EXEEXT,;t t 40936ea72052Smrgs,@OBJEXT@,$OBJEXT,;t t 40946ea72052Smrgs,@DEPDIR@,$DEPDIR,;t t 40956ea72052Smrgs,@am__include@,$am__include,;t t 40966ea72052Smrgs,@am__quote@,$am__quote,;t t 40976ea72052Smrgs,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 40986ea72052Smrgs,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 40996ea72052Smrgs,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 41006ea72052Smrgs,@CCDEPMODE@,$CCDEPMODE,;t t 41016ea72052Smrgs,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 41026ea72052Smrgs,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 41036ea72052Smrgs,@PKG_CONFIG@,$PKG_CONFIG,;t t 41046ea72052Smrgs,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t 41056ea72052Smrgs,@OCLOCK_CFLAGS@,$OCLOCK_CFLAGS,;t t 41066ea72052Smrgs,@OCLOCK_LIBS@,$OCLOCK_LIBS,;t t 41076ea72052Smrgs,@APPDEFS_CFLAGS@,$APPDEFS_CFLAGS,;t t 41086ea72052Smrgs,@APPDEFS_LIBS@,$APPDEFS_LIBS,;t t 41096ea72052Smrgs,@appdefaultdir@,$appdefaultdir,;t t 41106ea72052Smrgs,@build@,$build,;t t 41116ea72052Smrgs,@build_cpu@,$build_cpu,;t t 41126ea72052Smrgs,@build_vendor@,$build_vendor,;t t 41136ea72052Smrgs,@build_os@,$build_os,;t t 41146ea72052Smrgs,@host@,$host,;t t 41156ea72052Smrgs,@host_cpu@,$host_cpu,;t t 41166ea72052Smrgs,@host_vendor@,$host_vendor,;t t 41176ea72052Smrgs,@host_os@,$host_os,;t t 41186ea72052Smrgs,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t 41196ea72052Smrgs,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t 41206ea72052Smrgs,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t 41216ea72052Smrgs,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t 41226ea72052Smrgs,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t 41236ea72052Smrgs,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t 41246ea72052Smrgs,@APP_MAN_DIR@,$APP_MAN_DIR,;t t 41256ea72052Smrgs,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t 41266ea72052Smrgs,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t 41276ea72052Smrgs,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t 41286ea72052Smrgs,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t 41296ea72052Smrgs,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t 41306ea72052Smrgs,@LIBOBJS@,$LIBOBJS,;t t 41316ea72052Smrgs,@LTLIBOBJS@,$LTLIBOBJS,;t t 41326ea72052SmrgCEOF 41336ea72052Smrg 41346ea72052Smrg_ACEOF 41356ea72052Smrg 41366ea72052Smrg cat >>$CONFIG_STATUS <<\_ACEOF 41376ea72052Smrg # Split the substitutions into bite-sized pieces for seds with 41386ea72052Smrg # small command number limits, like on Digital OSF/1 and HP-UX. 41396ea72052Smrg ac_max_sed_lines=48 41406ea72052Smrg ac_sed_frag=1 # Number of current file. 41416ea72052Smrg ac_beg=1 # First line for current file. 41426ea72052Smrg ac_end=$ac_max_sed_lines # Line after last line for current file. 41436ea72052Smrg ac_more_lines=: 41446ea72052Smrg ac_sed_cmds= 41456ea72052Smrg while $ac_more_lines; do 41466ea72052Smrg if test $ac_beg -gt 1; then 41476ea72052Smrg sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 41486ea72052Smrg else 41496ea72052Smrg sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 41506ea72052Smrg fi 41516ea72052Smrg if test ! -s $tmp/subs.frag; then 41526ea72052Smrg ac_more_lines=false 41536ea72052Smrg else 41546ea72052Smrg # The purpose of the label and of the branching condition is to 41556ea72052Smrg # speed up the sed processing (if there are no `@' at all, there 41566ea72052Smrg # is no need to browse any of the substitutions). 41576ea72052Smrg # These are the two extra sed commands mentioned above. 41586ea72052Smrg (echo ':t 41596ea72052Smrg /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 41606ea72052Smrg if test -z "$ac_sed_cmds"; then 41616ea72052Smrg ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 41626ea72052Smrg else 41636ea72052Smrg ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 41646ea72052Smrg fi 41656ea72052Smrg ac_sed_frag=`expr $ac_sed_frag + 1` 41666ea72052Smrg ac_beg=$ac_end 41676ea72052Smrg ac_end=`expr $ac_end + $ac_max_sed_lines` 41686ea72052Smrg fi 41696ea72052Smrg done 41706ea72052Smrg if test -z "$ac_sed_cmds"; then 41716ea72052Smrg ac_sed_cmds=cat 41726ea72052Smrg fi 41736ea72052Smrgfi # test -n "$CONFIG_FILES" 41746ea72052Smrg 41756ea72052Smrg_ACEOF 41766ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 41776ea72052Smrgfor ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 41786ea72052Smrg # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 41796ea72052Smrg case $ac_file in 41806ea72052Smrg - | *:- | *:-:* ) # input from stdin 41816ea72052Smrg cat >$tmp/stdin 41826ea72052Smrg ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 41836ea72052Smrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 41846ea72052Smrg *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 41856ea72052Smrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 41866ea72052Smrg * ) ac_file_in=$ac_file.in ;; 41876ea72052Smrg esac 41886ea72052Smrg 41896ea72052Smrg # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 41906ea72052Smrg ac_dir=`(dirname "$ac_file") 2>/dev/null || 41916ea72052Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 41926ea72052Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 41936ea72052Smrg X"$ac_file" : 'X\(//\)$' \| \ 41946ea72052Smrg X"$ac_file" : 'X\(/\)' \| \ 41956ea72052Smrg . : '\(.\)' 2>/dev/null || 41966ea72052Smrgecho X"$ac_file" | 41976ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 41986ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 41996ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 42006ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 42016ea72052Smrg s/.*/./; q'` 42026ea72052Smrg { if $as_mkdir_p; then 42036ea72052Smrg mkdir -p "$ac_dir" 42046ea72052Smrg else 42056ea72052Smrg as_dir="$ac_dir" 42066ea72052Smrg as_dirs= 42076ea72052Smrg while test ! -d "$as_dir"; do 42086ea72052Smrg as_dirs="$as_dir $as_dirs" 42096ea72052Smrg as_dir=`(dirname "$as_dir") 2>/dev/null || 42106ea72052Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 42116ea72052Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 42126ea72052Smrg X"$as_dir" : 'X\(//\)$' \| \ 42136ea72052Smrg X"$as_dir" : 'X\(/\)' \| \ 42146ea72052Smrg . : '\(.\)' 2>/dev/null || 42156ea72052Smrgecho X"$as_dir" | 42166ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 42176ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 42186ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 42196ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 42206ea72052Smrg s/.*/./; q'` 42216ea72052Smrg done 42226ea72052Smrg test ! -n "$as_dirs" || mkdir $as_dirs 42236ea72052Smrg fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 42246ea72052Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 42256ea72052Smrg { (exit 1); exit 1; }; }; } 42266ea72052Smrg 42276ea72052Smrg ac_builddir=. 42286ea72052Smrg 42296ea72052Smrgif test "$ac_dir" != .; then 42306ea72052Smrg ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 42316ea72052Smrg # A "../" for each directory in $ac_dir_suffix. 42326ea72052Smrg ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 42336ea72052Smrgelse 42346ea72052Smrg ac_dir_suffix= ac_top_builddir= 42356ea72052Smrgfi 42366ea72052Smrg 42376ea72052Smrgcase $srcdir in 42386ea72052Smrg .) # No --srcdir option. We are building in place. 42396ea72052Smrg ac_srcdir=. 42406ea72052Smrg if test -z "$ac_top_builddir"; then 42416ea72052Smrg ac_top_srcdir=. 42426ea72052Smrg else 42436ea72052Smrg ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 42446ea72052Smrg fi ;; 42456ea72052Smrg [\\/]* | ?:[\\/]* ) # Absolute path. 42466ea72052Smrg ac_srcdir=$srcdir$ac_dir_suffix; 42476ea72052Smrg ac_top_srcdir=$srcdir ;; 42486ea72052Smrg *) # Relative path. 42496ea72052Smrg ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 42506ea72052Smrg ac_top_srcdir=$ac_top_builddir$srcdir ;; 42516ea72052Smrgesac 42526ea72052Smrg 42536ea72052Smrg# Do not use `cd foo && pwd` to compute absolute paths, because 42546ea72052Smrg# the directories may not exist. 42556ea72052Smrgcase `pwd` in 42566ea72052Smrg.) ac_abs_builddir="$ac_dir";; 42576ea72052Smrg*) 42586ea72052Smrg case "$ac_dir" in 42596ea72052Smrg .) ac_abs_builddir=`pwd`;; 42606ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 42616ea72052Smrg *) ac_abs_builddir=`pwd`/"$ac_dir";; 42626ea72052Smrg esac;; 42636ea72052Smrgesac 42646ea72052Smrgcase $ac_abs_builddir in 42656ea72052Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;; 42666ea72052Smrg*) 42676ea72052Smrg case ${ac_top_builddir}. in 42686ea72052Smrg .) ac_abs_top_builddir=$ac_abs_builddir;; 42696ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 42706ea72052Smrg *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 42716ea72052Smrg esac;; 42726ea72052Smrgesac 42736ea72052Smrgcase $ac_abs_builddir in 42746ea72052Smrg.) ac_abs_srcdir=$ac_srcdir;; 42756ea72052Smrg*) 42766ea72052Smrg case $ac_srcdir in 42776ea72052Smrg .) ac_abs_srcdir=$ac_abs_builddir;; 42786ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 42796ea72052Smrg *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 42806ea72052Smrg esac;; 42816ea72052Smrgesac 42826ea72052Smrgcase $ac_abs_builddir in 42836ea72052Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;; 42846ea72052Smrg*) 42856ea72052Smrg case $ac_top_srcdir in 42866ea72052Smrg .) ac_abs_top_srcdir=$ac_abs_builddir;; 42876ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 42886ea72052Smrg *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 42896ea72052Smrg esac;; 42906ea72052Smrgesac 42916ea72052Smrg 42926ea72052Smrg 42936ea72052Smrg case $INSTALL in 42946ea72052Smrg [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 42956ea72052Smrg *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 42966ea72052Smrg esac 42976ea72052Smrg 42986ea72052Smrg if test x"$ac_file" != x-; then 42996ea72052Smrg { echo "$as_me:$LINENO: creating $ac_file" >&5 43006ea72052Smrgecho "$as_me: creating $ac_file" >&6;} 43016ea72052Smrg rm -f "$ac_file" 43026ea72052Smrg fi 43036ea72052Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 43046ea72052Smrg # use $as_me), people would be surprised to read: 43056ea72052Smrg # /* config.h. Generated by config.status. */ 43066ea72052Smrg if test x"$ac_file" = x-; then 43076ea72052Smrg configure_input= 43086ea72052Smrg else 43096ea72052Smrg configure_input="$ac_file. " 43106ea72052Smrg fi 43116ea72052Smrg configure_input=$configure_input"Generated from `echo $ac_file_in | 43126ea72052Smrg sed 's,.*/,,'` by configure." 43136ea72052Smrg 43146ea72052Smrg # First look for the input files in the build tree, otherwise in the 43156ea72052Smrg # src tree. 43166ea72052Smrg ac_file_inputs=`IFS=: 43176ea72052Smrg for f in $ac_file_in; do 43186ea72052Smrg case $f in 43196ea72052Smrg -) echo $tmp/stdin ;; 43206ea72052Smrg [\\/$]*) 43216ea72052Smrg # Absolute (can't be DOS-style, as IFS=:) 43226ea72052Smrg test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 43236ea72052Smrgecho "$as_me: error: cannot find input file: $f" >&2;} 43246ea72052Smrg { (exit 1); exit 1; }; } 43256ea72052Smrg echo "$f";; 43266ea72052Smrg *) # Relative 43276ea72052Smrg if test -f "$f"; then 43286ea72052Smrg # Build tree 43296ea72052Smrg echo "$f" 43306ea72052Smrg elif test -f "$srcdir/$f"; then 43316ea72052Smrg # Source tree 43326ea72052Smrg echo "$srcdir/$f" 43336ea72052Smrg else 43346ea72052Smrg # /dev/null tree 43356ea72052Smrg { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 43366ea72052Smrgecho "$as_me: error: cannot find input file: $f" >&2;} 43376ea72052Smrg { (exit 1); exit 1; }; } 43386ea72052Smrg fi;; 43396ea72052Smrg esac 43406ea72052Smrg done` || { (exit 1); exit 1; } 43416ea72052Smrg_ACEOF 43426ea72052Smrgcat >>$CONFIG_STATUS <<_ACEOF 43436ea72052Smrg sed "$ac_vpsub 43446ea72052Smrg$extrasub 43456ea72052Smrg_ACEOF 43466ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 43476ea72052Smrg:t 43486ea72052Smrg/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 43496ea72052Smrgs,@configure_input@,$configure_input,;t t 43506ea72052Smrgs,@srcdir@,$ac_srcdir,;t t 43516ea72052Smrgs,@abs_srcdir@,$ac_abs_srcdir,;t t 43526ea72052Smrgs,@top_srcdir@,$ac_top_srcdir,;t t 43536ea72052Smrgs,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 43546ea72052Smrgs,@builddir@,$ac_builddir,;t t 43556ea72052Smrgs,@abs_builddir@,$ac_abs_builddir,;t t 43566ea72052Smrgs,@top_builddir@,$ac_top_builddir,;t t 43576ea72052Smrgs,@abs_top_builddir@,$ac_abs_top_builddir,;t t 43586ea72052Smrgs,@INSTALL@,$ac_INSTALL,;t t 43596ea72052Smrg" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 43606ea72052Smrg rm -f $tmp/stdin 43616ea72052Smrg if test x"$ac_file" != x-; then 43626ea72052Smrg mv $tmp/out $ac_file 43636ea72052Smrg else 43646ea72052Smrg cat $tmp/out 43656ea72052Smrg rm -f $tmp/out 43666ea72052Smrg fi 43676ea72052Smrg 43686ea72052Smrgdone 43696ea72052Smrg_ACEOF 43706ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 43716ea72052Smrg 43726ea72052Smrg# 43736ea72052Smrg# CONFIG_HEADER section. 43746ea72052Smrg# 43756ea72052Smrg 43766ea72052Smrg# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 43776ea72052Smrg# NAME is the cpp macro being defined and VALUE is the value it is being given. 43786ea72052Smrg# 43796ea72052Smrg# ac_d sets the value in "#define NAME VALUE" lines. 43806ea72052Smrgac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 43816ea72052Smrgac_dB='[ ].*$,\1#\2' 43826ea72052Smrgac_dC=' ' 43836ea72052Smrgac_dD=',;t' 43846ea72052Smrg# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 43856ea72052Smrgac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 43866ea72052Smrgac_uB='$,\1#\2define\3' 43876ea72052Smrgac_uC=' ' 43886ea72052Smrgac_uD=',;t' 43896ea72052Smrg 43906ea72052Smrgfor ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 43916ea72052Smrg # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 43926ea72052Smrg case $ac_file in 43936ea72052Smrg - | *:- | *:-:* ) # input from stdin 43946ea72052Smrg cat >$tmp/stdin 43956ea72052Smrg ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 43966ea72052Smrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 43976ea72052Smrg *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 43986ea72052Smrg ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 43996ea72052Smrg * ) ac_file_in=$ac_file.in ;; 44006ea72052Smrg esac 44016ea72052Smrg 44026ea72052Smrg test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 44036ea72052Smrgecho "$as_me: creating $ac_file" >&6;} 44046ea72052Smrg 44056ea72052Smrg # First look for the input files in the build tree, otherwise in the 44066ea72052Smrg # src tree. 44076ea72052Smrg ac_file_inputs=`IFS=: 44086ea72052Smrg for f in $ac_file_in; do 44096ea72052Smrg case $f in 44106ea72052Smrg -) echo $tmp/stdin ;; 44116ea72052Smrg [\\/$]*) 44126ea72052Smrg # Absolute (can't be DOS-style, as IFS=:) 44136ea72052Smrg test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 44146ea72052Smrgecho "$as_me: error: cannot find input file: $f" >&2;} 44156ea72052Smrg { (exit 1); exit 1; }; } 44166ea72052Smrg # Do quote $f, to prevent DOS paths from being IFS'd. 44176ea72052Smrg echo "$f";; 44186ea72052Smrg *) # Relative 44196ea72052Smrg if test -f "$f"; then 44206ea72052Smrg # Build tree 44216ea72052Smrg echo "$f" 44226ea72052Smrg elif test -f "$srcdir/$f"; then 44236ea72052Smrg # Source tree 44246ea72052Smrg echo "$srcdir/$f" 44256ea72052Smrg else 44266ea72052Smrg # /dev/null tree 44276ea72052Smrg { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 44286ea72052Smrgecho "$as_me: error: cannot find input file: $f" >&2;} 44296ea72052Smrg { (exit 1); exit 1; }; } 44306ea72052Smrg fi;; 44316ea72052Smrg esac 44326ea72052Smrg done` || { (exit 1); exit 1; } 44336ea72052Smrg # Remove the trailing spaces. 44346ea72052Smrg sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 44356ea72052Smrg 44366ea72052Smrg_ACEOF 44376ea72052Smrg 44386ea72052Smrg# Transform confdefs.h into two sed scripts, `conftest.defines' and 44396ea72052Smrg# `conftest.undefs', that substitutes the proper values into 44406ea72052Smrg# config.h.in to produce config.h. The first handles `#define' 44416ea72052Smrg# templates, and the second `#undef' templates. 44426ea72052Smrg# And first: Protect against being on the right side of a sed subst in 44436ea72052Smrg# config.status. Protect against being in an unquoted here document 44446ea72052Smrg# in config.status. 44456ea72052Smrgrm -f conftest.defines conftest.undefs 44466ea72052Smrg# Using a here document instead of a string reduces the quoting nightmare. 44476ea72052Smrg# Putting comments in sed scripts is not portable. 44486ea72052Smrg# 44496ea72052Smrg# `end' is used to avoid that the second main sed command (meant for 44506ea72052Smrg# 0-ary CPP macros) applies to n-ary macro definitions. 44516ea72052Smrg# See the Autoconf documentation for `clear'. 44526ea72052Smrgcat >confdef2sed.sed <<\_ACEOF 44536ea72052Smrgs/[\\&,]/\\&/g 44546ea72052Smrgs,[\\$`],\\&,g 44556ea72052Smrgt clear 44566ea72052Smrg: clear 44576ea72052Smrgs,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 44586ea72052Smrgt end 44596ea72052Smrgs,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 44606ea72052Smrg: end 44616ea72052Smrg_ACEOF 44626ea72052Smrg# If some macros were called several times there might be several times 44636ea72052Smrg# the same #defines, which is useless. Nevertheless, we may not want to 44646ea72052Smrg# sort them, since we want the *last* AC-DEFINE to be honored. 44656ea72052Smrguniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 44666ea72052Smrgsed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 44676ea72052Smrgrm -f confdef2sed.sed 44686ea72052Smrg 44696ea72052Smrg# This sed command replaces #undef with comments. This is necessary, for 44706ea72052Smrg# example, in the case of _POSIX_SOURCE, which is predefined and required 44716ea72052Smrg# on some systems where configure will not decide to define it. 44726ea72052Smrgcat >>conftest.undefs <<\_ACEOF 44736ea72052Smrgs,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 44746ea72052Smrg_ACEOF 44756ea72052Smrg 44766ea72052Smrg# Break up conftest.defines because some shells have a limit on the size 44776ea72052Smrg# of here documents, and old seds have small limits too (100 cmds). 44786ea72052Smrgecho ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 44796ea72052Smrgecho ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 44806ea72052Smrgecho ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 44816ea72052Smrgecho ' :' >>$CONFIG_STATUS 44826ea72052Smrgrm -f conftest.tail 44836ea72052Smrgwhile grep . conftest.defines >/dev/null 44846ea72052Smrgdo 44856ea72052Smrg # Write a limited-size here document to $tmp/defines.sed. 44866ea72052Smrg echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 44876ea72052Smrg # Speed up: don't consider the non `#define' lines. 44886ea72052Smrg echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 44896ea72052Smrg # Work around the forget-to-reset-the-flag bug. 44906ea72052Smrg echo 't clr' >>$CONFIG_STATUS 44916ea72052Smrg echo ': clr' >>$CONFIG_STATUS 44926ea72052Smrg sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 44936ea72052Smrg echo 'CEOF 44946ea72052Smrg sed -f $tmp/defines.sed $tmp/in >$tmp/out 44956ea72052Smrg rm -f $tmp/in 44966ea72052Smrg mv $tmp/out $tmp/in 44976ea72052Smrg' >>$CONFIG_STATUS 44986ea72052Smrg sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 44996ea72052Smrg rm -f conftest.defines 45006ea72052Smrg mv conftest.tail conftest.defines 45016ea72052Smrgdone 45026ea72052Smrgrm -f conftest.defines 45036ea72052Smrgecho ' fi # grep' >>$CONFIG_STATUS 45046ea72052Smrgecho >>$CONFIG_STATUS 45056ea72052Smrg 45066ea72052Smrg# Break up conftest.undefs because some shells have a limit on the size 45076ea72052Smrg# of here documents, and old seds have small limits too (100 cmds). 45086ea72052Smrgecho ' # Handle all the #undef templates' >>$CONFIG_STATUS 45096ea72052Smrgrm -f conftest.tail 45106ea72052Smrgwhile grep . conftest.undefs >/dev/null 45116ea72052Smrgdo 45126ea72052Smrg # Write a limited-size here document to $tmp/undefs.sed. 45136ea72052Smrg echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 45146ea72052Smrg # Speed up: don't consider the non `#undef' 45156ea72052Smrg echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 45166ea72052Smrg # Work around the forget-to-reset-the-flag bug. 45176ea72052Smrg echo 't clr' >>$CONFIG_STATUS 45186ea72052Smrg echo ': clr' >>$CONFIG_STATUS 45196ea72052Smrg sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 45206ea72052Smrg echo 'CEOF 45216ea72052Smrg sed -f $tmp/undefs.sed $tmp/in >$tmp/out 45226ea72052Smrg rm -f $tmp/in 45236ea72052Smrg mv $tmp/out $tmp/in 45246ea72052Smrg' >>$CONFIG_STATUS 45256ea72052Smrg sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 45266ea72052Smrg rm -f conftest.undefs 45276ea72052Smrg mv conftest.tail conftest.undefs 45286ea72052Smrgdone 45296ea72052Smrgrm -f conftest.undefs 45306ea72052Smrg 45316ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 45326ea72052Smrg # Let's still pretend it is `configure' which instantiates (i.e., don't 45336ea72052Smrg # use $as_me), people would be surprised to read: 45346ea72052Smrg # /* config.h. Generated by config.status. */ 45356ea72052Smrg if test x"$ac_file" = x-; then 45366ea72052Smrg echo "/* Generated by configure. */" >$tmp/config.h 45376ea72052Smrg else 45386ea72052Smrg echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 45396ea72052Smrg fi 45406ea72052Smrg cat $tmp/in >>$tmp/config.h 45416ea72052Smrg rm -f $tmp/in 45426ea72052Smrg if test x"$ac_file" != x-; then 45436ea72052Smrg if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 45446ea72052Smrg { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 45456ea72052Smrgecho "$as_me: $ac_file is unchanged" >&6;} 45466ea72052Smrg else 45476ea72052Smrg ac_dir=`(dirname "$ac_file") 2>/dev/null || 45486ea72052Smrg$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 45496ea72052Smrg X"$ac_file" : 'X\(//\)[^/]' \| \ 45506ea72052Smrg X"$ac_file" : 'X\(//\)$' \| \ 45516ea72052Smrg X"$ac_file" : 'X\(/\)' \| \ 45526ea72052Smrg . : '\(.\)' 2>/dev/null || 45536ea72052Smrgecho X"$ac_file" | 45546ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 45556ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 45566ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 45576ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 45586ea72052Smrg s/.*/./; q'` 45596ea72052Smrg { if $as_mkdir_p; then 45606ea72052Smrg mkdir -p "$ac_dir" 45616ea72052Smrg else 45626ea72052Smrg as_dir="$ac_dir" 45636ea72052Smrg as_dirs= 45646ea72052Smrg while test ! -d "$as_dir"; do 45656ea72052Smrg as_dirs="$as_dir $as_dirs" 45666ea72052Smrg as_dir=`(dirname "$as_dir") 2>/dev/null || 45676ea72052Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 45686ea72052Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 45696ea72052Smrg X"$as_dir" : 'X\(//\)$' \| \ 45706ea72052Smrg X"$as_dir" : 'X\(/\)' \| \ 45716ea72052Smrg . : '\(.\)' 2>/dev/null || 45726ea72052Smrgecho X"$as_dir" | 45736ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 45746ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 45756ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 45766ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 45776ea72052Smrg s/.*/./; q'` 45786ea72052Smrg done 45796ea72052Smrg test ! -n "$as_dirs" || mkdir $as_dirs 45806ea72052Smrg fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 45816ea72052Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 45826ea72052Smrg { (exit 1); exit 1; }; }; } 45836ea72052Smrg 45846ea72052Smrg rm -f $ac_file 45856ea72052Smrg mv $tmp/config.h $ac_file 45866ea72052Smrg fi 45876ea72052Smrg else 45886ea72052Smrg cat $tmp/config.h 45896ea72052Smrg rm -f $tmp/config.h 45906ea72052Smrg fi 45916ea72052Smrg# Compute $ac_file's index in $config_headers. 45926ea72052Smrg_am_stamp_count=1 45936ea72052Smrgfor _am_header in $config_headers :; do 45946ea72052Smrg case $_am_header in 45956ea72052Smrg $ac_file | $ac_file:* ) 45966ea72052Smrg break ;; 45976ea72052Smrg * ) 45986ea72052Smrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 45996ea72052Smrg esac 46006ea72052Smrgdone 46016ea72052Smrgecho "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 46026ea72052Smrg$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 46036ea72052Smrg X$ac_file : 'X\(//\)[^/]' \| \ 46046ea72052Smrg X$ac_file : 'X\(//\)$' \| \ 46056ea72052Smrg X$ac_file : 'X\(/\)' \| \ 46066ea72052Smrg . : '\(.\)' 2>/dev/null || 46076ea72052Smrgecho X$ac_file | 46086ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 46096ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 46106ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 46116ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 46126ea72052Smrg s/.*/./; q'`/stamp-h$_am_stamp_count 46136ea72052Smrgdone 46146ea72052Smrg_ACEOF 46156ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 46166ea72052Smrg 46176ea72052Smrg# 46186ea72052Smrg# CONFIG_COMMANDS section. 46196ea72052Smrg# 46206ea72052Smrgfor ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 46216ea72052Smrg ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 46226ea72052Smrg ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 46236ea72052Smrg ac_dir=`(dirname "$ac_dest") 2>/dev/null || 46246ea72052Smrg$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 46256ea72052Smrg X"$ac_dest" : 'X\(//\)[^/]' \| \ 46266ea72052Smrg X"$ac_dest" : 'X\(//\)$' \| \ 46276ea72052Smrg X"$ac_dest" : 'X\(/\)' \| \ 46286ea72052Smrg . : '\(.\)' 2>/dev/null || 46296ea72052Smrgecho X"$ac_dest" | 46306ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 46316ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 46326ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 46336ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 46346ea72052Smrg s/.*/./; q'` 46356ea72052Smrg { if $as_mkdir_p; then 46366ea72052Smrg mkdir -p "$ac_dir" 46376ea72052Smrg else 46386ea72052Smrg as_dir="$ac_dir" 46396ea72052Smrg as_dirs= 46406ea72052Smrg while test ! -d "$as_dir"; do 46416ea72052Smrg as_dirs="$as_dir $as_dirs" 46426ea72052Smrg as_dir=`(dirname "$as_dir") 2>/dev/null || 46436ea72052Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 46446ea72052Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 46456ea72052Smrg X"$as_dir" : 'X\(//\)$' \| \ 46466ea72052Smrg X"$as_dir" : 'X\(/\)' \| \ 46476ea72052Smrg . : '\(.\)' 2>/dev/null || 46486ea72052Smrgecho X"$as_dir" | 46496ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 46506ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 46516ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 46526ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 46536ea72052Smrg s/.*/./; q'` 46546ea72052Smrg done 46556ea72052Smrg test ! -n "$as_dirs" || mkdir $as_dirs 46566ea72052Smrg fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 46576ea72052Smrgecho "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 46586ea72052Smrg { (exit 1); exit 1; }; }; } 46596ea72052Smrg 46606ea72052Smrg ac_builddir=. 46616ea72052Smrg 46626ea72052Smrgif test "$ac_dir" != .; then 46636ea72052Smrg ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 46646ea72052Smrg # A "../" for each directory in $ac_dir_suffix. 46656ea72052Smrg ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 46666ea72052Smrgelse 46676ea72052Smrg ac_dir_suffix= ac_top_builddir= 46686ea72052Smrgfi 46696ea72052Smrg 46706ea72052Smrgcase $srcdir in 46716ea72052Smrg .) # No --srcdir option. We are building in place. 46726ea72052Smrg ac_srcdir=. 46736ea72052Smrg if test -z "$ac_top_builddir"; then 46746ea72052Smrg ac_top_srcdir=. 46756ea72052Smrg else 46766ea72052Smrg ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 46776ea72052Smrg fi ;; 46786ea72052Smrg [\\/]* | ?:[\\/]* ) # Absolute path. 46796ea72052Smrg ac_srcdir=$srcdir$ac_dir_suffix; 46806ea72052Smrg ac_top_srcdir=$srcdir ;; 46816ea72052Smrg *) # Relative path. 46826ea72052Smrg ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 46836ea72052Smrg ac_top_srcdir=$ac_top_builddir$srcdir ;; 46846ea72052Smrgesac 46856ea72052Smrg 46866ea72052Smrg# Do not use `cd foo && pwd` to compute absolute paths, because 46876ea72052Smrg# the directories may not exist. 46886ea72052Smrgcase `pwd` in 46896ea72052Smrg.) ac_abs_builddir="$ac_dir";; 46906ea72052Smrg*) 46916ea72052Smrg case "$ac_dir" in 46926ea72052Smrg .) ac_abs_builddir=`pwd`;; 46936ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 46946ea72052Smrg *) ac_abs_builddir=`pwd`/"$ac_dir";; 46956ea72052Smrg esac;; 46966ea72052Smrgesac 46976ea72052Smrgcase $ac_abs_builddir in 46986ea72052Smrg.) ac_abs_top_builddir=${ac_top_builddir}.;; 46996ea72052Smrg*) 47006ea72052Smrg case ${ac_top_builddir}. in 47016ea72052Smrg .) ac_abs_top_builddir=$ac_abs_builddir;; 47026ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 47036ea72052Smrg *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 47046ea72052Smrg esac;; 47056ea72052Smrgesac 47066ea72052Smrgcase $ac_abs_builddir in 47076ea72052Smrg.) ac_abs_srcdir=$ac_srcdir;; 47086ea72052Smrg*) 47096ea72052Smrg case $ac_srcdir in 47106ea72052Smrg .) ac_abs_srcdir=$ac_abs_builddir;; 47116ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 47126ea72052Smrg *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 47136ea72052Smrg esac;; 47146ea72052Smrgesac 47156ea72052Smrgcase $ac_abs_builddir in 47166ea72052Smrg.) ac_abs_top_srcdir=$ac_top_srcdir;; 47176ea72052Smrg*) 47186ea72052Smrg case $ac_top_srcdir in 47196ea72052Smrg .) ac_abs_top_srcdir=$ac_abs_builddir;; 47206ea72052Smrg [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 47216ea72052Smrg *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 47226ea72052Smrg esac;; 47236ea72052Smrgesac 47246ea72052Smrg 47256ea72052Smrg 47266ea72052Smrg { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 47276ea72052Smrgecho "$as_me: executing $ac_dest commands" >&6;} 47286ea72052Smrg case $ac_dest in 47296ea72052Smrg depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 47306ea72052Smrg # Strip MF so we end up with the name of the file. 47316ea72052Smrg mf=`echo "$mf" | sed -e 's/:.*$//'` 47326ea72052Smrg # Check whether this is an Automake generated Makefile or not. 47336ea72052Smrg # We used to match only the files named `Makefile.in', but 47346ea72052Smrg # some people rename them; so instead we look at the file content. 47356ea72052Smrg # Grep'ing the first line is not enough: some people post-process 47366ea72052Smrg # each Makefile.in and add a new line on top of each file to say so. 47376ea72052Smrg # So let's grep whole file. 47386ea72052Smrg if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 47396ea72052Smrg dirpart=`(dirname "$mf") 2>/dev/null || 47406ea72052Smrg$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47416ea72052Smrg X"$mf" : 'X\(//\)[^/]' \| \ 47426ea72052Smrg X"$mf" : 'X\(//\)$' \| \ 47436ea72052Smrg X"$mf" : 'X\(/\)' \| \ 47446ea72052Smrg . : '\(.\)' 2>/dev/null || 47456ea72052Smrgecho X"$mf" | 47466ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 47476ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 47486ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 47496ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 47506ea72052Smrg s/.*/./; q'` 47516ea72052Smrg else 47526ea72052Smrg continue 47536ea72052Smrg fi 47546ea72052Smrg grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 47556ea72052Smrg # Extract the definition of DEP_FILES from the Makefile without 47566ea72052Smrg # running `make'. 47576ea72052Smrg DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 47586ea72052Smrg test -z "$DEPDIR" && continue 47596ea72052Smrg # When using ansi2knr, U may be empty or an underscore; expand it 47606ea72052Smrg U=`sed -n -e '/^U = / s///p' < "$mf"` 47616ea72052Smrg test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 47626ea72052Smrg # We invoke sed twice because it is the simplest approach to 47636ea72052Smrg # changing $(DEPDIR) to its actual value in the expansion. 47646ea72052Smrg for file in `sed -n -e ' 47656ea72052Smrg /^DEP_FILES = .*\\\\$/ { 47666ea72052Smrg s/^DEP_FILES = // 47676ea72052Smrg :loop 47686ea72052Smrg s/\\\\$// 47696ea72052Smrg p 47706ea72052Smrg n 47716ea72052Smrg /\\\\$/ b loop 47726ea72052Smrg p 47736ea72052Smrg } 47746ea72052Smrg /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 47756ea72052Smrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 47766ea72052Smrg # Make sure the directory exists. 47776ea72052Smrg test -f "$dirpart/$file" && continue 47786ea72052Smrg fdir=`(dirname "$file") 2>/dev/null || 47796ea72052Smrg$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47806ea72052Smrg X"$file" : 'X\(//\)[^/]' \| \ 47816ea72052Smrg X"$file" : 'X\(//\)$' \| \ 47826ea72052Smrg X"$file" : 'X\(/\)' \| \ 47836ea72052Smrg . : '\(.\)' 2>/dev/null || 47846ea72052Smrgecho X"$file" | 47856ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 47866ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 47876ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 47886ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 47896ea72052Smrg s/.*/./; q'` 47906ea72052Smrg { if $as_mkdir_p; then 47916ea72052Smrg mkdir -p $dirpart/$fdir 47926ea72052Smrg else 47936ea72052Smrg as_dir=$dirpart/$fdir 47946ea72052Smrg as_dirs= 47956ea72052Smrg while test ! -d "$as_dir"; do 47966ea72052Smrg as_dirs="$as_dir $as_dirs" 47976ea72052Smrg as_dir=`(dirname "$as_dir") 2>/dev/null || 47986ea72052Smrg$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 47996ea72052Smrg X"$as_dir" : 'X\(//\)[^/]' \| \ 48006ea72052Smrg X"$as_dir" : 'X\(//\)$' \| \ 48016ea72052Smrg X"$as_dir" : 'X\(/\)' \| \ 48026ea72052Smrg . : '\(.\)' 2>/dev/null || 48036ea72052Smrgecho X"$as_dir" | 48046ea72052Smrg sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 48056ea72052Smrg /^X\(\/\/\)[^/].*/{ s//\1/; q; } 48066ea72052Smrg /^X\(\/\/\)$/{ s//\1/; q; } 48076ea72052Smrg /^X\(\/\).*/{ s//\1/; q; } 48086ea72052Smrg s/.*/./; q'` 48096ea72052Smrg done 48106ea72052Smrg test ! -n "$as_dirs" || mkdir $as_dirs 48116ea72052Smrg fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 48126ea72052Smrgecho "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 48136ea72052Smrg { (exit 1); exit 1; }; }; } 48146ea72052Smrg 48156ea72052Smrg # echo "creating $dirpart/$file" 48166ea72052Smrg echo '# dummy' > "$dirpart/$file" 48176ea72052Smrg done 48186ea72052Smrgdone 48196ea72052Smrg ;; 48206ea72052Smrg esac 48216ea72052Smrgdone 48226ea72052Smrg_ACEOF 48236ea72052Smrg 48246ea72052Smrgcat >>$CONFIG_STATUS <<\_ACEOF 48256ea72052Smrg 48266ea72052Smrg{ (exit 0); exit 0; } 48276ea72052Smrg_ACEOF 48286ea72052Smrgchmod +x $CONFIG_STATUS 48296ea72052Smrgac_clean_files=$ac_clean_files_save 48306ea72052Smrg 48316ea72052Smrg 48326ea72052Smrg# configure is writing to config.log, and then calls config.status. 48336ea72052Smrg# config.status does its own redirection, appending to config.log. 48346ea72052Smrg# Unfortunately, on DOS this fails, as config.log is still kept open 48356ea72052Smrg# by configure, so config.status won't be able to write to it; its 48366ea72052Smrg# output is simply discarded. So we exec the FD to /dev/null, 48376ea72052Smrg# effectively closing config.log, so it can be properly (re)opened and 48386ea72052Smrg# appended to by config.status. When coming back to configure, we 48396ea72052Smrg# need to make the FD available again. 48406ea72052Smrgif test "$no_create" != yes; then 48416ea72052Smrg ac_cs_success=: 48426ea72052Smrg ac_config_status_args= 48436ea72052Smrg test "$silent" = yes && 48446ea72052Smrg ac_config_status_args="$ac_config_status_args --quiet" 48456ea72052Smrg exec 5>/dev/null 48466ea72052Smrg $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 48476ea72052Smrg exec 5>>config.log 48486ea72052Smrg # Use ||, not &&, to avoid exiting from the if with $? = 1, which 48496ea72052Smrg # would make configure fail if this is the last instruction. 48506ea72052Smrg $ac_cs_success || { (exit 1); exit 1; } 48516ea72052Smrgfi 48526ea72052Smrg 4853