asmix-1.5/0000755000175000001440000000000010141422203013115 5ustar albertusers00000000000000asmix-1.5/LICENSE0000644000175000001440000000157110141420471014133 0ustar albertusers00000000000000asmix is the AfterStep sound volume control knob for X Windows. Copyright (c) 1998 original author unknown Copyright (c) 1998-2004 Albert "Tigr" Dorofeev Copyright (c) 2000 John "wizgrav" Gravezas This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave., Cambridge, MA 02139, USA. asmix-1.5/install.script0000755000175000001440000000047706737057175016060 0ustar albertusers00000000000000#!/bin/sh # Copyright (c) 1997 Guylhem AZNAR ./configure make echo echo echo "You must have root password to install AfterStepApps on systemwide dirs." echo "(press start to continue)" echo su root -c "make install ; make install.man" echo echo echo "You can now use AfterStepApps !" echo echo asmix-1.5/README0000644000175000001440000000255410141421420014003 0ustar albertusers00000000000000asmix is a volume control knob for X windows and for AfterStep window manager especially. The application and the source code are under GPL. See LICENSE file for details. DESCRIPTION =========== The tool displays a volume knob on a ground plate or without a ground plate if you use -shape option. The volume knob adjusts the master volume of your sound card. Just grab the knob with the left button of your mouse and drag it around. (Update:Now wheel mouse works too) The original author's name was lost in the depths of the GNU time. If someone likes to maintain and improve this little applet - you will be very welcome. Just drop me a note. Enjoy and may the source be with you, Albert "Tigr" ***Update*** 01-2-2000[wizgrav] I have taken over this applet.hope i didn't upset anyone I've added wheel mouse support and cleaned abit. Not much really just what i needed to make it fit my system. Ahh if you have a wheel mouse and don't know how to set it up here are the lines you need to add at the mouse section of your XF86Config: Xfree Version <= 3.3.6 : ZAxisMapping 4 5 Xfree Version pre 4.0 : Option "ZAxisMapping" "4 5" Restart the X server and enjoy! 01 Nov 2004 by tigr: well, it looks like it is back to me. Send the patches my way if you make some. Cheers! asmix-1.5/configure0000755000175000001440000026226610141422152015045 0ustar albertusers00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated automatically using autoconf version 2.13 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. # Defaults: ac_help= ac_default_prefix=/usr/local # Any additions from configure.in: ac_help="$ac_help --with-gnustep-dir=DIR GNUstep directory [~/GNUstep] " ac_help="$ac_help --with-gnustep-lib=DIR GNUstep/Library directory [~/GNUstep/Library] " ac_help="$ac_help --with-afterdir=DIR user AfterStep dir [~/GNUstep/Library/AfterStep] " ac_help="$ac_help --enable-shaping support shaped windows [yes] " ac_help="$ac_help --enable-jpeg support JPEG image format [yes] " ac_help="$ac_help --with-x use the X Window System" ac_help="$ac_help --with-xpm-includes=DIR use XPM includes in DIR" ac_help="$ac_help --with-xpm-library=DIR use XPM library in DIR" ac_help="$ac_help --with-xpm use XPM" # Initialize some variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. build=NONE cache_file=./config.cache exec_prefix=NONE host=NONE no_create= nonopt=NONE no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= target=NONE verbose= x_includes=NONE x_libraries=NONE bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datadir='${prefix}/share' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' libdir='${exec_prefix}/lib' includedir='${prefix}/include' oldincludedir='/usr/include' infodir='${prefix}/info' mandir='${prefix}/man' # Initialize some other variables. subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Maximum number of lines to put in a shell here document. ac_max_here_lines=12 ac_prev= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval "$ac_prev=\$ac_option" ac_prev= continue fi case "$ac_option" in -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; *) ac_optarg= ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case "$ac_option" in -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir="$ac_optarg" ;; -build | --build | --buil | --bui | --bu) ac_prev=build ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build="$ac_optarg" ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file="$ac_optarg" ;; -datadir | --datadir | --datadi | --datad | --data | --dat | --da) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | --da=*) datadir="$ac_optarg" ;; -disable-* | --disable-*) ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` eval "enable_${ac_feature}=no" ;; -enable-* | --enable-*) ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } fi ac_feature=`echo $ac_feature| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "enable_${ac_feature}='$ac_optarg'" ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix="$ac_optarg" ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he) # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat << EOF Usage: configure [options] [host] Options: [defaults in brackets after descriptions] Configuration: --cache-file=FILE cache test results in FILE --help print this message --no-create do not create output files --quiet, --silent do not print \`checking...' messages --version print the version of autoconf that created configure Directory and file names: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [same as prefix] --bindir=DIR user executables in DIR [EPREFIX/bin] --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] --libexecdir=DIR program executables in DIR [EPREFIX/libexec] --datadir=DIR read-only architecture-independent data in DIR [PREFIX/share] --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data in DIR [PREFIX/com] --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] --libdir=DIR object code libraries in DIR [EPREFIX/lib] --includedir=DIR C header files in DIR [PREFIX/include] --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] --infodir=DIR info documentation in DIR [PREFIX/info] --mandir=DIR man documentation in DIR [PREFIX/man] --srcdir=DIR find the sources in DIR [configure dir or ..] --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names EOF cat << EOF Host type: --build=BUILD configure for building on BUILD [BUILD=HOST] --host=HOST configure for HOST [guessed] --target=TARGET configure for TARGET [TARGET=HOST] Features and packages: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --x-includes=DIR X include files are in DIR --x-libraries=DIR X library files are in DIR EOF if test -n "$ac_help"; then echo "--enable and --with options recognized:$ac_help" fi exit 0 ;; -host | --host | --hos | --ho) ac_prev=host ;; -host=* | --host=* | --hos=* | --ho=*) host="$ac_optarg" ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir="$ac_optarg" ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir="$ac_optarg" ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir="$ac_optarg" ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir="$ac_optarg" ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst \ | --locals | --local | --loca | --loc | --lo) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) localstatedir="$ac_optarg" ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir="$ac_optarg" ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir="$ac_optarg" ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix="$ac_optarg" ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix="$ac_optarg" ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix="$ac_optarg" ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name="$ac_optarg" ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir="$ac_optarg" ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir="$ac_optarg" ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site="$ac_optarg" ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir="$ac_optarg" ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir="$ac_optarg" ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target="$ac_optarg" ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers) echo "configure generated by autoconf version 2.13" exit 0 ;; -with-* | --with-*) ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` case "$ac_option" in *=*) ;; *) ac_optarg=yes ;; esac eval "with_${ac_package}='$ac_optarg'" ;; -without-* | --without-*) ac_package=`echo $ac_option|sed -e 's/-*without-//'` # Reject names that are not valid shell variable names. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } fi ac_package=`echo $ac_package| sed 's/-/_/g'` eval "with_${ac_package}=no" ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes="$ac_optarg" ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries="$ac_optarg" ;; -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } ;; *) if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then echo "configure: warning: $ac_option: invalid host type" 1>&2 fi if test "x$nonopt" != xNONE; then { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } fi nonopt="$ac_option" ;; esac done if test -n "$ac_prev"; then { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } fi trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 # File descriptor usage: # 0 standard input # 1 file creation # 2 errors and warnings # 3 some systems may open it to /dev/tty # 4 used on the Kubota Titan # 6 checking for... messages and results # 5 compiler messages saved in config.log if test "$silent" = yes; then exec 6>/dev/null else exec 6>&1 fi exec 5>./config.log echo "\ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. " 1>&5 # Strip out --no-create and --no-recursion so they do not pile up. # Also quote any args containing shell metacharacters. ac_configure_args= for ac_arg do case "$ac_arg" in -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c) ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; *) ac_configure_args="$ac_configure_args $ac_arg" ;; esac done # NLS nuisances. # Only set these to C if already set. These must not be set unconditionally # because not all systems understand e.g. LANG=C (notably SCO). # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! # Non-C LC_CTYPE values break the ctype check. if test "${LANG+set}" = set; then LANG=C; export LANG; fi if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -rf conftest* confdefs.h # AIX cpp loses on an empty file, so make sure it contains at least a newline. echo > confdefs.h # A filename unique to this package, relative to the directory that # configure is in, which we can look for to find out if srcdir is correct. ac_unique_file=Makefile.in # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then its parent. ac_prog=$0 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. srcdir=$ac_confdir if test ! -r $srcdir/$ac_unique_file; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r $srcdir/$ac_unique_file; then if test "$ac_srcdir_defaulted" = yes; then { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } else { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } fi fi srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` # Prefer explicitly selected file to automatically selected ones. if test -z "$CONFIG_SITE"; then if test "x$prefix" != xNONE; then CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" else CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" fi fi for ac_site_file in $CONFIG_SITE; do if test -r "$ac_site_file"; then echo "loading site script $ac_site_file" . "$ac_site_file" fi done if test -r "$cache_file"; then echo "loading cache $cache_file" . $cache_file else echo "creating cache $cache_file" > $cache_file fi ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross ac_exeext= ac_objext=o if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then ac_n= ac_c=' ' ac_t=' ' else ac_n=-n ac_c= ac_t= fi else ac_n= ac_c='\c' ac_t= fi ac_aux_dir= for ac_dir in autoconf $srcdir/autoconf; do if test -f $ac_dir/install-sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f $ac_dir/install.sh; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break fi done if test -z "$ac_aux_dir"; then { echo "configure: error: can not find install-sh or install.sh in autoconf $srcdir/autoconf" 1>&2; exit 1; } fi ac_config_guess=$ac_aux_dir/config.guess ac_config_sub=$ac_aux_dir/config.sub ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. version="asmix-1.5" test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix="$prefix" eval "bindir=$bindir" eval "datadir=$datadir" eval "mandir=$mandir" # Check whether --with-gnustep_dir or --without-gnustep_dir was given. if test "${with_gnustep_dir+set}" = set; then withval="$with_gnustep_dir" with_gnustep_dir=$withval else with_gnustep_dir="~/GNUstep" fi # Check whether --with-gnustep_lib or --without-gnustep_lib was given. if test "${with_gnustep_lib+set}" = set; then withval="$with_gnustep_lib" with_gnustep_lib=$withval else with_gnustep_lib="~/GNUstep/Library" fi # Check whether --with-afterdir or --without-afterdir was given. if test "${with_afterdir+set}" = set; then withval="$with_afterdir" with_afterdir=$withval else with_afterdir="~/GNUstep/Library/AfterStep" fi # Check whether --enable-shaping or --disable-shaping was given. if test "${enable_shaping+set}" = set; then enableval="$enable_shaping" enable_shaping=$enableval else enable_shaping="yes" fi # Check whether --enable-jpeg or --disable-jpeg was given. if test "${enable_jpeg+set}" = set; then enableval="$enable_jpeg" enable_jpeg=$enableval else enable_jpeg="yes" fi # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:620: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="gcc" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:650: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_prog_rejected=no ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" break fi done IFS="$ac_save_ifs" if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# -gt 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift set dummy "$ac_dir/$ac_word" "$@" shift ac_cv_prog_CC="$@" fi fi fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -z "$CC"; then case "`uname -s`" in *win32* | *WIN32*) # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:701: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_CC="cl" break fi done IFS="$ac_save_ifs" fi fi CC="$ac_cv_prog_CC" if test -n "$CC"; then echo "$ac_t""$CC" 1>&6 else echo "$ac_t""no" 1>&6 fi ;; esac fi test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 echo "configure:733: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross cat > conftest.$ac_ext << EOF #line 744 "configure" #include "confdefs.h" main(){return(0);} EOF if { (eval echo configure:749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ac_cv_prog_cc_works=yes # If we can't run a trivial program, we are probably using a cross compiler. if (./conftest; exit) 2>/dev/null; then ac_cv_prog_cc_cross=no else ac_cv_prog_cc_cross=yes fi else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 ac_cv_prog_cc_works=no fi rm -fr conftest* ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. ac_cpp='$CPP $CPPFLAGS' ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' cross_compiling=$ac_cv_prog_cc_cross echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 if test $ac_cv_prog_cc_works = no; then { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 echo "configure:775: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 echo "configure:780: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then ac_cv_prog_gcc=yes else ac_cv_prog_gcc=no fi fi echo "$ac_t""$ac_cv_prog_gcc" 1>&6 if test $ac_cv_prog_gcc = yes; then GCC=yes else GCC= fi ac_test_CFLAGS="${CFLAGS+set}" ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 echo "configure:808: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else echo 'void f(){}' > conftest.c if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then ac_cv_prog_cc_g=yes else ac_cv_prog_cc_g=no fi rm -f conftest* fi echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 if test "$ac_test_CFLAGS" = set; then CFLAGS="$ac_save_CFLAGS" elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 echo "configure:851: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" for ac_dir in $PATH; do # Account for people who put trailing slashes in PATH elements. case "$ac_dir/" in /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do if test -f $ac_dir/$ac_prog; then if test $ac_prog = install && grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : else ac_cv_path_install="$ac_dir/$ac_prog -c" break 2 fi fi done ;; esac done IFS="$ac_save_IFS" fi if test "${ac_cv_path_install+set}" = set; then INSTALL="$ac_cv_path_install" else # As a last resort, use the slow shell script. We don't cache a # path for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the path is relative. INSTALL="$ac_install_sh" fi fi echo "$ac_t""$INSTALL" 1>&6 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:906: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_prog_RANLIB="ranlib" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" fi fi RANLIB="$ac_cv_prog_RANLIB" if test -n "$RANLIB"; then echo "$ac_t""$RANLIB" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "rm", so it can be a program name with args. set dummy rm; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:936: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$RM" in /*) ac_cv_path_RM="$RM" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_RM="$RM" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_RM="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" ;; esac fi RM="$ac_cv_path_RM" if test -n "$RM"; then echo "$ac_t""$RM" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "mv", so it can be a program name with args. set dummy mv; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:972: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$MV" in /*) ac_cv_path_MV="$MV" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_MV="$MV" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_MV="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" ;; esac fi MV="$ac_cv_path_MV" if test -n "$MV"; then echo "$ac_t""$MV" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "cp", so it can be a program name with args. set dummy cp; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1008: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$CP" in /*) ac_cv_path_CP="$CP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_CP="$CP" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_CP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" ;; esac fi CP="$ac_cv_path_CP" if test -n "$CP"; then echo "$ac_t""$CP" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "mkdir", so it can be a program name with args. set dummy mkdir; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1044: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_MKDIR'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$MKDIR" in /*) ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_MKDIR="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir" ;; esac fi MKDIR="$ac_cv_path_MKDIR" if test -n "$MKDIR"; then echo "$ac_t""$MKDIR" 1>&6 else echo "$ac_t""no" 1>&6 fi # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 echo "configure:1080: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else case "$STRIP" in /*) ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. ;; ?:/*) ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path. ;; *) IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" ac_dummy="$PATH" for ac_dir in $ac_dummy; do test -z "$ac_dir" && ac_dir=. if test -f $ac_dir/$ac_word; then ac_cv_path_STRIP="$ac_dir/$ac_word" break fi done IFS="$ac_save_ifs" test -z "$ac_cv_path_STRIP" && ac_cv_path_STRIP="strip" ;; esac fi STRIP="$ac_cv_path_STRIP" if test -n "$STRIP"; then echo "$ac_t""$STRIP" 1>&6 else echo "$ac_t""no" 1>&6 fi if test -n '`echo "$CFLAGS " | grep "\-g " 2> /dev/null`' ; then CFLAGS=`echo "$CFLAGS " | sed "s/-g //"` fi if test "x$GCC" = "xyes"; then if test -z '`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`' ; then CFLAGS="$CFLAGS -Wall" fi fi echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 echo "configure:1128: checking how to run the C preprocessor" >&5 # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # This must be in double quotes, not single quotes, because CPP may get # substituted into the Makefile and "${CC-cc}" will confuse make. CPP="${CC-cc} -E" # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP="${CC-cc} -nologo -E" cat > conftest.$ac_ext < Syntax Error EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then : else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* CPP=/lib/cpp fi rm -f conftest* fi rm -f conftest* fi rm -f conftest* ac_cv_prog_CPP="$CPP" fi CPP="$ac_cv_prog_CPP" else ac_cv_prog_CPP="$CPP" fi echo "$ac_t""$CPP" 1>&6 # If we find X, set shell vars x_includes and x_libraries to the # paths, otherwise set no_x=yes. # Uses ac_ vars as temps to allow command line to override cache and checks. # --without-x overrides everything else, but does not touch the cache. echo $ac_n "checking for X""... $ac_c" 1>&6 echo "configure:1212: checking for X" >&5 # Check whether --with-x or --without-x was given. if test "${with_x+set}" = set; then withval="$with_x" : fi # $have_x is `yes', `no', `disabled', or empty when we do not yet know. if test "x$with_x" = xno; then # The user explicitly disabled X. have_x=disabled else if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then # Both variables are already set. have_x=yes else if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else # One or both of the vars are not set, and there is no cached value. ac_x_includes=NO ac_x_libraries=NO rm -fr conftestdir if mkdir conftestdir; then cd conftestdir # Make sure to not put "make" in the Imakefile rules, since we grep it out. cat > Imakefile <<'EOF' acfindx: @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' EOF if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then # GNU make sometimes prints "make[1]: Entering...", which would confuse us. eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. for ac_extension in a so sl; do if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && test -f $ac_im_libdir/libX11.$ac_extension; then ac_im_usrlibdir=$ac_im_libdir; break fi done # Screen out bogus values from the imake configuration. They are # bogus both because they are the default anyway, and because # using them would break gcc on systems where it needs fixed includes. case "$ac_im_incroot" in /usr/include) ;; *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; esac case "$ac_im_usrlibdir" in /usr/lib | /lib) ;; *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; esac fi cd .. rm -fr conftestdir fi if test "$ac_x_includes" = NO; then # Guess where to find include files, by looking for this one X11 .h file. test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:1279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* # We can compile using X headers with no special include directory. ac_x_includes= else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* # Look for the header file in a standard set of common directories. # Check X11 before X11Rn because it is often a symlink to the current release. for ac_dir in \ /usr/X11/include \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11 \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11/include \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11 \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X386/include \ /usr/x386/include \ /usr/XFree86/include/X11 \ \ /usr/include \ /usr/local/include \ /usr/unsupported/include \ /usr/athena/include \ /usr/local/x11r5/include \ /usr/lpp/Xamples/include \ \ /usr/openwin/include \ /usr/openwin/share/include \ ; \ do if test -r "$ac_dir/$x_direct_test_include"; then ac_x_includes=$ac_dir break fi done fi rm -f conftest* fi # $ac_x_includes = NO if test "$ac_x_libraries" = NO; then # Check for the libraries. test -z "$x_direct_test_library" && x_direct_test_library=Xt test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS="$LIBS" LIBS="-l$x_direct_test_library $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link X programs with no special library path. ac_x_libraries= else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* LIBS="$ac_save_LIBS" # First see if replacing the include by lib works. # Check X11 before X11Rn because it is often a symlink to the current release. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ /usr/X11/lib \ /usr/X11R6/lib \ /usr/X11R5/lib \ /usr/X11R4/lib \ \ /usr/lib/X11 \ /usr/lib/X11R6 \ /usr/lib/X11R5 \ /usr/lib/X11R4 \ \ /usr/local/X11/lib \ /usr/local/X11R6/lib \ /usr/local/X11R5/lib \ /usr/local/X11R4/lib \ \ /usr/local/lib/X11 \ /usr/local/lib/X11R6 \ /usr/local/lib/X11R5 \ /usr/local/lib/X11R4 \ \ /usr/X386/lib \ /usr/x386/lib \ /usr/XFree86/lib/X11 \ \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /usr/athena/lib \ /usr/local/x11r5/lib \ /usr/lpp/Xamples/lib \ /lib/usr/lib/X11 \ \ /usr/openwin/lib \ /usr/openwin/share/lib \ ; \ do for ac_extension in a so sl; do if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then ac_x_libraries=$ac_dir break 2 fi done done fi rm -f conftest* fi # $ac_x_libraries = NO if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then # Didn't find X anywhere. Cache the known absence of X. ac_cv_have_x="have_x=no" else # Record where we found X for the cache. ac_cv_have_x="have_x=yes \ ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" fi fi fi eval "$ac_cv_have_x" fi # $with_x != no if test "$have_x" != yes; then echo "$ac_t""$have_x" 1>&6 no_x=yes else # If each of the values was on the command line, it overrides each guess. test "x$x_includes" = xNONE && x_includes=$ac_x_includes test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries # Update the cache value to reflect the command line values. ac_cv_have_x="have_x=yes \ ac_x_includes=$x_includes ac_x_libraries=$x_libraries" echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 fi if test "$no_x" = yes; then # Not all programs may use this symbol, but it does not hurt to define it. cat >> confdefs.h <<\EOF #define X_DISPLAY_MISSING 1 EOF X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= else if test -n "$x_includes"; then X_CFLAGS="$X_CFLAGS -I$x_includes" fi # It would also be nice to do this for all -L options, not just this one. if test -n "$x_libraries"; then X_LIBS="$X_LIBS -L$x_libraries" # For Solaris; some versions of Sun CC require a space after -R and # others require no space. Words are not sufficient . . . . case "`(uname -sr) 2>/dev/null`" in "SunOS 5"*) echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 echo "configure:1461: checking whether -R must be followed by a space" >&5 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_nospace=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_R_nospace=no fi rm -f conftest* if test $ac_R_nospace = yes; then echo "$ac_t""no" 1>&6 X_LIBS="$X_LIBS -R$x_libraries" else LIBS="$ac_xsave_LIBS -R $x_libraries" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* ac_R_space=yes else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* ac_R_space=no fi rm -f conftest* if test $ac_R_space = yes; then echo "$ac_t""yes" 1>&6 X_LIBS="$X_LIBS -R $x_libraries" else echo "$ac_t""neither works" 1>&6 fi fi LIBS="$ac_xsave_LIBS" esac fi # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X # libraries were built with DECnet support. And karl@cs.umb.edu says # the Alpha needs dnet_stub (dnet does not exist). echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 echo "configure:1526: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" else echo "$ac_t""no" 1>&6 fi if test $ac_cv_lib_dnet_dnet_ntoa = no; then echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 echo "configure:1567: checking for dnet_ntoa in -ldnet_stub" >&5 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldnet_stub $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" else echo "$ac_t""no" 1>&6 fi fi # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, # to get the SysV transport functions. # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) # needs -lnsl. # The nsl library prevents programs from opening the X display # on Irix 5.2, according to dickey@clark.net. echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 echo "configure:1615: checking for gethostbyname" >&5 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char gethostbyname(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) choke me #else gethostbyname(); #endif ; return 0; } EOF if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_gethostbyname=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_gethostbyname=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_gethostbyname = no; then echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 echo "configure:1664: checking for gethostbyname in -lnsl" >&5 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lnsl $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" else echo "$ac_t""no" 1>&6 fi fi # lieder@skyler.mavd.honeywell.com says without -lsocket, # socket/setsockopt and other routines are undefined under SCO ODT # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary # on later versions), says simon@lia.di.epfl.ch: it contains # gethostby* variants that don't use the nameserver (or something). # -lsocket must be given before -lnsl if both are needed. # We assume that if connect needs -lnsl, so does gethostbyname. echo $ac_n "checking for connect""... $ac_c" 1>&6 echo "configure:1713: checking for connect" >&5 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char connect(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_connect) || defined (__stub___connect) choke me #else connect(); #endif ; return 0; } EOF if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_connect=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_connect=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_connect = no; then echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 echo "configure:1762: checking for connect in -lsocket" >&5 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lsocket $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" else echo "$ac_t""no" 1>&6 fi fi # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. echo $ac_n "checking for remove""... $ac_c" 1>&6 echo "configure:1805: checking for remove" >&5 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char remove(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_remove) || defined (__stub___remove) choke me #else remove(); #endif ; return 0; } EOF if { (eval echo configure:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_remove=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_remove=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_remove = no; then echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 echo "configure:1854: checking for remove in -lposix" >&5 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lposix $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" else echo "$ac_t""no" 1>&6 fi fi # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. echo $ac_n "checking for shmat""... $ac_c" 1>&6 echo "configure:1897: checking for shmat" >&5 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char shmat(); int main() { /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined (__stub_shmat) || defined (__stub___shmat) choke me #else shmat(); #endif ; return 0; } EOF if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_func_shmat=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_func_shmat=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then echo "$ac_t""yes" 1>&6 : else echo "$ac_t""no" 1>&6 fi if test $ac_cv_func_shmat = no; then echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 echo "configure:1946: checking for shmat in -lipc" >&5 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lipc $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" else echo "$ac_t""no" 1>&6 fi fi fi # Check for libraries that X11R6 Xt/Xaw programs need. ac_save_LDFLAGS="$LDFLAGS" test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to # check for ICE first), but we must link in the order -lSM -lICE or # we get undefined symbols. So assume we have SM if we have ICE. # These have to be linked with before -lX11, unlike the other # libraries we check for below, so use a different variable. # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 echo "configure:1998: checking for IceConnectionNumber in -lICE" >&5 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lICE $X_EXTRA_LIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" else echo "$ac_t""no" 1>&6 fi LDFLAGS="$ac_save_LDFLAGS" fi for ac_hdr in sys/wait.h sys/time.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:2045: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done for ac_hdr in sys/statvfs.h sys/vfs.h sys/mount.h ustat.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:2085: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done for ac_hdr in machine/soundcard.h linux/soundcard.h linux/radio.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 echo "configure:2125: checking for $ac_hdr" >&5 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* eval "ac_cv_header_$ac_safe=yes" else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_header_$ac_safe=no" fi rm -f conftest* fi if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then echo "$ac_t""yes" 1>&6 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` cat >> confdefs.h <&6 fi done saved_cflags="$CFLAGS" saved_ldflags="$LDFLAGS" CFLAGS="$CFLAGS $X_CFLAGS" LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS" x_libs="$X_EXTRA_LIBS $X_PRE_LIBS" echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6 echo "configure:2172: checking for XOpenDisplay in -lX11" >&5 ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lX11 $x_libs $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 x_libs="-lX11 $x_libs" else echo "$ac_t""no" 1>&6 fi # Initialize some more variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. # If we find XPM, set shell vars xpm_includes and xpm_libraries to the # paths, otherwise set no_xpm=yes. # Uses ac_ vars as temps to allow command line to override cache and checks. echo $ac_n "checking for libXpm""... $ac_c" 1>&6 echo "configure:2224: checking for libXpm" >&5 # Check whether --with-xpm_includes or --without-xpm_includes was given. if test "${with_xpm_includes+set}" = set; then withval="$with_xpm_includes" xpm_includes="$withval" else xpm_includes=NO fi # Check whether --with-xpm_library or --without-xpm_library was given. if test "${with_xpm_library+set}" = set; then withval="$with_xpm_library" xpm_libraries="$withval" else xpm_libraries=NO fi # --without-xpm overrides everything else, but does not touch the cache. # Check whether --with-xpm or --without-xpm was given. if test "${with_xpm+set}" = set; then withval="$with_xpm" : fi if test "$with_xpm" = no; then have_xpm=disabled else if eval "test \"`echo '$''{'ac_cv_have_xpm'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else vt_xpm_include_X11=no if test -n "$xpm_includes"; then vt_xpm_includes=$xpm_includes else vt_xpm_includes=NO fi if test -n "$xpm_libraries"; then vt_xpm_libraries=$xpm_libraries else vt_xpm_libraries=NO fi if test "$vt_xpm_includes" = NO; then # Guess where to find xpm.h # First, try using that file with no special directory specified. cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* # We can compile using X headers with no special include directory. vt_xpm_includes= vt_xpm_include_X11=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* # Look for the header file in a standard set of common directories. for ac_dir in \ /usr/X11/include \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11 \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11/include \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11 \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X386/include \ /usr/x386/include \ /usr/XFree86/include/X11 \ \ /usr/include \ /usr/local/include \ /usr/unsupported/include \ /usr/athena/include \ /usr/local/x11r5/include \ /usr/lpp/Xamples/include \ \ /usr/openwin/include \ /usr/openwin/share/include \ ; \ do if test -r "$ac_dir/X11/xpm.h"; then vt_xpm_includes="$ac_dir" vt_xpm_include_X11=yes break # Albert@dma.be: does not make sense because we #include # else # if test -r "$ac_dir/xpm.h"; then # vt_xpm_includes=$ac_dir # break # fi fi done fi rm -f conftest* fi if test "$vt_xpm_libraries" = NO; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS="$LIBS" LIBS="-lXpm $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* LIBS="$ac_save_LIBS" # We can link libXpm with no special library path. vt_xpm_libraries= else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* LIBS="$ac_save_LIBS" # First see if replacing the include by lib works. for ac_dir in \ `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ /usr/X11/lib \ /usr/X11R6/lib \ /usr/X11R5/lib \ /usr/X11R4/lib \ \ /usr/lib/X11 \ /usr/lib/X11R6 \ /usr/lib/X11R5 \ /usr/lib/X11R4 \ \ /usr/local/X11/lib \ /usr/local/X11R6/lib \ /usr/local/X11R5/lib \ /usr/local/X11R4/lib \ \ /usr/local/lib/X11 \ /usr/local/lib/X11R6 \ /usr/local/lib/X11R5 \ /usr/local/lib/X11R4 \ \ /usr/X386/lib \ /usr/x386/lib \ /usr/XFree86/lib/X11 \ \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /usr/athena/lib \ /usr/local/x11r5/lib \ /usr/lpp/Xamples/lib \ \ /usr/openwin/lib \ /usr/openwin/share/lib \ ; \ do for ac_extension in a so sl; do if test -r $ac_dir/libXpm.$ac_extension; then vt_xpm_libraries=$ac_dir break 2 fi done done fi rm -f conftest* fi if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then ac_cv_have_xpm="have_xpm=no" else ac_cv_have_xpm="have_xpm=yes \ vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ vt_xpm_include_X11=$vt_xpm_include_X11" fi fi eval "$ac_cv_have_xpm" fi if test "$have_xpm" != yes; then echo "$ac_t""$have_xpm" 1>&6 no_xpm=yes else if test "$xpm_includes" != NO; then if test "$xpm_includes" != "$vt_xpm_includes"; then vt_xpm_include_X11=no if test -z "$xpm_includes"; then cat > conftest.$ac_ext < EOF ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" { (eval echo configure:2444: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` if test -z "$ac_err"; then rm -rf conftest* vt_xpm_include_X11=yes else echo "$ac_err" >&5 echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 fi rm -f conftest* else if test -r "$xpm_includes/X11/xpm.h"; then vt_xpm_include_X11=yes fi fi fi vt_xpm_includes=$xpm_includes fi if test "x$xpm_libraries" != xNO; then vt_xpm_libraries=$xpm_libraries fi # Update the cache value to reflect the command line values. ac_cv_have_xpm="have_xpm=yes \ vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ vt_xpm_include_X11=$vt_xpm_include_X11" eval "$ac_cv_have_xpm" echo "$ac_t""-I$vt_xpm_includes, -L$vt_xpm_libraries" 1>&6 if test -n "$vt_xpm_includes"; then HAVEXPM="NOXPM" else HAVEXPM="XPM" fi if test -n "$vt_xpm_includes"; then XPM_CFLAGS="-I$vt_xpm_includes" fi XPM_LIBS="-lXpm" if test -n "$vt_xpm_libraries"; then XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" fi fi HAVEXPM="NOXPM" if test "x$have_xpm" = "xyes"; then HAVEXPM="XPM" x_libs="$x_libs $XPM_LIBS" fi for x in $X_CFLAGS; do XPM_CFLAGS=`echo " $XPM_CFLAGS " | sed "s@ $x @ @"` done HAVESHAPE="NOSHAPE" if test "x$enable_shaping" = "xyes"; then echo $ac_n "checking for XShapeCombineMask in -lXext""... $ac_c" 1>&6 echo "configure:2503: checking for XShapeCombineMask in -lXext" >&5 ac_lib_var=`echo Xext'_'XShapeCombineMask | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-lXext $x_libs $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 x_libs="$x_libs -lXext" HAVESHAPE="SHAPE" else echo "$ac_t""no" 1>&6 fi fi CFLAGS="$saved_cflags" LDFLAGS="$saved_ldflags" HAVEJPEG="NOJPEG" if test "x$enable_jpeg" = "xyes"; then echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6 echo "configure:2551: checking for jpeg_destroy_compress in -ljpeg" >&5 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ljpeg $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else echo "configure: failed program was:" >&5 cat conftest.$ac_ext >&5 rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=no" fi rm -f conftest* LIBS="$ac_save_LIBS" fi if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then echo "$ac_t""yes" 1>&6 JPEG_LIB="-ljpeg" HAVEJPEG="JPEG" else echo "$ac_t""no" 1>&6 fi fi MAKEFILEDEFINES=./autoconf/Makefile.defines MAKEFILECOMMON=./autoconf/Makefile.common MAKEFILECOMMONLIB=./autoconf/Makefile.common.lib trap '' 1 2 15 cat > confcache <<\EOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs. It is not useful on other systems. # If it contains results you don't want to keep, you may remove or edit it. # # By default, configure uses ./config.cache as the cache file, # creating it if it does not exist already. You can give configure # the --cache-file=FILE option to use a different cache file; that is # what configure does when it calls configure scripts in # subdirectories, so they share the cache. # Giving --cache-file=/dev/null disables caching, for debugging configure. # config.status only pays attention to the cache file if you give it the # --recheck option to rerun configure. # EOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, don't put newlines in cache variables' values. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. (set) 2>&1 | case `(ac_space=' '; set | grep ac_space) 2>&1` in *ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote substitution # turns \\\\ into \\, and sed turns \\ into \). sed -n \ -e "s/'/'\\\\''/g" \ -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" ;; *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' ;; esac >> confcache if cmp -s $cache_file confcache; then : else if test -w $cache_file; then echo "updating cache $cache_file" cat confcache > $cache_file else echo "not updating unwritable cache $cache_file" fi fi rm -f confcache trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' # Any assignment to VPATH causes Sun make to only execute # the first set of double-colon rules, so remove it if not needed. # If there is a colon in the path, we need to keep it. if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' fi trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 DEFS=-DHAVE_CONFIG_H # Without the "./", some shells look in PATH for config.status. : ${CONFIG_STATUS=./config.status} echo creating $CONFIG_STATUS rm -f $CONFIG_STATUS cat > $CONFIG_STATUS </dev/null | sed 1q`: # # $0 $ac_configure_args # # Compiler output produced by configure, useful for debugging # configure, is in ./config.log if it exists. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" for ac_option do case "\$ac_option" in -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; -version | --version | --versio | --versi | --vers | --ver | --ve | --v) echo "$CONFIG_STATUS generated by autoconf version 2.13" exit 0 ;; -help | --help | --hel | --he | --h) echo "\$ac_cs_usage"; exit 0 ;; *) echo "\$ac_cs_usage"; exit 1 ;; esac done ac_given_srcdir=$srcdir ac_given_INSTALL="$INSTALL" trap 'rm -fr `echo "\ autoconf/Makefile.defines \ autoconf/Makefile.common \ autoconf/Makefile.common.lib \ Makefile config.h:autoconf/config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 EOF cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF $ac_vpsub $extrasub s%@SHELL@%$SHELL%g s%@CFLAGS@%$CFLAGS%g s%@CPPFLAGS@%$CPPFLAGS%g s%@CXXFLAGS@%$CXXFLAGS%g s%@FFLAGS@%$FFLAGS%g s%@DEFS@%$DEFS%g s%@LDFLAGS@%$LDFLAGS%g s%@LIBS@%$LIBS%g s%@exec_prefix@%$exec_prefix%g s%@prefix@%$prefix%g s%@program_transform_name@%$program_transform_name%g s%@bindir@%$bindir%g s%@sbindir@%$sbindir%g s%@libexecdir@%$libexecdir%g s%@datadir@%$datadir%g s%@sysconfdir@%$sysconfdir%g s%@sharedstatedir@%$sharedstatedir%g s%@localstatedir@%$localstatedir%g s%@libdir@%$libdir%g s%@includedir@%$includedir%g s%@oldincludedir@%$oldincludedir%g s%@infodir@%$infodir%g s%@mandir@%$mandir%g s%@CC@%$CC%g s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g s%@INSTALL_DATA@%$INSTALL_DATA%g s%@RANLIB@%$RANLIB%g s%@RM@%$RM%g s%@MV@%$MV%g s%@CP@%$CP%g s%@MKDIR@%$MKDIR%g s%@STRIP@%$STRIP%g s%@CPP@%$CPP%g s%@X_CFLAGS@%$X_CFLAGS%g s%@X_PRE_LIBS@%$X_PRE_LIBS%g s%@X_LIBS@%$X_LIBS%g s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g s%@HAVEXPM@%$HAVEXPM%g s%@XPM_CFLAGS@%$XPM_CFLAGS%g s%@XPM_LIBS@%$XPM_LIBS%g s%@version@%$version%g s%@with_locale@%$with_locale%g s%@HAVESHAPE@%$HAVESHAPE%g s%@HAVEJPEG@%$HAVEJPEG%g s%@x_libs@%$x_libs%g s%@x_includes@%$x_includes%g s%@XEXT_LIB@%$XEXT_LIB%g s%@JPEG_LIB@%$JPEG_LIB%g s%@with_gnustep_dir@%$with_gnustep_dir%g s%@with_gnustep_lib@%$with_gnustep_lib%g s%@with_afterdir@%$with_afterdir%g /@MAKEFILEDEFINES@/r $MAKEFILEDEFINES s%@MAKEFILEDEFINES@%%g /@MAKEFILECOMMON@/r $MAKEFILECOMMON s%@MAKEFILECOMMON@%%g /@MAKEFILECOMMONLIB@/r $MAKEFILECOMMONLIB s%@MAKEFILECOMMONLIB@%%g CEOF EOF cat >> $CONFIG_STATUS <<\EOF # Split the substitutions into bite-sized pieces for seds with # small command number limits, like on Digital OSF/1 and HP-UX. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. ac_file=1 # Number of current file. ac_beg=1 # First line for current file. ac_end=$ac_max_sed_cmds # Line after last line for current file. ac_more_lines=: ac_sed_cmds="" while $ac_more_lines; do if test $ac_beg -gt 1; then sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file else sed "${ac_end}q" conftest.subs > conftest.s$ac_file fi if test ! -s conftest.s$ac_file; then ac_more_lines=false rm -f conftest.s$ac_file else if test -z "$ac_sed_cmds"; then ac_sed_cmds="sed -f conftest.s$ac_file" else ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" fi ac_file=`expr $ac_file + 1` ac_beg=$ac_end ac_end=`expr $ac_end + $ac_max_sed_cmds` fi done if test -z "$ac_sed_cmds"; then ac_sed_cmds=cat fi EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" # A "../" for each directory in $ac_dir_suffix. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` else ac_dir_suffix= ac_dots= fi case "$ac_given_srcdir" in .) srcdir=. if test -z "$ac_dots"; then top_srcdir=. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; *) # Relative path. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" top_srcdir="$ac_dots$ac_given_srcdir" ;; esac case "$ac_given_INSTALL" in [/$]*) INSTALL="$ac_given_INSTALL" ;; *) INSTALL="$ac_dots$ac_given_INSTALL" ;; esac echo creating "$ac_file" rm -f "$ac_file" configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." case "$ac_file" in *Makefile*) ac_comsub="1i\\ # $configure_input" ;; *) ac_comsub= ;; esac ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` sed -e "$ac_comsub s%@configure_input@%$configure_input%g s%@srcdir@%$srcdir%g s%@top_srcdir@%$top_srcdir%g s%@INSTALL@%$INSTALL%g " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file fi; done rm -f conftest.s* # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where # NAME is the cpp macro being defined and VALUE is the value it is being given. # # ac_d sets the value in "#define NAME VALUE" lines. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' ac_dC='\3' ac_dD='%g' # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_uB='\([ ]\)%\1#\2define\3' ac_uC=' ' ac_uD='\4%g' # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' ac_eB='$%\1#\2define\3' ac_eC=' ' ac_eD='%g' if test "${CONFIG_HEADERS+set}" != set; then EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF fi for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". case "$ac_file" in *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; *) ac_file_in="${ac_file}.in" ;; esac echo creating $ac_file rm -f conftest.frag conftest.in conftest.out ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` cat $ac_file_inputs > conftest.in EOF # Transform confdefs.h into a sed script conftest.vals that substitutes # the proper values into config.h.in to produce config.h. And first: # Protect against being on the right side of a sed subst in config.status. # Protect against being in an unquoted here document in config.status. rm -f conftest.vals cat > conftest.hdr <<\EOF s/[\\&%]/\\&/g s%[\\$`]%\\&%g s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp s%ac_d%ac_u%gp s%ac_u%ac_e%gp EOF sed -n -f conftest.hdr confdefs.h > conftest.vals rm -f conftest.hdr # This sed command replaces #undef with comments. This is necessary, for # example, in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. cat >> conftest.vals <<\EOF s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% EOF # Break up conftest.vals because some shells have a limit on # the size of here documents, and old seds have small limits too. rm -f conftest.tail while : do ac_lines=`grep -c . conftest.vals` # grep -c gives empty output for an empty file on some AIX systems. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi # Write a limited-size here document to conftest.frag. echo ' cat > conftest.frag <> $CONFIG_STATUS sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS echo 'CEOF sed -f conftest.frag conftest.in > conftest.out rm -f conftest.in mv conftest.out conftest.in ' >> $CONFIG_STATUS sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail rm -f conftest.vals mv conftest.tail conftest.vals done rm -f conftest.vals cat >> $CONFIG_STATUS <<\EOF rm -f conftest.frag conftest.h echo "/* $ac_file. Generated automatically by configure. */" > conftest.h cat conftest.in >> conftest.h rm -f conftest.in if cmp -s $ac_file conftest.h 2>/dev/null; then echo "$ac_file is unchanged" rm -f conftest.h else # Remove last slash and all that follows it. Not all systems have dirname. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then # The file is in a subdirectory. test ! -d "$ac_dir" && mkdir "$ac_dir" fi rm -f $ac_file mv conftest.h $ac_file fi fi; done EOF cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF exit 0 EOF chmod +x $CONFIG_STATUS rm -fr confdefs* $ac_clean_files test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 echo " AfterStep applet $version is now hopefully configured, just run : make ; make install " asmix-1.5/autoconf/0000755000175000001440000000000010141422203014733 5ustar albertusers00000000000000asmix-1.5/autoconf/Makefile.common.in0000644000175000001440000000201710141422025020271 0ustar albertusers00000000000000# # Copyright (c) 1998, Guylhem AZNAR # 1999 Albert aka Tigr # @MAKEFILEDEFINES@ all: $(PROG) install: install.bin install.man install.bin: $(PROG) $(STRIP) $(PROG) $(INSTALL_PROGRAM) $(PROG) $(AFTER_BIN_DIR) install.man: $(INSTALL_DATA) $(PROG).man $(AFTER_MAN_DIR)/$(PROG).1x uninstall: $(RMF) $(AFTER_BIN_DIR)/$(PROG) $(RMF) $(AFTER_MAN_DIR)/$(PROG).1x clean: $(RMF) $(PROG) *.o *~ *% *.bak \#* core distclean: $(RMF) $(PROG) config.cache config.log config.status Makefile.bak Makefile config.h configure.h *.o *~ *% *.bak \#* core autoconf/Makefile.common autoconf/Makefile.common.lib autoconf/Makefile.defines indent: SRCS=`echo "$(OBJS) " | sed "s/.o /.c /g"`; \ for i in $$SRCS; do \ if (indent < $$i > /tmp/$$i); then \ mv /tmp/$$i $$i; \ fi; \ done $(PROG): $(OBJS) $(CC) $(OBJS) $(LIBRARIES) $(EXTRA_LIBRARIES) -o $(@) .c.o: $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c # # End of Make.common # asmix-1.5/autoconf/aclocal.m40000644000175000001440000001421710141422025016602 0ustar albertusers00000000000000dnl> test to find the hard-to-find libXpm dnl> mostly copied from AC_PATH_X & AC_PATH_DIRECT, but explictly set AC_DEFUN(VT_FIND_LIBXPM, [ AC_REQUIRE_CPP() # Initialize some more variables set by options. # The variables have the same names as the options, with # dashes changed to underlines. # If we find XPM, set shell vars xpm_includes and xpm_libraries to the # paths, otherwise set no_xpm=yes. # Uses ac_ vars as temps to allow command line to override cache and checks. AC_MSG_CHECKING(for libXpm) AC_ARG_WITH(xpm_includes, [ --with-xpm-includes=DIR use XPM includes in DIR], xpm_includes="$withval", xpm_includes=NO) AC_ARG_WITH(xpm_library, [ --with-xpm-library=DIR use XPM library in DIR], xpm_libraries="$withval", xpm_libraries=NO) # --without-xpm overrides everything else, but does not touch the cache. AC_ARG_WITH(xpm, [ --with-xpm use XPM]) if test "$with_xpm" = no; then have_xpm=disabled else AC_CACHE_VAL(ac_cv_have_xpm, [ vt_xpm_include_X11=no if test -n "$xpm_includes"; then vt_xpm_includes=$xpm_includes else vt_xpm_includes=NO fi if test -n "$xpm_libraries"; then vt_xpm_libraries=$xpm_libraries else vt_xpm_libraries=NO fi VT_XPM_DIRECT if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then ac_cv_have_xpm="have_xpm=no" else ac_cv_have_xpm="have_xpm=yes \ vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ vt_xpm_include_X11=$vt_xpm_include_X11" fi])dnl eval "$ac_cv_have_xpm" fi if test "$have_xpm" != yes; then AC_MSG_RESULT($have_xpm) no_xpm=yes else if test "$xpm_includes" != NO; then if test "$xpm_includes" != "$vt_xpm_includes"; then vt_xpm_include_X11=no if test -z "$xpm_includes"; then AC_TRY_CPP([#include ], vt_xpm_include_X11=yes) else if test -r "$xpm_includes/X11/xpm.h"; then vt_xpm_include_X11=yes fi fi fi vt_xpm_includes=$xpm_includes fi if test "x$xpm_libraries" != xNO; then vt_xpm_libraries=$xpm_libraries fi # Update the cache value to reflect the command line values. ac_cv_have_xpm="have_xpm=yes \ vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \ vt_xpm_include_X11=$vt_xpm_include_X11" eval "$ac_cv_have_xpm" AC_MSG_RESULT([-I$vt_xpm_includes, -L$vt_xpm_libraries]) if test -n "$vt_xpm_includes"; then HAVEXPM="NOXPM" else HAVEXPM="XPM" fi if test -n "$vt_xpm_includes"; then XPM_CFLAGS="-I$vt_xpm_includes" fi XPM_LIBS="-lXpm" if test -n "$vt_xpm_libraries"; then XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS" fi fi AC_SUBST(HAVEXPM) AC_SUBST(XPM_CFLAGS) AC_SUBST(XPM_LIBS) ]) dnl Internal subroutine of VT_FIND_LIBXPM dnl Set vt_xpm_include and vt_xpm_libr # -------------- find xpm.h and Xpm.a/Xpm.so/Xpm.sl AC_DEFUN(VT_XPM_DIRECT, [if test "$vt_xpm_includes" = NO; then # Guess where to find xpm.h # First, try using that file with no special directory specified. AC_TRY_CPP([#include ], [# We can compile using X headers with no special include directory. vt_xpm_includes= vt_xpm_include_X11=yes], [# Look for the header file in a standard set of common directories. for ac_dir in \ /usr/X11/include \ /usr/X11R6/include \ /usr/X11R5/include \ /usr/X11R4/include \ \ /usr/include/X11 \ /usr/include/X11R6 \ /usr/include/X11R5 \ /usr/include/X11R4 \ \ /usr/local/X11/include \ /usr/local/X11R6/include \ /usr/local/X11R5/include \ /usr/local/X11R4/include \ \ /usr/local/include/X11 \ /usr/local/include/X11R6 \ /usr/local/include/X11R5 \ /usr/local/include/X11R4 \ \ /usr/X386/include \ /usr/x386/include \ /usr/XFree86/include/X11 \ \ /usr/include \ /usr/local/include \ /usr/unsupported/include \ /usr/athena/include \ /usr/local/x11r5/include \ /usr/lpp/Xamples/include \ \ /usr/openwin/include \ /usr/openwin/share/include \ ; \ do if test -r "$ac_dir/X11/xpm.h"; then vt_xpm_includes="$ac_dir" vt_xpm_include_X11=yes break # Albert@dma.be: does not make sense because we #include # else # if test -r "$ac_dir/xpm.h"; then # vt_xpm_includes=$ac_dir # break # fi fi done]) fi if test "$vt_xpm_libraries" = NO; then # Check for the libraries. # See if we find them without any special options. # Don't add to $LIBS permanently. ac_save_LIBS="$LIBS" LIBS="-lXpm $LIBS" AC_TRY_LINK(, [XpmReadFileToPixmap()], [LIBS="$ac_save_LIBS" # We can link libXpm with no special library path. vt_xpm_libraries=], [LIBS="$ac_save_LIBS" # First see if replacing the include by lib works. for ac_dir in \ `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \ /usr/X11/lib \ /usr/X11R6/lib \ /usr/X11R5/lib \ /usr/X11R4/lib \ \ /usr/lib/X11 \ /usr/lib/X11R6 \ /usr/lib/X11R5 \ /usr/lib/X11R4 \ \ /usr/local/X11/lib \ /usr/local/X11R6/lib \ /usr/local/X11R5/lib \ /usr/local/X11R4/lib \ \ /usr/local/lib/X11 \ /usr/local/lib/X11R6 \ /usr/local/lib/X11R5 \ /usr/local/lib/X11R4 \ \ /usr/X386/lib \ /usr/x386/lib \ /usr/XFree86/lib/X11 \ \ /usr/lib \ /usr/local/lib \ /usr/unsupported/lib \ /usr/athena/lib \ /usr/local/x11r5/lib \ /usr/lpp/Xamples/lib \ \ /usr/openwin/lib \ /usr/openwin/share/lib \ ; \ do dnl XXX Shouldn't this really use AC_TRY_LINK to be portable & robust?? for ac_extension in a so sl; do if test -r $ac_dir/libXpm.$ac_extension; then vt_xpm_libraries=$ac_dir break 2 fi done done]) fi ]) asmix-1.5/autoconf/Makefile.defines.in0000644000175000001440000000177410141422025020427 0ustar albertusers00000000000000# # Copyright (c) 1998, Guylhem AZNAR # CC = @CC@ CCFLAGS = @CFLAGS@ # -march=pentiumpro -mcpu=pentiumpro RANLIB = @RANLIB@ AR = ar clq CP = @CP@ MV = @MV@ RM = @RM@ RMF = @RM@ -f MKDIR = @MKDIR@ STRIP = @STRIP@ YACC = @YACC@ LEX = @LEX@ YACCFLAGS = -d LEXFLAGS = INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL@ -s -m 755 INSTALL_DATA = @INSTALL@ -m 644 INCS_X = @X_CFLAGS@ INCS_XPM = @XPM_CFLAGS@ INCLUDES = $(INCS_X) $(INCS_XPM) LIBS_X = @X_LIBS@ @x_libs@ LIBS_XPM = LIBS_JPEG = @JPEG_LIB@ LIBS_XEXTS = LIBS_AFTERSTEP = LIBS_M = -lm LIBRARIES = $(LIBS_X) $(LIBS_XPM) $(LIBS_JPEG) $(LIBS_XEXTS) $(LIBS_AFTERSTEP) $(LIBS_M) AFTER_BIN_DIR = @bindir@ AFTER_MAN_DIR = @mandir@/man1 AFTER_DOC_DIR = @datadir@/afterstep/doc AFTER_SHAREDIR = @datadir@/afterstep GNUSTEP = @with_gnustep_dir@ GNUSTEPLIB = @with_gnustep_lib@ AFTER_DIR = @with_afterdir@ AFTER_SAVE = @with_afterdir@/.workspace_state AFTER_NONCF = @with_afterdir@/non-configurable # # End of Make.defines # asmix-1.5/autoconf/Makefile.common.lib.in0000644000175000001440000000127110141422025021037 0ustar albertusers00000000000000# # Copyright (c) 1998, Guylhem AZNAR # @MAKEFILEDEFINES@ all: $(PROG) install: # do nothing install.man: # do nothing uninstall: # do nothing clean: $(RMF) $(PROG) *.o *~ *% *.bak \#* core distclean: $(RMF) $(PROG) config.cache config.log config.status Makefile.bak Makefile config.h configure.h *.o *~ *% *.bak \#* core indent: SRCS=`echo "$(OBJS) " | sed "s/.o /.c /g"`; \ for i in $$SRCS; do \ if (indent < $$i > /tmp/$$i); then \ mv /tmp/$$i $$i; \ fi; \ done $(PROG): $(OBJS) $(RMF) $(PROG) $(AR) $(PROG) $(OBJS) $(RANLIB) $(PROG) .c.o: $(CC) $(CCFLAGS) $(EXTRA_DEFINES) $(INCLUDES) $(EXTRA_INCLUDES) -c $*.c asmix-1.5/autoconf/configure.in0000644000175000001440000000733310141422066017261 0ustar albertusers00000000000000dnl# -*- sh -*- dnl# Process this file with autoconf to produce a configure script. dnl# dnl#Copyright (c) 1998 Juergen Sawinski dnl#Copyright (c) 1997 1998 Guylhem AZNAR AC_INIT(Makefile.in) AC_CONFIG_AUX_DIR(autoconf) AC_CONFIG_HEADER(config.h:autoconf/config.h.in) version="asmix-1.5" dnl# Setup command-line options dnl# we need the standard prefixes defined early test "x$prefix" = xNONE && prefix=$ac_default_prefix test "x$exec_prefix" = xNONE && exec_prefix="$prefix" eval "bindir=$bindir" eval "datadir=$datadir" eval "mandir=$mandir" dnl# directories AC_ARG_WITH(gnustep_dir, [ --with-gnustep-dir=DIR GNUstep directory [~/GNUstep] ],with_gnustep_dir=$withval, with_gnustep_dir="~/GNUstep") AC_ARG_WITH(gnustep_lib, [ --with-gnustep-lib=DIR GNUstep/Library directory [~/GNUstep/Library] ],with_gnustep_lib=$withval, with_gnustep_lib="~/GNUstep/Library") AC_ARG_WITH(afterdir, [ --with-afterdir=DIR user AfterStep dir [~/GNUstep/Library/AfterStep] ],with_afterdir=$withval, with_afterdir="~/GNUstep/Library/AfterStep") AC_ARG_ENABLE(shaping, [ --enable-shaping support shaped windows [yes] ],enable_shaping=$enableval,enable_shaping="yes") AC_ARG_ENABLE(jpeg, [ --enable-jpeg support JPEG image format [yes] ],enable_jpeg=$enableval,enable_jpeg="yes") dnl# Check for compiler tools AC_PROG_CC AC_PROG_INSTALL AC_PROG_RANLIB AC_PATH_PROG(RM, rm, rm) AC_PATH_PROG(MV, mv, mv) AC_PATH_PROG(CP, cp, cp) AC_PATH_PROG(MKDIR, mkdir, mkdir) AC_PATH_PROG(STRIP, strip, strip) dnl# Remove -g if test -n '`echo "$CFLAGS " | grep "\-g " 2> /dev/null`' ; then CFLAGS=`echo "$CFLAGS " | sed "s/-g //"` fi dnl# Add -Wall if test "x$GCC" = "xyes"; then if test -z '`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`' ; then CFLAGS="$CFLAGS -Wall" fi fi dnl# Check for headers AC_PATH_XTRA AC_CHECK_HEADERS(sys/wait.h sys/time.h) AC_CHECK_HEADERS(sys/statvfs.h sys/vfs.h sys/mount.h ustat.h) AC_CHECK_HEADERS(machine/soundcard.h linux/soundcard.h linux/radio.h) AC_CONFIG_HEADER(config.h) dnl# Check for X saved_cflags="$CFLAGS" saved_ldflags="$LDFLAGS" CFLAGS="$CFLAGS $X_CFLAGS" LDFLAGS="$LDFLAGS $X_LDFLAGS $X_LIBS" x_libs="$X_EXTRA_LIBS $X_PRE_LIBS" AC_CHECK_LIB(X11, XOpenDisplay, [x_libs="-lX11 $x_libs"],,$x_libs) dnl# Check for XPM library VT_FIND_LIBXPM HAVEXPM="NOXPM" if test "x$have_xpm" = "xyes"; then HAVEXPM="XPM" x_libs="$x_libs $XPM_LIBS" fi for x in $X_CFLAGS; do XPM_CFLAGS=`echo " $XPM_CFLAGS " | sed "s@ $x @ @"` done dnl# Check for X shaped window extension HAVESHAPE="NOSHAPE" if test "x$enable_shaping" = "xyes"; then AC_CHECK_LIB(Xext, XShapeCombineMask, [x_libs="$x_libs -lXext" HAVESHAPE="SHAPE"],,$x_libs) fi CFLAGS="$saved_cflags" LDFLAGS="$saved_ldflags" dnl# Check for libjpeg HAVEJPEG="NOJPEG" if test "x$enable_jpeg" = "xyes"; then AC_CHECK_LIB(jpeg, jpeg_destroy_compress, [JPEG_LIB="-ljpeg" HAVEJPEG="JPEG"],,) fi dnl# Variable strings declaration AC_SUBST(version) AC_SUBST(with_locale) AC_SUBST(HAVEXPM) AC_SUBST(HAVESHAPE) AC_SUBST(HAVEJPEG) AC_SUBST(XPM_LIBS) AC_SUBST(x_libs) AC_SUBST(x_includes) AC_SUBST(XEXT_LIB) AC_SUBST(JPEG_LIB) AC_SUBST(with_gnustep_dir) AC_SUBST(with_gnustep_lib) AC_SUBST(with_afterdir) dnl# Write results AC_CONFIG_HEADER(config.h) dnl# Common parts of the Makefile MAKEFILEDEFINES=./autoconf/Makefile.defines MAKEFILECOMMON=./autoconf/Makefile.common MAKEFILECOMMONLIB=./autoconf/Makefile.common.lib AC_SUBST_FILE(MAKEFILEDEFINES) AC_SUBST_FILE(MAKEFILECOMMON) AC_SUBST_FILE(MAKEFILECOMMONLIB) AC_OUTPUT(\ autoconf/Makefile.defines \ autoconf/Makefile.common \ autoconf/Makefile.common.lib \ Makefile ) echo " AfterStep applet $version is now hopefully configured, just run : make ; make install " asmix-1.5/autoconf/install-sh0000544000175000001440000001124410141422025016737 0ustar albertusers00000000000000#! /bin/sh # # install - install a program, script, or datafile # This comes from X11R5. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. # # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit="${DOITPROG-}" # put in absolute paths if you don't have them in your path; or use env. vars. mvprog="${MVPROG-mv}" cpprog="${CPPROG-cp}" chmodprog="${CHMODPROG-chmod}" chownprog="${CHOWNPROG-chown}" chgrpprog="${CHGRPPROG-chgrp}" stripprog="${STRIPPROG-strip}" rmprog="${RMPROG-rm}" mkdirprog="${MKDIRPROG-mkdir}" tranformbasename="" transform_arg="" instcmd="$mvprog" chmodcmd="$chmodprog 0755" chowncmd="" chgrpcmd="" stripcmd="" rmcmd="$rmprog -f" mvcmd="$mvprog" src="" dst="" dir_arg="" while [ x"$1" != x ]; do case $1 in -c) instcmd="$cpprog" shift continue;; -d) dir_arg=true shift continue;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; -s) stripcmd="$stripprog" shift continue;; -t=*) transformarg=`echo $1 | sed 's/-t=//'` shift continue;; -b=*) transformbasename=`echo $1 | sed 's/-b=//'` shift continue;; *) if [ x"$src" = x ] then src=$1 else # this colon is to work around a 386BSD /bin/sh bug : dst=$1 fi shift continue;; esac done if [ x"$src" = x ] then echo "install: no input file specified" exit 1 else true fi if [ x"$dir_arg" != x ]; then dst=$src src="" if [ -d $dst ]; then instcmd=: else instcmd=mkdir fi else # Waiting for this to be detected by the "$instcmd $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if [ -f $src -o -d $src ] then true else echo "install: $src does not exist" exit 1 fi if [ x"$dst" = x ] then echo "install: no destination specified" exit 1 else true fi # If destination is a directory, append the input filename; if your system # does not like double slashes in filenames, you may need to add some logic if [ -d $dst ] then dst="$dst"/`basename $src` else true fi fi ## this sed command emulates the dirname command dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` # Make sure that the destination directory exists. # this part is taken from Noah Friedman's mkinstalldirs script # Skip lots of stat calls in the usual case. if [ ! -d "$dstdir" ]; then defaultIFS=' ' IFS="${IFS-${defaultIFS}}" oIFS="${IFS}" # Some sh's can't handle IFS=/ for some reason. IFS='%' set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` IFS="${oIFS}" pathcomp='' while [ $# -ne 0 ] ; do pathcomp="${pathcomp}${1}" shift if [ ! -d "${pathcomp}" ] ; then $mkdirprog "${pathcomp}" else true fi pathcomp="${pathcomp}/" done fi if [ x"$dir_arg" != x ] then $doit $instcmd $dst && if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi else # If we're going to rename the final executable, determine the name now. if [ x"$transformarg" = x ] then dstfile=`basename $dst` else dstfile=`basename $dst $transformbasename | sed $transformarg`$transformbasename fi # don't allow the sed command to completely eliminate the filename if [ x"$dstfile" = x ] then dstfile=`basename $dst` else true fi # Make a temp file name in the proper directory. dsttmp=$dstdir/#inst.$$# # Move or copy the file name to the temp name $doit $instcmd $src $dsttmp && trap "rm -f ${dsttmp}" 0 && # and set any options; do chmod last to preserve setuid bits # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $instcmd $src $dsttmp" command. if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && # Now rename the file to the real destination. $doit $rmcmd -f $dstdir/$dstfile && $doit $mvcmd $dsttmp $dstdir/$dstfile fi && exit 0 asmix-1.5/autoconf/mkinstalldirs0000544000175000001440000000121110141422025017532 0ustar albertusers00000000000000#!/bin/sh # mkinstalldirs --- make directory hierarchy # Author: Noah Friedman # Created: 1993-05-16 # Last modified: 1994-03-25 # Public domain errstatus=0 for file in ${1+"$@"} ; do set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` shift pathcomp= for d in ${1+"$@"} ; do pathcomp="$pathcomp$d" case "$pathcomp" in -* ) pathcomp=./$pathcomp ;; esac if test ! -d "$pathcomp"; then echo "mkdir $pathcomp" 1>&2 mkdir "$pathcomp" || errstatus=$? fi pathcomp="$pathcomp/" done done exit $errstatus # mkinstalldirs ends here asmix-1.5/autoconf/config.h.in0000644000175000001440000000165710141422025016771 0ustar albertusers00000000000000/* config.h.in. Generated automatically from autoconf/configure.in by autoheader 2.13. */ /* Define if the X Window System is missing or not being used. */ #undef X_DISPLAY_MISSING /* Define if you have the header file. */ #undef HAVE_LINUX_RADIO_H /* Define if you have the header file. */ #undef HAVE_LINUX_SOUNDCARD_H /* Define if you have the header file. */ #undef HAVE_MACHINE_SOUNDCARD_H /* Define if you have the header file. */ #undef HAVE_SYS_MOUNT_H /* Define if you have the header file. */ #undef HAVE_SYS_STATVFS_H /* Define if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define if you have the header file. */ #undef HAVE_SYS_VFS_H /* Define if you have the header file. */ #undef HAVE_SYS_WAIT_H /* Define if you have the header file. */ #undef HAVE_USTAT_H asmix-1.5/volume.xpm0000644000175000001440000001640506737057175015214 0ustar albertusers00000000000000/* XPM */ static char *volume_xpm[] = { /* width height num_colors chars_per_pixel */ " 48 48 155 2", /* colors */ ".. c None", ".# c #746e74", ".a c #3c363c", ".b c #6c6e74", ".c c #6c6674", ".d c #141214", ".e c #443e44", ".f c #343644", ".g c #040204", ".h c #5c5a5c", ".i c #949294", ".j c #948e8c", ".k c #8c8e8c", ".l c #14121c", ".m c #3c3e44", ".n c #94969c", ".o c #ccc6cc", ".p c #f4f2f4", ".q c #f4eef4", ".r c #f4eeec", ".s c #eceeec", ".t c #eceaec", ".u c #e4e6e4", ".v c #e4e2e4", ".w c #8c868c", ".x c #4c4e4c", ".y c #949694", ".z c #f4faf4", ".A c #fcf6f4", ".B c #ece6e4", ".C c #e4dedc", ".D c #dcdedc", ".E c #dcdadc", ".F c #dcd6dc", ".G c #acaeac", ".H c #4c4a4c", ".I c #646264", ".J c #6c6a7c", ".K c #fcfafc", ".L c #f4f6f4", ".M c #e4dee4", ".N c #d4d2d4", ".O c #d4cecc", ".P c #ccced4", ".Q c #cccecc", ".R c #a4a2a4", ".S c #4c464c", ".T c #64626c", ".U c #141224", ".V c #646674", ".W c #d4cacc", ".X c #fcf6fc", ".Y c #d4d6d4", ".Z c #d4d2cc", ".0 c #d4ced4", ".1 c #cccacc", ".2 c #c4c6c4", ".3 c #c4c6cc", ".4 c #ccc6c4", ".5 c #c4c2c4", ".6 c #bcbec4", ".7 c #444244", ".8 c #342e34", ".9 c #645e64", "#. c #f4f2fc", "## c #dcd6d4", "#a c #c4bec4", "#b c #bcbabc", "#c c #b4b6b4", "#d c #f4f6fc", "#e c #e4eae4", "#f c #ccd2d4", "#g c #ccd2cc", "#h c #cccac4", "#i c #c4cac4", "#j c #b4b2b4", "#k c #b4aeac", "#l c #34363c", "#m c #e4e2dc", "#n c #d4dad4", "#o c #bcbebc", "#p c #bcb6bc", "#q c #a4a29c", "#r c #9c9ea4", "#s c #ece6ec", "#t c #c4bebc", "#u c #b4b6bc", "#v c #a4a6a4", "#w c #9c9a9c", "#x c #343234", "#y c #9c9694", "#z c #6c6a74", "#A c #acaaac", "#B c #9c969c", "#C c #8c8a8c", "#D c #847e84", "#E c #2c2e2c", "#F c #5c5e64", "#G c #5c5a64", "#H c #cccad4", "#I c #bcbab4", "#J c #9c9e9c", "#K c #7c7e7c", "#L c #5c5a6c", "#M c #b4aeb4", "#N c #948e94", "#O c #7c7a74", "#P c #747674", "#Q c #acaeb4", "#R c #aca6ac", "#S c #7c767c", "#T c #6c6e6c", "#U c #c4c2bc", "#V c #b4b2ac", "#W c #6c6a64", "#X c #545254", "#Y c #3c3a44", "#Z c #94929c", "#0 c #5c5e5c", "#1 c #a49e9c", "#2 c #848284", "#3 c #545654", "#4 c #a49ea4", "#5 c #3c3a4c", "#6 c #3c3e4c", "#7 c #b4b2bc", "#8 c #544e54", "#9 c #34323c", "a. c #e4e6ec", "a# c #2c2a2c", "aa c #04020c", "ab c #7c7a7c", "ac c #74726c", "ad c #a4a6ac", "ae c #444644", "af c #dcdee4", "ag c #848684", "ah c #acaaa4", "ai c #443e3c", "aj c #24262c", "ak c #3c3a3c", "al c #6c6a6c", "am c #14161c", "an c #3c3e3c", "ao c #2c2e34", "ap c #9c9aa4", "aq c #8c8e94", "ar c #44464c", "as c #242224", "at c #74767c", "au c #84868c", "av c #94928c", "aw c #646664", "ax c #747274", "ay c #1c1e24", /* pixels */ "................................................................................................", "................................................................................................", "...............................................#................................................", "...............................................a................................................", "...........................b.#.................a...................c............................", ".............................d.............#.a.e.a.a.............f.c............................", ".............................a.#...a.d.g.g.h.i.i.j.k.g.g.g.a.c...l..............................", "...............................m.g.n.o.p.p.q.r.s.t.t.u.v.v.w.x.g.c..............................", "...........................a.g.y.z.A.p.s.t.B.v.C.D.C.v.D.E.E.F.G.H.d.I..........................", "...............d.J.......d.y.z.K.L.s.u.M.E.N.N.N.O.N.P.N.N.N.N.O.Q.R.S.T.......U.V..............", ".................l...J.d.W.X.X.s.v.E.Y.Z.O.P.0.Q.P.1.1.1.1.2.1.3.4.5.6.7.f...8.V................", "...................m.9.W#..X.t.M##.N.N.O.O.Q.0.Q.1.o.Q.4.1.o.5.5.5#a#b#c.c.g....................", "...................g#d#d.L#e.D.Y#f.0.Z.P#g.P.P.1.P#h.o#i.2.2.2.5#a#b#j#k.G.9#l..................", ".................l.1.X.L#m#n#f.N#f.N.0.Z.0.Q.P.1.o.1.3.o.4.5.5#a.6#o#p.G#q#r.a.9................", "...............d.4#d.L#s.Y.N.Y.O.0#g.P.Q.P.1.W.Q.1.4.3.5.5.5.6#b#t#b#u#k#v#w.i#x.9..............", ".............c.h.z.A.q.E.N.N.O##.O.P#f.P.1.Q.1.o.1.o.2.5.5#t#a#b#b#p#b#j.R#y.k#z.d..............", ".............d.1.X.p.D.N.N.N.0.Q.Z.0.Q.W.1.1.1.2.2.5.5.5#a#o#o#b#b#c#c#j#A#B#C#D#E.9..#F.U......", ".....l.a#z.b#G#d.p.v.N.P.P.W.W#f.Q.Q#H.1.1.1.4.2.o.5.5#o#a#o#b#b#I#c#c#j.G#J#C#K.9.l.T#L........", ".........m.e.n.A.s.E.1.P.W.W#f.P.Q.1.1.1.o#h.4.5.5.5#a.6#b#b#b#p#c#c#j#M#M#v#N#O#P.g............", "...........g.L.p.v.N.0.W.W#f.P.Q.P.Q.Q.o.o.2.2.5.5#a#o#a#b#b#c#p#c#j#k#Q#A#R.y#S#T.m.8..........", ".........#.h.p.p.C.N.P.W#f.P.Q#H.1#h#i.3.3.4#U#a.6#o#b#b#p#p#c#j#V#M.G#k#A#A.y#S#W#X.d..........", "........#Y#Z.p.s.E.O.1.W.P.Q#H.1#H#i#h.3.2.5#U.5#a#b#b#b#p#c#j#j#Q#M#A#A#A#v#w#S.I#0.g..........", ".........a#Z.p.B.Y.0.W#f#i.P.1.W.4.o.3.4.5.5#o.6#o#b#I#u#c#j#j#M#M.G#A#A#A#v#1#K.I#G.g..........", ".........g.q.q.u.N.0.O.P.P.1.1.4.o.3.3.5#a#t#t#b#b#b#c#p#j#j#M#M.G#A#A#v#R#v#J#2.9#3.8.8........", ".........g.s.s.M#g.Q.1.Q.1.1#i.o.2.5.5#a#o.6#b#b#b#p#c#j#j#M.G#Q#A#A#R#v.R.R#4#C#0#X.8#l........", "#z#5#6.b.g.q.t.E.P.W.1.1.1.3.o.o.5.5.5#a#t#o#b#u#p#c#7#j.G#M#A#A#A#R#v#R.R.R#J.w#0#8#E#9.8.8.8..", ".........g.ta..C.O.1.1.1.o.4.2.5.5#a#o#o#b#b#p#p#c#j#j#M.G.G#A#A#R#v#v.R.R.R#w#2#3.Ha#.a........", "........aa#sa..M.P.1.1.1.o.2.5.5.5#o#a#b#b#b#c#c#j#j#k#Q#k#A#A#R#v#R.R.R.R#4#wab#8.Ha##9........", ".........a.k.v.E.O.1.3.4.2.5.5.5#o#a#b#b#p#c#p#j#j#M.G#A#A#A#R#v.R.R.R.R#4#r.nac.H.7.g..........", "........#Y#C.v.E#f.o.o.2.3.5#a#a#o#b#b#p#p#c#j#j#Q#k#Q#A#A#v#R.Rad.R.R.R#4#J#N.Iae.7.g..........", ".........c#8af##.Q.o.2.5.5#a#o#o#b#b#c#c#c#j#j#k#Q.G#A#A#R#R#v.R.R.R#4#r#r#wag.h.7#9.d..........", "...........g.F.Y.O.2.5.5#a#U#a#b#b#p#c#p#j#j#M#Q#kah#A#v#R#v.R.R.R#r#1#r#1#Bab.Haiaj.8..........", "...........a#2.N.Q.o.5#a.6#o#b#b#b#c#p#j#M#k.G#A#A#A#R#v#R.R.R.R#4#q.R#J#w.k.I.7ak.g............", "..........ak.H.Z.1.2.6#t#b#o#b#p#c#j#j#j#k#Q.G#A#A#R#R#v.R.R#4.R#1#J#w#1.yac.Hak.8.g............", ".......V.lalam.R.3#t#o#b#b#b#b#c#p#j#M.G#Q#A#A#A#R#v#v.R.R.R.R#J#r#J#J#w#2#Xanak.d#G#G.d#X......", "....#5#Y....al.S.5#b#p#p#b#p#p#j#j#j#Q#k#A#A#A#R#v.R.R.R.R#4#r#1#J#1#J.k#0.eaka#.d......ao......", "...............lap#b#Q#V#j#c#j#j#j#k.G#A#A#R#R#v#R.R.R.R#J#4#r#w#w#w.y.#.Sanak.l#G..............", "................amaq#kad#A#A#M#j#k#Q#A#A#A#v#R#v.R.R.R#4#1#r#J#4#w.jac.xak.a.l.h................", "...................g#A#4#J#J.R#A.G#A#A#R#R#v#v.R.R.R.R#J#r#1#w.n#2.Iar.aakas#9..................", "...................aak#K#B.i.j.n#4#R#v#R#v.R.R.R.R#4#J#w#J#B.j#S#3.eak.aas.g....................", ".................d...I.lat#Cau#2agav.n#w#4#4#1#r#4#w#w.i.k#Kaw.Hakak.a.l#9..ao#G................", "...............d.9.......d#X#D#D#Pax#Pab#2#2au#N#C#Kax#W.h.Haiakakao.d.h.......U#X..............", "...............V..........#l.gar.#.b#W.I.9.I#0.I#0#X.H.S.m.ean.8.l.l#G..........#X..............", "...............................a.g.e#8#0.h#X#X.H.H.S.7anaiaj.l.l.h..............................", "..................................#9.l.g.gay#x.8a#a#.g.g.g#9#F..................................", "...........................................9#l#x#l#x............................................", "................................................................................................", "................................................................................................" }; asmix-1.5/mark.xpm0000644000175000001440000000027406737057175014634 0ustar albertusers00000000000000/* XPM */ static char * mark_xpm[] = { "4 4 5 1", " c #E79DBAEAB6DA", ". c #69A604100000", "X c #D75CAAAAA699", "o c #AEBA59655144", "O c #B6DA92489658", " ..X", ".ooo", ".ooo", "XooO"}; asmix-1.5/asmix.man0000644000175000001440000000663010141417617014755 0ustar albertusers00000000000000.TH asmix 1 "01 November 2004" "Version 1.5" .UC .SH NAME \fBasmix\fP \- the AfterStep volume control knob .SH SYNOPSIS .B asmix [-h] [-V] [-iconic] [-shape] [-withdrawn] [-geometry \fI[+|-]x[+|-]y\fP] [-channel \fIchannel-id\fP] [-exe \fIcommand\fP] [-device \fImixer-device\fP] [-name \fIwindow-name\fP] .SH DESCRIPTION The \fBasmix\fP is a X11 application that acts as a volume control knob for the /dev/mixer device. The applet provides a distinctive AfterStep window manager look. .PP The best thing about this applet is that you do not have to learn how to use it. If you used any volume knobs before - you know how to operate this one. If you never came across such a thing then just grab the knob with the left button of your mouse and turn it into the position you like. .SH CONFIGURATION OPTIONS .IP "-h" .RS Prints a short description and usage message. .RE .IP "-V" .RS Version control. Prints the version of the applet. .RE .IP "-geometry [+|-]x[+|-]y" .RS Displays the window at the specified location on the screen. This works as standard X Windows geometry option. .RE .IP "-iconic" .RS Starts the \fBasmix\fP application in the iconized mode. The icon has the same appearance with the main window. .RE .IP "-shape" .RS Starts the \fBasmix\fP application without groundplate. .RE .IP "-withdrawn" .RS Starts the \fBasmix\fP applet in the "withdrawn" mode. Necessary to be able to dock it to the Window Maker's dock. .RE .IP "-channel " .RS Specifies the channel to control (default: volume). The possible channels include: volume, pcm, bass, treble, synth, speaker, line, mic, cd, imix, pcm2, record, igain, ogain, line1, line2, line3, digital1, digital2, digital3, phone-in, phone-out, video, radio, monitor. Note that not all systems support all channels. .RE .IP "-exe " .RS The applet will execute the specified command on a mouseclick with the middle mouse button in the window. .RE .IP "-device " .RS The applet will attempt to opern the specified mixer device instead of the standard \fI/dev/mixer\fP. .RE .IP "-name " .RS The applet will set the name of the window to the specified \fIwindow-name\fP instead of the standard "\fIasmix\fP". This is useful when swallowing multiple instances of \fBasmix\fP into the AfterStep Wharf. .RE .SH INVOCATION \fBasmix\fP was written to be swallowed by the AfterStep wharf module, but it can be used with everything else too. A common invocation is the command line: .nf user@host[1]% asmix & .fi Another way to call \fBasmix\fP is from the AfterStep Wharf: .nf *Wharf asmix nil Swallow "asmix" asmix -shape & .fi This line, when placed in the \fIwharf\fP file in the users Afterstep configuration directory will cause \fBasmix\fP to be a button on the \fBWharf (1)\fP button bar under the \fBafterstep (1)\fP window manager. .SH BUGS None that I am aware of. .SH FILES .I /dev/mixer .SH "SEE ALSO" .BR Wharf (1) .SH COPYRIGHTS Copyright (c) 1998 original author unknown .sp Copyright (c) 1998-2004 Albert "Tigr" Dorofeev .sp Copyright (c) 2000 John "wizgrav" Gravezas .sp Distributed under GNU General Public License, see LICENSE file for the details. .SH AUTHORS The application: original author unknown, was maintained by Albert "Tigr" Dorofeev , currently maintained by ... well, again by himself. The man page: Albert Dorofeev .sp asmix-1.5/Makefile.in0000644000175000001440000000050106737057175015212 0ustar albertusers00000000000000# AfterStepApps standard Makefile and autoconf/ ; do not edit OBJS = asmix.o PROG = asmix @MAKEFILECOMMON@ config: autoconf --localdir=autoconf autoconf/configure.in > \ configure ; chmod 755 configure autoheader --localdir=autoconf autoconf/configure.in > \ autoconf/config.h.in ; chmod 644 autoconf/config.h.in asmix-1.5/INSTALL0000644000175000001440000000073506737057175014207 0ustar albertusers00000000000000DEPENDENCIES ============ For asmix you need xpm library. From the xpmlib manual: New XPM updates are announced on the comp.windows.x newsgroup, and on the "xpm-talk" list. All new "official" XPM releases can be found by ftp on: ftp.x.org (18.112.44.100) contrib (Boston, USA) koala.inria.fr (138.96.24.30) pub/xpm (Sophia Antipolis, France) INSTALLATION ============ To install the asmix on your system: ./configure make make install asmix-1.5/CHANGES0000644000175000001440000000332710141420107014116 0ustar albertusers000000000000001.5 01 Nov 2004 albert@tigr.net A patch for -device flag submitted by C. McCohy . At the same time another flag -name is introduced by me. 1.4 16 Oct 2002 albert@tigr.net A patch for multichannel support by Philip J Grabner 1.3 09 Feb 2000 albert@tigr.net Okay, I tidied up everything that I could think of so that the new maintainer does not have to curse me one too many times :) No changes in the program itself, only docs. 1.2.1 01 Feb 2000 wizgrav@netsmart.gr I've decided to adopt this applet(Sincethere's no author) and added support for wheel mouse.If you want to change the behavior of the wheel find a line #define WIZ in asmix.c and change the value remember that's radients.Next release i'll make it configurable at runtime ;) 1.2 02 Jul 1999 albert@tigr.net A few maintenance thingies. A bit of makefiles, command line parameters and the man page changes. Nothing of great importance. 1.1 01 Oct 1998 albert@tigr.net I had to have a look at it because for some reason it stopped working as it used to long time ago so I just compared a very old copy to a not-so-very old copy and figured what had to be done. One addition is that it quits now on Close event (that is when you press the Close button of the window). Don't get surprised, I also changed the name of the window from asMix to asmix so if you used it before in Wharf, you have to change the name in your wharf file. 1.0 unknown author It is known that fuf (M.Vitecek@sh.cvut.cz) hacked this tool at some point in time :) Judging from the code he made it work on FreeBSD and support the WM hints. That became the version 1.0 in AfterStep applets distribution. asmix-1.5/asmix.c0000644000175000001440000004126610141416761014427 0ustar albertusers00000000000000/* * asmix is the AfterStep sound volume control knob for X Windows. * Copyright (c) 1998 original author unknown * Copyright (c) 1998-2004 Albert "Tigr" Dorofeev * Copyright (c) 2000 John "wizgrav" Gravezas * * This software is distributed under GPL. For details see LICENSE file. */ #include "config.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_MACHINE_SOUNDCARD_H # include #endif #ifdef HAVE_LINUX_SOUNDCARD_H # include #endif typedef struct mixer_channel_ident_t { char * channel_name; int channel_id; } mixer_channel_ident; mixer_channel_ident channel_idents[] = { { "volume", SOUND_MIXER_VOLUME }, { "bass", SOUND_MIXER_BASS }, { "treble", SOUND_MIXER_TREBLE }, { "synth", SOUND_MIXER_SYNTH }, { "pcm", SOUND_MIXER_PCM }, { "speaker", SOUND_MIXER_SPEAKER }, { "line", SOUND_MIXER_LINE }, { "mic", SOUND_MIXER_MIC }, { "cd", SOUND_MIXER_CD }, { "imix", SOUND_MIXER_IMIX }, { "pcm2", SOUND_MIXER_ALTPCM }, { "record", SOUND_MIXER_RECLEV }, { "igain", SOUND_MIXER_IGAIN }, { "ogain", SOUND_MIXER_OGAIN }, { "line1", SOUND_MIXER_LINE1 }, { "line2", SOUND_MIXER_LINE2 }, { "line3", SOUND_MIXER_LINE3 }, { "digital1", SOUND_MIXER_DIGITAL1 }, { "digital2", SOUND_MIXER_DIGITAL2 }, { "digital3", SOUND_MIXER_DIGITAL3 }, { "phone-in", SOUND_MIXER_PHONEIN }, { "phone-out", SOUND_MIXER_PHONEOUT }, { "video", SOUND_MIXER_VIDEO }, { "radio", SOUND_MIXER_RADIO }, { "monitor", SOUND_MIXER_MONITOR }, { NULL, 0 } }; typedef struct stereovolume { unsigned char left; unsigned char right; } StereoVolume; typedef struct volctrl { int mixer_id; StereoVolume volume; int supported; } VolumeControl; VolumeControl Master; int mixer_fd; #include "volume.xpm" /*#include "mask2.xbm"*/ #include "mark.xpm" #define Center_X 24 #define Center_Y 26 #define Radius 13 #define min_a 0.75*M_PI #define max_a 0.25*M_PI #define WIZ M_PI/8 int ONLYSHAPE=0; int ICONIFIED=0; /* default is not iconified */ int WITHDRAWN=0; /* default is not withdrawn */ /* X11 Variablen *************************************************************/ Display *dpy; /* welches DISPLAY */ Window Root; /* Hintergrund-Drawable */ int screen; double Mark_Pos=M_PI/2; int Pos=0; int d_depth; XSizeHints mysizehints; XWMHints mywmhints; Pixel back_pix, fore_pix; GC NormalGC; Window iconwin, win; /* My home is my window */ char *ProgName; char *Geometry; char Execute[] = "echo no program has been specified >/dev/console"; char *ERR_colorcells = "not enough free color cells\n"; Atom wm_delete_window; Atom wm_protocols; /* XPM Variablen *************************************************************/ typedef struct _XpmIcon { Pixmap pixmap; Pixmap mask; XpmAttributes attributes; } XpmIcon; XpmIcon asMix, Mark; time_t actualtime; /* lokale Funktionen *********************************************************/ #define MW_EVENTS (ExposureMask | ButtonPressMask | StructureNotifyMask | \ ButtonMotionMask | PointerMotionMask) #define FALSE 0 void GetXPM(void); Pixel GetColor(char *name); void RedrawWindow( XpmIcon *v); /*****************************************************************************/ /*****************************************************************************/ static char *help_message[] = { "where options include:", " -exe program to start on click", " -geometry [+|-]x[+|-]y position of asmix", " -shape without groundplate", " -iconic start up as icon", " -withdrawn start up in withdrawn mode", " -channel specify the channel to control (def: volume)", " -device specify the mixer device (def: /dev/mixer)", " -name specify the name of the window (def: asmix)", " -V version control", NULL }; void version() { printf("asmix: AfterStep sound mixer volume control 1.5\n"); } void usage() { char **cpp; printf("usage: %s [-options ...] \n", ProgName); for (cpp = help_message; *cpp; cpp++) { printf("%s\n", *cpp); } printf("\n"); exit(1); } void UpdatePos(double a,int flag) { XCopyArea(dpy,asMix.pixmap,win,NormalGC, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2, Mark.attributes.width, Mark.attributes.height, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2); XCopyArea(dpy,asMix.pixmap,iconwin,NormalGC, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2, Mark.attributes.width, Mark.attributes.height, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2); if(flag==1){Mark_Pos=a;flag=0;} else Mark_Pos=a; Pos=Master.volume.left=Master.volume.right=(unsigned char)aToVol(Mark_Pos); /* fprintf(stderr,"set_slider: updating mixer %i to %i:%i\n",Master.mixer_id,Master.volume.left,Master.volume.right); */ if (ioctl(mixer_fd,MIXER_WRITE(Master.mixer_id),&Master.volume) == -1) fprintf(stderr,"Error writing mixer in Handle_slider"); XCopyArea(dpy,Mark.pixmap,win,NormalGC, 0,0,Mark.attributes.width, Mark.attributes.height, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2); XCopyArea(dpy,Mark.pixmap,iconwin,NormalGC, 0,0,Mark.attributes.width, Mark.attributes.height, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2); } int aToVol(double a) { int retval; if ((a<0) || (a100) retval=100; return retval; } double VolToa(int p) { double NewPos; NewPos=(float)p/100*3*M_PI/2+3*M_PI/4; if ((NewPos>M_PI)&&(NewPos<2*M_PI)) NewPos-=2*M_PI; return NewPos; } void MouseMove(int x, int y) { double X,Y; double a; X= (double)x - Center_X; Y= (double)y - Center_Y; if (sqrt(X*X+Y*Y)<=2) return; a=atan2(Y,X); if ((amax_a)) { if ((Mark_Pos<-M_PI/2)||(Mark_Pos>M_PI/2)) a=min_a; else a=max_a; } UpdatePos(a,0); } static void sync_Control(VolumeControl *vcptr) { int portion; /*if (!vcptr->supported) return;*/ if (ioctl(mixer_fd,MIXER_READ(vcptr->mixer_id),&vcptr->volume) == -1) perror("Error reading volumes in sync_slider"); portion=(vcptr->volume.left+vcptr->volume.right)/2; /* fprintf(stderr,"%f : %i : %i\n",NewPos,Pos,portion);*/ if (Pos!=portion) { UpdatePos(VolToa(portion),0); Pos=portion; } } int main(int argc,char *argv[]) { int i; unsigned int borderwidth ; char *display_name = NULL; char *wname = "asmix"; char *mixer_device = "/dev/mixer"; XGCValues gcv; unsigned long gcm; XEvent Event; XTextProperty name; XClassHint classHint; Pixmap pixmask; int status; ProgName = argv[0]; Geometry = ""; Master.mixer_id = SOUND_MIXER_VOLUME; Master.supported = SOUND_MIXER_VOLUME; /* Parse command line options */ ProgName = argv[0]; for(i=1;i=argc) usage(); strcpy(&Execute[0], argv[i]); strcat(&Execute[0], " &"); continue; case 's': ONLYSHAPE=1; continue; case 'g': if(++i >=argc) usage(); Geometry = argv[i]; continue; case 'i': ICONIFIED=1; continue; case 'w': WITHDRAWN=1; continue; case 'c': if(++i >=argc) usage(); { int cur=0; while(1) { if ( channel_idents[cur].channel_name == NULL ) usage(); if ( strcmp( channel_idents[cur].channel_name, argv[i] ) != 0 ) { cur++; continue; } Master.mixer_id = channel_idents[cur].channel_id; Master.supported = channel_idents[cur].channel_id; break; } } continue; case 'd': if(++i >=argc) usage(); mixer_device=argv[i]; continue; case 'n': if(++i >=argc) usage(); wname=argv[i]; continue; case 'V': version(); exit(0); default: version(); usage(); } } } mixer_fd = open (mixer_device, O_RDWR, 0); if (mixer_fd < 0) { fprintf (stderr,"asmix: Error opening mixer device %s", mixer_device); exit (1); } if (ioctl(mixer_fd, SOUND_MIXER_READ_DEVMASK, &Master.supported) == -1) Master.supported = 0xffff; /* Assume all are supported */ /* printf("Master.supported = 0x%x\n",Master.supported);*/ /* Open the display */ if (!(dpy = XOpenDisplay(display_name))) { fprintf(stderr,"asmix: can't open display %s\n", XDisplayName(display_name)); exit (1); } screen= DefaultScreen(dpy); Root = RootWindow(dpy, screen); d_depth = DefaultDepth(dpy, screen); /* Icon Daten nach XImage konvertieren */ GetXPM(); /* Create a window to hold the banner */ mysizehints.flags= USSize|USPosition; mysizehints.x = 0; mysizehints.y = 0; back_pix = GetColor("grey"); fore_pix = GetColor("darkgrey"); XWMGeometry(dpy, screen, Geometry, NULL, (borderwidth =1), &mysizehints, &mysizehints.x,&mysizehints.y,&mysizehints.width,&mysizehints.height, &i); mysizehints.width = asMix.attributes.width; mysizehints.height= asMix.attributes.height; win = XCreateSimpleWindow(dpy,Root,mysizehints.x,mysizehints.y, mysizehints.width,mysizehints.height, borderwidth,fore_pix,back_pix); iconwin = XCreateSimpleWindow(dpy,win,mysizehints.x,mysizehints.y, mysizehints.width,mysizehints.height, borderwidth,fore_pix,back_pix); /* Set up the event for quitting the window */ wm_delete_window = XInternAtom( dpy, "WM_DELETE_WINDOW", /* atom_name */ False /* only_if_exists */ ); wm_protocols = XInternAtom( dpy, "WM_PROTOCOLS", /* atom_name */ False /* only_if_exists */ ); status = XSetWMProtocols( dpy, win, &wm_delete_window, 1 ); status = XSetWMProtocols( dpy, iconwin, &wm_delete_window, 1 ); /* Hints aktivieren */ XSetWMNormalHints(dpy, win, &mysizehints); classHint.res_name = "asmix"; classHint.res_class = "asMix"; XSetClassHint(dpy, win, &classHint); XSelectInput(dpy, win, MW_EVENTS); XSelectInput(dpy, iconwin, MW_EVENTS); if (XStringListToTextProperty(&wname, 1, &name) ==0) { fprintf(stderr, "asmix: can't allocate window name [%s]\n", wname); exit(-1); } XSetWMName(dpy, win, &name); XSetWMName(dpy, iconwin, &name); /* Create a GC for drawing */ gcm = GCForeground|GCBackground|GCGraphicsExposures; gcv.foreground = fore_pix; gcv.background = back_pix; gcv.graphics_exposures = FALSE; NormalGC = XCreateGC(dpy, Root, gcm, &gcv); if (ONLYSHAPE) { /* try to make shaped window here */ /* pixmask = XCreateBitmapFromData(dpy, win, mask_bits, mask_width, mask_height);*/ XShapeCombineMask(dpy, win, ShapeBounding, 0, 0, asMix.mask, ShapeSet); XShapeCombineMask(dpy, iconwin, ShapeBounding, 0, 0, asMix.mask, ShapeSet); } mywmhints.initial_state = WITHDRAWN ? WithdrawnState : ICONIFIED ? IconicState : NormalState; mywmhints.window_group = win; mywmhints.flags = StateHint | IconWindowHint | IconPositionHint | WindowGroupHint; mywmhints.icon_window = iconwin; mywmhints.icon_x = mysizehints.x; mywmhints.icon_y = mysizehints.y; XSetWMHints(dpy, win, &mywmhints); status = XSetCommand(dpy, win, argv, argc); XSetWindowBackgroundPixmap(dpy,win,asMix.pixmap); XSetWindowBackgroundPixmap(dpy,iconwin,asMix.pixmap); sync_Control(&Master); XMapWindow(dpy,win); RedrawWindow(&asMix); while(1) { if (actualtime != time(0)) { actualtime = time(0); sync_Control(&Master); } /* read a packet */ while (XPending(dpy)) { XNextEvent(dpy,&Event); switch(Event.type) { case ClientMessage: if ((Event.xclient.message_type == wm_protocols) && (Event.xclient.data.l[0] == wm_delete_window)) { XCloseDisplay(dpy); exit(0); } break; case Expose: if(Event.xexpose.count == 0 ) RedrawWindow(&asMix); break; case ButtonPress: if (Event.xbutton.button == Button1) { MouseMove(Event.xbutton.x, Event.xbutton.y); } else if (Event.xbutton.button == Button2) { system(Execute); } else if (Event.xbutton.button == Button4) { UpdatePos(WIZ,1); } else if (Event.xbutton.button == Button4) { UpdatePos(-WIZ,1); } break; case MotionNotify: { Window Root, Child; int root_x, root_y; int win_x, win_y; unsigned int mask; if (XQueryPointer(dpy, win, &Root, &Child, &root_x, &root_y, &win_x, &win_y, &mask)!=0) { if (mask & Button1MotionMask) MouseMove(Event.xbutton.x, Event.xbutton.y); } break; } case DestroyNotify: XFreeGC(dpy, NormalGC); XFlush(dpy); /* fprintf(stderr,"DestroyMe?\n");*/ /* XDestroyWindow(dpy, win); XDestroyWindow(dpy, iconwin);*/ XCloseDisplay(dpy); exit(0); default: break; } } #ifdef SYSV poll((struct poll *) 0, (size_t) 0, 50); #else usleep(50000L); /* 50/100 sec */ #endif } return 0; } /****************************************************************************/ void nocolor(char *a, char *b) { fprintf(stderr,"asmix: can't %s %s\n", a,b); } /****************************************************************************/ /* Konvertiere XPMIcons nach XImage */ void GetXPM(void) { static char **bg_xpm; XColor col; XWindowAttributes attributes; int ret; bg_xpm =ONLYSHAPE ? volume_xpm : volume_xpm; /* for the colormap */ XGetWindowAttributes(dpy,Root,&attributes); asMix.attributes.valuemask |= (XpmReturnPixels | XpmReturnExtensions); ret = XpmCreatePixmapFromData(dpy, Root, bg_xpm, &asMix.pixmap, &asMix.mask, &asMix.attributes); if(ret != XpmSuccess) {fprintf(stderr, ERR_colorcells);exit(1);} Mark.attributes.valuemask |= (XpmReturnPixels | XpmReturnExtensions); ret = XpmCreatePixmapFromData(dpy, Root, mark_xpm, &Mark.pixmap, &Mark.mask, &Mark.attributes); if(ret != XpmSuccess) {fprintf(stderr, ERR_colorcells);exit(1);} } /****************************************************************************/ /* Removes expose events for a specific window from the queue */ int flush_expose (Window w) { XEvent dummy; int i=0; while (XCheckTypedWindowEvent (dpy, w, Expose, &dummy))i++; return i; } /****************************************************************************/ /* Draws the icon window */ void RedrawWindow( XpmIcon *v) { flush_expose (iconwin); XCopyArea(dpy,Mark.pixmap,win,NormalGC, 0,0,Mark.attributes.width, Mark.attributes.height, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2); XCopyArea(dpy,Mark.pixmap,iconwin,NormalGC, 0,0,Mark.attributes.width, Mark.attributes.height, Center_X+Radius*cos(Mark_Pos)-Mark.attributes.width/2, Center_Y+Radius*sin(Mark_Pos)-Mark.attributes.height/2); } /****************************************************************************/ Pixel GetColor(char *name) { XColor color; XWindowAttributes attributes; XGetWindowAttributes(dpy,Root,&attributes); color.pixel = 0; if (!XParseColor (dpy, attributes.colormap, name, &color)) { nocolor("parse",name); } else if(!XAllocColor (dpy, attributes.colormap, &color)) { nocolor("alloc",name); } return color.pixel; }