Pebble-1.0.0/0000755000175000001460000000000010666007144012207 5ustar phuegaphuegaPebble-1.0.0/config/0000755000175000001460000000000010666007144013454 5ustar phuegaphuegaPebble-1.0.0/config/depcomp0000755000175000001460000003710010663313202015022 0ustar phuegaphuega#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2005-07-09.11 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # 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; either version 2, or (at your option) # any later version. # 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., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> $depfile echo >> $depfile # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> $depfile else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'` tmpdepfile="$stripped.u" if test "$libtool" = yes; then "$@" -Wc,-M else "$@" -M fi stat=$? if test -f "$tmpdepfile"; then : else stripped=`echo "$stripped" | sed 's,^.*/,,'` tmpdepfile="$stripped.u" fi if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi if test -f "$tmpdepfile"; then outname="$stripped.o" # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile" sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mecanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # X makedepend shift cleared=no for arg in "$@"; do case $cleared in no) set ""; shift cleared=yes ;; esac case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix="`echo $object | sed 's/^.*\././'`" touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test $1 != '--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o, # because we must use -o when running libtool. "$@" || exit $? IFS=" " for arg do case "$arg" in "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: Pebble-1.0.0/config/install-sh0000755000175000001460000002202110663313202015445 0ustar phuegaphuega#!/bin/sh # install - install a program, script, or datafile scriptversion=2005-05-14.22 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # 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. It can only install one file at a time, a restriction # shared with many OS's install programs. # 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}" chmodcmd="$chmodprog 0755" chowncmd= chgrpcmd= stripcmd= rmcmd="$rmprog -f" mvcmd="$mvprog" src= dst= dir_arg= dstarg= no_target_directory= usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: -c (ignored) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. --help display this help and exit. --version display version info and exit. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test -n "$1"; do case $1 in -c) shift continue;; -d) dir_arg=true shift continue;; -g) chgrpcmd="$chgrpprog $2" shift shift continue;; --help) echo "$usage"; exit $?;; -m) chmodcmd="$chmodprog $2" shift shift continue;; -o) chowncmd="$chownprog $2" shift shift continue;; -s) stripcmd=$stripprog shift continue;; -t) dstarg=$2 shift shift continue;; -T) no_target_directory=true shift continue;; --version) echo "$0 $scriptversion"; exit $?;; *) # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. test -n "$dir_arg$dstarg" && break # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dstarg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dstarg" shift # fnord fi shift # arg dstarg=$arg done break;; esac done if test -z "$1"; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi for src do # Protect names starting with `-'. case $src in -*) src=./$src ;; esac if test -n "$dir_arg"; then dst=$src src= if test -d "$dst"; then mkdircmd=: chmodcmd= else mkdircmd=$mkdirprog fi else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dstarg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dstarg # Protect names starting with `-'. case $dst in -*) dst=./$dst ;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dstarg: Is a directory" >&2 exit 1 fi dst=$dst/`basename "$src"` fi fi # This sed command emulates the dirname command. dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'` # Make sure that the destination directory exists. # Skip lots of stat calls in the usual case. if test ! -d "$dstdir"; then defaultIFS=' ' IFS="${IFS-$defaultIFS}" oIFS=$IFS # Some sh's can't handle IFS=/ for some reason. IFS='%' set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'` shift IFS=$oIFS pathcomp= while test $# -ne 0 ; do pathcomp=$pathcomp$1 shift if test ! -d "$pathcomp"; then $mkdirprog "$pathcomp" # mkdir can fail with a `File exist' error in case several # install-sh are creating the directory concurrently. This # is OK. test -d "$pathcomp" || exit fi pathcomp=$pathcomp/ done fi if test -n "$dir_arg"; then $doit $mkdircmd "$dst" \ && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; } else dstfile=`basename "$dst"` # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 # Copy the file name to the temp name. $doit $cpprog "$src" "$dsttmp" && # 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 $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \ && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \ && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \ && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } && # Now rename the file to the real destination. { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \ || { # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { if test -f "$dstdir/$dstfile"; then $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \ || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \ || { echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2 (exit 1); exit 1 } else : fi } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dstdir/$dstfile" } } fi || { (exit 1); exit 1; } done # The final little trick to "correctly" pass the exit status to the exit trap. { (exit 0); exit 0 } # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: Pebble-1.0.0/config/missing0000755000175000001460000002540610663313202015052 0ustar phuegaphuega#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2005-06-08.21 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # 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; either version 2, or (at your option) # any later version. # 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., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301, USA. # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case "$1" in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). case "$1" in lex|yacc) # Not GNU programs, they don't have --version. ;; tar) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case "$1" in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case "$f" in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'` test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison|yacc) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" y.tab.h fi ;; esac fi if [ ! -f y.tab.h ]; then echo >y.tab.h fi if [ ! -f y.tab.c ]; then echo 'main() { return 0; }' >y.tab.c fi ;; lex|flex) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if [ $# -ne 1 ]; then eval LASTARG="\${$#}" case "$LASTARG" in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if [ -f "$SRCFILE" ]; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if [ ! -f lex.yy.c ]; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` fi if [ -f "$file" ]; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit 1 fi ;; makeinfo) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case "$firstarg" in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case "$firstarg" in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-end: "$" # End: Pebble-1.0.0/README0000644000175000001460000000000010663313203013046 0ustar phuegaphuegaPebble-1.0.0/configure.in0000644000175000001460000000144710663313203014517 0ustar phuegaphuega# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.60) AC_INIT(Pebble, 1.0.0, a.j.bennieston@warwick.ac.uk) AC_CONFIG_AUX_DIR(config) AC_CONFIG_SRCDIR(src/Exception.cpp) AC_CONFIG_HEADER(config.h) AC_CONFIG_FILES([Makefile src/Makefile]) AM_INIT_AUTOMAKE(Pebble, 1.0.0) # Checks for programs. AC_PROG_CXX AC_PROG_CC # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h stddef.h string.h sys/socket.h sys/time.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. AC_HEADER_STDBOOL AC_C_CONST AC_TYPE_SIZE_T AC_HEADER_TIME # Checks for library functions. AC_CHECK_FUNCS([gethostbyname gettimeofday socket sqrt]) AC_OUTPUT Pebble-1.0.0/aclocal.m40000644000175000001460000007462010663313203014051 0ustar phuegaphuega# generated automatically by aclocal 1.9.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION so it can be traced. # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.9.6])]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 7 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE]) AC_SUBST([$1_FALSE]) if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH]) ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 3 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.58])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AM_PROG_INSTALL_SH AM_PROG_INSTALL_STRIP AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl ]) ]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $1 | $1:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl install_sh=${install_sh-"$am_aux_dir/install-sh"} AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. # # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories # created by `make install' are always world readable, even if the # installer happens to have an overly restrictive umask (e.g. 077). # This was a mistake. There are at least two reasons why we must not # use `-m 0755': # - it causes special bits like SGID to be ignored, # - it may be too restrictive (some setups expect 775 directories). # # Do not use -m 0755 and let people choose whatever they expect by # setting umask. # # We cannot accept any implementation of `mkdir' that recognizes `-p'. # Some implementations (such as Solaris 8's) are not thread-safe: if a # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' # concurrently, both version can detect that a/ is missing, but only # one can create it and the other will error out. Consequently we # restrict ourselves to GNU make (using the --version option ensures # this.) AC_DEFUN([AM_PROG_MKDIR_P], [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi AC_SUBST([mkdir_p])]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # ------------------------------ # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ---------------------------------- # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. AM_MISSING_PROG([AMTAR], [tar]) m4_if([$1], [v7], [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR Pebble-1.0.0/Makefile.am0000644000175000001460000000013010663313203014226 0ustar phuegaphuega## Makefile.am -- Process this file with automake to produce Makefile.in SUBDIRS = src Pebble-1.0.0/Makefile.in0000644000175000001460000004366410663517507014277 0ustar phuegaphuega# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ config/depcomp config/install-sh config/missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno configure.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-exec-recursive install-info-recursive \ install-recursive installcheck-recursive installdirs-recursive \ pdf-recursive ps-recursive uninstall-info-recursive \ uninstall-recursive ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ SUBDIRS = src all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ cd $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) cd $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) config.h: stamp-h1 @if test ! -f $@; then \ rm -f stamp-h1; \ $(MAKE) stamp-h1; \ else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 uninstall-info-am: # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) $(mkdir_p) $(distdir)/config @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ done -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && cd $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-exec-am: install-info: install-info-recursive install-man: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ check-am clean clean-generic clean-recursive ctags \ ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \ dist-tarZ dist-zip distcheck distclean distclean-generic \ distclean-hdr distclean-recursive distclean-tags \ distcleancheck distdir distuninstallcheck dvi dvi-am html \ html-am info info-am install install-am install-data \ install-data-am install-exec install-exec-am install-info \ install-info-am install-man install-strip installcheck \ installcheck-am installdirs installdirs-am maintainer-clean \ maintainer-clean-generic maintainer-clean-recursive \ mostlyclean mostlyclean-generic mostlyclean-recursive pdf \ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \ uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: Pebble-1.0.0/config.h.in0000644000175000001460000000503510663517525014243 0ustar phuegaphuega/* config.h.in. Generated from configure.in by autoheader. */ /* Define to 1 if you have the header file. */ #undef HAVE_ARPA_INET_H /* Define to 1 if you have the `gethostbyname' function. */ #undef HAVE_GETHOSTBYNAME /* Define to 1 if you have the `gettimeofday' function. */ #undef HAVE_GETTIMEOFDAY /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the `socket' function. */ #undef HAVE_SOCKET /* Define to 1 if you have the `sqrt' function. */ #undef HAVE_SQRT /* Define to 1 if stdbool.h conforms to C99. */ #undef HAVE_STDBOOL_H /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define to 1 if you can safely include both and . */ #undef TIME_WITH_SYS_TIME /* Version number of package */ #undef VERSION /* Define to empty if `const' does not conform to ANSI C. */ #undef const /* Define to `unsigned int' if does not define. */ #undef size_t Pebble-1.0.0/configure0000755000175000001460000056656410663517510014144 0ustar phuegaphuega#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.60 for Pebble 1.0.0. # # Report bugs to . # # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH if test "x$CONFIG_SHELL" = x; then if (eval ":") 2>/dev/null; then as_have_required=yes else as_have_required=no fi if test $as_have_required = yes && (eval ": (as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=\$LINENO as_lineno_2=\$LINENO test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } ") 2> /dev/null; then : else as_candidate_shells= as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. case $as_dir in /*) for as_base in sh bash ksh sh5; do as_candidate_shells="$as_candidate_shells $as_dir/$as_base" done;; esac done IFS=$as_save_IFS for as_shell in $as_candidate_shells $SHELL; do # Try only shells that exist, to save several forks. if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { ("$as_shell") 2> /dev/null <<\_ASEOF # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh : _ASEOF }; then CONFIG_SHELL=$as_shell as_have_required=yes if { "$as_shell" 2> /dev/null <<\_ASEOF # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh : (as_func_return () { (exit $1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = "$1" ); then : else exitcode=1 echo positional parameters were not saved. fi test $exitcode = 0) || { (exit 1); exit 1; } ( as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } _ASEOF }; then break fi fi done if test "x$CONFIG_SHELL" != x; then for as_var in BASH_ENV ENV do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done export CONFIG_SHELL exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} fi if test $as_have_required = no; then echo This script requires a shell more modern than all the echo shells that I found on your system. Please install a echo modern shell, or manually run the script under such a echo shell if you do have one. { (exit 1); exit 1; } fi fi fi (eval "as_func_return () { (exit \$1) } as_func_success () { as_func_return 0 } as_func_failure () { as_func_return 1 } as_func_ret_success () { return 0 } as_func_ret_failure () { return 1 } exitcode=0 if as_func_success; then : else exitcode=1 echo as_func_success failed. fi if as_func_failure; then exitcode=1 echo as_func_failure succeeded. fi if as_func_ret_success; then : else exitcode=1 echo as_func_ret_success failed. fi if as_func_ret_failure; then exitcode=1 echo as_func_ret_failure succeeded. fi if ( set x; as_func_ret_success y && test x = \"\$1\" ); then : else exitcode=1 echo positional parameters were not saved. fi test \$exitcode = 0") || { echo No shell found that supports shell functions. echo Please tell autoconf@gnu.org about your system, echo including any error possibly output before this echo message } as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # Find out whether ``test -x'' works. Don't use a zero-byte file, as # systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then as_executable_p="test -x" else as_executable_p=: fi rm -f conf$$.file # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='Pebble' PACKAGE_TARNAME='pebble' PACKAGE_VERSION='1.0.0' PACKAGE_STRING='Pebble 1.0.0' PACKAGE_BUGREPORT='a.j.bennieston@warwick.ac.uk' ac_unique_file="src/Exception.cpp" # Factoring default headers for most tests. ac_includes_default="\ #include #if HAVE_SYS_TYPES_H # include #endif #if HAVE_SYS_STAT_H # include #endif #if STDC_HEADERS # include # include #else # if HAVE_STDLIB_H # include # endif #endif #if HAVE_STRING_H # if !STDC_HEADERS && HAVE_MEMORY_H # include # endif # include #endif #if HAVE_STRINGS_H # include #endif #if HAVE_INTTYPES_H # include #endif #if HAVE_STDINT_H # include #endif #if HAVE_UNISTD_H # include #endif" ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir localstatedir includedir oldincludedir docdir infodir htmldir dvidir pdfdir psdir libdir localedir mandir DEFS ECHO_C ECHO_N ECHO_T LIBS build_alias host_alias target_alias INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP GREP EGREP LIBOBJS LTLIBOBJS' ac_subst_files='' ac_precious_vars='build_alias host_alias target_alias CXX CXXFLAGS LDFLAGS CPPFLAGS CCC CC CFLAGS CPP' # Initialize some variables set by options. ac_init_help= ac_init_version=false # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= 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=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -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_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$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 ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` eval enable_$ac_feature=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid feature name: $ac_feature" >&2 { (exit 1); exit 1; }; } ac_feature=`echo $ac_feature | sed 's/-/_/g'` 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 | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$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 ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 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 | -n) 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 ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$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_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } ac_package=`echo $ac_package| sed 's/-/_/g'` eval with_$ac_package=\$ac_optarg ;; -without-* | --without-*) ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid package name: $ac_package" >&2 { (exit 1); exit 1; }; } 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 "$as_me: error: unrecognized option: $ac_option Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 { (exit 1); exit 1; }; } eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` { echo "$as_me: error: missing argument to $ac_option" >&2 { (exit 1); exit 1; }; } fi # Be sure to have absolute directory names. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 { (exit 1); exit 1; }; } done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used." >&2 elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || { echo "$as_me: error: Working directory cannot be determined" >&2 { (exit 1); exit 1; }; } test "X$ac_ls_di" = "X$ac_pwd_ls_di" || { echo "$as_me: error: pwd does not report name of working directory" >&2 { (exit 1); exit 1; }; } # 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 the parent directory. ac_confdir=`$as_dirname -- "$0" || $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$0" : 'X\(//\)[^/]' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X"$0" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` 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 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 { (exit 1); exit 1; }; } fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 { (exit 1); exit 1; }; } pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # 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 <<_ACEOF \`configure' configures Pebble 1.0.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/pebble] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --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 _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of Pebble 1.0.0:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors Some influential environment variables: CXX C++ compiler command CXXFLAGS C++ compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I if you have headers in a nonstandard directory CC C compiler command CFLAGS C compiler flags CPP C preprocessor Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF Pebble configure 1.0.0 generated by GNU Autoconf 2.60 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by Pebble $as_me 1.0.0, which was generated by GNU Autoconf 2.60. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2) ac_configure_args1="$ac_configure_args1 '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac done done $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo cat <<\_ASBOX ## ---------------- ## ## Cache variables. ## ## ---------------- ## _ASBOX echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo cat <<\_ASBOX ## ----------------- ## ## Output variables. ## ## ----------------- ## _ASBOX echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then cat <<\_ASBOX ## ------------------- ## ## File substitutions. ## ## ------------------- ## _ASBOX echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then cat <<\_ASBOX ## ----------- ## ## confdefs.h. ## ## ----------- ## _ASBOX echo cat confdefs.h echo fi test "$ac_signal" != 0 && echo "$as_me: caught signal $ac_signal" echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer explicitly selected file to automatically selected ones. if test -n "$CONFIG_SITE"; then set x "$CONFIG_SITE" elif test "x$prefix" != xNONE; then set x "$prefix/share/config.site" "$prefix/etc/config.site" else set x "$ac_default_prefix/share/config.site" \ "$ac_default_prefix/etc/config.site" fi shift for ac_site_file do if test -r "$ac_site_file"; then { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special # files actually), so we avoid doing that. if test -f "$cache_file"; then { echo "$as_me:$LINENO: loading cache $cache_file" >&5 echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { echo "$as_me:$LINENO: creating cache $cache_file" >&5 echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 echo "$as_me: former value: $ac_old_val" >&2;} { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 echo "$as_me: current value: $ac_new_val" >&2;} ac_cache_corrupted=: fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 echo "$as_me: error: changes in the environment can compromise the build" >&2;} { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in config "$srcdir"/config; 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 elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} { (exit 1); exit 1; }; } fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. ac_config_headers="$ac_config_headers config.h" ac_config_files="$ac_config_files Makefile src/Makefile" am__api_version="1.9" # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } if test -z "$INSTALL"; then if test "${ac_cv_path_install+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in ./ | .// | /cC/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi done done ;; esac done IFS=$as_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. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { echo "$as_me:$LINENO: result: $INSTALL" >&5 echo "${ECHO_T}$INSTALL" >&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}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t $srcdir/configure conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&5 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken alias in your environment" >&2;} { (exit 1); exit 1; }; } fi test "$2" = conftest.file ) then # Ok. : else { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! Check your system clock" >&5 echo "$as_me: error: newly created file is older than distributed files! Check your system clock" >&2;} { (exit 1); exit 1; }; } fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. echo might interpret backslashes. # By default was `s,x,x', remove it if useless. cat <<\_ACEOF >conftest.sed s/[\\$]/&&/g;s/;s,x,x,$// _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm -f conftest.sed # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then # We used to keeping the `.' as first argument, in order to # allow $(mkdir_p) to be used without argument. As in # $(mkdir_p) $(somedir) # where $(somedir) is conditionally defined. However this is wrong # for two reasons: # 1. if the package is installed by a user who cannot write `.' # make install will fail, # 2. the above comment should most certainly read # $(mkdir_p) $(DESTDIR)$(somedir) # so it does not work when $(somedir) is undefined and # $(DESTDIR) is not. # To support the latter case, we have to write # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), # so the `.' trick is pointless. mkdir_p='mkdir -p --' else # On NextStep and OpenStep, the `mkdir' command does not # recognize any option. It will interpret all options as # directories to create, and then abort because `.' already # exists. for d in ./-p ./--version; do test -d $d && rmdir $d done # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. if test -f "$ac_aux_dir/mkinstalldirs"; then mkdir_p='$(mkinstalldirs)' else mkdir_p='$(install_sh) -d' fi fi for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_AWK+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_AWK="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { echo "$as_me:$LINENO: result: $AWK" >&5 echo "${ECHO_T}$AWK" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$AWK" && break done { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } SET_MAKE= else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} { (exit 1); exit 1; }; } fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=Pebble VERSION=1.0.0 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { echo "$as_me:$LINENO: result: $STRIP" >&5 echo "${ECHO_T}$STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_STRIP="strip" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 echo "${ECHO_T}$ac_ct_STRIP" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. AMTAR=${AMTAR-"${am_missing_run}tar"} am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' # Checks for programs. ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { echo "$as_me:$LINENO: result: $CXX" >&5 echo "${ECHO_T}$CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CXX="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 echo "${ECHO_T}$ac_ct_CXX" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C++ compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; } ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # # List of possible output files, starting from the most likely. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) # only as a last resort. b.out is created by i960 compilers. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' # # The IRIX 6 linker writes into existing files which may not be # executable, retaining their permissions. Remove them first so a # subsequent execution test works. ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { (ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link_default") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables See \`config.log' for more details." >&5 echo "$as_me: error: C++ compiler cannot create executables See \`config.log' for more details." >&2;} { (exit 77); exit 77; }; } fi ac_exeext=$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_file" >&5 echo "${ECHO_T}$ac_file" >&6; } # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; } # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 # If not cross compiling, check that we can run a simple program. if test "$cross_compiling" != yes; then if { ac_try='./$ac_file' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&5 echo "$as_me: error: cannot run C++ compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi fi fi { echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6; } rm -f a.out a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } { echo "$as_me:$LINENO: result: $cross_compiling" >&5 echo "${ECHO_T}$cross_compiling" >&6; } { echo "$as_me:$LINENO: checking for suffix of executables" >&5 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest$ac_cv_exeext { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 echo "${ECHO_T}$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT { echo "$as_me:$LINENO: checking for suffix of object files" >&5 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } if test "${ac_cv_objext+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&5 echo "$as_me: error: cannot compute suffix of object files: cannot compile See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 echo "${ECHO_T}$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } if test "${ac_cv_cxx_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } GXX=`test $ac_compiler_gnu = yes && echo yes` ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cxx_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CXXFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cxx_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo done .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # We grep out `Entering directory' and `Leaving directory' # messages which can occur if `w' ends up in MAKEFLAGS. # In particular we don't look at `^make:' because GNU make might # be invoked under some other name (usually "gmake"), in which # case it prints its new name instead of `make'. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then am__include=include am__quote= _am_result=GNU fi # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then am__include=.include am__quote="\"" _am_result=BSD fi fi { echo "$as_me:$LINENO: result: $_am_result" >&5 echo "${ECHO_T}$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CXX" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="gcc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="${ac_tool_prefix}cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi 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 "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_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 $# != 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 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { echo "$as_me:$LINENO: result: $CC" >&5 echo "${ECHO_T}$CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { echo "$as_me:$LINENO: checking for $ac_word" >&5 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } if test "${ac_cv_prog_ac_ct_CC+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then ac_cv_prog_ac_ct_CC="$ac_prog" echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 echo "${ECHO_T}$ac_ct_CC" >&6; } else { echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&5 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools whose name does not start with the host triplet. If you think this configuration is useful to you, please write to autoconf@gnu.org." >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&5 echo "$as_me: error: no acceptable C compiler found in \$PATH See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } # Provide some information about the compiler. echo "$as_me:$LINENO: checking for C compiler version" >&5 ac_compiler=`set X $ac_compile; echo $2` { (ac_try="$ac_compiler --version >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler --version >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -v >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -v >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { (ac_try="$ac_compiler -V >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compiler -V >&5") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } if test "${ac_cv_c_compiler_gnu+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_compiler_gnu=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } GCC=`test $ac_compiler_gnu = yes && echo yes` ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_g+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 CFLAGS="" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_g=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 echo "${ECHO_T}$ac_cv_prog_cc_g" >&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 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } if test "${ac_cv_prog_cc_c89+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_prog_cc_c89=$ac_arg else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { echo "$as_me:$LINENO: result: none needed" >&5 echo "${ECHO_T}none needed" >&6; } ;; xno) { echo "$as_me:$LINENO: result: unsupported" >&5 echo "${ECHO_T}unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; esac ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf case $depmode in nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; none) break ;; esac # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. if depmode=$depmode \ source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi # Checks for libraries. # Checks for header files. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { echo "$as_me:$LINENO: result: $CPP" >&5 echo "${ECHO_T}$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then : else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Broken: fails on valid input. continue fi rm -f conftest.err conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then # Broken: success on invalid input. continue else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&5 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details." >&2;} { (exit 1); exit 1; }; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else # Extract the first word of "grep ggrep" to use in msg output if test -z "$GREP"; then set dummy grep ggrep; ac_prog_name=$2 if test "${ac_cv_path_GREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS fi GREP="$ac_cv_path_GREP" if test -z "$GREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_GREP=$GREP fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { echo "$as_me:$LINENO: checking for egrep" >&5 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else # Extract the first word of "egrep" to use in msg output if test -z "$EGREP"; then set dummy egrep; ac_prog_name=$2 if test "${ac_cv_path_EGREP+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break ac_count=`expr $ac_count + 1` if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS fi EGREP="$ac_cv_path_EGREP" if test -z "$EGREP"; then { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} { (exit 1); exit 1; }; } fi else ac_cv_path_EGREP=$EGREP fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } if test "${ac_cv_header_stdc+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF rm -f conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then : else echo "$as_me: program exited with status $ac_status" >&5 echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ( exit $ac_status ) ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext fi fi fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then cat >>confdefs.h <<\_ACEOF #define STDC_HEADERS 1 _ACEOF fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_Header=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in arpa/inet.h netdb.h netinet/in.h stddef.h string.h sys/socket.h sys/time.h unistd.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } else # Is the header compilable? { echo "$as_me:$LINENO: checking $ac_header usability" >&5 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default #include <$ac_header> _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_header_compiler=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 echo "${ECHO_T}$ac_header_compiler" >&6; } # Is the header present? { echo "$as_me:$LINENO: checking $ac_header presence" >&5 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include <$ac_header> _ACEOF if { (ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } >/dev/null; then if test -s conftest.err; then ac_cpp_err=$ac_c_preproc_warn_flag ac_cpp_err=$ac_cpp_err$ac_c_werror_flag else ac_cpp_err= fi else ac_cpp_err=yes fi if test -z "$ac_cpp_err"; then ac_header_preproc=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_header_preproc=no fi rm -f conftest.err conftest.$ac_ext { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 echo "${ECHO_T}$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in yes:no: ) { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} ac_header_preproc=yes ;; no:yes:* ) { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} ( cat <<\_ASBOX ## ------------------------------------------- ## ## Report this to a.j.bennieston@warwick.ac.uk ## ## ------------------------------------------- ## _ASBOX ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { echo "$as_me:$LINENO: checking for $ac_header" >&5 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else eval "$as_ac_Header=\$ac_header_preproc" fi ac_res=`eval echo '${'$as_ac_Header'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } fi if test `eval echo '${'$as_ac_Header'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } if test "${ac_cv_header_stdbool_h+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #ifndef bool "error: bool is not defined" #endif #ifndef false "error: false is not defined" #endif #if false "error: false is not 0" #endif #ifndef true "error: true is not defined" #endif #if true != 1 "error: true is not 1" #endif #ifndef __bool_true_false_are_defined "error: __bool_true_false_are_defined is not defined" #endif struct s { _Bool s: 1; _Bool t; } s; char a[true == 1 ? 1 : -1]; char b[false == 0 ? 1 : -1]; char c[__bool_true_false_are_defined == 1 ? 1 : -1]; char d[(bool) 0.5 == true ? 1 : -1]; bool e = &s; char f[(_Bool) 0.0 == false ? 1 : -1]; char g[true]; char h[sizeof (_Bool)]; char i[sizeof s.t]; enum { j = false, k = true, l = false * true, m = true * 256 }; _Bool n[m]; char o[sizeof n == m * sizeof n[0] ? 1 : -1]; char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; # if defined __xlc__ || defined __GNUC__ /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 reported by James Lemley on 2005-10-05; see http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html This test is not quite right, since xlc is allowed to reject this program, as the initializer for xlcbug is not one of the forms that C requires support for. However, doing the test right would require a runtime test, and that would make cross-compilation harder. Let us hope that IBM fixes the xlc bug, and also adds support for this kind of constant expression. In the meantime, this test will reject xlc, which is OK, since our stdbool.h substitute should suffice. We also test this with GCC, where it should work, to detect more quickly whether someone messes up the test in the future. */ char digs[] = "0123456789"; int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); # endif /* Catch a bug in an HP-UX C compiler. See http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html */ _Bool q = true; _Bool *pq = &q; int main () { *pq |= q; *pq |= ! q; /* Refer to every declared value, to avoid compiler optimizations. */ return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l + !m + !n + !o + !p + !q + !pq); ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_stdbool_h=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_stdbool_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } { echo "$as_me:$LINENO: checking for _Bool" >&5 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } if test "${ac_cv_type__Bool+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef _Bool ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type__Bool=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type__Bool=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 echo "${ECHO_T}$ac_cv_type__Bool" >&6; } if test $ac_cv_type__Bool = yes; then cat >>confdefs.h <<_ACEOF #define HAVE__BOOL 1 _ACEOF fi if test $ac_cv_header_stdbool_h = yes; then cat >>confdefs.h <<\_ACEOF #define HAVE_STDBOOL_H 1 _ACEOF fi { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } if test "${ac_cv_c_const+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ int main () { /* FIXME: Include the comments suggested by Paul. */ #ifndef __cplusplus /* Ultrix mips cc rejects this. */ typedef int charset[2]; const charset x; /* SunOS 4.1.1 cc rejects this. */ char const *const *ccp; char **p; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; ccp = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++ccp; p = (char**) ccp; ccp = (char const *const *) p; { /* SCO 3.2v4 cc rejects this. */ char *t; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; }; struct s *b; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !x[0] && !zero.x; #endif ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_c_const=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 echo "${ECHO_T}$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then cat >>confdefs.h <<\_ACEOF #define const _ACEOF fi { echo "$as_me:$LINENO: checking for size_t" >&5 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } if test "${ac_cv_type_size_t+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ $ac_includes_default typedef size_t ac__type_new_; int main () { if ((ac__type_new_ *) 0) return 0; if (sizeof (ac__type_new_)) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_type_size_t=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_type_size_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 echo "${ECHO_T}$ac_cv_type_size_t" >&6; } if test $ac_cv_type_size_t = yes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } if test "${ac_cv_header_time+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include #include #include int main () { if ((struct tm *) 0) return 0; ; return 0; } _ACEOF rm -f conftest.$ac_objext if { (ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_compile") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest.$ac_objext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then ac_cv_header_time=yes else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_cv_header_time=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 echo "${ECHO_T}$ac_cv_header_time" >&6; } if test $ac_cv_header_time = yes; then cat >>confdefs.h <<\_ACEOF #define TIME_WITH_SYS_TIME 1 _ACEOF fi # Checks for library functions. for ac_func in gethostbyname gettimeofday socket sqrt do as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` { echo "$as_me:$LINENO: checking for $ac_func" >&5 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then echo $ECHO_N "(cached) $ECHO_C" >&6 else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ /* Define $ac_func to an innocuous variant, in case declares $ac_func. For example, HP-UX 11i declares gettimeofday. */ #define $ac_func innocuous_$ac_func /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $ac_func (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $ac_func /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $ac_func (); /* 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_$ac_func || defined __stub___$ac_func choke me #endif int main () { return $ac_func (); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_link") 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && { ac_try='test -s conftest$ac_exeext' { (case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 (eval "$ac_try") 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then eval "$as_ac_var=yes" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 eval "$as_ac_var=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi ac_res=`eval echo '${'$as_ac_var'}'` { echo "$as_me:$LINENO: result: $ac_res" >&5 echo "${ECHO_T}$ac_res" >&6; } if test `eval echo '${'$as_ac_var'}'` = yes; then cat >>confdefs.h <<_ACEOF #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done cat >confcache <<\_ACEOF # 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, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # 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. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( *) $as_unset $ac_var ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes (double-quote # substitution turns \\\\ into \\, and sed turns \\ into \). sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then test "x$cache_file" != "x/dev/null" && { echo "$as_me:$LINENO: updating cache $cache_file" >&5 echo "$as_me: updating cache $cache_file" >&6;} cat confcache >$cache_file else { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi : ${CONFIG_STATUS=./config.status} ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 echo "$as_me: creating $CONFIG_STATUS" >&6;} cat >$CONFIG_STATUS <<_ACEOF #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ## --------------------- ## ## M4sh Initialization. ## ## --------------------- ## # Be Bourne compatible if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then emulate sh NULLCMD=: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac fi BIN_SH=xpg4; export BIN_SH # for Tru64 DUALCASE=1; export DUALCASE # for MKS sh # PATH needs CR # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Support unset when possible. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then as_unset=unset else as_unset=false fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) as_nl=' ' IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. case $0 in *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 { (exit 1); exit 1; } fi # Work around bugs in pre-3.0 UWIN ksh. for as_var in ENV MAIL MAILPATH do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. for as_var in \ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ LC_TELEPHONE LC_TIME do if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then eval $as_var=C; export $as_var else ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var fi done # Required to use basename. if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi # Name of the executable. as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # CDPATH. $as_unset CDPATH as_lineno_1=$LINENO as_lineno_2=$LINENO test "x$as_lineno_1" != "x$as_lineno_2" && test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { # Create $as_me.lineno as a copy of $as_myself, but with $LINENO # uniformly replaced by the line number. The first 'sed' inserts a # line-number line after each line using $LINENO; the second 'sed' # does the real work. The second script uses 'N' to pair each # line-number line with the line containing $LINENO, and appends # trailing '-' during substitution so that $LINENO is not a special # case at line end. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the # scripts with optimization help from Paolo Bonzini. Blame Lee # E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 { (exit 1); exit 1; }; } # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in -n*) case `echo 'x\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. *) ECHO_C='\c';; esac;; *) ECHO_N='-n';; esac if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir fi echo >conf$$.file if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -p'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -p' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -p' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p=: else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # Find out whether ``test -x'' works. Don't use a zero-byte file, as # systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then as_executable_p="test -x" else as_executable_p=: fi rm -f conf$$.file # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 # Save the log message, to keep $[0] and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by Pebble $as_me 1.0.0, which was generated by GNU Autoconf 2.60. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF ac_cs_usage="\ \`$as_me' instantiates files from templates according to the current configuration. Usage: $0 [OPTIONS] [FILE]... -h, --help print this help, then exit -V, --version print version number, then exit -q, --quiet do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ Pebble config.status 1.0.0 configured by $0, generated by GNU Autoconf 2.60, with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2006 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If no file are specified by the user, then we need to provide default # value. By we need to know if files were specified by the user. ac_need_defaults=: while test $# != 0 do case $1 in --*=*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) echo "$ac_cs_version"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift CONFIG_FILES="$CONFIG_FILES $ac_optarg" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header { echo "$as_me: error: ambiguous option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; };; --help | --hel | -h ) echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) { echo "$as_me: error: unrecognized option: $1 Try \`$0 --help' for more information." >&2 { (exit 1); exit 1; }; } ;; *) ac_config_targets="$ac_config_targets $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF if \$ac_cs_recheck; then echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 CONFIG_SHELL=$SHELL export CONFIG_SHELL exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} { (exit 1); exit 1; }; };; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= trap 'exit_status=$? { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status ' 0 trap '{ (exit 1); exit 1; }' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || { echo "$me: cannot create a temporary directory in ." >&2 { (exit 1); exit 1; } } # # Set up the sed scripts for CONFIG_FILES section. # # No need to generate the scripts if there are no CONFIG_FILES. # This happens for instance when ./config.status config.h if test -n "$CONFIG_FILES"; then _ACEOF ac_delim='%!_!# ' for ac_last_try in false false false false false :; do cat >conf$$subs.sed <<_ACEOF SHELL!$SHELL$ac_delim PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim PACKAGE_NAME!$PACKAGE_NAME$ac_delim PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim PACKAGE_STRING!$PACKAGE_STRING$ac_delim PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim exec_prefix!$exec_prefix$ac_delim prefix!$prefix$ac_delim program_transform_name!$program_transform_name$ac_delim bindir!$bindir$ac_delim sbindir!$sbindir$ac_delim libexecdir!$libexecdir$ac_delim datarootdir!$datarootdir$ac_delim datadir!$datadir$ac_delim sysconfdir!$sysconfdir$ac_delim sharedstatedir!$sharedstatedir$ac_delim localstatedir!$localstatedir$ac_delim includedir!$includedir$ac_delim oldincludedir!$oldincludedir$ac_delim docdir!$docdir$ac_delim infodir!$infodir$ac_delim htmldir!$htmldir$ac_delim dvidir!$dvidir$ac_delim pdfdir!$pdfdir$ac_delim psdir!$psdir$ac_delim libdir!$libdir$ac_delim localedir!$localedir$ac_delim mandir!$mandir$ac_delim DEFS!$DEFS$ac_delim ECHO_C!$ECHO_C$ac_delim ECHO_N!$ECHO_N$ac_delim ECHO_T!$ECHO_T$ac_delim LIBS!$LIBS$ac_delim build_alias!$build_alias$ac_delim host_alias!$host_alias$ac_delim target_alias!$target_alias$ac_delim INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim INSTALL_DATA!$INSTALL_DATA$ac_delim CYGPATH_W!$CYGPATH_W$ac_delim PACKAGE!$PACKAGE$ac_delim VERSION!$VERSION$ac_delim ACLOCAL!$ACLOCAL$ac_delim AUTOCONF!$AUTOCONF$ac_delim AUTOMAKE!$AUTOMAKE$ac_delim AUTOHEADER!$AUTOHEADER$ac_delim MAKEINFO!$MAKEINFO$ac_delim install_sh!$install_sh$ac_delim STRIP!$STRIP$ac_delim INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim mkdir_p!$mkdir_p$ac_delim AWK!$AWK$ac_delim SET_MAKE!$SET_MAKE$ac_delim am__leading_dot!$am__leading_dot$ac_delim AMTAR!$AMTAR$ac_delim am__tar!$am__tar$ac_delim am__untar!$am__untar$ac_delim CXX!$CXX$ac_delim CXXFLAGS!$CXXFLAGS$ac_delim LDFLAGS!$LDFLAGS$ac_delim CPPFLAGS!$CPPFLAGS$ac_delim ac_ct_CXX!$ac_ct_CXX$ac_delim EXEEXT!$EXEEXT$ac_delim OBJEXT!$OBJEXT$ac_delim DEPDIR!$DEPDIR$ac_delim am__include!$am__include$ac_delim am__quote!$am__quote$ac_delim AMDEP_TRUE!$AMDEP_TRUE$ac_delim AMDEP_FALSE!$AMDEP_FALSE$ac_delim AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim CXXDEPMODE!$CXXDEPMODE$ac_delim am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim CC!$CC$ac_delim CFLAGS!$CFLAGS$ac_delim ac_ct_CC!$ac_ct_CC$ac_delim CCDEPMODE!$CCDEPMODE$ac_delim am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim CPP!$CPP$ac_delim GREP!$GREP$ac_delim EGREP!$EGREP$ac_delim LIBOBJS!$LIBOBJS$ac_delim LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} { (exit 1); exit 1; }; } else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` if test -n "$ac_eof"; then ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` ac_eof=`expr $ac_eof + 1` fi cat >>$CONFIG_STATUS <<_ACEOF cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end _ACEOF sed ' s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g s/^/s,@/; s/!/@,|#_!!_#|/ :n t n s/'"$ac_delim"'$/,g/; t s/$/\\/; p N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n ' >>$CONFIG_STATUS >$CONFIG_STATUS <<_ACEOF :end s/|#_!!_#|//g CEOF$ac_eof _ACEOF # VPATH may cause trouble with some makes, so we remove $(srcdir), # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=/{ s/:*\$(srcdir):*/:/ s/:*\${srcdir}:*/:/ s/:*@srcdir@:*/:/ s/^\([^=]*=[ ]*\):*/\1/ s/:*$// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF fi # test -n "$CONFIG_FILES" for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 echo "$as_me: error: Invalid tag $ac_tag." >&2;} { (exit 1); exit 1; }; };; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 echo "$as_me: error: cannot find input file: $ac_f" >&2;} { (exit 1); exit 1; }; };; esac ac_file_inputs="$ac_file_inputs $ac_f" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input="Generated from "`IFS=: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { echo "$as_me:$LINENO: creating $ac_file" >&5 echo "$as_me: creating $ac_file" >&6;} fi case $ac_tag in *:-:* | *:-) cat >"$tmp/stdin";; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir="$ac_dir" case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= case `sed -n '/datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p ' $ac_file_inputs` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s&@configure_input@&$configure_input&;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t $ac_datarootdir_hack " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&5 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined." >&2;} rm -f "$tmp/stdin" case $ac_file in -) cat "$tmp/out"; rm -f "$tmp/out";; *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; esac ;; :H) # # CONFIG_HEADER # _ACEOF # Transform confdefs.h into a sed script `conftest.defines', that # substitutes the proper values into config.h.in to produce config.h. rm -f conftest.defines conftest.tail # First, append a space to every undef/define line, to ease matching. echo 's/$/ /' >conftest.defines # Then, protect against being on the right side of a sed subst, or in # an unquoted here document, in config.status. If some macros were # called several times there might be several #defines for the same # symbol, which is useless. But do not sort them, since the last # AC_DEFINE must be honored. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where # NAME is the cpp macro being defined, VALUE is the value it is being given. # PARAMS is the parameter list in the macro definition--in most cases, it's # just an empty string. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' ac_dB='\\)[ (].*,\\1define\\2' ac_dC=' ' ac_dD=' ,' uniq confdefs.h | sed -n ' t rset :rset s/^[ ]*#[ ]*define[ ][ ]*// t ok d :ok s/[\\&,]/\\&/g s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p ' >>conftest.defines # Remove the space that was appended to ease matching. # Then replace #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. # (The regexp can be short, since the line contains either #define or #undef.) echo 's/ $// s,^[ #]*u.*,/* & */,' >>conftest.defines # Break up conftest.defines: ac_max_sed_lines=50 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" # et cetera. ac_in='$ac_file_inputs' ac_out='"$tmp/out1"' ac_nxt='"$tmp/out2"' while : do # Write a here document: cat >>$CONFIG_STATUS <<_ACEOF # First, check the format of the line: cat >"\$tmp/defines.sed" <<\\CEOF /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def b :def _ACEOF sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS echo 'CEOF sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail grep . conftest.tail >/dev/null || break rm -f conftest.defines mv conftest.tail conftest.defines done rm -f conftest.defines conftest.tail echo "ac_result=$ac_in" >>$CONFIG_STATUS cat >>$CONFIG_STATUS <<\_ACEOF if test x"$ac_file" != x-; then echo "/* $configure_input */" >"$tmp/config.h" cat "$ac_result" >>"$tmp/config.h" if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 echo "$as_me: $ac_file is unchanged" >&6;} else rm -f $ac_file mv "$tmp/config.h" $ac_file fi else echo "/* $configure_input */" cat "$ac_result" fi rm -f "$tmp/out12" # Compute $ac_file's index in $config_headers. _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $ac_file | $ac_file:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X$ac_file : 'X\(//\)[^/]' \| \ X$ac_file : 'X\(//\)$' \| \ X$ac_file : 'X\(/\)' \| . 2>/dev/null || echo X$ac_file | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # So let's grep whole file. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` { as_dir=$dirpart/$fdir case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 echo "$as_me: error: cannot create directory $as_dir" >&2;} { (exit 1); exit 1; }; }; } # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done ;; esac done # for ac_tag { (exit 0); exit 0; } _ACEOF chmod +x $CONFIG_STATUS ac_clean_files=$ac_clean_files_save # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || { (exit 1); exit 1; } fi Pebble-1.0.0/AUTHORS0000644000175000001460000000000010663313203013236 0ustar phuegaphuegaPebble-1.0.0/COPYING0000644000175000001460000000000010663313203013221 0ustar phuegaphuegaPebble-1.0.0/ChangeLog0000644000175000001460000000000010663313203013740 0ustar phuegaphuegaPebble-1.0.0/INSTALL0000644000175000001460000002243210663313203013234 0ustar phuegaphuegaInstallation Instructions Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free Software Foundation, Inc. This file is free documentation; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. Basic Installation ================== These are generic installation instructions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. (Caching is disabled by default to prevent problems with accidental use of stale cache files.) If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You only need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. If you're using `csh' on an old version of System V, you might need to type `sh ./configure' instead to prevent `csh' from trying to execute `configure' itself. Running `configure' takes awhile. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package. 4. Type `make install' to install the programs and any data files and documentation. 5. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you must use a version of `make' that supports the `VPATH' variable, such as GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. If you have to use a `make' that does not support the `VPATH' variable, you have to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX'. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Optional Features ================= Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Here is a another example: /bin/bash ./configure CONFIG_SHELL=/bin/bash Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent configuration-related scripts to be executed by `/bin/bash'. `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of the options to `configure', and exit. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. Pebble-1.0.0/NEWS0000644000175000001460000000000010663313203012665 0ustar phuegaphuegaPebble-1.0.0/src/0000755000175000001460000000000010666007171012776 5ustar phuegaphuegaPebble-1.0.0/src/Doxyfile0000644000175000001460000002414510666007170014511 0ustar phuegaphuega# Doxyfile 1.5.3 #--------------------------------------------------------------------------- # Project related configuration options #--------------------------------------------------------------------------- DOXYFILE_ENCODING = UTF-8 PROJECT_NAME = Pebble PROJECT_NUMBER = 1.0.0 OUTPUT_DIRECTORY = /home/phuedx/0vBB/documentation/ CREATE_SUBDIRS = NO OUTPUT_LANGUAGE = English BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ABBREVIATE_BRIEF = ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = YES STRIP_FROM_PATH = STRIP_FROM_INC_PATH = SHORT_NAMES = NO JAVADOC_AUTOBRIEF = NO QT_AUTOBRIEF = NO MULTILINE_CPP_IS_BRIEF = NO DETAILS_AT_TOP = NO INHERIT_DOCS = YES SEPARATE_MEMBER_PAGES = NO TAB_SIZE = 8 ALIASES = OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO BUILTIN_STL_SUPPORT = NO CPP_CLI_SUPPORT = NO DISTRIBUTE_GROUP_DOC = NO SUBGROUPING = YES #--------------------------------------------------------------------------- # Build related configuration options #--------------------------------------------------------------------------- EXTRACT_ALL = YES EXTRACT_PRIVATE = YES EXTRACT_STATIC = YES EXTRACT_LOCAL_CLASSES = YES EXTRACT_LOCAL_METHODS = NO EXTRACT_ANON_NSPACES = NO HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES HIDE_SCOPE_NAMES = NO SHOW_INCLUDE_FILES = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES SORT_BRIEF_DOCS = NO SORT_BY_SCOPE_NAME = YES GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 SHOW_USED_FILES = YES SHOW_DIRECTORIES = NO FILE_VERSION_FILTER = #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = NO WARNINGS = YES WARN_IF_UNDOCUMENTED = YES WARN_IF_DOC_ERROR = YES WARN_NO_PARAMDOC = NO WARN_FORMAT = "$file:$line: $text " WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = /home/phuedx/0vBB/pebble/src/ INPUT_ENCODING = UTF-8 FILE_PATTERNS = RECURSIVE = YES EXCLUDE = /home/phuedx/0vBB/pebble/src/math/random/QRBG.cpp \ /home/phuedx/0vBB/pebble/src/math/random/QRBG.h \ /home/phuedx/0vBB/pebble/src/test/ \ /home/phuedx/0vBB/pebble/src/Doxyfile \ /home/phuedx/0vBB/pebble/src/Makefile \ /home/phuedx/0vBB/pebble/src/Makefile.am \ /home/phuedx/0vBB/pebble/src/Makefile.in \ /home/phuedx/0vBB/pebble/src/ModeMaker \ /home/phuedx/0vBB/pebble/src/Pebble \ /home/phuedx/0vBB/pebble/src/gnuplotcmds \ /home/phuedx/0vBB/pebble/src/merge-data.cpp \ /home/phuedx/0vBB/pebble/src/plotter \ /home/phuedx/0vBB/pebble/src/modes/Mode1.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode2.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode3.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode4.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode5.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode6.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode7.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode8.hpp \ /home/phuedx/0vBB/pebble/src/modes/Mode9.hpp \ /home/phuedx/0vBB/pebble/src/modes/Modes.hpp \ /home/phuedx/0vBB/pebble/src/modes/mode_template.hpp \ /home/phuedx/0vBB/pebble/src/modes/modelist.txt EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXCLUDE_SYMBOLS = std \ HeaderMaker EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_PATTERNS = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = YES INLINE_SOURCES = NO STRIP_CODE_COMMENTS = YES REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES REFERENCES_LINK_SOURCE = YES USE_HTAGS = NO VERBATIM_HEADERS = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = html HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = HTML_ALIGN_MEMBERS = YES GENERATE_HTMLHELP = NO HTML_DYNAMIC_SECTIONS = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = NO TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO LATEX_HIDE_INDICES = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO XML_OUTPUT = xml XML_SCHEMA = XML_DTD = XML_PROGRAMLISTING = YES #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::additions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = YES MSCGEN_PATH = HIDE_UNDOC_RELATIONS = YES HAVE_DOT = NO CLASS_GRAPH = YES COLLABORATION_GRAPH = YES GROUP_GRAPHS = YES UML_LOOK = NO TEMPLATE_RELATIONS = NO INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES CALL_GRAPH = NO CALLER_GRAPH = NO GRAPHICAL_HIERARCHY = YES DIRECTORY_GRAPH = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = DOT_GRAPH_MAX_NODES = 50 MAX_DOT_GRAPH_DEPTH = 0 DOT_TRANSPARENT = NO DOT_MULTI_TARGETS = NO GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::additions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO Pebble-1.0.0/src/Event.cpp0000644000175000001460000000350010666007170014560 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include "Event.hpp" Pebble::Event::Event(const std::string& mode) : i(0), decay_mode(mode) { particles.reserve(3); } Pebble::Event::Event(const std::vector& v, const std::string& mode) : i(0), decay_mode(mode) { particles = v; } Pebble::Event::Event(const Event& e) : i(0), decay_mode(e.decay_mode) { particles = e.particles; } Pebble::Event::~Event() { } void Pebble::Event::addParticle(const Pebble::Particles::Particle& p) { particles.push_back(p); } long Pebble::Event::getNumParticles() { return particles.size(); } bool Pebble::Event::good() { return (i < particles.size()); } bool Pebble::Event::bad() { return !good(); } bool Pebble::Event::fail() { return !good(); } bool Pebble::Event::eof() { return !good(); } Pebble::Particles::Particle Pebble::Event::next() throw(std::out_of_range) { if (! good()) { throw std::out_of_range("Event"); } return particles[i++]; } std::string Pebble::Event::getDecayMode() { return decay_mode; } Pebble::Event& Pebble::Event::operator<<(Pebble::Particles::Particle& p) { addParticle(p); return *this; } Pebble::Event& Pebble::Event::operator>>(Pebble::Particles::Particle& p) throw(std::out_of_range) { p = next(); return *this; } void Pebble::Event::clear() { particles.erase(particles.begin(), particles.end()); particles.reserve(3); i = 0; } Pebble::Particles::Particle& Pebble::Event::getParticle(unsigned long i) throw(std::out_of_range) { return particles.at(i); } Pebble-1.0.0/src/Event.hpp0000644000175000001460000000544710666007170014601 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_EVENT #define PEBBLE_EVENT #include #include #include #include "particles/Particle.hpp" namespace Pebble { /*! \brief A collection of particles, with associated energy and * momenta. * * The Event class represents a collection of particles. The * accessor functions mirror basic iostream functions to allow * easily readable output statements. */ class Event { public: /*! Construct an event with an associated decay mode, but an * empty particle stream. */ Event(const std::string& mode); /*! Construct an event with an associated decay mode and a * particle stream, defined by v. */ Event(const std::vector& v, const std::string& mode); /*! Construct an event from another event. */ Event(const Event& e); /*! Destructor. */ virtual ~Event(); /*! Adds a particle to the collection, without checking for * duplicate entries. */ void addParticle(const Pebble::Particles::Particle& p); /*! Returns the number of particles in the collection. */ long getNumParticles(); /*! Returns the ith particle in the collection. */ Pebble::Particles::Particle& getParticle(unsigned long i) throw(std::out_of_range); /*! Indicates a bad stream state. */ bool bad(); /*! Indicates whether the current index is at the end of the * stream. */ bool eof(); /*! Indicates a failure to access the particle at the current * stream position. */ bool fail(); /*! Indicates a good stream state. */ bool good(); /*! Returns the next particle in the stream. */ Pebble::Particles::Particle next() throw(std::out_of_range); /*! Returns the decay mode associated with the event. */ std::string getDecayMode(); /*! c.f. iostream << operator: adds a particle to the stream, * without affecting the current index. */ Event& operator<<(Pebble::Particles::Particle& p); /*! c.f. iostream >> operator: outputs the particle at the * current stream index. */ Event& operator>>(Pebble::Particles::Particle& p) throw(std::out_of_range); /*! Empties the stream and resets the stream index. 3 entries * are then reserved in the stream, for 2 electrons and the * parent nucleus. */ void clear(); private: /*! Particle stream, implemented as a vector. */ std::vector particles; /*! Current stream index. */ std::vector::size_type i; /*! Decay mode */ std::string decay_mode; }; }; #endif Pebble-1.0.0/src/EventGenerator.cpp0000644000175000001460000001147510666007170016441 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include "math/calculus/Integrand.hpp" #include "math/calculus/DoubleIntegrand.hpp" #include "math/calculus/AngularDistribution.hpp" #include "math/calculus/Negater.hpp" #include "math/calculus/Normaliser.hpp" #include "math/functions/Box.hpp" #include "math/random/MersenneTwister.hpp" #include "math/random/URandom.hpp" #include "math/Utility.hpp" #include "modes/Modes.hpp" #include "EventGenerator.hpp" #include "Event.hpp" #include "Exception.hpp" #include "particles/Particles.hpp" #include "modes/ModeFactory.hpp" #include using namespace Pebble::Math::Calculus; using namespace Pebble::Math::Functions; using namespace Pebble::Math::Utility; using namespace Pebble::Modes; const double Pebble::EventGenerator::m_e = 511.0; Pebble::EventGenerator::EventGenerator(const std::string& mode, const double& T0, std::vector* event_vector) // Initialiser list follows... it's quite long! : accepted(false), ch(0.0), cos_phi(0.0), cos_theta(0.0), cos_theta_c(0.0), fx(0.0), max(0.0), phi(0.0), p_x1(0.0), p_x2(0.0), p_y1(0.0), p_y2(0.0), p_z1(0.0), p_z2(0.0), sin_phi(0.0), sin_theta(0.0), T(T0), T1(0.0), T2(0.0), tme(0.0), theta(0.0), theta_c(0.0), u(0.0), f12theta(NULL), f12(NULL), f1(NULL), norm_f1(T0), norm_f12(T0), norm_f12theta(T0, -1, 1), h1(0, T0), h12(0, T0), h12theta(-1, 1), urandom(NULL), mode(mode), events(event_vector), i(0) // Initialisation over. Yay! { f1 = ModeFactory::getF1(mode); f12 = ModeFactory::getF12(mode); f12theta = ModeFactory::getF12Theta(mode); // Create a normalised function from f1 neg_f1.setFunction(*f1); min_f1.setFunction(neg_f1); max = min_f1.getMinimum(0, T / 2, T); // Normalise the maximum norm_f1.setFunction(*f1); // Create a bounding box h1.setScale( (*f1)(max) * norm_f1.getNorm() ); // Seed a MersenneTwister from /dev/urandom urandom = new Pebble::Math::Random::URandom; random.seed(urandom->getLong()); delete urandom; } Pebble::EventGenerator::~EventGenerator() { } void Pebble::EventGenerator::generate() { accepted = false; // Pick a T1 while ( ! accepted ) { // Pick x in range [0,T] by picking in [0,1] * T T1 = random.getDouble(); T1 *= T; fx = norm_f1(T1); u = random.getDouble(); ch = h1(T1); if ( u * ch <= fx ) { accepted = true; } } if ( f12->containsDelta() ) { T2 = T - T1; } else { // Set T1 const. in f12 f12->setConstant(T1, true); // Now normalise f12 neg_f12.setFunction(*f12); min_f12.setFunction(neg_f12); norm_f12.setLimits(0, T - T1); norm_f12.setFunction(*f12); try { max = min_f12.getMinimum(0, (T-T1)/2, T-T1); } catch ( Pebble::Exception& e ) { std::cerr << e.what() << "\nUsing F12 with T1 = " << T1 << std::endl; exit(1); } h12.setScale((*f12)(max) * norm_f12.getNorm()); // Pick a T2 accepted = false; while ( ! accepted ) { T2 = random.getDouble(); T2 *= (T - T1); fx = norm_f12(T2); u = random.getDouble(); ch = h12(T2); if ( u * ch <= fx ) { accepted = true; } } } // Set T1, T2 const. in f12theta f12theta->setConstants(T1, T2); norm_f12theta.setFunction(*f12theta); if ( mode == "Mode9" ) { max = (*f12theta)(0); } else { // Normalise f12theta neg_f12theta.setFunction(*f12theta); min_f12theta.setFunction(neg_f12theta); try { max = min_f12theta.getMinimum(-1.0, 0.0, 1.0); } catch ( Pebble::Exception& e ) { std::cerr << e.what() << "\nUsing F12Theta with T1 = " << T1 << " and T2 = " << T2 << std::endl; exit(1); } } h12theta.setScale((*f12theta)(max) * norm_f12theta.getNorm()); // Pick a cos theta accepted = false; while ( ! accepted ) { cos_theta_c = (2.0 * random.getDouble()) - 1.0; fx = norm_f12theta(cos_theta_c); u = random.getDouble(); ch = h12theta(cos_theta_c); if ( u * ch <= fx ) { accepted = true; } } // Pick a random direction isotropically... phi = 2 * M_PI * random.getDouble(); cos_theta = ( 2 * random.getDouble() ) - 1; theta = acos(cos_theta); cos_phi = cos(phi); sin_phi = sin(phi); // Generate momenta: tme = T1 / m_e; p_x1 = tme * sin_phi * cos_theta; p_y1 = tme * sin_phi * sin_theta; p_z1 = tme * cos_phi; tme = T2 / m_e; theta_c = acos(cos_theta_c); p_x2 = tme * sin_phi * cos(theta + theta_c); p_y2 = tme * sin_phi * sin(theta + theta_c); p_z2 = tme * cos_phi; e1.setProperties(11, -1, 0.5, m_e, T1, p_x1, p_y1, p_z1); e2.setProperties(11, -1, 0.5, m_e, T2, p_x2, p_y2, p_z2); (*events)[i].addParticle(e1); (*events)[i].addParticle(e2); ++i; } Pebble-1.0.0/src/EventGenerator.hpp0000644000175000001460000001304410666007170016440 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith */ #ifndef PEBBLE_EVENTGENERATOR #define PEBBLE_EVENTGENERATOR #include #include #include "math/calculus/AngularDistribution.hpp" #include "math/calculus/DoubleIntegrand.hpp" #include "math/calculus/Integrand.hpp" #include "math/calculus/Negater.hpp" #include "math/calculus/Normaliser.hpp" #include "math/functions/Box.hpp" #include "math/random/MersenneTwister.hpp" #include "math/random/URandom.hpp" #include "math/Utility.hpp" #include "particles/Particles.hpp" #include "Event.hpp" namespace Pebble { /*! \brief The wrapper for the event generation technique. * * The EventGenerator class implements the Monte Carlo acceptance- * rejection technique. The produced values are sampled according * to distribution functions, e.g. Mode1_F1, and accepted if they * are found to be within a limit. The limit is determined by a * loose fit to the function, which is then scaled by a random * number in the domain [0, 1]. These values are then assigned to * particles specific to double-beta decay modes. */ class EventGenerator { public: /*! Default constructor. Event generation requires a decay * mode, an available energy, and two vectors. The two * vectors will contain the events and correlated angular * distributions produced by the simulation. */ EventGenerator(const std::string& mode, const double& T, std::vector* event_vector); /*! Destructor. */ virtual ~EventGenerator(); /*! Uses Monte Carlo acceptance-rejection sampling to * generate energy-momenta of simulated particles. */ void generate(); private: /* * A lot of variables are declared here... This is to avoid * allocation/deallocation on every call to * EventGenerator::generate() and reduces runtimes from 13 * hours to a matter of minutes (in a simulation of 10 * million events.) */ /*! Represents if the generated value has been accepted. */ bool accepted; /*! Scaled box function value, taken at the generated value. */ double ch; /*! Cosine of the random, isotropic azimuth angle, phi. */ double cos_phi; /*! Cosine of the random, isotropic zenith angle, theta. */ double cos_theta; /*! Cosine of the accepted, correlated angle between the * momenta of the electrons in the x-y plane, theta_c. */ double cos_theta_c; /*! f1, f12, f12theta evaluated at an arbitrary value. */ double fx; /*! Maximum value of any of the distribution functions. */ double max; /*! Random, isotropic azimuth angle. */ double phi; /*! Momentum along the x axis of particle 1. */ double p_x1; /*! Momentum along the x axis of particle 2. */ double p_x2; double p_y1; double p_y2; double p_z1; double p_z2; /*! Sine of phi. */ double sin_phi; /*! Sine of theta. */ double sin_theta; /*! Total energy available for the decay, given by the * difference in energies of the excited states of the * nuclei. */ double T; /*! Energy of particle 1, in the range [0, T]. */ double T1; /*! Energy of particle 2, in the range [0, T-T1]. */ double T2; /*! Ratio of T / m_e for each particle. */ double tme; /*! Random, isotropic zenith angle. */ double theta; /*! Accepted, correlated angle between particles. */ double theta_c; /*! A random number in the range [0, 1], used to scale the * bounding function. */ double u; // Distribution functions: Pebble::Math::Calculus::AngularDistribution* f12theta; Pebble::Math::Calculus::DoubleIntegrand* f12; Pebble::Math::Calculus::Integrand* f1; // Normalised distribution functions: Pebble::Math::Calculus::Normaliser norm_f1; Pebble::Math::Calculus::Normaliser norm_f12; Pebble::Math::Calculus::Normaliser norm_f12theta; /* Scaled bounding boxes of the normalised distribution * functions: */ Pebble::Math::Functions::Box h1; Pebble::Math::Functions::Box h12; Pebble::Math::Functions::Box h12theta; /*! Used to produce a seed for the Mersenne Twister random * number generator. */ Pebble::Math::Random::URandom* urandom; /*! The chosen decay mode. */ std::string mode; /*! A vector of generated Event information. */ std::vector* events; /*! A list of generated angular information. */ std::vector >* angles; /*! The number of the current event, in the range [0, N-1]. */ unsigned long i; // *** ITEMS BELOW NOT IN INITIALISER LIST *** /*! The negated versions of the F1 distribution function. * Used during finding the maximum of the function to scale * the bounding box function. */ Pebble::Math::Calculus::Negater neg_f1; Pebble::Math::Calculus::Negater neg_f12; Pebble::Math::Calculus::Negater neg_f12theta; /*! A minimiser class that accepts F1 as its argument. */ Pebble::Math::Utility::Minimiser min_f1; Pebble::Math::Utility::Minimiser min_f12; Pebble::Math::Utility::Minimiser min_f12theta; /*! Temporary particle, representing the first electron, for * value assignment before addition to the vector of events. */ Pebble::Particles::Particle e1; Pebble::Particles::Particle e2; /*! A Mersenne Twister pseudorandom number generator. */ Pebble::Math::Random::MersenneTwister random; /*! The mass of an electron. */ static const double m_e; }; }; #endif Pebble-1.0.0/src/Exception.cpp0000644000175000001460000000126010666007170015436 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include "Exception.hpp" Pebble::Exception::Exception(const std::string& message) : msg(message) { } Pebble::Exception::Exception(const char* message) : msg(message) { } Pebble::Exception::Exception() : msg("Unspecified exception.") { } Pebble::Exception::~Exception() {} const std::string& Pebble::Exception::what() { return msg; } Pebble-1.0.0/src/Exception.hpp0000644000175000001460000000254610666007170015453 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_EXCEPTION #define PEBBLE_EXCEPTION #include namespace Pebble { /*! \brief A distinguised exception class, for use in the Pebble * framework. * * The Exception class is deliberately distinguished from the * std::exception class. The Exception class is also derived from * in the Pebble::Test namespace, for use in the unit test * framework. Although this class is separate from the * std::exception class, it has the same functionality. */ class Exception { public: /*! Constructs an exception with a generic message. */ Exception(); /*! Constructs an exception with a specific message, passed * as a string. */ Exception(const std::string& message); /*! Constructs an exception with a specific message, passed * as a C-style char array. */ Exception(const char* message); /*! Destructor. */ virtual ~Exception(); /*! Returns the message associated with the exception. */ virtual const std::string& what(); private: /*! The exception message. */ const std::string msg; }; }; #endif Pebble-1.0.0/src/Interface.cpp0000644000175000001460000001445010666007170015405 0ustar phuegaphuega#include #include #include #include #include #include "modes/ModeFactory.hpp" #include "modes/Modes.hpp" #include "particles/NuclearState.hpp" #include "particles/Nucleus.hpp" #include "Event.hpp" #include "Exception.hpp" #include "Interface.hpp" #include "NuclearFactory.hpp" Pebble::Interface::Interface() : i(0) { } void Pebble::Interface::init(const double& T0) { // Initialise ModeFactory Pebble::Modes::ModeFactory::init(); Pebble::Modes::Mode1_F1 mode1_f1(T0); Pebble::Modes::Mode1_F12 mode1_f12(T0); Pebble::Modes::Mode1_F12Theta mode1_f12theta(T0); Pebble::Modes::Mode2_F1 mode2_f1(T0); Pebble::Modes::Mode2_F12 mode2_f12(T0); Pebble::Modes::Mode2_F12Theta mode2_f12theta(T0); Pebble::Modes::Mode3_F1 mode3_f1(T0); Pebble::Modes::Mode3_F12 mode3_f12(T0); Pebble::Modes::Mode3_F12Theta mode3_f12theta(T0); Pebble::Modes::Mode4_F1 mode4_f1(T0); Pebble::Modes::Mode4_F12 mode4_f12(T0); Pebble::Modes::Mode4_F12Theta mode4_f12theta(T0); Pebble::Modes::Mode5_F1 mode5_f1(T0); Pebble::Modes::Mode5_F12 mode5_f12(T0); Pebble::Modes::Mode5_F12Theta mode5_f12theta(T0); Pebble::Modes::Mode6_F1 mode6_f1(T0); Pebble::Modes::Mode6_F12 mode6_f12(T0); Pebble::Modes::Mode6_F12Theta mode6_f12theta(T0); Pebble::Modes::Mode7_F1 mode7_f1(T0); Pebble::Modes::Mode7_F12 mode7_f12(T0); Pebble::Modes::Mode7_F12Theta mode7_f12theta(T0); Pebble::Modes::Mode8_F1 mode8_f1(T0); Pebble::Modes::Mode8_F12 mode8_f12(T0); Pebble::Modes::Mode8_F12Theta mode8_f12theta(T0); Pebble::Modes::Mode9_F1 mode9_f1(T0); Pebble::Modes::Mode9_F12 mode9_f12(T0); Pebble::Modes::Mode9_F12Theta mode9_f12theta(T0); Pebble::Modes::ModeFactory::addMode("Mode1", &mode1_f1, &mode1_f12, &mode1_f12theta); Pebble::Modes::ModeFactory::addMode("Mode2", &mode2_f1, &mode2_f12, &mode2_f12theta); Pebble::Modes::ModeFactory::addMode("Mode3", &mode3_f1, &mode3_f12, &mode3_f12theta); Pebble::Modes::ModeFactory::addMode("Mode4", &mode4_f1, &mode4_f12, &mode4_f12theta); Pebble::Modes::ModeFactory::addMode("Mode5", &mode5_f1, &mode5_f12, &mode5_f12theta); Pebble::Modes::ModeFactory::addMode("Mode6", &mode6_f1, &mode6_f12, &mode6_f12theta); Pebble::Modes::ModeFactory::addMode("Mode7", &mode7_f1, &mode7_f12, &mode7_f12theta); Pebble::Modes::ModeFactory::addMode("Mode8", &mode8_f1, &mode8_f12, &mode8_f12theta); Pebble::Modes::ModeFactory::addMode("Mode9", &mode9_f1, &mode9_f12, &mode9_f12theta); } Pebble::Interface::~Interface() { Pebble::Modes::ModeFactory::fini(); } std::vector Pebble::Interface::getEventVector() { return *(events); } bool Pebble::Interface::checkModeStringFormat(const std::string& mode_string, int *mode_number) { if ( mode_string.substr(0, 3) != "Mode" ) { return false; } std::istringstream ss(mode_string.substr(4, mode_string.length() - 4)); try { ss >> *mode_number; } catch( std::ios_base::failure& e ) { mode_number == NULL; return false; } return true; } void Pebble::Interface::generateEventsFromNuclei(const std::string& mode, const std::string& parent_nucleus, const unsigned long num_events, const Pebble::OutputType type, unsigned long bin_width) throw(Pebble::Exception) { int mode_number; if ( ! checkModeStringFormat( mode, &mode_number ) ) { throw( Pebble::Exception( "Invalid mode identifier, " + mode ) ); } std::string parent_state = "0+"; std::string child_state; // Determine child state switch ( mode_number ) { case 1: case 2: case 3: case 4: case 5: case 6: /* N.B. When adding decay modes, the parent state can * also be altered. */ child_state = "0+"; break; case 7: case 8: case 9: child_state = "2+"; break; default: throw( Pebble::Exception( "Invalid mode identifier, " + mode ) ); } Pebble::NuclearFactory factory; // Create parent and child nuclei Pebble::Particles::Nucleus parent = factory.getNucleus(parent_nucleus, parent_state); *child = factory.getNucleus(parent.getChild(), child_state); double Q_value = (parent.getState()).getEnergy() - (child->getState()).getEnergy(); generateEventsFromQValue( mode, Q_value, num_events, type, bin_width ); return; } void Pebble::Interface::generateEventsFromQValue(const std::string& mode, const double& Q_value, const unsigned long num_events, const Pebble::OutputType type, const unsigned long bin_width) { init(Q_value); // Initialise ModeFactory Event event_template(mode); events = new std::vector(num_events, event_template); pebble = new EventGenerator(mode, Q_value, events); unsigned long num_bins = ((unsigned long) Q_value / bin_width) + 1; unsigned long **counts; double t1_value, t2_value; t1_value = t2_value = 0; // Create and initialise count array if ( type & Pebble::OUTPUT_SPECTRA || type & Pebble::OUTPUT_BOTH ) { /* counts stores the frequency of occuring energies, for T1, * T2, and T respectively. counts[0] stores data for T1, * et cetera. */ counts = new unsigned long*[3]; counts[0] = new unsigned long[num_bins]; counts[1] = new unsigned long[num_bins]; counts[2] = new unsigned long[num_bins]; for(int j = 0; j < num_bins; ++j) { counts[0][i] = counts[1][i] = counts[2][i] = 0; } } try { for ( i = 0; i < num_events; ++i ) { pebble->generate(); if ( type & Pebble::OUTPUT_SPECTRA || type & Pebble::OUTPUT_BOTH ) { t1_value = ((*events)[i].getParticle(0).getEnergyMomentum().getEnergy()); t2_value = ((*events)[i].getParticle(1).getEnergyMomentum().getEnergy()); counts[0][(int)(t1_value / bin_width)] += 1; counts[1][(int)(t2_value / bin_width)] += 1; counts[2][(int)((t1_value + t2_value) / bin_width)] += 1; } } } catch (Pebble::Exception& e) { std::cerr << e.what() << std::endl; exit(1); } if ( type & Pebble::OUTPUT_SPECTRA ) { std::string t1_file = mode + "_spectra_t1.tsv"; std::string t2_file = mode + "_spectra_t2.tsv"; std::string t_file = mode + "_spectra_t.tsv"; std::ofstream t1_output(t1_file.c_str()); std::ofstream t2_output(t2_file.c_str()); std::ofstream t_output(t_file.c_str()); for(int j = 0; j < num_bins; ++j) { int k = i * 10; t1_output << k << "\t" << counts[0][j] << "\n"; t2_output << k << "\t" << counts[1][j] << "\n"; t_output << k << "\t" << counts[2][j] << "\n"; } t1_output.close(); t2_output.close(); t_output.close(); } delete[] counts; return; } Pebble-1.0.0/src/Interface.hpp0000644000175000001460000000172310666007170015411 0ustar phuegaphuega#include #include #include "particles/Nucleus.hpp" #include "Event.hpp" #include "EventGenerator.hpp" #include "Exception.hpp" namespace Pebble { enum OutputType { OUTPUT_EVENTS = 1, OUTPUT_SPECTRA = 2, OUTPUT_BOTH = 3 }; class Interface { public: Interface(); ~Interface(); void generateEventsFromNuclei(const std::string& mode, const std::string& parent_nucleus, const unsigned long num_events, const Pebble::OutputType type, const unsigned long bin_width = 10) throw(Pebble::Exception); void generateEventsFromQValue(const std::string& mode, const double& Q_value, const unsigned long num_events, const Pebble::OutputType type, unsigned long bin_width = 10); std::vector getEventVector(); private: void init(const double& T0); bool checkModeStringFormat(const std::string& mode_string, int *mode_number); EventGenerator* pebble; Pebble::Particles::Nucleus* child; std::vector* events; int i; }; }; Pebble-1.0.0/src/Makefile0000644000175000001460000016725010666007170014450 0ustar phuegaphuega# Makefile.in generated by automake 1.9.6 from Makefile.am. # src/Makefile. Generated from Makefile.in by configure. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. srcdir = . top_srcdir = .. pkgdatadir = $(datadir)/Pebble pkglibdir = $(libdir)/Pebble pkgincludedir = $(includedir)/Pebble top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = /usr/bin/ginstall -c install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = Pebble$(EXEEXT) plotter$(EXEEXT) ModeMaker$(EXEEXT) \ merge-data$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_ModeMaker_OBJECTS = ModeMaker.$(OBJEXT) ModeMaker_OBJECTS = $(am_ModeMaker_OBJECTS) ModeMaker_LDADD = $(LDADD) am_Pebble_OBJECTS = Event.$(OBJEXT) EventGenerator.$(OBJEXT) \ Exception.$(OBJEXT) Interface.$(OBJEXT) \ NuclearFactory.$(OBJEXT) Pebble.$(OBJEXT) FourVector.$(OBJEXT) \ Utility.$(OBJEXT) AngularDistribution.$(OBJEXT) \ DoubleIntegrand.$(OBJEXT) GaussIntegrator.$(OBJEXT) \ Integrand.$(OBJEXT) Integrator.$(OBJEXT) \ RombergIntegrator.$(OBJEXT) Box.$(OBJEXT) \ MersenneTwister.$(OBJEXT) POSIXRandom.$(OBJEXT) QRBG.$(OBJEXT) \ QRandom.$(OBJEXT) Random.$(OBJEXT) STDRandom.$(OBJEXT) \ URandom.$(OBJEXT) ModeFactory.$(OBJEXT) Electron.$(OBJEXT) \ ElectronAntiNeutrino.$(OBJEXT) ElectronNeutrino.$(OBJEXT) \ Lepton.$(OBJEXT) NuclearState.$(OBJEXT) Nucleus.$(OBJEXT) \ Particle.$(OBJEXT) Positron.$(OBJEXT) Pebble_OBJECTS = $(am_Pebble_OBJECTS) Pebble_LDADD = $(LDADD) am_merge_data_OBJECTS = merge-data.$(OBJEXT) merge_data_OBJECTS = $(am_merge_data_OBJECTS) merge_data_LDADD = $(LDADD) am_plotter_OBJECTS = Exception.$(OBJEXT) plotter.$(OBJEXT) \ Utility.$(OBJEXT) AngularDistribution.$(OBJEXT) \ DoubleIntegrand.$(OBJEXT) GaussIntegrator.$(OBJEXT) \ Integrand.$(OBJEXT) Integrator.$(OBJEXT) \ RombergIntegrator.$(OBJEXT) Box.$(OBJEXT) \ ModeFactory.$(OBJEXT) plotter_OBJECTS = $(am_plotter_OBJECTS) plotter_LDADD = $(LDADD) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(ModeMaker_SOURCES) $(Pebble_SOURCES) $(merge_data_SOURCES) \ $(plotter_SOURCES) DIST_SOURCES = $(ModeMaker_SOURCES) $(Pebble_SOURCES) \ $(merge_data_SOURCES) $(plotter_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = ${SHELL} /home/phuega/0vBB/pebble/config/missing --run aclocal-1.9 AMDEP_FALSE = # AMDEP_TRUE = AMTAR = ${SHELL} /home/phuega/0vBB/pebble/config/missing --run tar AUTOCONF = ${SHELL} /home/phuega/0vBB/pebble/config/missing --run autoconf AUTOHEADER = ${SHELL} /home/phuega/0vBB/pebble/config/missing --run autoheader AUTOMAKE = ${SHELL} /home/phuega/0vBB/pebble/config/missing --run automake-1.9 AWK = gawk CC = gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = gcc -E CPPFLAGS = CXX = g++ CXXDEPMODE = depmode=gcc3 CXXFLAGS = -g -O2 CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps ECHO_C = ECHO_N = -n ECHO_T = EGREP = /usr/bin/grep -E EXEEXT = GREP = /usr/bin/grep INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s LDFLAGS = LIBOBJS = LIBS = LTLIBOBJS = MAKEINFO = ${SHELL} /home/phuega/0vBB/pebble/config/missing --run makeinfo OBJEXT = o PACKAGE = Pebble PACKAGE_BUGREPORT = a.j.bennieston@warwick.ac.uk PACKAGE_NAME = Pebble PACKAGE_STRING = Pebble 1.0.0 PACKAGE_TARNAME = pebble PACKAGE_VERSION = 1.0.0 PATH_SEPARATOR = : SET_MAKE = SHELL = /bin/sh STRIP = VERSION = 1.0.0 ac_ct_CC = gcc ac_ct_CXX = g++ am__fastdepCC_FALSE = # am__fastdepCC_TRUE = am__fastdepCXX_FALSE = # am__fastdepCXX_TRUE = am__include = include am__leading_dot = . am__quote = am__tar = ${AMTAR} chof - "$$tardir" am__untar = ${AMTAR} xf - bindir = ${exec_prefix}/bin build_alias = datadir = ${datarootdir} datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} host_alias = htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = /home/phuega/0vBB/pebble/config/install-sh libdir = ${exec_prefix}/lib libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man mkdir_p = mkdir -p -- oldincludedir = /usr/include pdfdir = ${docdir} prefix = /home/phuega/ program_transform_name = s,x,x, psdir = ${docdir} sbindir = ${exec_prefix}/sbin sharedstatedir = ${prefix}/com sysconfdir = ${prefix}/etc target_alias = Pebble_SOURCES = Event.cpp Event.hpp EventGenerator.cpp \ EventGenerator.hpp Exception.cpp Exception.hpp Interface.cpp \ Interface.hpp NuclearFactory.cpp NuclearFactory.hpp Pebble.cpp \ math/FourVector.cpp math/FourVector.hpp math/Utility.cpp \ math/Utility.hpp math/calculus/AngularDistribution.cpp \ math/calculus/AngularDistribution.hpp \ math/calculus/DoubleIntegrand.cpp \ math/calculus/DoubleIntegrand.hpp \ math/calculus/GaussIntegrator.cpp \ math/calculus/GaussIntegrator.hpp math/calculus/Integrand.cpp \ math/calculus/Integrand.hpp math/calculus/Integrator.cpp \ math/calculus/Integrator.hpp math/calculus/Negater.hpp \ math/calculus/Normaliser.hpp \ math/calculus/RombergIntegrator.cpp \ math/calculus/RombergIntegrator.hpp math/functions/Box.cpp \ math/functions/Box.hpp math/random/MersenneTwister.cpp \ math/random/MersenneTwister.hpp math/random/POSIXRandom.cpp \ math/random/POSIXRandom.hpp math/random/QRBG.cpp \ math/random/QRBG.hpp math/random/QRandom.cpp \ math/random/QRandom.hpp math/random/Random.cpp \ math/random/Random.hpp math/random/STDRandom.cpp \ math/random/STDRandom.hpp math/random/URandom.cpp \ math/random/URandom.hpp modes/Mode1.hpp modes/Mode2.hpp \ modes/Mode3.hpp modes/Mode4.hpp modes/Mode5.hpp \ modes/Mode6.hpp modes/Mode7.hpp modes/Mode8.hpp \ modes/Mode9.hpp modes/ModeFactory.cpp modes/ModeFactory.hpp \ modes/Modes.hpp particles/Electron.cpp particles/Electron.hpp \ particles/ElectronAntiNeutrino.cpp \ particles/ElectronAntiNeutrino.hpp \ particles/ElectronNeutrino.cpp particles/ElectronNeutrino.hpp \ particles/Lepton.cpp particles/Lepton.hpp \ particles/NuclearState.cpp particles/NuclearState.hpp \ particles/Nucleus.cpp particles/Nucleus.hpp \ particles/Particle.cpp particles/Particle.hpp \ particles/Particles.hpp particles/Positron.cpp \ particles/Positron.hpp plotter_SOURCES = Exception.cpp Exception.hpp plotter.cpp math/Utility.cpp math/Utility.hpp math/calculus/AngularDistribution.cpp math/calculus/AngularDistribution.hpp math/calculus/DoubleIntegrand.cpp math/calculus/DoubleIntegrand.hpp math/calculus/GaussIntegrator.cpp math/calculus/GaussIntegrator.hpp math/calculus/Integrand.cpp math/calculus/Integrand.hpp math/calculus/Integrator.cpp math/calculus/Integrator.hpp math/calculus/Negater.hpp math/calculus/Normaliser.hpp math/calculus/RombergIntegrator.cpp math/calculus/RombergIntegrator.hpp math/functions/Box.cpp math/functions/Box.hpp modes/Mode1.hpp modes/Mode2.hpp modes/Mode3.hpp modes/Mode4.hpp modes/Mode5.hpp modes/Mode6.hpp modes/Mode7.hpp modes/Mode8.hpp modes/Mode9.hpp modes/ModeFactory.cpp modes/ModeFactory.hpp modes/Modes.hpp ModeMaker_SOURCES = modes/ModeMaker.cpp merge_data_SOURCES = merge-data.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ModeMaker$(EXEEXT): $(ModeMaker_OBJECTS) $(ModeMaker_DEPENDENCIES) @rm -f ModeMaker$(EXEEXT) $(CXXLINK) $(ModeMaker_LDFLAGS) $(ModeMaker_OBJECTS) $(ModeMaker_LDADD) $(LIBS) Pebble$(EXEEXT): $(Pebble_OBJECTS) $(Pebble_DEPENDENCIES) @rm -f Pebble$(EXEEXT) $(CXXLINK) $(Pebble_LDFLAGS) $(Pebble_OBJECTS) $(Pebble_LDADD) $(LIBS) merge-data$(EXEEXT): $(merge_data_OBJECTS) $(merge_data_DEPENDENCIES) @rm -f merge-data$(EXEEXT) $(CXXLINK) $(merge_data_LDFLAGS) $(merge_data_OBJECTS) $(merge_data_LDADD) $(LIBS) plotter$(EXEEXT): $(plotter_OBJECTS) $(plotter_DEPENDENCIES) @rm -f plotter$(EXEEXT) $(CXXLINK) $(plotter_LDFLAGS) $(plotter_OBJECTS) $(plotter_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c include ./$(DEPDIR)/AngularDistribution.Po include ./$(DEPDIR)/Box.Po include ./$(DEPDIR)/DoubleIntegrand.Po include ./$(DEPDIR)/Electron.Po include ./$(DEPDIR)/ElectronAntiNeutrino.Po include ./$(DEPDIR)/ElectronNeutrino.Po include ./$(DEPDIR)/Event.Po include ./$(DEPDIR)/EventGenerator.Po include ./$(DEPDIR)/Exception.Po include ./$(DEPDIR)/FourVector.Po include ./$(DEPDIR)/GaussIntegrator.Po include ./$(DEPDIR)/Integrand.Po include ./$(DEPDIR)/Integrator.Po include ./$(DEPDIR)/Interface.Po include ./$(DEPDIR)/Lepton.Po include ./$(DEPDIR)/MersenneTwister.Po include ./$(DEPDIR)/ModeFactory.Po include ./$(DEPDIR)/ModeMaker.Po include ./$(DEPDIR)/NuclearFactory.Po include ./$(DEPDIR)/NuclearState.Po include ./$(DEPDIR)/Nucleus.Po include ./$(DEPDIR)/POSIXRandom.Po include ./$(DEPDIR)/Particle.Po include ./$(DEPDIR)/Pebble.Po include ./$(DEPDIR)/Positron.Po include ./$(DEPDIR)/QRBG.Po include ./$(DEPDIR)/QRandom.Po include ./$(DEPDIR)/Random.Po include ./$(DEPDIR)/RombergIntegrator.Po include ./$(DEPDIR)/STDRandom.Po include ./$(DEPDIR)/URandom.Po include ./$(DEPDIR)/Utility.Po include ./$(DEPDIR)/merge-data.Po include ./$(DEPDIR)/plotter.Po .cpp.o: if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi # source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXXCOMPILE) -c -o $@ $< .cpp.obj: if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi # source='$<' object='$@' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` ModeMaker.o: modes/ModeMaker.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeMaker.o -MD -MP -MF "$(DEPDIR)/ModeMaker.Tpo" -c -o ModeMaker.o `test -f 'modes/ModeMaker.cpp' || echo '$(srcdir)/'`modes/ModeMaker.cpp; \ then mv -f "$(DEPDIR)/ModeMaker.Tpo" "$(DEPDIR)/ModeMaker.Po"; else rm -f "$(DEPDIR)/ModeMaker.Tpo"; exit 1; fi # source='modes/ModeMaker.cpp' object='ModeMaker.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeMaker.o `test -f 'modes/ModeMaker.cpp' || echo '$(srcdir)/'`modes/ModeMaker.cpp ModeMaker.obj: modes/ModeMaker.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeMaker.obj -MD -MP -MF "$(DEPDIR)/ModeMaker.Tpo" -c -o ModeMaker.obj `if test -f 'modes/ModeMaker.cpp'; then $(CYGPATH_W) 'modes/ModeMaker.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeMaker.cpp'; fi`; \ then mv -f "$(DEPDIR)/ModeMaker.Tpo" "$(DEPDIR)/ModeMaker.Po"; else rm -f "$(DEPDIR)/ModeMaker.Tpo"; exit 1; fi # source='modes/ModeMaker.cpp' object='ModeMaker.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeMaker.obj `if test -f 'modes/ModeMaker.cpp'; then $(CYGPATH_W) 'modes/ModeMaker.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeMaker.cpp'; fi` FourVector.o: math/FourVector.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT FourVector.o -MD -MP -MF "$(DEPDIR)/FourVector.Tpo" -c -o FourVector.o `test -f 'math/FourVector.cpp' || echo '$(srcdir)/'`math/FourVector.cpp; \ then mv -f "$(DEPDIR)/FourVector.Tpo" "$(DEPDIR)/FourVector.Po"; else rm -f "$(DEPDIR)/FourVector.Tpo"; exit 1; fi # source='math/FourVector.cpp' object='FourVector.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o FourVector.o `test -f 'math/FourVector.cpp' || echo '$(srcdir)/'`math/FourVector.cpp FourVector.obj: math/FourVector.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT FourVector.obj -MD -MP -MF "$(DEPDIR)/FourVector.Tpo" -c -o FourVector.obj `if test -f 'math/FourVector.cpp'; then $(CYGPATH_W) 'math/FourVector.cpp'; else $(CYGPATH_W) '$(srcdir)/math/FourVector.cpp'; fi`; \ then mv -f "$(DEPDIR)/FourVector.Tpo" "$(DEPDIR)/FourVector.Po"; else rm -f "$(DEPDIR)/FourVector.Tpo"; exit 1; fi # source='math/FourVector.cpp' object='FourVector.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o FourVector.obj `if test -f 'math/FourVector.cpp'; then $(CYGPATH_W) 'math/FourVector.cpp'; else $(CYGPATH_W) '$(srcdir)/math/FourVector.cpp'; fi` Utility.o: math/Utility.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Utility.o -MD -MP -MF "$(DEPDIR)/Utility.Tpo" -c -o Utility.o `test -f 'math/Utility.cpp' || echo '$(srcdir)/'`math/Utility.cpp; \ then mv -f "$(DEPDIR)/Utility.Tpo" "$(DEPDIR)/Utility.Po"; else rm -f "$(DEPDIR)/Utility.Tpo"; exit 1; fi # source='math/Utility.cpp' object='Utility.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Utility.o `test -f 'math/Utility.cpp' || echo '$(srcdir)/'`math/Utility.cpp Utility.obj: math/Utility.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Utility.obj -MD -MP -MF "$(DEPDIR)/Utility.Tpo" -c -o Utility.obj `if test -f 'math/Utility.cpp'; then $(CYGPATH_W) 'math/Utility.cpp'; else $(CYGPATH_W) '$(srcdir)/math/Utility.cpp'; fi`; \ then mv -f "$(DEPDIR)/Utility.Tpo" "$(DEPDIR)/Utility.Po"; else rm -f "$(DEPDIR)/Utility.Tpo"; exit 1; fi # source='math/Utility.cpp' object='Utility.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Utility.obj `if test -f 'math/Utility.cpp'; then $(CYGPATH_W) 'math/Utility.cpp'; else $(CYGPATH_W) '$(srcdir)/math/Utility.cpp'; fi` AngularDistribution.o: math/calculus/AngularDistribution.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AngularDistribution.o -MD -MP -MF "$(DEPDIR)/AngularDistribution.Tpo" -c -o AngularDistribution.o `test -f 'math/calculus/AngularDistribution.cpp' || echo '$(srcdir)/'`math/calculus/AngularDistribution.cpp; \ then mv -f "$(DEPDIR)/AngularDistribution.Tpo" "$(DEPDIR)/AngularDistribution.Po"; else rm -f "$(DEPDIR)/AngularDistribution.Tpo"; exit 1; fi # source='math/calculus/AngularDistribution.cpp' object='AngularDistribution.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AngularDistribution.o `test -f 'math/calculus/AngularDistribution.cpp' || echo '$(srcdir)/'`math/calculus/AngularDistribution.cpp AngularDistribution.obj: math/calculus/AngularDistribution.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AngularDistribution.obj -MD -MP -MF "$(DEPDIR)/AngularDistribution.Tpo" -c -o AngularDistribution.obj `if test -f 'math/calculus/AngularDistribution.cpp'; then $(CYGPATH_W) 'math/calculus/AngularDistribution.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/AngularDistribution.cpp'; fi`; \ then mv -f "$(DEPDIR)/AngularDistribution.Tpo" "$(DEPDIR)/AngularDistribution.Po"; else rm -f "$(DEPDIR)/AngularDistribution.Tpo"; exit 1; fi # source='math/calculus/AngularDistribution.cpp' object='AngularDistribution.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AngularDistribution.obj `if test -f 'math/calculus/AngularDistribution.cpp'; then $(CYGPATH_W) 'math/calculus/AngularDistribution.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/AngularDistribution.cpp'; fi` DoubleIntegrand.o: math/calculus/DoubleIntegrand.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT DoubleIntegrand.o -MD -MP -MF "$(DEPDIR)/DoubleIntegrand.Tpo" -c -o DoubleIntegrand.o `test -f 'math/calculus/DoubleIntegrand.cpp' || echo '$(srcdir)/'`math/calculus/DoubleIntegrand.cpp; \ then mv -f "$(DEPDIR)/DoubleIntegrand.Tpo" "$(DEPDIR)/DoubleIntegrand.Po"; else rm -f "$(DEPDIR)/DoubleIntegrand.Tpo"; exit 1; fi # source='math/calculus/DoubleIntegrand.cpp' object='DoubleIntegrand.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o DoubleIntegrand.o `test -f 'math/calculus/DoubleIntegrand.cpp' || echo '$(srcdir)/'`math/calculus/DoubleIntegrand.cpp DoubleIntegrand.obj: math/calculus/DoubleIntegrand.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT DoubleIntegrand.obj -MD -MP -MF "$(DEPDIR)/DoubleIntegrand.Tpo" -c -o DoubleIntegrand.obj `if test -f 'math/calculus/DoubleIntegrand.cpp'; then $(CYGPATH_W) 'math/calculus/DoubleIntegrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/DoubleIntegrand.cpp'; fi`; \ then mv -f "$(DEPDIR)/DoubleIntegrand.Tpo" "$(DEPDIR)/DoubleIntegrand.Po"; else rm -f "$(DEPDIR)/DoubleIntegrand.Tpo"; exit 1; fi # source='math/calculus/DoubleIntegrand.cpp' object='DoubleIntegrand.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o DoubleIntegrand.obj `if test -f 'math/calculus/DoubleIntegrand.cpp'; then $(CYGPATH_W) 'math/calculus/DoubleIntegrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/DoubleIntegrand.cpp'; fi` GaussIntegrator.o: math/calculus/GaussIntegrator.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GaussIntegrator.o -MD -MP -MF "$(DEPDIR)/GaussIntegrator.Tpo" -c -o GaussIntegrator.o `test -f 'math/calculus/GaussIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/GaussIntegrator.cpp; \ then mv -f "$(DEPDIR)/GaussIntegrator.Tpo" "$(DEPDIR)/GaussIntegrator.Po"; else rm -f "$(DEPDIR)/GaussIntegrator.Tpo"; exit 1; fi # source='math/calculus/GaussIntegrator.cpp' object='GaussIntegrator.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GaussIntegrator.o `test -f 'math/calculus/GaussIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/GaussIntegrator.cpp GaussIntegrator.obj: math/calculus/GaussIntegrator.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GaussIntegrator.obj -MD -MP -MF "$(DEPDIR)/GaussIntegrator.Tpo" -c -o GaussIntegrator.obj `if test -f 'math/calculus/GaussIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/GaussIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/GaussIntegrator.cpp'; fi`; \ then mv -f "$(DEPDIR)/GaussIntegrator.Tpo" "$(DEPDIR)/GaussIntegrator.Po"; else rm -f "$(DEPDIR)/GaussIntegrator.Tpo"; exit 1; fi # source='math/calculus/GaussIntegrator.cpp' object='GaussIntegrator.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GaussIntegrator.obj `if test -f 'math/calculus/GaussIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/GaussIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/GaussIntegrator.cpp'; fi` Integrand.o: math/calculus/Integrand.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrand.o -MD -MP -MF "$(DEPDIR)/Integrand.Tpo" -c -o Integrand.o `test -f 'math/calculus/Integrand.cpp' || echo '$(srcdir)/'`math/calculus/Integrand.cpp; \ then mv -f "$(DEPDIR)/Integrand.Tpo" "$(DEPDIR)/Integrand.Po"; else rm -f "$(DEPDIR)/Integrand.Tpo"; exit 1; fi # source='math/calculus/Integrand.cpp' object='Integrand.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrand.o `test -f 'math/calculus/Integrand.cpp' || echo '$(srcdir)/'`math/calculus/Integrand.cpp Integrand.obj: math/calculus/Integrand.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrand.obj -MD -MP -MF "$(DEPDIR)/Integrand.Tpo" -c -o Integrand.obj `if test -f 'math/calculus/Integrand.cpp'; then $(CYGPATH_W) 'math/calculus/Integrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrand.cpp'; fi`; \ then mv -f "$(DEPDIR)/Integrand.Tpo" "$(DEPDIR)/Integrand.Po"; else rm -f "$(DEPDIR)/Integrand.Tpo"; exit 1; fi # source='math/calculus/Integrand.cpp' object='Integrand.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrand.obj `if test -f 'math/calculus/Integrand.cpp'; then $(CYGPATH_W) 'math/calculus/Integrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrand.cpp'; fi` Integrator.o: math/calculus/Integrator.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrator.o -MD -MP -MF "$(DEPDIR)/Integrator.Tpo" -c -o Integrator.o `test -f 'math/calculus/Integrator.cpp' || echo '$(srcdir)/'`math/calculus/Integrator.cpp; \ then mv -f "$(DEPDIR)/Integrator.Tpo" "$(DEPDIR)/Integrator.Po"; else rm -f "$(DEPDIR)/Integrator.Tpo"; exit 1; fi # source='math/calculus/Integrator.cpp' object='Integrator.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrator.o `test -f 'math/calculus/Integrator.cpp' || echo '$(srcdir)/'`math/calculus/Integrator.cpp Integrator.obj: math/calculus/Integrator.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrator.obj -MD -MP -MF "$(DEPDIR)/Integrator.Tpo" -c -o Integrator.obj `if test -f 'math/calculus/Integrator.cpp'; then $(CYGPATH_W) 'math/calculus/Integrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrator.cpp'; fi`; \ then mv -f "$(DEPDIR)/Integrator.Tpo" "$(DEPDIR)/Integrator.Po"; else rm -f "$(DEPDIR)/Integrator.Tpo"; exit 1; fi # source='math/calculus/Integrator.cpp' object='Integrator.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrator.obj `if test -f 'math/calculus/Integrator.cpp'; then $(CYGPATH_W) 'math/calculus/Integrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrator.cpp'; fi` RombergIntegrator.o: math/calculus/RombergIntegrator.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RombergIntegrator.o -MD -MP -MF "$(DEPDIR)/RombergIntegrator.Tpo" -c -o RombergIntegrator.o `test -f 'math/calculus/RombergIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/RombergIntegrator.cpp; \ then mv -f "$(DEPDIR)/RombergIntegrator.Tpo" "$(DEPDIR)/RombergIntegrator.Po"; else rm -f "$(DEPDIR)/RombergIntegrator.Tpo"; exit 1; fi # source='math/calculus/RombergIntegrator.cpp' object='RombergIntegrator.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RombergIntegrator.o `test -f 'math/calculus/RombergIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/RombergIntegrator.cpp RombergIntegrator.obj: math/calculus/RombergIntegrator.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RombergIntegrator.obj -MD -MP -MF "$(DEPDIR)/RombergIntegrator.Tpo" -c -o RombergIntegrator.obj `if test -f 'math/calculus/RombergIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/RombergIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/RombergIntegrator.cpp'; fi`; \ then mv -f "$(DEPDIR)/RombergIntegrator.Tpo" "$(DEPDIR)/RombergIntegrator.Po"; else rm -f "$(DEPDIR)/RombergIntegrator.Tpo"; exit 1; fi # source='math/calculus/RombergIntegrator.cpp' object='RombergIntegrator.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RombergIntegrator.obj `if test -f 'math/calculus/RombergIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/RombergIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/RombergIntegrator.cpp'; fi` Box.o: math/functions/Box.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Box.o -MD -MP -MF "$(DEPDIR)/Box.Tpo" -c -o Box.o `test -f 'math/functions/Box.cpp' || echo '$(srcdir)/'`math/functions/Box.cpp; \ then mv -f "$(DEPDIR)/Box.Tpo" "$(DEPDIR)/Box.Po"; else rm -f "$(DEPDIR)/Box.Tpo"; exit 1; fi # source='math/functions/Box.cpp' object='Box.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Box.o `test -f 'math/functions/Box.cpp' || echo '$(srcdir)/'`math/functions/Box.cpp Box.obj: math/functions/Box.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Box.obj -MD -MP -MF "$(DEPDIR)/Box.Tpo" -c -o Box.obj `if test -f 'math/functions/Box.cpp'; then $(CYGPATH_W) 'math/functions/Box.cpp'; else $(CYGPATH_W) '$(srcdir)/math/functions/Box.cpp'; fi`; \ then mv -f "$(DEPDIR)/Box.Tpo" "$(DEPDIR)/Box.Po"; else rm -f "$(DEPDIR)/Box.Tpo"; exit 1; fi # source='math/functions/Box.cpp' object='Box.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Box.obj `if test -f 'math/functions/Box.cpp'; then $(CYGPATH_W) 'math/functions/Box.cpp'; else $(CYGPATH_W) '$(srcdir)/math/functions/Box.cpp'; fi` MersenneTwister.o: math/random/MersenneTwister.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MersenneTwister.o -MD -MP -MF "$(DEPDIR)/MersenneTwister.Tpo" -c -o MersenneTwister.o `test -f 'math/random/MersenneTwister.cpp' || echo '$(srcdir)/'`math/random/MersenneTwister.cpp; \ then mv -f "$(DEPDIR)/MersenneTwister.Tpo" "$(DEPDIR)/MersenneTwister.Po"; else rm -f "$(DEPDIR)/MersenneTwister.Tpo"; exit 1; fi # source='math/random/MersenneTwister.cpp' object='MersenneTwister.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MersenneTwister.o `test -f 'math/random/MersenneTwister.cpp' || echo '$(srcdir)/'`math/random/MersenneTwister.cpp MersenneTwister.obj: math/random/MersenneTwister.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MersenneTwister.obj -MD -MP -MF "$(DEPDIR)/MersenneTwister.Tpo" -c -o MersenneTwister.obj `if test -f 'math/random/MersenneTwister.cpp'; then $(CYGPATH_W) 'math/random/MersenneTwister.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/MersenneTwister.cpp'; fi`; \ then mv -f "$(DEPDIR)/MersenneTwister.Tpo" "$(DEPDIR)/MersenneTwister.Po"; else rm -f "$(DEPDIR)/MersenneTwister.Tpo"; exit 1; fi # source='math/random/MersenneTwister.cpp' object='MersenneTwister.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MersenneTwister.obj `if test -f 'math/random/MersenneTwister.cpp'; then $(CYGPATH_W) 'math/random/MersenneTwister.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/MersenneTwister.cpp'; fi` POSIXRandom.o: math/random/POSIXRandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT POSIXRandom.o -MD -MP -MF "$(DEPDIR)/POSIXRandom.Tpo" -c -o POSIXRandom.o `test -f 'math/random/POSIXRandom.cpp' || echo '$(srcdir)/'`math/random/POSIXRandom.cpp; \ then mv -f "$(DEPDIR)/POSIXRandom.Tpo" "$(DEPDIR)/POSIXRandom.Po"; else rm -f "$(DEPDIR)/POSIXRandom.Tpo"; exit 1; fi # source='math/random/POSIXRandom.cpp' object='POSIXRandom.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o POSIXRandom.o `test -f 'math/random/POSIXRandom.cpp' || echo '$(srcdir)/'`math/random/POSIXRandom.cpp POSIXRandom.obj: math/random/POSIXRandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT POSIXRandom.obj -MD -MP -MF "$(DEPDIR)/POSIXRandom.Tpo" -c -o POSIXRandom.obj `if test -f 'math/random/POSIXRandom.cpp'; then $(CYGPATH_W) 'math/random/POSIXRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/POSIXRandom.cpp'; fi`; \ then mv -f "$(DEPDIR)/POSIXRandom.Tpo" "$(DEPDIR)/POSIXRandom.Po"; else rm -f "$(DEPDIR)/POSIXRandom.Tpo"; exit 1; fi # source='math/random/POSIXRandom.cpp' object='POSIXRandom.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o POSIXRandom.obj `if test -f 'math/random/POSIXRandom.cpp'; then $(CYGPATH_W) 'math/random/POSIXRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/POSIXRandom.cpp'; fi` QRBG.o: math/random/QRBG.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRBG.o -MD -MP -MF "$(DEPDIR)/QRBG.Tpo" -c -o QRBG.o `test -f 'math/random/QRBG.cpp' || echo '$(srcdir)/'`math/random/QRBG.cpp; \ then mv -f "$(DEPDIR)/QRBG.Tpo" "$(DEPDIR)/QRBG.Po"; else rm -f "$(DEPDIR)/QRBG.Tpo"; exit 1; fi # source='math/random/QRBG.cpp' object='QRBG.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRBG.o `test -f 'math/random/QRBG.cpp' || echo '$(srcdir)/'`math/random/QRBG.cpp QRBG.obj: math/random/QRBG.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRBG.obj -MD -MP -MF "$(DEPDIR)/QRBG.Tpo" -c -o QRBG.obj `if test -f 'math/random/QRBG.cpp'; then $(CYGPATH_W) 'math/random/QRBG.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRBG.cpp'; fi`; \ then mv -f "$(DEPDIR)/QRBG.Tpo" "$(DEPDIR)/QRBG.Po"; else rm -f "$(DEPDIR)/QRBG.Tpo"; exit 1; fi # source='math/random/QRBG.cpp' object='QRBG.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRBG.obj `if test -f 'math/random/QRBG.cpp'; then $(CYGPATH_W) 'math/random/QRBG.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRBG.cpp'; fi` QRandom.o: math/random/QRandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRandom.o -MD -MP -MF "$(DEPDIR)/QRandom.Tpo" -c -o QRandom.o `test -f 'math/random/QRandom.cpp' || echo '$(srcdir)/'`math/random/QRandom.cpp; \ then mv -f "$(DEPDIR)/QRandom.Tpo" "$(DEPDIR)/QRandom.Po"; else rm -f "$(DEPDIR)/QRandom.Tpo"; exit 1; fi # source='math/random/QRandom.cpp' object='QRandom.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRandom.o `test -f 'math/random/QRandom.cpp' || echo '$(srcdir)/'`math/random/QRandom.cpp QRandom.obj: math/random/QRandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRandom.obj -MD -MP -MF "$(DEPDIR)/QRandom.Tpo" -c -o QRandom.obj `if test -f 'math/random/QRandom.cpp'; then $(CYGPATH_W) 'math/random/QRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRandom.cpp'; fi`; \ then mv -f "$(DEPDIR)/QRandom.Tpo" "$(DEPDIR)/QRandom.Po"; else rm -f "$(DEPDIR)/QRandom.Tpo"; exit 1; fi # source='math/random/QRandom.cpp' object='QRandom.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRandom.obj `if test -f 'math/random/QRandom.cpp'; then $(CYGPATH_W) 'math/random/QRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRandom.cpp'; fi` Random.o: math/random/Random.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Random.o -MD -MP -MF "$(DEPDIR)/Random.Tpo" -c -o Random.o `test -f 'math/random/Random.cpp' || echo '$(srcdir)/'`math/random/Random.cpp; \ then mv -f "$(DEPDIR)/Random.Tpo" "$(DEPDIR)/Random.Po"; else rm -f "$(DEPDIR)/Random.Tpo"; exit 1; fi # source='math/random/Random.cpp' object='Random.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Random.o `test -f 'math/random/Random.cpp' || echo '$(srcdir)/'`math/random/Random.cpp Random.obj: math/random/Random.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Random.obj -MD -MP -MF "$(DEPDIR)/Random.Tpo" -c -o Random.obj `if test -f 'math/random/Random.cpp'; then $(CYGPATH_W) 'math/random/Random.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/Random.cpp'; fi`; \ then mv -f "$(DEPDIR)/Random.Tpo" "$(DEPDIR)/Random.Po"; else rm -f "$(DEPDIR)/Random.Tpo"; exit 1; fi # source='math/random/Random.cpp' object='Random.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Random.obj `if test -f 'math/random/Random.cpp'; then $(CYGPATH_W) 'math/random/Random.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/Random.cpp'; fi` STDRandom.o: math/random/STDRandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT STDRandom.o -MD -MP -MF "$(DEPDIR)/STDRandom.Tpo" -c -o STDRandom.o `test -f 'math/random/STDRandom.cpp' || echo '$(srcdir)/'`math/random/STDRandom.cpp; \ then mv -f "$(DEPDIR)/STDRandom.Tpo" "$(DEPDIR)/STDRandom.Po"; else rm -f "$(DEPDIR)/STDRandom.Tpo"; exit 1; fi # source='math/random/STDRandom.cpp' object='STDRandom.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o STDRandom.o `test -f 'math/random/STDRandom.cpp' || echo '$(srcdir)/'`math/random/STDRandom.cpp STDRandom.obj: math/random/STDRandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT STDRandom.obj -MD -MP -MF "$(DEPDIR)/STDRandom.Tpo" -c -o STDRandom.obj `if test -f 'math/random/STDRandom.cpp'; then $(CYGPATH_W) 'math/random/STDRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/STDRandom.cpp'; fi`; \ then mv -f "$(DEPDIR)/STDRandom.Tpo" "$(DEPDIR)/STDRandom.Po"; else rm -f "$(DEPDIR)/STDRandom.Tpo"; exit 1; fi # source='math/random/STDRandom.cpp' object='STDRandom.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o STDRandom.obj `if test -f 'math/random/STDRandom.cpp'; then $(CYGPATH_W) 'math/random/STDRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/STDRandom.cpp'; fi` URandom.o: math/random/URandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT URandom.o -MD -MP -MF "$(DEPDIR)/URandom.Tpo" -c -o URandom.o `test -f 'math/random/URandom.cpp' || echo '$(srcdir)/'`math/random/URandom.cpp; \ then mv -f "$(DEPDIR)/URandom.Tpo" "$(DEPDIR)/URandom.Po"; else rm -f "$(DEPDIR)/URandom.Tpo"; exit 1; fi # source='math/random/URandom.cpp' object='URandom.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o URandom.o `test -f 'math/random/URandom.cpp' || echo '$(srcdir)/'`math/random/URandom.cpp URandom.obj: math/random/URandom.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT URandom.obj -MD -MP -MF "$(DEPDIR)/URandom.Tpo" -c -o URandom.obj `if test -f 'math/random/URandom.cpp'; then $(CYGPATH_W) 'math/random/URandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/URandom.cpp'; fi`; \ then mv -f "$(DEPDIR)/URandom.Tpo" "$(DEPDIR)/URandom.Po"; else rm -f "$(DEPDIR)/URandom.Tpo"; exit 1; fi # source='math/random/URandom.cpp' object='URandom.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o URandom.obj `if test -f 'math/random/URandom.cpp'; then $(CYGPATH_W) 'math/random/URandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/URandom.cpp'; fi` ModeFactory.o: modes/ModeFactory.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeFactory.o -MD -MP -MF "$(DEPDIR)/ModeFactory.Tpo" -c -o ModeFactory.o `test -f 'modes/ModeFactory.cpp' || echo '$(srcdir)/'`modes/ModeFactory.cpp; \ then mv -f "$(DEPDIR)/ModeFactory.Tpo" "$(DEPDIR)/ModeFactory.Po"; else rm -f "$(DEPDIR)/ModeFactory.Tpo"; exit 1; fi # source='modes/ModeFactory.cpp' object='ModeFactory.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeFactory.o `test -f 'modes/ModeFactory.cpp' || echo '$(srcdir)/'`modes/ModeFactory.cpp ModeFactory.obj: modes/ModeFactory.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeFactory.obj -MD -MP -MF "$(DEPDIR)/ModeFactory.Tpo" -c -o ModeFactory.obj `if test -f 'modes/ModeFactory.cpp'; then $(CYGPATH_W) 'modes/ModeFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeFactory.cpp'; fi`; \ then mv -f "$(DEPDIR)/ModeFactory.Tpo" "$(DEPDIR)/ModeFactory.Po"; else rm -f "$(DEPDIR)/ModeFactory.Tpo"; exit 1; fi # source='modes/ModeFactory.cpp' object='ModeFactory.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeFactory.obj `if test -f 'modes/ModeFactory.cpp'; then $(CYGPATH_W) 'modes/ModeFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeFactory.cpp'; fi` Electron.o: particles/Electron.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Electron.o -MD -MP -MF "$(DEPDIR)/Electron.Tpo" -c -o Electron.o `test -f 'particles/Electron.cpp' || echo '$(srcdir)/'`particles/Electron.cpp; \ then mv -f "$(DEPDIR)/Electron.Tpo" "$(DEPDIR)/Electron.Po"; else rm -f "$(DEPDIR)/Electron.Tpo"; exit 1; fi # source='particles/Electron.cpp' object='Electron.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Electron.o `test -f 'particles/Electron.cpp' || echo '$(srcdir)/'`particles/Electron.cpp Electron.obj: particles/Electron.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Electron.obj -MD -MP -MF "$(DEPDIR)/Electron.Tpo" -c -o Electron.obj `if test -f 'particles/Electron.cpp'; then $(CYGPATH_W) 'particles/Electron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Electron.cpp'; fi`; \ then mv -f "$(DEPDIR)/Electron.Tpo" "$(DEPDIR)/Electron.Po"; else rm -f "$(DEPDIR)/Electron.Tpo"; exit 1; fi # source='particles/Electron.cpp' object='Electron.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Electron.obj `if test -f 'particles/Electron.cpp'; then $(CYGPATH_W) 'particles/Electron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Electron.cpp'; fi` ElectronAntiNeutrino.o: particles/ElectronAntiNeutrino.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronAntiNeutrino.o -MD -MP -MF "$(DEPDIR)/ElectronAntiNeutrino.Tpo" -c -o ElectronAntiNeutrino.o `test -f 'particles/ElectronAntiNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronAntiNeutrino.cpp; \ then mv -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo" "$(DEPDIR)/ElectronAntiNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo"; exit 1; fi # source='particles/ElectronAntiNeutrino.cpp' object='ElectronAntiNeutrino.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronAntiNeutrino.o `test -f 'particles/ElectronAntiNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronAntiNeutrino.cpp ElectronAntiNeutrino.obj: particles/ElectronAntiNeutrino.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronAntiNeutrino.obj -MD -MP -MF "$(DEPDIR)/ElectronAntiNeutrino.Tpo" -c -o ElectronAntiNeutrino.obj `if test -f 'particles/ElectronAntiNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronAntiNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronAntiNeutrino.cpp'; fi`; \ then mv -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo" "$(DEPDIR)/ElectronAntiNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo"; exit 1; fi # source='particles/ElectronAntiNeutrino.cpp' object='ElectronAntiNeutrino.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronAntiNeutrino.obj `if test -f 'particles/ElectronAntiNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronAntiNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronAntiNeutrino.cpp'; fi` ElectronNeutrino.o: particles/ElectronNeutrino.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronNeutrino.o -MD -MP -MF "$(DEPDIR)/ElectronNeutrino.Tpo" -c -o ElectronNeutrino.o `test -f 'particles/ElectronNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronNeutrino.cpp; \ then mv -f "$(DEPDIR)/ElectronNeutrino.Tpo" "$(DEPDIR)/ElectronNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronNeutrino.Tpo"; exit 1; fi # source='particles/ElectronNeutrino.cpp' object='ElectronNeutrino.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronNeutrino.o `test -f 'particles/ElectronNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronNeutrino.cpp ElectronNeutrino.obj: particles/ElectronNeutrino.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronNeutrino.obj -MD -MP -MF "$(DEPDIR)/ElectronNeutrino.Tpo" -c -o ElectronNeutrino.obj `if test -f 'particles/ElectronNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronNeutrino.cpp'; fi`; \ then mv -f "$(DEPDIR)/ElectronNeutrino.Tpo" "$(DEPDIR)/ElectronNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronNeutrino.Tpo"; exit 1; fi # source='particles/ElectronNeutrino.cpp' object='ElectronNeutrino.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronNeutrino.obj `if test -f 'particles/ElectronNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronNeutrino.cpp'; fi` Lepton.o: particles/Lepton.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Lepton.o -MD -MP -MF "$(DEPDIR)/Lepton.Tpo" -c -o Lepton.o `test -f 'particles/Lepton.cpp' || echo '$(srcdir)/'`particles/Lepton.cpp; \ then mv -f "$(DEPDIR)/Lepton.Tpo" "$(DEPDIR)/Lepton.Po"; else rm -f "$(DEPDIR)/Lepton.Tpo"; exit 1; fi # source='particles/Lepton.cpp' object='Lepton.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Lepton.o `test -f 'particles/Lepton.cpp' || echo '$(srcdir)/'`particles/Lepton.cpp Lepton.obj: particles/Lepton.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Lepton.obj -MD -MP -MF "$(DEPDIR)/Lepton.Tpo" -c -o Lepton.obj `if test -f 'particles/Lepton.cpp'; then $(CYGPATH_W) 'particles/Lepton.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Lepton.cpp'; fi`; \ then mv -f "$(DEPDIR)/Lepton.Tpo" "$(DEPDIR)/Lepton.Po"; else rm -f "$(DEPDIR)/Lepton.Tpo"; exit 1; fi # source='particles/Lepton.cpp' object='Lepton.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Lepton.obj `if test -f 'particles/Lepton.cpp'; then $(CYGPATH_W) 'particles/Lepton.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Lepton.cpp'; fi` NuclearState.o: particles/NuclearState.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT NuclearState.o -MD -MP -MF "$(DEPDIR)/NuclearState.Tpo" -c -o NuclearState.o `test -f 'particles/NuclearState.cpp' || echo '$(srcdir)/'`particles/NuclearState.cpp; \ then mv -f "$(DEPDIR)/NuclearState.Tpo" "$(DEPDIR)/NuclearState.Po"; else rm -f "$(DEPDIR)/NuclearState.Tpo"; exit 1; fi # source='particles/NuclearState.cpp' object='NuclearState.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o NuclearState.o `test -f 'particles/NuclearState.cpp' || echo '$(srcdir)/'`particles/NuclearState.cpp NuclearState.obj: particles/NuclearState.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT NuclearState.obj -MD -MP -MF "$(DEPDIR)/NuclearState.Tpo" -c -o NuclearState.obj `if test -f 'particles/NuclearState.cpp'; then $(CYGPATH_W) 'particles/NuclearState.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/NuclearState.cpp'; fi`; \ then mv -f "$(DEPDIR)/NuclearState.Tpo" "$(DEPDIR)/NuclearState.Po"; else rm -f "$(DEPDIR)/NuclearState.Tpo"; exit 1; fi # source='particles/NuclearState.cpp' object='NuclearState.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o NuclearState.obj `if test -f 'particles/NuclearState.cpp'; then $(CYGPATH_W) 'particles/NuclearState.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/NuclearState.cpp'; fi` Nucleus.o: particles/Nucleus.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Nucleus.o -MD -MP -MF "$(DEPDIR)/Nucleus.Tpo" -c -o Nucleus.o `test -f 'particles/Nucleus.cpp' || echo '$(srcdir)/'`particles/Nucleus.cpp; \ then mv -f "$(DEPDIR)/Nucleus.Tpo" "$(DEPDIR)/Nucleus.Po"; else rm -f "$(DEPDIR)/Nucleus.Tpo"; exit 1; fi # source='particles/Nucleus.cpp' object='Nucleus.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Nucleus.o `test -f 'particles/Nucleus.cpp' || echo '$(srcdir)/'`particles/Nucleus.cpp Nucleus.obj: particles/Nucleus.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Nucleus.obj -MD -MP -MF "$(DEPDIR)/Nucleus.Tpo" -c -o Nucleus.obj `if test -f 'particles/Nucleus.cpp'; then $(CYGPATH_W) 'particles/Nucleus.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Nucleus.cpp'; fi`; \ then mv -f "$(DEPDIR)/Nucleus.Tpo" "$(DEPDIR)/Nucleus.Po"; else rm -f "$(DEPDIR)/Nucleus.Tpo"; exit 1; fi # source='particles/Nucleus.cpp' object='Nucleus.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Nucleus.obj `if test -f 'particles/Nucleus.cpp'; then $(CYGPATH_W) 'particles/Nucleus.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Nucleus.cpp'; fi` Particle.o: particles/Particle.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Particle.o -MD -MP -MF "$(DEPDIR)/Particle.Tpo" -c -o Particle.o `test -f 'particles/Particle.cpp' || echo '$(srcdir)/'`particles/Particle.cpp; \ then mv -f "$(DEPDIR)/Particle.Tpo" "$(DEPDIR)/Particle.Po"; else rm -f "$(DEPDIR)/Particle.Tpo"; exit 1; fi # source='particles/Particle.cpp' object='Particle.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Particle.o `test -f 'particles/Particle.cpp' || echo '$(srcdir)/'`particles/Particle.cpp Particle.obj: particles/Particle.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Particle.obj -MD -MP -MF "$(DEPDIR)/Particle.Tpo" -c -o Particle.obj `if test -f 'particles/Particle.cpp'; then $(CYGPATH_W) 'particles/Particle.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Particle.cpp'; fi`; \ then mv -f "$(DEPDIR)/Particle.Tpo" "$(DEPDIR)/Particle.Po"; else rm -f "$(DEPDIR)/Particle.Tpo"; exit 1; fi # source='particles/Particle.cpp' object='Particle.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Particle.obj `if test -f 'particles/Particle.cpp'; then $(CYGPATH_W) 'particles/Particle.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Particle.cpp'; fi` Positron.o: particles/Positron.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Positron.o -MD -MP -MF "$(DEPDIR)/Positron.Tpo" -c -o Positron.o `test -f 'particles/Positron.cpp' || echo '$(srcdir)/'`particles/Positron.cpp; \ then mv -f "$(DEPDIR)/Positron.Tpo" "$(DEPDIR)/Positron.Po"; else rm -f "$(DEPDIR)/Positron.Tpo"; exit 1; fi # source='particles/Positron.cpp' object='Positron.o' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Positron.o `test -f 'particles/Positron.cpp' || echo '$(srcdir)/'`particles/Positron.cpp Positron.obj: particles/Positron.cpp if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Positron.obj -MD -MP -MF "$(DEPDIR)/Positron.Tpo" -c -o Positron.obj `if test -f 'particles/Positron.cpp'; then $(CYGPATH_W) 'particles/Positron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Positron.cpp'; fi`; \ then mv -f "$(DEPDIR)/Positron.Tpo" "$(DEPDIR)/Positron.Po"; else rm -f "$(DEPDIR)/Positron.Tpo"; exit 1; fi # source='particles/Positron.cpp' object='Positron.obj' libtool=no \ # DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) \ # $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Positron.obj `if test -f 'particles/Positron.cpp'; then $(CYGPATH_W) 'particles/Positron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Positron.cpp'; fi` uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: Pebble-1.0.0/src/Makefile.am0000644000175000001460000000515510666007170015037 0ustar phuegaphuegabin_PROGRAMS = Pebble plotter ModeMaker merge-data Pebble_SOURCES = Event.cpp Event.hpp EventGenerator.cpp EventGenerator.hpp Exception.cpp Exception.hpp Interface.cpp Interface.hpp NuclearFactory.cpp NuclearFactory.hpp Pebble.cpp math/FourVector.cpp math/FourVector.hpp math/Utility.cpp math/Utility.hpp math/calculus/AngularDistribution.cpp math/calculus/AngularDistribution.hpp math/calculus/DoubleIntegrand.cpp math/calculus/DoubleIntegrand.hpp math/calculus/GaussIntegrator.cpp math/calculus/GaussIntegrator.hpp math/calculus/Integrand.cpp math/calculus/Integrand.hpp math/calculus/Integrator.cpp math/calculus/Integrator.hpp math/calculus/Negater.hpp math/calculus/Normaliser.hpp math/calculus/RombergIntegrator.cpp math/calculus/RombergIntegrator.hpp math/functions/Box.cpp math/functions/Box.hpp math/random/MersenneTwister.cpp math/random/MersenneTwister.hpp math/random/POSIXRandom.cpp math/random/POSIXRandom.hpp math/random/QRBG.cpp math/random/QRBG.hpp math/random/QRandom.cpp math/random/QRandom.hpp math/random/Random.cpp math/random/Random.hpp math/random/STDRandom.cpp math/random/STDRandom.hpp math/random/URandom.cpp math/random/URandom.hpp modes/Mode1.hpp modes/Mode2.hpp modes/Mode3.hpp modes/Mode4.hpp modes/Mode5.hpp modes/Mode6.hpp modes/Mode7.hpp modes/Mode8.hpp modes/Mode9.hpp modes/ModeFactory.cpp modes/ModeFactory.hpp modes/Modes.hpp particles/Electron.cpp particles/Electron.hpp particles/ElectronAntiNeutrino.cpp particles/ElectronAntiNeutrino.hpp particles/ElectronNeutrino.cpp particles/ElectronNeutrino.hpp particles/Lepton.cpp particles/Lepton.hpp particles/NuclearState.cpp particles/NuclearState.hpp particles/Nucleus.cpp particles/Nucleus.hpp particles/Particle.cpp particles/Particle.hpp particles/Particles.hpp particles/Positron.cpp particles/Positron.hpp plotter_SOURCES = Exception.cpp Exception.hpp plotter.cpp math/Utility.cpp math/Utility.hpp math/calculus/AngularDistribution.cpp math/calculus/AngularDistribution.hpp math/calculus/DoubleIntegrand.cpp math/calculus/DoubleIntegrand.hpp math/calculus/GaussIntegrator.cpp math/calculus/GaussIntegrator.hpp math/calculus/Integrand.cpp math/calculus/Integrand.hpp math/calculus/Integrator.cpp math/calculus/Integrator.hpp math/calculus/Negater.hpp math/calculus/Normaliser.hpp math/calculus/RombergIntegrator.cpp math/calculus/RombergIntegrator.hpp math/functions/Box.cpp math/functions/Box.hpp modes/Mode1.hpp modes/Mode2.hpp modes/Mode3.hpp modes/Mode4.hpp modes/Mode5.hpp modes/Mode6.hpp modes/Mode7.hpp modes/Mode8.hpp modes/Mode9.hpp modes/ModeFactory.cpp modes/ModeFactory.hpp modes/Modes.hpp ModeMaker_SOURCES = modes/ModeMaker.cpp merge_data_SOURCES = merge-data.cpp Pebble-1.0.0/src/Makefile.in0000644000175000001460000021240510666007170015046 0ustar phuegaphuega# Makefile.in generated by automake 1.9.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : bin_PROGRAMS = Pebble$(EXEEXT) plotter$(EXEEXT) ModeMaker$(EXEEXT) \ merge-data$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = am__installdirs = "$(DESTDIR)$(bindir)" binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) PROGRAMS = $(bin_PROGRAMS) am_ModeMaker_OBJECTS = ModeMaker.$(OBJEXT) ModeMaker_OBJECTS = $(am_ModeMaker_OBJECTS) ModeMaker_LDADD = $(LDADD) am_Pebble_OBJECTS = Event.$(OBJEXT) EventGenerator.$(OBJEXT) \ Exception.$(OBJEXT) Interface.$(OBJEXT) \ NuclearFactory.$(OBJEXT) Pebble.$(OBJEXT) FourVector.$(OBJEXT) \ Utility.$(OBJEXT) AngularDistribution.$(OBJEXT) \ DoubleIntegrand.$(OBJEXT) GaussIntegrator.$(OBJEXT) \ Integrand.$(OBJEXT) Integrator.$(OBJEXT) \ RombergIntegrator.$(OBJEXT) Box.$(OBJEXT) \ MersenneTwister.$(OBJEXT) POSIXRandom.$(OBJEXT) QRBG.$(OBJEXT) \ QRandom.$(OBJEXT) Random.$(OBJEXT) STDRandom.$(OBJEXT) \ URandom.$(OBJEXT) ModeFactory.$(OBJEXT) Electron.$(OBJEXT) \ ElectronAntiNeutrino.$(OBJEXT) ElectronNeutrino.$(OBJEXT) \ Lepton.$(OBJEXT) NuclearState.$(OBJEXT) Nucleus.$(OBJEXT) \ Particle.$(OBJEXT) Positron.$(OBJEXT) Pebble_OBJECTS = $(am_Pebble_OBJECTS) Pebble_LDADD = $(LDADD) am_merge_data_OBJECTS = merge-data.$(OBJEXT) merge_data_OBJECTS = $(am_merge_data_OBJECTS) merge_data_LDADD = $(LDADD) am_plotter_OBJECTS = Exception.$(OBJEXT) plotter.$(OBJEXT) \ Utility.$(OBJEXT) AngularDistribution.$(OBJEXT) \ DoubleIntegrand.$(OBJEXT) GaussIntegrator.$(OBJEXT) \ Integrand.$(OBJEXT) Integrator.$(OBJEXT) \ RombergIntegrator.$(OBJEXT) Box.$(OBJEXT) \ ModeFactory.$(OBJEXT) plotter_OBJECTS = $(am_plotter_OBJECTS) plotter_LDADD = $(LDADD) DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) CXXLD = $(CXX) CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ -o $@ COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ SOURCES = $(ModeMaker_SOURCES) $(Pebble_SOURCES) $(merge_data_SOURCES) \ $(plotter_SOURCES) DIST_SOURCES = $(ModeMaker_SOURCES) $(Pebble_SOURCES) \ $(merge_data_SOURCES) $(plotter_SOURCES) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GREP = @GREP@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ LDFLAGS = @LDFLAGS@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ VERSION = @VERSION@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build_alias = @build_alias@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host_alias = @host_alias@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ Pebble_SOURCES = Event.cpp Event.hpp EventGenerator.cpp \ EventGenerator.hpp Exception.cpp Exception.hpp Interface.cpp \ Interface.hpp NuclearFactory.cpp NuclearFactory.hpp Pebble.cpp \ math/FourVector.cpp math/FourVector.hpp math/Utility.cpp \ math/Utility.hpp math/calculus/AngularDistribution.cpp \ math/calculus/AngularDistribution.hpp \ math/calculus/DoubleIntegrand.cpp \ math/calculus/DoubleIntegrand.hpp \ math/calculus/GaussIntegrator.cpp \ math/calculus/GaussIntegrator.hpp math/calculus/Integrand.cpp \ math/calculus/Integrand.hpp math/calculus/Integrator.cpp \ math/calculus/Integrator.hpp math/calculus/Negater.hpp \ math/calculus/Normaliser.hpp \ math/calculus/RombergIntegrator.cpp \ math/calculus/RombergIntegrator.hpp math/functions/Box.cpp \ math/functions/Box.hpp math/random/MersenneTwister.cpp \ math/random/MersenneTwister.hpp math/random/POSIXRandom.cpp \ math/random/POSIXRandom.hpp math/random/QRBG.cpp \ math/random/QRBG.hpp math/random/QRandom.cpp \ math/random/QRandom.hpp math/random/Random.cpp \ math/random/Random.hpp math/random/STDRandom.cpp \ math/random/STDRandom.hpp math/random/URandom.cpp \ math/random/URandom.hpp modes/Mode1.hpp modes/Mode2.hpp \ modes/Mode3.hpp modes/Mode4.hpp modes/Mode5.hpp \ modes/Mode6.hpp modes/Mode7.hpp modes/Mode8.hpp \ modes/Mode9.hpp modes/ModeFactory.cpp modes/ModeFactory.hpp \ modes/Modes.hpp particles/Electron.cpp particles/Electron.hpp \ particles/ElectronAntiNeutrino.cpp \ particles/ElectronAntiNeutrino.hpp \ particles/ElectronNeutrino.cpp particles/ElectronNeutrino.hpp \ particles/Lepton.cpp particles/Lepton.hpp \ particles/NuclearState.cpp particles/NuclearState.hpp \ particles/Nucleus.cpp particles/Nucleus.hpp \ particles/Particle.cpp particles/Particle.hpp \ particles/Particles.hpp particles/Positron.cpp \ particles/Positron.hpp plotter_SOURCES = Exception.cpp Exception.hpp plotter.cpp math/Utility.cpp math/Utility.hpp math/calculus/AngularDistribution.cpp math/calculus/AngularDistribution.hpp math/calculus/DoubleIntegrand.cpp math/calculus/DoubleIntegrand.hpp math/calculus/GaussIntegrator.cpp math/calculus/GaussIntegrator.hpp math/calculus/Integrand.cpp math/calculus/Integrand.hpp math/calculus/Integrator.cpp math/calculus/Integrator.hpp math/calculus/Negater.hpp math/calculus/Normaliser.hpp math/calculus/RombergIntegrator.cpp math/calculus/RombergIntegrator.hpp math/functions/Box.cpp math/functions/Box.hpp modes/Mode1.hpp modes/Mode2.hpp modes/Mode3.hpp modes/Mode4.hpp modes/Mode5.hpp modes/Mode6.hpp modes/Mode7.hpp modes/Mode8.hpp modes/Mode9.hpp modes/ModeFactory.cpp modes/ModeFactory.hpp modes/Modes.hpp ModeMaker_SOURCES = modes/ModeMaker.cpp merge_data_SOURCES = merge-data.cpp all: all-am .SUFFIXES: .SUFFIXES: .cpp .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ModeMaker$(EXEEXT): $(ModeMaker_OBJECTS) $(ModeMaker_DEPENDENCIES) @rm -f ModeMaker$(EXEEXT) $(CXXLINK) $(ModeMaker_LDFLAGS) $(ModeMaker_OBJECTS) $(ModeMaker_LDADD) $(LIBS) Pebble$(EXEEXT): $(Pebble_OBJECTS) $(Pebble_DEPENDENCIES) @rm -f Pebble$(EXEEXT) $(CXXLINK) $(Pebble_LDFLAGS) $(Pebble_OBJECTS) $(Pebble_LDADD) $(LIBS) merge-data$(EXEEXT): $(merge_data_OBJECTS) $(merge_data_DEPENDENCIES) @rm -f merge-data$(EXEEXT) $(CXXLINK) $(merge_data_LDFLAGS) $(merge_data_OBJECTS) $(merge_data_LDADD) $(LIBS) plotter$(EXEEXT): $(plotter_OBJECTS) $(plotter_DEPENDENCIES) @rm -f plotter$(EXEEXT) $(CXXLINK) $(plotter_LDFLAGS) $(plotter_OBJECTS) $(plotter_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/AngularDistribution.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Box.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DoubleIntegrand.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Electron.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ElectronAntiNeutrino.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ElectronNeutrino.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Event.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/EventGenerator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Exception.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/FourVector.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/GaussIntegrator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Integrand.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Integrator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Interface.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Lepton.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/MersenneTwister.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ModeFactory.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ModeMaker.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NuclearFactory.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/NuclearState.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Nucleus.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/POSIXRandom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Particle.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Pebble.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Positron.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/QRBG.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/QRandom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Random.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/RombergIntegrator.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/STDRandom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/URandom.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Utility.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/merge-data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/plotter.Po@am__quote@ .cpp.o: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cpp.obj: @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` ModeMaker.o: modes/ModeMaker.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeMaker.o -MD -MP -MF "$(DEPDIR)/ModeMaker.Tpo" -c -o ModeMaker.o `test -f 'modes/ModeMaker.cpp' || echo '$(srcdir)/'`modes/ModeMaker.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ModeMaker.Tpo" "$(DEPDIR)/ModeMaker.Po"; else rm -f "$(DEPDIR)/ModeMaker.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='modes/ModeMaker.cpp' object='ModeMaker.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeMaker.o `test -f 'modes/ModeMaker.cpp' || echo '$(srcdir)/'`modes/ModeMaker.cpp ModeMaker.obj: modes/ModeMaker.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeMaker.obj -MD -MP -MF "$(DEPDIR)/ModeMaker.Tpo" -c -o ModeMaker.obj `if test -f 'modes/ModeMaker.cpp'; then $(CYGPATH_W) 'modes/ModeMaker.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeMaker.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ModeMaker.Tpo" "$(DEPDIR)/ModeMaker.Po"; else rm -f "$(DEPDIR)/ModeMaker.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='modes/ModeMaker.cpp' object='ModeMaker.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeMaker.obj `if test -f 'modes/ModeMaker.cpp'; then $(CYGPATH_W) 'modes/ModeMaker.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeMaker.cpp'; fi` FourVector.o: math/FourVector.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT FourVector.o -MD -MP -MF "$(DEPDIR)/FourVector.Tpo" -c -o FourVector.o `test -f 'math/FourVector.cpp' || echo '$(srcdir)/'`math/FourVector.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/FourVector.Tpo" "$(DEPDIR)/FourVector.Po"; else rm -f "$(DEPDIR)/FourVector.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/FourVector.cpp' object='FourVector.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o FourVector.o `test -f 'math/FourVector.cpp' || echo '$(srcdir)/'`math/FourVector.cpp FourVector.obj: math/FourVector.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT FourVector.obj -MD -MP -MF "$(DEPDIR)/FourVector.Tpo" -c -o FourVector.obj `if test -f 'math/FourVector.cpp'; then $(CYGPATH_W) 'math/FourVector.cpp'; else $(CYGPATH_W) '$(srcdir)/math/FourVector.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/FourVector.Tpo" "$(DEPDIR)/FourVector.Po"; else rm -f "$(DEPDIR)/FourVector.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/FourVector.cpp' object='FourVector.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o FourVector.obj `if test -f 'math/FourVector.cpp'; then $(CYGPATH_W) 'math/FourVector.cpp'; else $(CYGPATH_W) '$(srcdir)/math/FourVector.cpp'; fi` Utility.o: math/Utility.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Utility.o -MD -MP -MF "$(DEPDIR)/Utility.Tpo" -c -o Utility.o `test -f 'math/Utility.cpp' || echo '$(srcdir)/'`math/Utility.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Utility.Tpo" "$(DEPDIR)/Utility.Po"; else rm -f "$(DEPDIR)/Utility.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/Utility.cpp' object='Utility.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Utility.o `test -f 'math/Utility.cpp' || echo '$(srcdir)/'`math/Utility.cpp Utility.obj: math/Utility.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Utility.obj -MD -MP -MF "$(DEPDIR)/Utility.Tpo" -c -o Utility.obj `if test -f 'math/Utility.cpp'; then $(CYGPATH_W) 'math/Utility.cpp'; else $(CYGPATH_W) '$(srcdir)/math/Utility.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Utility.Tpo" "$(DEPDIR)/Utility.Po"; else rm -f "$(DEPDIR)/Utility.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/Utility.cpp' object='Utility.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Utility.obj `if test -f 'math/Utility.cpp'; then $(CYGPATH_W) 'math/Utility.cpp'; else $(CYGPATH_W) '$(srcdir)/math/Utility.cpp'; fi` AngularDistribution.o: math/calculus/AngularDistribution.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AngularDistribution.o -MD -MP -MF "$(DEPDIR)/AngularDistribution.Tpo" -c -o AngularDistribution.o `test -f 'math/calculus/AngularDistribution.cpp' || echo '$(srcdir)/'`math/calculus/AngularDistribution.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/AngularDistribution.Tpo" "$(DEPDIR)/AngularDistribution.Po"; else rm -f "$(DEPDIR)/AngularDistribution.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/AngularDistribution.cpp' object='AngularDistribution.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AngularDistribution.o `test -f 'math/calculus/AngularDistribution.cpp' || echo '$(srcdir)/'`math/calculus/AngularDistribution.cpp AngularDistribution.obj: math/calculus/AngularDistribution.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT AngularDistribution.obj -MD -MP -MF "$(DEPDIR)/AngularDistribution.Tpo" -c -o AngularDistribution.obj `if test -f 'math/calculus/AngularDistribution.cpp'; then $(CYGPATH_W) 'math/calculus/AngularDistribution.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/AngularDistribution.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/AngularDistribution.Tpo" "$(DEPDIR)/AngularDistribution.Po"; else rm -f "$(DEPDIR)/AngularDistribution.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/AngularDistribution.cpp' object='AngularDistribution.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o AngularDistribution.obj `if test -f 'math/calculus/AngularDistribution.cpp'; then $(CYGPATH_W) 'math/calculus/AngularDistribution.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/AngularDistribution.cpp'; fi` DoubleIntegrand.o: math/calculus/DoubleIntegrand.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT DoubleIntegrand.o -MD -MP -MF "$(DEPDIR)/DoubleIntegrand.Tpo" -c -o DoubleIntegrand.o `test -f 'math/calculus/DoubleIntegrand.cpp' || echo '$(srcdir)/'`math/calculus/DoubleIntegrand.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/DoubleIntegrand.Tpo" "$(DEPDIR)/DoubleIntegrand.Po"; else rm -f "$(DEPDIR)/DoubleIntegrand.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/DoubleIntegrand.cpp' object='DoubleIntegrand.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o DoubleIntegrand.o `test -f 'math/calculus/DoubleIntegrand.cpp' || echo '$(srcdir)/'`math/calculus/DoubleIntegrand.cpp DoubleIntegrand.obj: math/calculus/DoubleIntegrand.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT DoubleIntegrand.obj -MD -MP -MF "$(DEPDIR)/DoubleIntegrand.Tpo" -c -o DoubleIntegrand.obj `if test -f 'math/calculus/DoubleIntegrand.cpp'; then $(CYGPATH_W) 'math/calculus/DoubleIntegrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/DoubleIntegrand.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/DoubleIntegrand.Tpo" "$(DEPDIR)/DoubleIntegrand.Po"; else rm -f "$(DEPDIR)/DoubleIntegrand.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/DoubleIntegrand.cpp' object='DoubleIntegrand.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o DoubleIntegrand.obj `if test -f 'math/calculus/DoubleIntegrand.cpp'; then $(CYGPATH_W) 'math/calculus/DoubleIntegrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/DoubleIntegrand.cpp'; fi` GaussIntegrator.o: math/calculus/GaussIntegrator.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GaussIntegrator.o -MD -MP -MF "$(DEPDIR)/GaussIntegrator.Tpo" -c -o GaussIntegrator.o `test -f 'math/calculus/GaussIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/GaussIntegrator.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/GaussIntegrator.Tpo" "$(DEPDIR)/GaussIntegrator.Po"; else rm -f "$(DEPDIR)/GaussIntegrator.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/GaussIntegrator.cpp' object='GaussIntegrator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GaussIntegrator.o `test -f 'math/calculus/GaussIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/GaussIntegrator.cpp GaussIntegrator.obj: math/calculus/GaussIntegrator.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT GaussIntegrator.obj -MD -MP -MF "$(DEPDIR)/GaussIntegrator.Tpo" -c -o GaussIntegrator.obj `if test -f 'math/calculus/GaussIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/GaussIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/GaussIntegrator.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/GaussIntegrator.Tpo" "$(DEPDIR)/GaussIntegrator.Po"; else rm -f "$(DEPDIR)/GaussIntegrator.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/GaussIntegrator.cpp' object='GaussIntegrator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o GaussIntegrator.obj `if test -f 'math/calculus/GaussIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/GaussIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/GaussIntegrator.cpp'; fi` Integrand.o: math/calculus/Integrand.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrand.o -MD -MP -MF "$(DEPDIR)/Integrand.Tpo" -c -o Integrand.o `test -f 'math/calculus/Integrand.cpp' || echo '$(srcdir)/'`math/calculus/Integrand.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Integrand.Tpo" "$(DEPDIR)/Integrand.Po"; else rm -f "$(DEPDIR)/Integrand.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/Integrand.cpp' object='Integrand.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrand.o `test -f 'math/calculus/Integrand.cpp' || echo '$(srcdir)/'`math/calculus/Integrand.cpp Integrand.obj: math/calculus/Integrand.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrand.obj -MD -MP -MF "$(DEPDIR)/Integrand.Tpo" -c -o Integrand.obj `if test -f 'math/calculus/Integrand.cpp'; then $(CYGPATH_W) 'math/calculus/Integrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrand.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Integrand.Tpo" "$(DEPDIR)/Integrand.Po"; else rm -f "$(DEPDIR)/Integrand.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/Integrand.cpp' object='Integrand.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrand.obj `if test -f 'math/calculus/Integrand.cpp'; then $(CYGPATH_W) 'math/calculus/Integrand.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrand.cpp'; fi` Integrator.o: math/calculus/Integrator.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrator.o -MD -MP -MF "$(DEPDIR)/Integrator.Tpo" -c -o Integrator.o `test -f 'math/calculus/Integrator.cpp' || echo '$(srcdir)/'`math/calculus/Integrator.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Integrator.Tpo" "$(DEPDIR)/Integrator.Po"; else rm -f "$(DEPDIR)/Integrator.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/Integrator.cpp' object='Integrator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrator.o `test -f 'math/calculus/Integrator.cpp' || echo '$(srcdir)/'`math/calculus/Integrator.cpp Integrator.obj: math/calculus/Integrator.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Integrator.obj -MD -MP -MF "$(DEPDIR)/Integrator.Tpo" -c -o Integrator.obj `if test -f 'math/calculus/Integrator.cpp'; then $(CYGPATH_W) 'math/calculus/Integrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrator.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Integrator.Tpo" "$(DEPDIR)/Integrator.Po"; else rm -f "$(DEPDIR)/Integrator.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/Integrator.cpp' object='Integrator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Integrator.obj `if test -f 'math/calculus/Integrator.cpp'; then $(CYGPATH_W) 'math/calculus/Integrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/Integrator.cpp'; fi` RombergIntegrator.o: math/calculus/RombergIntegrator.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RombergIntegrator.o -MD -MP -MF "$(DEPDIR)/RombergIntegrator.Tpo" -c -o RombergIntegrator.o `test -f 'math/calculus/RombergIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/RombergIntegrator.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/RombergIntegrator.Tpo" "$(DEPDIR)/RombergIntegrator.Po"; else rm -f "$(DEPDIR)/RombergIntegrator.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/RombergIntegrator.cpp' object='RombergIntegrator.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RombergIntegrator.o `test -f 'math/calculus/RombergIntegrator.cpp' || echo '$(srcdir)/'`math/calculus/RombergIntegrator.cpp RombergIntegrator.obj: math/calculus/RombergIntegrator.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT RombergIntegrator.obj -MD -MP -MF "$(DEPDIR)/RombergIntegrator.Tpo" -c -o RombergIntegrator.obj `if test -f 'math/calculus/RombergIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/RombergIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/RombergIntegrator.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/RombergIntegrator.Tpo" "$(DEPDIR)/RombergIntegrator.Po"; else rm -f "$(DEPDIR)/RombergIntegrator.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/calculus/RombergIntegrator.cpp' object='RombergIntegrator.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o RombergIntegrator.obj `if test -f 'math/calculus/RombergIntegrator.cpp'; then $(CYGPATH_W) 'math/calculus/RombergIntegrator.cpp'; else $(CYGPATH_W) '$(srcdir)/math/calculus/RombergIntegrator.cpp'; fi` Box.o: math/functions/Box.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Box.o -MD -MP -MF "$(DEPDIR)/Box.Tpo" -c -o Box.o `test -f 'math/functions/Box.cpp' || echo '$(srcdir)/'`math/functions/Box.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Box.Tpo" "$(DEPDIR)/Box.Po"; else rm -f "$(DEPDIR)/Box.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/functions/Box.cpp' object='Box.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Box.o `test -f 'math/functions/Box.cpp' || echo '$(srcdir)/'`math/functions/Box.cpp Box.obj: math/functions/Box.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Box.obj -MD -MP -MF "$(DEPDIR)/Box.Tpo" -c -o Box.obj `if test -f 'math/functions/Box.cpp'; then $(CYGPATH_W) 'math/functions/Box.cpp'; else $(CYGPATH_W) '$(srcdir)/math/functions/Box.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Box.Tpo" "$(DEPDIR)/Box.Po"; else rm -f "$(DEPDIR)/Box.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/functions/Box.cpp' object='Box.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Box.obj `if test -f 'math/functions/Box.cpp'; then $(CYGPATH_W) 'math/functions/Box.cpp'; else $(CYGPATH_W) '$(srcdir)/math/functions/Box.cpp'; fi` MersenneTwister.o: math/random/MersenneTwister.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MersenneTwister.o -MD -MP -MF "$(DEPDIR)/MersenneTwister.Tpo" -c -o MersenneTwister.o `test -f 'math/random/MersenneTwister.cpp' || echo '$(srcdir)/'`math/random/MersenneTwister.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/MersenneTwister.Tpo" "$(DEPDIR)/MersenneTwister.Po"; else rm -f "$(DEPDIR)/MersenneTwister.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/MersenneTwister.cpp' object='MersenneTwister.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MersenneTwister.o `test -f 'math/random/MersenneTwister.cpp' || echo '$(srcdir)/'`math/random/MersenneTwister.cpp MersenneTwister.obj: math/random/MersenneTwister.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT MersenneTwister.obj -MD -MP -MF "$(DEPDIR)/MersenneTwister.Tpo" -c -o MersenneTwister.obj `if test -f 'math/random/MersenneTwister.cpp'; then $(CYGPATH_W) 'math/random/MersenneTwister.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/MersenneTwister.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/MersenneTwister.Tpo" "$(DEPDIR)/MersenneTwister.Po"; else rm -f "$(DEPDIR)/MersenneTwister.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/MersenneTwister.cpp' object='MersenneTwister.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o MersenneTwister.obj `if test -f 'math/random/MersenneTwister.cpp'; then $(CYGPATH_W) 'math/random/MersenneTwister.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/MersenneTwister.cpp'; fi` POSIXRandom.o: math/random/POSIXRandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT POSIXRandom.o -MD -MP -MF "$(DEPDIR)/POSIXRandom.Tpo" -c -o POSIXRandom.o `test -f 'math/random/POSIXRandom.cpp' || echo '$(srcdir)/'`math/random/POSIXRandom.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/POSIXRandom.Tpo" "$(DEPDIR)/POSIXRandom.Po"; else rm -f "$(DEPDIR)/POSIXRandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/POSIXRandom.cpp' object='POSIXRandom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o POSIXRandom.o `test -f 'math/random/POSIXRandom.cpp' || echo '$(srcdir)/'`math/random/POSIXRandom.cpp POSIXRandom.obj: math/random/POSIXRandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT POSIXRandom.obj -MD -MP -MF "$(DEPDIR)/POSIXRandom.Tpo" -c -o POSIXRandom.obj `if test -f 'math/random/POSIXRandom.cpp'; then $(CYGPATH_W) 'math/random/POSIXRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/POSIXRandom.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/POSIXRandom.Tpo" "$(DEPDIR)/POSIXRandom.Po"; else rm -f "$(DEPDIR)/POSIXRandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/POSIXRandom.cpp' object='POSIXRandom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o POSIXRandom.obj `if test -f 'math/random/POSIXRandom.cpp'; then $(CYGPATH_W) 'math/random/POSIXRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/POSIXRandom.cpp'; fi` QRBG.o: math/random/QRBG.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRBG.o -MD -MP -MF "$(DEPDIR)/QRBG.Tpo" -c -o QRBG.o `test -f 'math/random/QRBG.cpp' || echo '$(srcdir)/'`math/random/QRBG.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/QRBG.Tpo" "$(DEPDIR)/QRBG.Po"; else rm -f "$(DEPDIR)/QRBG.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/QRBG.cpp' object='QRBG.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRBG.o `test -f 'math/random/QRBG.cpp' || echo '$(srcdir)/'`math/random/QRBG.cpp QRBG.obj: math/random/QRBG.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRBG.obj -MD -MP -MF "$(DEPDIR)/QRBG.Tpo" -c -o QRBG.obj `if test -f 'math/random/QRBG.cpp'; then $(CYGPATH_W) 'math/random/QRBG.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRBG.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/QRBG.Tpo" "$(DEPDIR)/QRBG.Po"; else rm -f "$(DEPDIR)/QRBG.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/QRBG.cpp' object='QRBG.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRBG.obj `if test -f 'math/random/QRBG.cpp'; then $(CYGPATH_W) 'math/random/QRBG.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRBG.cpp'; fi` QRandom.o: math/random/QRandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRandom.o -MD -MP -MF "$(DEPDIR)/QRandom.Tpo" -c -o QRandom.o `test -f 'math/random/QRandom.cpp' || echo '$(srcdir)/'`math/random/QRandom.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/QRandom.Tpo" "$(DEPDIR)/QRandom.Po"; else rm -f "$(DEPDIR)/QRandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/QRandom.cpp' object='QRandom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRandom.o `test -f 'math/random/QRandom.cpp' || echo '$(srcdir)/'`math/random/QRandom.cpp QRandom.obj: math/random/QRandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT QRandom.obj -MD -MP -MF "$(DEPDIR)/QRandom.Tpo" -c -o QRandom.obj `if test -f 'math/random/QRandom.cpp'; then $(CYGPATH_W) 'math/random/QRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRandom.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/QRandom.Tpo" "$(DEPDIR)/QRandom.Po"; else rm -f "$(DEPDIR)/QRandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/QRandom.cpp' object='QRandom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o QRandom.obj `if test -f 'math/random/QRandom.cpp'; then $(CYGPATH_W) 'math/random/QRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/QRandom.cpp'; fi` Random.o: math/random/Random.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Random.o -MD -MP -MF "$(DEPDIR)/Random.Tpo" -c -o Random.o `test -f 'math/random/Random.cpp' || echo '$(srcdir)/'`math/random/Random.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Random.Tpo" "$(DEPDIR)/Random.Po"; else rm -f "$(DEPDIR)/Random.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/Random.cpp' object='Random.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Random.o `test -f 'math/random/Random.cpp' || echo '$(srcdir)/'`math/random/Random.cpp Random.obj: math/random/Random.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Random.obj -MD -MP -MF "$(DEPDIR)/Random.Tpo" -c -o Random.obj `if test -f 'math/random/Random.cpp'; then $(CYGPATH_W) 'math/random/Random.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/Random.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Random.Tpo" "$(DEPDIR)/Random.Po"; else rm -f "$(DEPDIR)/Random.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/Random.cpp' object='Random.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Random.obj `if test -f 'math/random/Random.cpp'; then $(CYGPATH_W) 'math/random/Random.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/Random.cpp'; fi` STDRandom.o: math/random/STDRandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT STDRandom.o -MD -MP -MF "$(DEPDIR)/STDRandom.Tpo" -c -o STDRandom.o `test -f 'math/random/STDRandom.cpp' || echo '$(srcdir)/'`math/random/STDRandom.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/STDRandom.Tpo" "$(DEPDIR)/STDRandom.Po"; else rm -f "$(DEPDIR)/STDRandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/STDRandom.cpp' object='STDRandom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o STDRandom.o `test -f 'math/random/STDRandom.cpp' || echo '$(srcdir)/'`math/random/STDRandom.cpp STDRandom.obj: math/random/STDRandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT STDRandom.obj -MD -MP -MF "$(DEPDIR)/STDRandom.Tpo" -c -o STDRandom.obj `if test -f 'math/random/STDRandom.cpp'; then $(CYGPATH_W) 'math/random/STDRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/STDRandom.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/STDRandom.Tpo" "$(DEPDIR)/STDRandom.Po"; else rm -f "$(DEPDIR)/STDRandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/STDRandom.cpp' object='STDRandom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o STDRandom.obj `if test -f 'math/random/STDRandom.cpp'; then $(CYGPATH_W) 'math/random/STDRandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/STDRandom.cpp'; fi` URandom.o: math/random/URandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT URandom.o -MD -MP -MF "$(DEPDIR)/URandom.Tpo" -c -o URandom.o `test -f 'math/random/URandom.cpp' || echo '$(srcdir)/'`math/random/URandom.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/URandom.Tpo" "$(DEPDIR)/URandom.Po"; else rm -f "$(DEPDIR)/URandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/URandom.cpp' object='URandom.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o URandom.o `test -f 'math/random/URandom.cpp' || echo '$(srcdir)/'`math/random/URandom.cpp URandom.obj: math/random/URandom.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT URandom.obj -MD -MP -MF "$(DEPDIR)/URandom.Tpo" -c -o URandom.obj `if test -f 'math/random/URandom.cpp'; then $(CYGPATH_W) 'math/random/URandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/URandom.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/URandom.Tpo" "$(DEPDIR)/URandom.Po"; else rm -f "$(DEPDIR)/URandom.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='math/random/URandom.cpp' object='URandom.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o URandom.obj `if test -f 'math/random/URandom.cpp'; then $(CYGPATH_W) 'math/random/URandom.cpp'; else $(CYGPATH_W) '$(srcdir)/math/random/URandom.cpp'; fi` ModeFactory.o: modes/ModeFactory.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeFactory.o -MD -MP -MF "$(DEPDIR)/ModeFactory.Tpo" -c -o ModeFactory.o `test -f 'modes/ModeFactory.cpp' || echo '$(srcdir)/'`modes/ModeFactory.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ModeFactory.Tpo" "$(DEPDIR)/ModeFactory.Po"; else rm -f "$(DEPDIR)/ModeFactory.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='modes/ModeFactory.cpp' object='ModeFactory.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeFactory.o `test -f 'modes/ModeFactory.cpp' || echo '$(srcdir)/'`modes/ModeFactory.cpp ModeFactory.obj: modes/ModeFactory.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ModeFactory.obj -MD -MP -MF "$(DEPDIR)/ModeFactory.Tpo" -c -o ModeFactory.obj `if test -f 'modes/ModeFactory.cpp'; then $(CYGPATH_W) 'modes/ModeFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeFactory.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ModeFactory.Tpo" "$(DEPDIR)/ModeFactory.Po"; else rm -f "$(DEPDIR)/ModeFactory.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='modes/ModeFactory.cpp' object='ModeFactory.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ModeFactory.obj `if test -f 'modes/ModeFactory.cpp'; then $(CYGPATH_W) 'modes/ModeFactory.cpp'; else $(CYGPATH_W) '$(srcdir)/modes/ModeFactory.cpp'; fi` Electron.o: particles/Electron.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Electron.o -MD -MP -MF "$(DEPDIR)/Electron.Tpo" -c -o Electron.o `test -f 'particles/Electron.cpp' || echo '$(srcdir)/'`particles/Electron.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Electron.Tpo" "$(DEPDIR)/Electron.Po"; else rm -f "$(DEPDIR)/Electron.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Electron.cpp' object='Electron.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Electron.o `test -f 'particles/Electron.cpp' || echo '$(srcdir)/'`particles/Electron.cpp Electron.obj: particles/Electron.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Electron.obj -MD -MP -MF "$(DEPDIR)/Electron.Tpo" -c -o Electron.obj `if test -f 'particles/Electron.cpp'; then $(CYGPATH_W) 'particles/Electron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Electron.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Electron.Tpo" "$(DEPDIR)/Electron.Po"; else rm -f "$(DEPDIR)/Electron.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Electron.cpp' object='Electron.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Electron.obj `if test -f 'particles/Electron.cpp'; then $(CYGPATH_W) 'particles/Electron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Electron.cpp'; fi` ElectronAntiNeutrino.o: particles/ElectronAntiNeutrino.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronAntiNeutrino.o -MD -MP -MF "$(DEPDIR)/ElectronAntiNeutrino.Tpo" -c -o ElectronAntiNeutrino.o `test -f 'particles/ElectronAntiNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronAntiNeutrino.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo" "$(DEPDIR)/ElectronAntiNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/ElectronAntiNeutrino.cpp' object='ElectronAntiNeutrino.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronAntiNeutrino.o `test -f 'particles/ElectronAntiNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronAntiNeutrino.cpp ElectronAntiNeutrino.obj: particles/ElectronAntiNeutrino.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronAntiNeutrino.obj -MD -MP -MF "$(DEPDIR)/ElectronAntiNeutrino.Tpo" -c -o ElectronAntiNeutrino.obj `if test -f 'particles/ElectronAntiNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronAntiNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronAntiNeutrino.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo" "$(DEPDIR)/ElectronAntiNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronAntiNeutrino.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/ElectronAntiNeutrino.cpp' object='ElectronAntiNeutrino.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronAntiNeutrino.obj `if test -f 'particles/ElectronAntiNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronAntiNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronAntiNeutrino.cpp'; fi` ElectronNeutrino.o: particles/ElectronNeutrino.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronNeutrino.o -MD -MP -MF "$(DEPDIR)/ElectronNeutrino.Tpo" -c -o ElectronNeutrino.o `test -f 'particles/ElectronNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronNeutrino.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ElectronNeutrino.Tpo" "$(DEPDIR)/ElectronNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronNeutrino.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/ElectronNeutrino.cpp' object='ElectronNeutrino.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronNeutrino.o `test -f 'particles/ElectronNeutrino.cpp' || echo '$(srcdir)/'`particles/ElectronNeutrino.cpp ElectronNeutrino.obj: particles/ElectronNeutrino.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT ElectronNeutrino.obj -MD -MP -MF "$(DEPDIR)/ElectronNeutrino.Tpo" -c -o ElectronNeutrino.obj `if test -f 'particles/ElectronNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronNeutrino.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/ElectronNeutrino.Tpo" "$(DEPDIR)/ElectronNeutrino.Po"; else rm -f "$(DEPDIR)/ElectronNeutrino.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/ElectronNeutrino.cpp' object='ElectronNeutrino.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o ElectronNeutrino.obj `if test -f 'particles/ElectronNeutrino.cpp'; then $(CYGPATH_W) 'particles/ElectronNeutrino.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/ElectronNeutrino.cpp'; fi` Lepton.o: particles/Lepton.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Lepton.o -MD -MP -MF "$(DEPDIR)/Lepton.Tpo" -c -o Lepton.o `test -f 'particles/Lepton.cpp' || echo '$(srcdir)/'`particles/Lepton.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Lepton.Tpo" "$(DEPDIR)/Lepton.Po"; else rm -f "$(DEPDIR)/Lepton.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Lepton.cpp' object='Lepton.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Lepton.o `test -f 'particles/Lepton.cpp' || echo '$(srcdir)/'`particles/Lepton.cpp Lepton.obj: particles/Lepton.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Lepton.obj -MD -MP -MF "$(DEPDIR)/Lepton.Tpo" -c -o Lepton.obj `if test -f 'particles/Lepton.cpp'; then $(CYGPATH_W) 'particles/Lepton.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Lepton.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Lepton.Tpo" "$(DEPDIR)/Lepton.Po"; else rm -f "$(DEPDIR)/Lepton.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Lepton.cpp' object='Lepton.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Lepton.obj `if test -f 'particles/Lepton.cpp'; then $(CYGPATH_W) 'particles/Lepton.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Lepton.cpp'; fi` NuclearState.o: particles/NuclearState.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT NuclearState.o -MD -MP -MF "$(DEPDIR)/NuclearState.Tpo" -c -o NuclearState.o `test -f 'particles/NuclearState.cpp' || echo '$(srcdir)/'`particles/NuclearState.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/NuclearState.Tpo" "$(DEPDIR)/NuclearState.Po"; else rm -f "$(DEPDIR)/NuclearState.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/NuclearState.cpp' object='NuclearState.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o NuclearState.o `test -f 'particles/NuclearState.cpp' || echo '$(srcdir)/'`particles/NuclearState.cpp NuclearState.obj: particles/NuclearState.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT NuclearState.obj -MD -MP -MF "$(DEPDIR)/NuclearState.Tpo" -c -o NuclearState.obj `if test -f 'particles/NuclearState.cpp'; then $(CYGPATH_W) 'particles/NuclearState.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/NuclearState.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/NuclearState.Tpo" "$(DEPDIR)/NuclearState.Po"; else rm -f "$(DEPDIR)/NuclearState.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/NuclearState.cpp' object='NuclearState.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o NuclearState.obj `if test -f 'particles/NuclearState.cpp'; then $(CYGPATH_W) 'particles/NuclearState.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/NuclearState.cpp'; fi` Nucleus.o: particles/Nucleus.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Nucleus.o -MD -MP -MF "$(DEPDIR)/Nucleus.Tpo" -c -o Nucleus.o `test -f 'particles/Nucleus.cpp' || echo '$(srcdir)/'`particles/Nucleus.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Nucleus.Tpo" "$(DEPDIR)/Nucleus.Po"; else rm -f "$(DEPDIR)/Nucleus.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Nucleus.cpp' object='Nucleus.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Nucleus.o `test -f 'particles/Nucleus.cpp' || echo '$(srcdir)/'`particles/Nucleus.cpp Nucleus.obj: particles/Nucleus.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Nucleus.obj -MD -MP -MF "$(DEPDIR)/Nucleus.Tpo" -c -o Nucleus.obj `if test -f 'particles/Nucleus.cpp'; then $(CYGPATH_W) 'particles/Nucleus.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Nucleus.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Nucleus.Tpo" "$(DEPDIR)/Nucleus.Po"; else rm -f "$(DEPDIR)/Nucleus.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Nucleus.cpp' object='Nucleus.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Nucleus.obj `if test -f 'particles/Nucleus.cpp'; then $(CYGPATH_W) 'particles/Nucleus.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Nucleus.cpp'; fi` Particle.o: particles/Particle.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Particle.o -MD -MP -MF "$(DEPDIR)/Particle.Tpo" -c -o Particle.o `test -f 'particles/Particle.cpp' || echo '$(srcdir)/'`particles/Particle.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Particle.Tpo" "$(DEPDIR)/Particle.Po"; else rm -f "$(DEPDIR)/Particle.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Particle.cpp' object='Particle.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Particle.o `test -f 'particles/Particle.cpp' || echo '$(srcdir)/'`particles/Particle.cpp Particle.obj: particles/Particle.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Particle.obj -MD -MP -MF "$(DEPDIR)/Particle.Tpo" -c -o Particle.obj `if test -f 'particles/Particle.cpp'; then $(CYGPATH_W) 'particles/Particle.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Particle.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Particle.Tpo" "$(DEPDIR)/Particle.Po"; else rm -f "$(DEPDIR)/Particle.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Particle.cpp' object='Particle.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Particle.obj `if test -f 'particles/Particle.cpp'; then $(CYGPATH_W) 'particles/Particle.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Particle.cpp'; fi` Positron.o: particles/Positron.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Positron.o -MD -MP -MF "$(DEPDIR)/Positron.Tpo" -c -o Positron.o `test -f 'particles/Positron.cpp' || echo '$(srcdir)/'`particles/Positron.cpp; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Positron.Tpo" "$(DEPDIR)/Positron.Po"; else rm -f "$(DEPDIR)/Positron.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Positron.cpp' object='Positron.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Positron.o `test -f 'particles/Positron.cpp' || echo '$(srcdir)/'`particles/Positron.cpp Positron.obj: particles/Positron.cpp @am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT Positron.obj -MD -MP -MF "$(DEPDIR)/Positron.Tpo" -c -o Positron.obj `if test -f 'particles/Positron.cpp'; then $(CYGPATH_W) 'particles/Positron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Positron.cpp'; fi`; \ @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/Positron.Tpo" "$(DEPDIR)/Positron.Po"; else rm -f "$(DEPDIR)/Positron.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='particles/Positron.cpp' object='Positron.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o Positron.obj `if test -f 'particles/Positron.cpp'; then $(CYGPATH_W) 'particles/Positron.cpp'; else $(CYGPATH_W) '$(srcdir)/particles/Positron.cpp'; fi` uninstall-info-am: ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ case $$file in \ $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ esac; \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ if test -d $$d/$$file; then \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(mkdir_p) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am info: info-am info-am: install-data-am: install-exec-am: install-binPROGRAMS install-info: install-info-am install-man: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-exec install-exec-am \ install-info install-info-am install-man install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: Pebble-1.0.0/src/NuclearFactory.cpp0000644000175000001460000000330110666007170016417 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include #include "particles/NuclearState.hpp" #include "particles/Nucleus.hpp" #include "particles/Particles.hpp" #include "NuclearFactory.hpp" #include "Exception.hpp" Pebble::NuclearFactory::NuclearFactory() { } Pebble::NuclearFactory::~NuclearFactory() { } Pebble::Particles::Nucleus Pebble::NuclearFactory::getNucleus(const std::string& isotope_name, const std::string& excited_state) throw (Pebble::Exception) { double spin; double mass; int A; int Z; std::string child; int j; // Form the full file name std::string isotope_file = "nuclei/" + isotope_name + ".n"; std::ifstream in( isotope_file.c_str() ); if ( ! in ) { throw Pebble::Exception( isotope_name + " data file does not exist." ); } in >> spin >> mass >> A >> Z >> child; bool found = false; std::string state; double energy; while ( in.good() ) { in >> state >> energy; if ( state == excited_state ) { found = true; break; } } if ( ! found ) { throw Pebble::Exception( "Cannot find state information for " + isotope_name + ":" + excited_state ); } std::string j_string = state.substr( 0, state.find_first_of( '+' ) ); std::istringstream iss( j_string ); iss >> j; Pebble::Particles::NuclearState nuclear_state( j, energy ); Pebble::Particles::Nucleus n( spin, mass, A, Z, isotope_name, nuclear_state, child ); return n; } Pebble-1.0.0/src/NuclearFactory.hpp0000644000175000001460000000214310666007170016427 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_NUCLEARFACTORY #define PEBBLE_NUCLEARFACTORY #include #include #include "particles/Particles.hpp" #include "Exception.hpp" namespace Pebble { /*! \brief Instantiates nuclei with the predefined properties. * * The NuclearFactory class is used to instantiate a Nucleus class. * The spin, mass, A, and Z properties are passed, however the * nuclear state is parsed from a data file. */ class NuclearFactory { public: /*! Constructs a NuclearFactory instance. */ NuclearFactory(); /*! Destructor. */ ~NuclearFactory(); /*! Constructs a Nucleus from a data file, pointed to by * isotope_name. */ Pebble::Particles::Nucleus getNucleus(const std::string& isotope_name, const std::string& excited_state) throw (Pebble::Exception); private: }; }; #endif Pebble-1.0.0/src/Pebble.cpp0000644000175000001460000000055110666007170014673 0ustar phuegaphuega#include #include #include "Exception.hpp" #include "Interface.hpp" int main(int argc, char** argv) { Pebble::Interface interface; try { std::string mode("Mode1"); interface.generateEventsFromQValue(mode, 3048, 1000, Pebble::OUTPUT_SPECTRA); } catch(Pebble::Exception& e) { std::cerr << e.what() << std::endl; exit(1); } } Pebble-1.0.0/src/gnuplotcmds0000644000175000001460000000202510666007170015256 0ustar phuegaphuegaset term postscript enhanced color set output "Mode1.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 1" plot "Mode1_t1.tsv","Mode1_t2.tsv" set output "Mode2.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 2" plot "Mode2_t1.tsv","Mode2_t2.tsv" set output "Mode3.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 3" plot "Mode3_t1.tsv","Mode3_t2.tsv" set output "Mode4.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 4" plot "Mode4_t1.tsv","Mode4_t2.tsv","Mode4_t.tsv" set output "Mode5.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 5" plot "Mode5_t1.tsv","Mode5_t2.tsv","Mode5_t.tsv" set output "Mode6.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 6" plot "Mode6_t1.tsv","Mode6_t2.tsv","Mode6_t.tsv" set output "Mode7.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 7" plot "Mode7_t1.tsv","Mode7_t2.tsv" set output "Mode8.ps" set xlabel "Energy / keV" set ylabel "Count" set title "Mode 8" plot "Mode8_t1.tsv","Mode8_t2.tsv" Pebble-1.0.0/src/math/0000755000175000001460000000000010666007222013724 5ustar phuegaphuegaPebble-1.0.0/src/math/random/0000755000175000001460000000000010666007236015211 5ustar phuegaphuegaPebble-1.0.0/src/math/random/MersenneTwister.cpp0000644000175000001460000000601510666007170021052 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith *** * Mersenne Twister code based on that provided at * http://www.math.sci.hiroshima-u.ac.jp/ * ~m-mat/MT/MT2002/emt19937ar.html * Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, * All rights reserved. * Copyright (C) 2005, Mutsuo Saito, * All rights reserved. * * Translated to C++ by Andrew J. Bennieston, 2007. * Copyright (C) 2007, Andrew J. Bennieston. **/ #include "MersenneTwister.hpp" Pebble::Math::Random::MersenneTwister::MersenneTwister() : mti(MersenneTwister::N + 1) { mag01[0] = 0x0UL; mag01[1] = MersenneTwister::matrix_a; } Pebble::Math::Random::MersenneTwister::~MersenneTwister() {} void Pebble::Math::Random::MersenneTwister::seed(unsigned long s) { mt[0] = s & 0xffffffffUL; for ( mti = 1 ; mti < N ; ++mti ) { mt[mti] = (1812433253UL * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); mt[mti] &= 0xffffffffUL; } } void Pebble::Math::Random::MersenneTwister::seed(unsigned long init_key[], int key_length) { int i = 1; int j = 0; int k = ( N > key_length ? N : key_length ); seed(19650218UL); for ( ; k ; --k ) { mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525UL)) + init_key[j] + j; mt[i] &= 0xffffffffUL; ++i; ++j; if ( i >= N ) { mt[0] = mt[N-1]; i=1; } if ( j >= key_length ) { j=0; } } for ( k = N - 1 ; k ; --k) { mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1566083941UL)) - i; mt[i] &= 0xffffffffUL; ++i; if ( i >= N ) { mt[0] = mt[N-1]; i=1; } } mt[0] = 0x80000000UL; } unsigned long Pebble::Math::Random::MersenneTwister::getLong() { unsigned long y; if ( mti >= N ) { int kk; if ( mti == N + 1 ) { // seed() has not been called // Set a default initial seed seed(5489UL); } for ( kk = 0 ; kk < N - M ; ++kk ) { y = (mt[kk] & upper_mask) | (mt[kk+1] & lower_mask); mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1UL]; } for ( ; kk < N - 1 ; ++kk ) { y = (mt[kk] & upper_mask) | (mt[kk+1] & lower_mask); mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1UL]; } y = (mt[N-1] & upper_mask) | (mt[0] & lower_mask); mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1UL]; mti = 0; } y = mt[mti++]; /* Tempering */ y ^= (y >> 11); y ^= (y << 7) & 0x9d2c5680UL; y ^= (y << 15) & 0xefc60000UL; y ^= (y >> 18); return y; } long Pebble::Math::Random::MersenneTwister::getLong(long min, long max) { return (long)(getDouble() * (double)(max-min-1)) + min; } double Pebble::Math::Random::MersenneTwister::getDouble() { return getLong()*(1.0/4294967296.0); } unsigned long Pebble::Math::Random::MersenneTwister::getMax() { return 4294967295UL; } Pebble-1.0.0/src/math/random/QRBG.h0000644000175000001460000003203310666007170016113 0ustar phuegaphuega/*** * * Declaration of the QRBG Service Access class. (For definition see: QRBG.cpp * file) * * Designed and written by Radomir Stevanovic, Jan/2007. * Developed in Rudjer Boskovic Institute, Zagreb, Croatia. * Contact: stevie@ieee.org. * * Last revision: 2007-07-19 * Version: 0.31 * * NOTE: QRBG code compiles on both Linux and Windows machines (tested with * gcc/g++ 3.2.2 and Microsoft Visual C++ 8.0) * ** * * Copyright (c) 2007 Radomir Stevanovic and Rudjer Boskovic Institute. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ #pragma once #pragma warning( disable : 4290 ) // disable VC++ stupid warning: "C++ exception specification ignored except to indicate a function is not __declspec(nothrow)" #include // size_t #include // class exception #include // typeid typedef unsigned char byte; // following defines are Visual C/C++ (Windows) and GCC/G++ (Linux) compatible, // on both 32-bit and 64-bit machines typedef char int8; typedef short int int16; typedef int int32; typedef long long int64; typedef unsigned char uint8; typedef unsigned short int uint16; typedef unsigned int uint32; typedef unsigned long long uint64; // definition of a platform flag // we support only Windows and Linux! #ifdef WIN32 # define PLATFORM_WIN #else # define PLATFORM_LINUX #endif #ifdef PLATFORM_LINUX # include #endif // default service network address and port #define QRBG_SERVICE_DEFAULT_HOSTNAME "random.irb.hr" #define QRBG_SERVICE_DEFAULT_PORT 1227 // when downloading small amounts of data (byte, etc.), downloaded // data shall be cached to minimize network overhead impact // one can specify cache size in bytes when constructing QRBG object, // or this default cache size shall be used #define DEFAULT_CACHE_SIZE 4096 #define MINIMAL_CACHE_SIZE 1 using namespace std; class QRBG { public: ////////////////////////////////////////////////////////////////////////// // // service communication codes // enum OperationCodes { GET_DATA_AUTH_PLAIN = 0x00, // request data, authenticate using plain method GET_DATA_AUTH_CERT = 0x01, // request data, authenticate using certificates GET_INFO_AUTH_PLAIN, GET_INFO_AUTH_CERT }; enum ServerResponseCodes { OK = 0, // everything is ok (user found, quota not exceeded), sending data SERVER_STOPPING, // server is stopping (or at least it's shutting down this connection!) SERVER_ERROR, // internal server error UNKNOWN_OP, // client requested unknown/unsupported operation ILL_FORMED_REQUEST, // client sent an ill-formed request packet TIMEOUT, // timeout while receiving the request from client AUTH_FAILED, // user could not be authenticated - see enum RefusalReasonCodes QUOTA_EXCEEDED // user quota is (or would be exceeded) - see enum RefusalReasonCodes }; static const char* ServerResponseDescription[]; static const char* ServerResponseRemedy[]; enum RefusalReasonCodes { NONE = 0x00, // // bytes per time period quotas // BYTE_QUOTA_EXCEEDED_FOR_SESSION = 0x10, // requested to much data in one session BYTE_QUOTA_WOULD_EXCEED_FOR_EON, // by serving this request, eon quota would be exceeded (request less data) BYTE_QUOTA_EXCEEDED_FOR_EON, // eon quota is already exceeded BYTE_QUOTA_WOULD_EXCEED_FOR_YEAR, // by serving this request, yearly quota would be exceeded (request less data) BYTE_QUOTA_EXCEEDED_FOR_YEAR, // yearly quota is already exceeded BYTE_QUOTA_WOULD_EXCEED_FOR_MONTH, // by serving this request, monthly quota would be exceeded (request less data) BYTE_QUOTA_EXCEEDED_FOR_MONTH, // monthly quota is already exceeded BYTE_QUOTA_WOULD_EXCEED_FOR_DAY, // by serving this request, daily quota would be exceeded (request less data) BYTE_QUOTA_EXCEEDED_FOR_DAY, // daily quota is already exceeded // // concurrent connections quota AND connection count per time period quotas // CONCURRENT_CONNECTIONS_QUOTA_EXCEEDED = 0x20, // maximum number of allowed parallel requests for authenticated user is already being served (wait and try again) CC_QUOTA_EXCEEDED_PER_MINUTE, // user connections-per-minute limit exceeded (wait and try again) CC_QUOTA_EXCEEDED_PER_HOUR, // user connections-per-hour limit exceeded (wait and try again) CC_QUOTA_EXCEEDED_PER_DAY, // user connections-per-day limit exceeded (wait and try again) CC_QUOTA_EXCEEDED_PER_MONTH, // user connections-per-month limit exceeded (wait and try again) CC_QUOTA_EXCEEDED_PER_YEAR, // user connections-per-year limit exceeded (wait and try again) CC_QUOTA_EXCEEDED_PER_EON // user connections-per-eon limit exceeded (that's all folks!) }; ////////////////////////////////////////////////////////////////////////// // // class interface // public: // // exceptions // class InvalidArgumentError : public exception {}; class NetworkSubsystemError : public exception {}; class ConnectError : public exception {}; class CommunicationError : public exception {}; class ServiceDenied : public exception { public: ServerResponseCodes ServerResponse; RefusalReasonCodes RefusalReason; public: ServiceDenied(ServerResponseCodes response, RefusalReasonCodes reason) : ServerResponse(response), RefusalReason(reason) {} virtual const char* what() const throw() { return ServerResponseDescription[ServerResponse]; } const char* cure() { return ServerResponseRemedy[ServerResponse]; } const char* why() { return what(); } }; // // constructor/destructor // QRBG(size_t cacheSize = DEFAULT_CACHE_SIZE) /* throw(NetworkSubsystemError, bad_alloc) */; ~QRBG(); // // initialization functions // bool defineCache(size_t cacheSize = DEFAULT_CACHE_SIZE); void defineServer(const char* qrbgServerAddress = QRBG_SERVICE_DEFAULT_HOSTNAME, unsigned int qrbgServerPort = QRBG_SERVICE_DEFAULT_PORT) throw(InvalidArgumentError); void defineUser(const char* qrbgUsername, const char* qrbgPassword) throw(InvalidArgumentError); // for future use: void defineUser(const char* qrbgCertificateStore) throw(InvalidArgumentError); // maximum accepted lengths for: hostname, username and password enum {HOSTNAME_MAXLEN = 255, USERNAME_MAXLEN = 100, PASSWORD_MAXLEN = 100}; // // data "getter" functions // // by type... byte getByte() throw(ConnectError, CommunicationError, ServiceDenied); int getInt() throw(ConnectError, CommunicationError, ServiceDenied); long getLongInt() throw(ConnectError, CommunicationError, ServiceDenied); float getFloat() throw(ConnectError, CommunicationError, ServiceDenied); double getDouble() throw(ConnectError, CommunicationError, ServiceDenied); size_t getBytes(byte* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getInts(int* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getLongInts(long* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getFloats(float* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getDoubles(double* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); // by bitlength int8 getInt8() throw(ConnectError, CommunicationError, ServiceDenied); int16 getInt16() throw(ConnectError, CommunicationError, ServiceDenied); int32 getInt32() throw(ConnectError, CommunicationError, ServiceDenied); int64 getInt64() throw(ConnectError, CommunicationError, ServiceDenied); size_t getInt8s(int8* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getInt16s(int16* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getInt32s(int32* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); size_t getInt64s(int64* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); // as a template template _Type get() throw(ConnectError, CommunicationError, ServiceDenied) { if (typeid(_Type) == typeid(byte)) return getByte(); else if (typeid(_Type) == typeid(int)) return getInt(); else if (typeid(_Type) == typeid(long)) return getLongInt(); else if (typeid(_Type) == typeid(float)) return getFloat(); else if (typeid(_Type) == typeid(double)) return getDouble(); else if (typeid(_Type) == typeid(int8)) return getInt8(); else if (typeid(_Type) == typeid(int16)) return getInt16(); else if (typeid(_Type) == typeid(int32)) return getInt32(); else if (typeid(_Type) == typeid(int64)) return getInt64(); else return 0; } template size_t get(_Type* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied) { if (typeid(_Type) == typeid(byte)) return getBytes((byte*)buffer, count); else if (typeid(_Type) == typeid(int)) return getInts((int*)buffer, count); else if (typeid(_Type) == typeid(long)) return getLongInts((long*)buffer, count); else if (typeid(_Type) == typeid(float)) return getFloats((float*)buffer, count); else if (typeid(_Type) == typeid(double)) return getDoubles((double*)buffer, count); else if (typeid(_Type) == typeid(int8)) return getInt8s((int8*)buffer, count); else if (typeid(_Type) == typeid(int16)) return getInt16s((int16*)buffer, count); else if (typeid(_Type) == typeid(int32)) return getInt32s((int32*)buffer, count); else if (typeid(_Type) == typeid(int64)) return getInt64s((int64*)buffer, count); else return 0; } // // info functions // // returns duration (in sec) of serving the last request for data double getLastDownloadDuration(); ////////////////////////////////////////////////////////////////////////// // private methods // private: // defines service address char szHostname[HOSTNAME_MAXLEN + 1]; unsigned int port; // defines user char szUsername[USERNAME_MAXLEN + 1]; char szPassword[PASSWORD_MAXLEN + 1]; // socket handle used with socket system calls int hSocket; // temporary buffer used only during service request prep. and req. sending // (declared class wide for speed optimization) byte* outBuffer; const size_t outBufferSize; // inBuffer is used to cache bytes for user's non-bulk data requests (getByte, getInt...) byte* inBuffer; size_t inBufferSize; size_t inBufferNextElemIdx; // temporary variables for timing measurements, platform independent # if defined(PLATFORM_WIN) unsigned long timeStart, timeEnd; # elif defined(PLATFORM_LINUX) struct timeval timeStart, timeEnd; # endif // connects to the service server (which is defined with defineServer(...) public method) void Connect() throw(ConnectError); // closes connection with the service server (if connection was established) void Close() throw(); // fills the 'buffer' with 'count' bytes either from local cache, or from QRBG remote service size_t AcquireBytes(byte* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); // copies 'count' bytes from local cache to 'buffer' size_t AcquireBytesFromCache(byte* buffer, size_t count) throw(); // sends the request to the Service for 'count' bytes and fills 'buffer' with returned data (random bytes) // it authenticates using credentials defined with defineUser(...) public method size_t AcquireBytesFromService(byte* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied); // tests if cache contains at least 'size' bytes bool IsCachedEnough(size_t size) throw(); // refills the inBuffer (local data cache) if it doesn't contain at least 'size' bytes of data void EnsureCachedEnough(size_t size) throw(ConnectError, CommunicationError, ServiceDenied); }; Pebble-1.0.0/src/math/random/Random.cpp0000644000175000001460000000064210666007170017134 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "Random.hpp" Pebble::Math::Random::Random::Random() {} Pebble::Math::Random::Random::~Random() {} Pebble-1.0.0/src/math/random/QRandom.cpp0000644000175000001460000000272310666007170017257 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include "../../Exception.hpp" #include "QRandom.hpp" #include "QRBG.h" Pebble::Math::Random::QRandom::QRandom(const std::string& username, const std::string& password) throw(Pebble::Exception) { try { schrodinger.defineServer("random.irb.hr", 1227); schrodinger.defineUser(username.c_str(), password.c_str()); } catch ( exception& e ) { throw Pebble::Exception(e.what()); } } Pebble::Math::Random::QRandom::~QRandom() {} void Pebble::Math::Random::QRandom::seed(unsigned long s) { // Ignore seeds } unsigned long Pebble::Math::Random::QRandom::getLong() throw ( Pebble::Exception ) { try { return (unsigned long) schrodinger.getLongInt(); } catch ( exception& e ) { throw Pebble::Exception(e.what()); } } long Pebble::Math::Random::QRandom::getLong(long min, long max) throw(Pebble::Exception) { return (long) ( getDouble() * (double)(max - min - 1)) + min; } double Pebble::Math::Random::QRandom::getDouble() throw (Pebble::Exception) { try { return schrodinger.getDouble(); } catch ( exception& e ) { throw Pebble::Exception(e.what()); } } unsigned long Pebble::Math::Random::QRandom::getMax() { return 4294967295UL; } Pebble-1.0.0/src/math/random/POSIXRandom.cpp0000644000175000001460000000244710666007170017764 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "POSIXRandom.hpp" Pebble::Math::Random::POSIXRandom::POSIXRandom() : n(1) {} Pebble::Math::Random::POSIXRandom::~POSIXRandom() {} long Pebble::Math::Random::POSIXRandom::next() { /* RAND_MAX assumed to be 32767 */ n = n * 1103515245 + 12345; return ((unsigned)(n)/65536) % (POSIXRandom::rand_max + 1); } void Pebble::Math::Random::POSIXRandom::seed(unsigned long s) { n = s; } unsigned long Pebble::Math::Random::POSIXRandom::getLong() { // Return a long in the range [0,RAND_MAX) return next(); } long Pebble::Math::Random::POSIXRandom::getLong(long min, long max) { // Return a long in the range [min,max) return (long) ( ((double)next() / ((double)POSIXRandom::rand_max + (double)1.0))*(double)(max-min-1)) + min; } double Pebble::Math::Random::POSIXRandom::getDouble() { // Return a double in the range [0,1) return (double)next() / ((double)POSIXRandom::rand_max + (double)1.0); } unsigned long Pebble::Math::Random::POSIXRandom::getMax() { return POSIXRandom::rand_max; } Pebble-1.0.0/src/math/random/URandom.cpp0000644000175000001460000000217410666007170017263 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "URandom.hpp" Pebble::Math::Random::URandom::URandom() throw (Pebble::Exception) { ist.open("/dev/urandom"); if ( ! ist ) throw Pebble::Exception("Could not open /dev/urandom."); } Pebble::Math::Random::URandom::~URandom() { ist.close(); } void Pebble::Math::Random::URandom::seed(unsigned long s) { // Ignore the seed; urandom does not need seeding } unsigned long Pebble::Math::Random::URandom::getLong() { unsigned long num; char* cp = (char*)(&num); ist.read(cp, sizeof(unsigned long)); return num; } long Pebble::Math::Random::URandom::getLong(long min, long max) { return (long) ( getDouble() * (double)(max - min - 1)) + min; } double Pebble::Math::Random::URandom::getDouble() { return getLong() * (1.0 / 4294967296.0); } unsigned long Pebble::Math::Random::URandom::getMax() { return 4294967295UL; } Pebble-1.0.0/src/math/random/QRBG.cpp0000644000175000001460000005145310666007170016455 0ustar phuegaphuega/*** * * Declaration of the QRBG Service Access class. (For definition see: QRBG.cpp * file) * * Designed and written by Radomir Stevanovic, Jan/2007. * Developed in Rudjer Boskovic Institute, Zagreb, Croatia. * Contact: stevie@ieee.org. * * Last revision: 2007-07-19 * Version: 0.31 * * NOTE: QRBG code compiles on both Linux and Windows machines (tested with * gcc/g++ 3.2.2 and Microsoft Visual C++ 8.0) * ** * * Copyright (c) 2007 Radomir Stevanovic and Rudjer Boskovic Institute. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. * */ #include "QRBG.h" #include #include // memcpy #ifdef PLATFORM_WIN // windows includes # define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers # include # include # include # include # define GetLastSocketError() WSAGetLastError() # pragma comment(lib, "ws2_32.lib") // link with winsock2 library #endif #ifdef PLATFORM_LINUX // linux includes # include # include # include # include # include # include extern int errno; # define GetLastSocketError() errno #endif #define ASSERT(assertion) // WinSock's recv() fails if called with too large buffer size, so // limit maximum amount of data that could be received in // one recv() call. //#define INTERNAL_SOCKET_MAX_BUFFER 65536 #define INTERNAL_SOCKET_MAX_BUFFER 1048576 const char* QRBG::ServerResponseDescription[] = { "OK", "Service was shutting down", "Server was/is experiencing internal errors", "Service said we have requested some unsupported operation", "Service said we sent an ill-formed request packet", "Service said we were sending our request too slow", "Authentication failed", "User quota exceeded" }; const char* QRBG::ServerResponseRemedy[] = { "None", "Try again later", "Try again later", "Upgrade your client software", "Upgrade your client software", "Check your network connection", "Check your login credentials", "Try again later, or contact Service admin to increase your quota(s)" }; // Initializes class data members, initializes network subsystem. // Throws exceptions upon failure (memory / winsock). QRBG::QRBG(size_t cacheSize /*= DEFAULT_CACHE_SIZE*/) /* throw(NetworkSubsystemError, bad_alloc) */ : port(0), hSocket(-1) , outBuffer(NULL) , inBuffer(NULL) , outBufferSize(4096) /* WARNING: 'outBuffer' MUST be large enough to store whole request header before sending! */ , inBufferSize(cacheSize) , inBufferNextElemIdx(inBufferSize) { *szHostname = *szUsername = *szPassword = 0; // initialize socket subsystem #ifdef PLATFORM_WIN // initialize winsock WORD wVersionRequested; WSADATA wsaData; wVersionRequested = MAKEWORD(2, 2); int err = WSAStartup(wVersionRequested, &wsaData); if (err != 0) { // we could not find a usable WinSock DLL (Winsock v2.2 was requested/required) throw NetworkSubsystemError(); } // Confirm that the WinSock DLL supports 2.2. // Note: if the DLL supports versions greater than 2.2 in addition to 2.2, // it will still return 2.2 in wVersion since that is the version we requested. if (LOBYTE(wsaData.wVersion) != 2 || HIBYTE(wsaData.wVersion) != 2) { // we could not find a usable WinSock DLL WSACleanup( ); throw NetworkSubsystemError(); } #elif defined(PLATFORM_LINUX) // there's no need for linux sockets to init #endif // if memory allocation fails, propagate exception to the caller outBuffer = new byte[outBufferSize]; inBuffer = new byte[inBufferSize]; } QRBG::~QRBG() { delete[] outBuffer; delete[] inBuffer; } // Re-initializes the cache buffer. // New cache size (in bytes) must be AT LEAST 8 bytes (to accommodate the largest type - double), // however this function shall not allow new cache size to be less then MINIMAL_CACHE_SIZE bytes. // Returns: success? bool QRBG::defineCache(size_t cacheSize /* = DEFAULT_CACHE_SIZE */) { if (cacheSize < MINIMAL_CACHE_SIZE) return false; // try to alloc new cache buffer.. byte* newBuffer; try { newBuffer = new byte[cacheSize]; } catch (...) { return false; } // ok, now delete old one and start using newly allocated one! delete[] inBuffer; inBuffer = newBuffer; inBufferSize = cacheSize; inBufferNextElemIdx = inBufferSize; return true; } ////////////////////////////////////////////////////////////////////////// // // private (worker) methods // // Connects to service server and on success, stores connected socket handle // in private class member. // Upon failure, exception is thrown. void QRBG::Connect() throw(ConnectError) { if (hSocket != -1) { // we're already connected return; } if (!*szHostname || !port) { // server address is not defined throw ConnectError(); } int hsock = static_cast( socket(AF_INET, SOCK_STREAM, 0) ); if (hsock == -1) { // failed to create socket throw ConnectError(); } // try to resolve 'hostname', if we fail, assume 'hostname' as an IP address struct sockaddr_in addr; struct hostent *hent = gethostbyname(szHostname); if (hent == NULL) addr.sin_addr.s_addr = inet_addr(szHostname); else memcpy(&addr.sin_addr, hent->h_addr, hent->h_length); addr.sin_family = AF_INET; addr.sin_port = htons(port); if (connect(hsock, (struct sockaddr *)&addr, sizeof(addr))) { // failed to connect throw ConnectError(); } hSocket = hsock; } // Closes connection with service server (if connection was ever established) void QRBG::Close() throw() { // disallow further sends and receives.. shutdown(hSocket, 2); // delete socket descriptor #if WIN32 closesocket(hSocket); #else close(hSocket); #endif // for future checks if socket is closed hSocket = -1; } // Fills the 'buffer' with maximum of 'count' bytes. Actual number of bytes copied into the buffer // is returned. // If local cache buffer doesn't contain enough bytes, then a request to the service for 'count' bytes is sent, // (blocking while receiving response), and the 'buffer' is filled with the returned data (random bytes). // Otherwise, the 'buffer' is filled with locally cached data. // If user requested less then cache size, the cache is refilled and data is returned from the cache. // Upon failure, exceptions are thrown. // Returns: count of bytes (received) copied into the supplied buffer. size_t QRBG::AcquireBytes(byte* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied) { // timer start # if defined(PLATFORM_WIN) timeStart = GetTickCount(); # elif defined(PLATFORM_LINUX) gettimeofday(&timeStart, NULL); # endif // actual data acquisition size_t nCopied = 0; if (count <= inBufferSize) { EnsureCachedEnough(count); nCopied = AcquireBytesFromCache(buffer, count); } else { nCopied = AcquireBytesFromService(buffer, count); } // timer end # if defined(PLATFORM_WIN) timeEnd = GetTickCount(); # elif defined(PLATFORM_LINUX) gettimeofday(&timeEnd, NULL); # endif return nCopied; } // Fills the 'buffer' with exactly 'count' bytes, explicitly from the local cache. // Number of bytes copied into the buffer is returned ('count' on success, '0' on failure). size_t QRBG::AcquireBytesFromCache(byte* buffer, size_t count) throw() { // fill the buffer from cache (if anyway possible).. if (IsCachedEnough(count)) { memcpy(buffer, inBuffer + inBufferNextElemIdx, count); inBufferNextElemIdx += count; return count; } // ..or fail return 0; } // Fills the 'buffer' with maximum of 'count' bytes, explicitly from the remote QRBG Service. // Actual number of bytes copied into the buffer is returned. // Upon failure, exceptions are thrown. // Returns: count of bytes (received) copied into the supplied buffer. size_t QRBG::AcquireBytesFromService(byte* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied) { // connect to the service server, // propagate exception to the caller Connect(); // // prepare and send the request // // NOTE: we're using plain authentication. /* Client first (and last) packet: Size [B] Content -------------- -------------------------------------------------------- 1 operation, from OperationCodes enum if operation == GET_DATA_AUTH_PLAIN, then: 2 content size (= 1 + username_len + 1 + password_len + 4) 1 username_len (must be > 0 and <= 100) username_len username (NOT zero padded!) 1 password_len (must be > 0 and <= 100) password_len password in plain 8-bit ascii text (NOT zero padded!) 4 bytes of data requested Server first (and last) packet: Size [B] Content -------------- -------------------------------------------------------- 1 response, from ServerResponseCodes enum 1 response details - reason, from RefusalReasonCodes 4 data_len, bytes of data that follow data_len data */ // header structure looks like this: // struct tClientHeader { // uint8 eOperation; // MUST BE eOperation == GET_DATA_AUTH_PLAIN for struct remainder to hold // uint16 cbContentSize; // uint8 cbUsername; // char szUsername[cbUsername]; // uint8 cbPassword; // char szPassword[cbPassword]; // uint32 cbRequested; // }; // however, two issues obstruct direct structure usage: // 1) we don't know username/password length apriori // 2) we must convert all numeric values to network order (big endian) // so, we'll fill output buffer byte-by-byte... uint8 eOperation = GET_DATA_AUTH_PLAIN; uint8 cbUsername = static_cast( strlen(szUsername) ); uint8 cbPassword = static_cast( strlen(szPassword) ); uint32 cbRequested = static_cast( count ); uint16 cbContentSize = sizeof(cbUsername) + cbUsername + sizeof(cbPassword) + cbPassword + sizeof(cbRequested); uint32 bytesToSend = sizeof(eOperation) + sizeof(cbContentSize) + cbContentSize; ASSERT(outBufferSize >= bytesToSend); byte* pRequestBuffer = outBuffer; *(uint8*)pRequestBuffer = eOperation, pRequestBuffer += sizeof(eOperation); *(uint16*)pRequestBuffer = htons(cbContentSize), pRequestBuffer += sizeof(cbContentSize); *(uint8*)pRequestBuffer = cbUsername, pRequestBuffer += sizeof(cbUsername); memcpy(pRequestBuffer, szUsername, cbUsername), pRequestBuffer += cbUsername; *(uint8*)pRequestBuffer = cbPassword, pRequestBuffer += sizeof(cbPassword); memcpy(pRequestBuffer, szPassword, cbPassword), pRequestBuffer += cbPassword; *(uint32*)pRequestBuffer = htonl(cbRequested), pRequestBuffer += sizeof(cbRequested); int ret = send(hSocket, (const char*)outBuffer, bytesToSend, 0); if (ret == -1) { // failed to send data request to the server Close(); throw CommunicationError(); } if (ret != bytesToSend) { // failed to send complete data request to the server Close(); throw CommunicationError(); } // // receive header (assuming GET_DATA_AUTH_PLAIN, as we requested) // // server response header structure looks like this: // struct tServerHeader { // uint8 response; // actually from enum ServerResponseCodes // uint8 reason; // actually from enum RefusalReasonCodes // uint32 cbDataLen; // should be equal to cbRequested, but we should not count on it! // }; // however, to avoid packing and memory aligning portability issues, // we'll read input buffer byte-by-byte... ServerResponseCodes eResponse; RefusalReasonCodes eReason; uint32 cbDataLen = 0; const uint32 bytesHeader = sizeof(uint8) + sizeof(uint8) + sizeof(uint32); byte header[bytesHeader]; uint32 bytesReceived = 0; uint32 bytesToReceiveTotal = bytesHeader; uint32 bytesToReceiveNow = 0; // receive header while ( (bytesToReceiveNow = bytesToReceiveTotal - bytesReceived) > 0 ) { int ret = recv(hSocket, (char*)(header + bytesReceived), bytesToReceiveNow, 0); if (ret != -1) { if (ret > 0) { // data received bytesReceived += ret; // parse the server response if (bytesReceived >= 2*sizeof(uint8)) { eResponse = (ServerResponseCodes) header[0]; eReason = (RefusalReasonCodes) header[1]; // process server response... if (eResponse != OK) { Close(); throw ServiceDenied(eResponse, eReason); } if (bytesReceived >= bytesToReceiveTotal) { cbDataLen = ntohl( *((u_long*)(header + 2*sizeof(uint8))) ); } } } else { // recv() returns 0 if connection was closed by server Close(); throw CommunicationError(); } } else { int nErr = GetLastSocketError(); if (nErr == EAGAIN) { // wait a little bit, and try again } else { // some socket(network) error occurred; // it doesn't matter what it is, declare failure! Close(); throw CommunicationError(); } } } // // receive data // bytesReceived = 0; bytesToReceiveTotal = cbDataLen; while ( (bytesToReceiveNow = bytesToReceiveTotal - bytesReceived) > 0 ) { // limit to maximal socket buffer size used bytesToReceiveNow = bytesToReceiveNow < INTERNAL_SOCKET_MAX_BUFFER ? bytesToReceiveNow : INTERNAL_SOCKET_MAX_BUFFER; int ret = recv(hSocket, (char*)(buffer + bytesReceived), bytesToReceiveNow, 0); if (ret != -1) { if (ret > 0) { // data received bytesReceived += ret; } else { // recv() returns 0 if connection was closed by server Close(); throw CommunicationError(); } } else { int nErr = GetLastSocketError(); if (nErr == EAGAIN) { // wait a little bit, and try again } else { // some socket(network) error occurred; // it doesn't matter what it is, declare failure! Close(); throw CommunicationError(); } } } Close(); // we succeeded. return bytesReceived; } // Tests if cache buffer contains at least 'size' bytes. // Returns: 'true' if it does, and 'false' otherwise. bool QRBG::IsCachedEnough(size_t size) throw() { return inBufferNextElemIdx + size <= inBufferSize; } // Ensures that input buffer (local data cache) contains at least 'size' elements. // In other words, it refills the 'inBuffer' (local data cache) if it doesn't contain at // least 'size' bytes of data. // // Throws an exception, as indication of failure, in two cases: // 1) we failed to acquire bytes from service // 2) we failed to acquire EXACTLY enough bytes to fill WHOLE input buffer // void QRBG::EnsureCachedEnough(size_t size) throw(ConnectError, CommunicationError, ServiceDenied) { // timer reset timeEnd = timeStart; if (IsCachedEnough(size)) return; try { if (AcquireBytesFromService(inBuffer, inBufferSize) != inBufferSize) throw CommunicationError(); inBufferNextElemIdx = 0; } catch (...) { inBufferNextElemIdx = inBufferSize; // since inBuffer may now be corrupted throw; } } ////////////////////////////////////////////////////////////////////////// // // info methods // #ifdef PLATFORM_WIN // windows version // returns the duration (in sec) of the last AcquireBytes(..) double QRBG::getLastDownloadDuration() { return (timeEnd - timeStart) / 1000.0; } #elif defined(PLATFORM_LINUX) // linux version double QRBG::getLastDownloadDuration() { return (timeEnd.tv_sec - timeStart.tv_sec) + 1e-6 * (timeEnd.tv_usec - timeStart.tv_usec); } #endif ////////////////////////////////////////////////////////////////////////// // // public (interface) methods // void QRBG::defineServer(const char* qrbgAddress, unsigned int qrbgPort) throw(InvalidArgumentError) { // check parameters int len; for (len = 0; len <= HOSTNAME_MAXLEN && qrbgAddress[len]; len++); if (len > HOSTNAME_MAXLEN) throw InvalidArgumentError(); if (qrbgPort > 0xFFFF) throw InvalidArgumentError(); // save server settings strncpy(szHostname, qrbgAddress, HOSTNAME_MAXLEN); port = qrbgPort; } void QRBG::defineUser(const char* qrbgUsername, const char* qrbgPassword) throw(InvalidArgumentError) { // check parameters int len; for (len = 0; len <= USERNAME_MAXLEN && qrbgUsername[len]; len++); if (len > USERNAME_MAXLEN) throw InvalidArgumentError(); for (len = 0; len <= PASSWORD_MAXLEN && qrbgPassword[len]; len++); if (len > PASSWORD_MAXLEN) throw InvalidArgumentError(); // save user authentication records strncpy(szUsername, qrbgUsername, USERNAME_MAXLEN); strncpy(szPassword, qrbgPassword, PASSWORD_MAXLEN); } // for future use: void QRBG::defineUser(const char* qrbgCertificateStore) throw(InvalidArgumentError) { throw InvalidArgumentError(); } // // integer getter methods // /* // old, faster, non-timed, method #define IMPLEMENT_QRBG_GETTER(NAME, TYPE) \ TYPE QRBG::NAME() throw(ConnectError, CommunicationError, ServiceDenied) { \ EnsureCachedEnough(sizeof(TYPE)); \ TYPE result = *((TYPE*)(inBuffer + inBufferNextElemIdx)); \ inBufferNextElemIdx += sizeof(TYPE); \ return result; \ } */ #define IMPLEMENT_QRBG_GETTER(NAME, TYPE) \ TYPE QRBG::NAME() throw(ConnectError, CommunicationError, ServiceDenied) { \ TYPE result = 0xCC; \ AcquireBytes((byte*)&result, sizeof(TYPE)); \ return result; \ } // fills 'buffer' array of 'TYPE' elements with 'count' elements // and returns number of elements filled #define IMPLEMENT_QRBG_ARRAY_GETTER(NAME, TYPE) \ size_t QRBG::NAME(TYPE* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied) { \ return AcquireBytes((byte*)buffer, sizeof(TYPE)*count) / sizeof(TYPE); \ } IMPLEMENT_QRBG_GETTER(getByte, byte) IMPLEMENT_QRBG_GETTER(getInt, int) IMPLEMENT_QRBG_GETTER(getLongInt, long) IMPLEMENT_QRBG_ARRAY_GETTER(getBytes, byte) IMPLEMENT_QRBG_ARRAY_GETTER(getInts, int) IMPLEMENT_QRBG_ARRAY_GETTER(getLongInts, long) IMPLEMENT_QRBG_GETTER(getInt8, int8) IMPLEMENT_QRBG_GETTER(getInt16, int16) IMPLEMENT_QRBG_GETTER(getInt32, int32) IMPLEMENT_QRBG_GETTER(getInt64, int64) IMPLEMENT_QRBG_ARRAY_GETTER(getInt8s, int8) IMPLEMENT_QRBG_ARRAY_GETTER(getInt16s, int16) IMPLEMENT_QRBG_ARRAY_GETTER(getInt32s, int32) IMPLEMENT_QRBG_ARRAY_GETTER(getInt64s, int64) // // floating point getter methods // (these also work on all types of byte ordered machines) // // returns: normalized float in range [0, 1> float QRBG::getFloat() throw(ConnectError, CommunicationError, ServiceDenied) { uint32 data = 0x3F800000uL | (getInt32() & 0x00FFFFFFuL); return *((float*)&data) - 1.0f; } // returns: normalized double in range [0, 1> double QRBG::getDouble() throw(ConnectError, CommunicationError, ServiceDenied) { uint64 data = 0x3FF0000000000000uLL | (getInt64() & 0x000FFFFFFFFFFFFFuLL); return *((double*)&data) - 1.0; } // returns: array of normalized floats in range [0, 1> size_t QRBG::getFloats(float* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied) { ASSERT(sizeof(float) == sizeof(uint32)); size_t acquired = AcquireBytes((byte*)buffer, sizeof(uint32)*count) / sizeof(uint32); register uint32 data; register int idx = (int)acquired; while (--idx >= 0) { data = 0x3F800000uL | (*((uint32*)(buffer+idx)) & 0x00FFFFFFuL); buffer[idx] = *((float*)&data) - 1.0f; } return acquired; } // returns: array of normalized doubles in range [0, 1> size_t QRBG::getDoubles(double* buffer, size_t count) throw(ConnectError, CommunicationError, ServiceDenied) { ASSERT(sizeof(double) == sizeof(uint64)); size_t acquired = AcquireBytes((byte*)buffer, sizeof(uint64)*count) / sizeof(uint64); register uint64 data; register int idx = (int)acquired; while (--idx >= 0) { data = 0x3FF0000000000000uLL | (*((uint64*)(buffer+idx)) & 0x000FFFFFFFFFFFFFuLL); buffer[idx] = *((double*)&data) - 1.0; } return acquired; } Pebble-1.0.0/src/math/random/STDRandom.cpp0000644000175000001460000000215110666007170017504 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include "STDRandom.hpp" Pebble::Math::Random::STDRandom::STDRandom() { srand(time(0)); } Pebble::Math::Random::STDRandom::~STDRandom() {} void Pebble::Math::Random::STDRandom::seed(unsigned long s) { srand(s); } unsigned long Pebble::Math::Random::STDRandom::getLong() { // Return a long in the range [0,RAND_MAX) return rand(); } long Pebble::Math::Random::STDRandom::getLong(long min, long max) { // Return a long in the range [min,max) return (long) ( ((double)rand() / ((double)RAND_MAX + (double)1.0))*(double)(max-min-1)) + min; } double Pebble::Math::Random::STDRandom::getDouble() { // Return a double in the range [0,1) return (double)rand() / ((double)RAND_MAX + (double)1.0); } unsigned long Pebble::Math::Random::STDRandom::getMax() { return RAND_MAX; } Pebble-1.0.0/src/math/random/MersenneTwister.hpp0000644000175000001460000000502510666007170021057 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith *** * Mersenne Twister code based on that provided at * http://www.math.sci.hiroshima-u.ac.jp/ * ~m-mat/MT/MT2002/emt19937ar.html * Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, * All rights reserved. * Copyright (C) 2005, Mutsuo Saito, * All rights reserved. * * Translated to C++ by Andrew J. Bennieston, 2007. * Copyright (C) 2007, Andrew J. Bennieston. **/ #ifndef PEBBLE_MATH_RANDOM_MERSENNETWISTER #define PEBBLE_MATH_RANDOM_MERSENNETWISTER #include "Random.hpp" namespace Pebble { namespace Math { namespace Random { /*! \brief An implementation of the Mersenne Twister pseudorandom number generator (PRNG) * * The MersenneTwister algorithm is a fast generator of uniform pseudo-random numbers * designed for use in Monte Carlo applications. */ class MersenneTwister : public Random { public: /*! Default constructor: Initialises a Mersenne Twister */ MersenneTwister(); /*! Destructor: Safely destroys a Mersenne Twister object */ virtual ~MersenneTwister(); /*! Seeds the Mersenne Twister with 4 bytes (a 32 bit integer) * of random data. */ virtual void seed(unsigned long s); /*! Seeds the Mersenne Twister with an array of random data. */ virtual void seed(unsigned long init_key[], int key_length); /*! Returns an unsigned long integer uniformly distributed * in the range [0,ULONG_MAX]. */ virtual unsigned long getLong(); /*! Returns a signed long integer, uniformly distributed# * in the range [min,max]. */ virtual long getLong(long min, long max); /*! Returns a double-precision floating-point number * uniformly distributed in the range [0,1] */ virtual double getDouble(); /*! Returns the maximum unsigned long value returnable * from the Mersenne Twister PRNG. */ virtual unsigned long getMax(); private: static const int N = 624; static const int M = 397; static const unsigned int matrix_a = 0x9908b0dfUL; static const unsigned int upper_mask = 0x80000000UL; static const unsigned int lower_mask = 0x7fffffffUL; int mti; unsigned long mag01[2]; unsigned long mt[624]; }; }; // namespace Random }; // namespace Math }; // namespace Pebble #endif Pebble-1.0.0/src/math/random/POSIXRandom.hpp0000644000175000001460000000362310666007170017766 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_RANDOM_POSIXRANDOM #define PEBBLE_MATH_RANDOM_POSIXRANDOM #include "Random.hpp" namespace Pebble { namespace Math { namespace Random { /*! \brief Pseudorandom number generator based on the POSIX.1 2001 example * * The POSIX.1 2001 example PRNG (given as an example implementation of the * library rand() function) is implemented here to provide a simple method of * testing Pebble across multiple architectures, since this algorithm is * guaranteed to give the same sequence of output, given the same initial seed. */ class POSIXRandom : public Random { public: /*! Constructor: Initialises a POSIXRandom object */ POSIXRandom(); /*! Destructor: Safely destroys a POSIXRandom object */ virtual ~POSIXRandom(); /*! Returns a double-precision floating-point number in * the range [0,1] */ virtual double getDouble(); /*! Returns an unsigned long integer uniformly distributed * in the range [0,ULONG_MAX]. */ virtual unsigned long getLong(); /*! Returns a signed long integer, uniformly distributed# * in the range [min,max]. */ virtual long getLong(long min, long max); /*! Returns the maximum unsigned long value returnable * from the POSIXRandom PRNG. */ virtual unsigned long getMax(); /*! Seeds the PRNG with data from an unsigned integer */ virtual void seed(unsigned long s); private: /*! Private member function to compute the next long integer * in the random sequence. */ long next(); long n; static const long rand_max = 32767; }; }; // namespace Random }; // namespace Math }; // namespace Pebble #endif Pebble-1.0.0/src/math/random/QRandom.hpp0000644000175000001460000000433610666007170017266 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_RANDOM_QRBG #define PEBBLE_MATH_RANDOM_QRBG #include #include "../../Exception.hpp" #include "Random.hpp" #include "QRBG.h" namespace Pebble { namespace Math { namespace Random { /*! \brief QRandom is an interface to the Quantum Random Bit Generator service at http://random.irb.hr/ * * The QRBG service is a non-deterministic source of random numbers, obtained from quantum timing * information of photonic emission/absorption, and is designed to provide cryptographically-strong * random data for Monte Carlo and cryptographic purposes. */ class QRandom : public Random { public: /*! Constructs a QRandom object connected to the QRBG with * the username and password specified. */ QRandom(const std::string& username, const std::string& password) throw(Pebble::Exception); /*! Destroys a QRandom object, safely closing the connection to the QRBG. */ virtual ~QRandom(); /*! Provided for compatibility with the abstract Random class, * this seed function does nothing, since the entropy source * used by QRandom is non-deterministic and does not require * seeding. */ virtual void seed(unsigned long s); /*! Returns an unsigned long integer uniformly distributed * in the range [0,ULONG_MAX]. */ virtual unsigned long getLong() throw(Pebble::Exception); /*! Returns a signed long integer, uniformly distributed# * in the range [min,max]. */ virtual long getLong(long min, long max) throw(Pebble::Exception); /*! Returns a double-precision floating-point number * uniformly distributed in the range [0,1] */ virtual double getDouble() throw(Pebble::Exception); /*! Returns the maximum unsigned long value returnable * from the QRandom RNG. */ virtual unsigned long getMax(); private: /*! Object used to interact with the QRBG service */ QRBG schrodinger; }; }; // namespace Random }; // namespace Math };// namespace Pebble #endif Pebble-1.0.0/src/math/random/Random.hpp0000644000175000001460000000263410666007170017144 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_RANDOM_RANDOM #define PEBBLE_MATH_RANDOM_RANDOM namespace Pebble { namespace Math { namespace Random { /*! \brief Random is an interface (abstract base class) to a set * of classes for random number generation. * * Some of the random number generators are deterministic (pseudorandom) * and others are non-deterministic. */ class Random { public: /*! Constructor */ Random(); /*! Destructor */ virtual ~Random(); /*! Seed a generator with initial random data */ virtual void seed(unsigned long s) = 0; /*! Returns an unsigned long integer uniformly distributed * in the range [0,ULONG_MAX]. */ virtual unsigned long getLong() = 0; /*! Returns a signed long integer, uniformly distributed# * in the range [min,max]. */ virtual long getLong(long min, long max) = 0; /*! Returns a double-precision floating-point number * uniformly distributed in the range [0,1] */ virtual double getDouble() = 0; /*! Returns the maximum unsigned long value returnable * from the RNG. */ virtual unsigned long getMax() = 0; }; }; }; }; #endif Pebble-1.0.0/src/math/random/STDRandom.hpp0000644000175000001460000000271310666007170017515 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_RANDOM_STDRANDOM #define PEBBLE_MATH_RANDOM_STDRANDOM #include "Random.hpp" namespace Pebble { namespace Math { namespace Random { /*! \brief Interface to the standard library rand() PRNG * * STDRandom provides an interface to the random-number * generation provided by the standard library rand() * function. */ class STDRandom : public Random { public: /*! Constructor: Create an STDRandom object */ STDRandom(); /*! Destructor: Destroy an STDRandom object */ virtual ~STDRandom(); /*! Returns a double-precision floating-point number * uniformly distributed in the range [0,1] */ virtual double getDouble(); /*! Seeds the RNG with initial random data. */ virtual void seed(unsigned long s); /*! Returns an unsigned long integer uniformly distributed * in the range [0,ULONG_MAX]. */ virtual unsigned long getLong(); /*! Returns a signed long integer, uniformly distributed# * in the range [min,max]. */ virtual long getLong(long min, long max); /*! Returns the maximum unsigned long value returnable * from the PRNG. */ virtual unsigned long getMax(); }; }; }; }; #endif Pebble-1.0.0/src/math/random/URandom.hpp0000644000175000001460000000331210666007170017263 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_RANDOM_URANDOM #define PEBBLE_MATH_RANDOM_URANDOM #include #include "../../Exception.hpp" #include "Random.hpp" namespace Pebble { namespace Math { namespace Random { /*! \brief Interface to the /dev/urandom source of entropy on UNIX/Linux systems. * * URandom provides an interface for obtaining data from the /dev/urandom * file on UNIX or Linux systems. */ class URandom : public Random { public: /*! Create a URandom object, opening the /dev/urandom file. */ URandom() throw (Pebble::Exception); /*! Destroy a URandom object, closing the /dev/urandom file. */ virtual ~URandom(); /*! Seeds the Mersenne Twister with initial random data. */ virtual void seed(unsigned long s); /*! Returns an unsigned long integer uniformly distributed * in the range [0,ULONG_MAX]. */ virtual unsigned long getLong(); /*! Returns a signed long integer, uniformly distributed# * in the range [min,max]. */ virtual long getLong(long min, long max); /*! Returns a double-precision floating-point number * uniformly distributed in the range [0,1] */ virtual double getDouble(); /*! Returns the maximum unsigned long value returnable * from the RNG. */ virtual unsigned long getMax(); private: /*! A file stream tied to /dev/urandom */ std::ifstream ist; }; }; // namespace Random }; // namespace Math }; // namespace Pebble #endif Pebble-1.0.0/src/math/functions/0000755000175000001460000000000010666007241015735 5ustar phuegaphuegaPebble-1.0.0/src/math/functions/Box.cpp0000644000175000001460000000175510666007170017202 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "../../Exception.hpp" #include "Box.hpp" Pebble::Math::Functions::Box::Box(const double& min, const double& max) : x_min(min), x_max(max), scale(0), is_set(false) { } Pebble::Math::Functions::Box::Box(const double& min, const double& max, const double& s) : x_min(min), x_max(max), scale(s), is_set(true) { } Pebble::Math::Functions::Box::~Box() { } void Pebble::Math::Functions::Box::setScale(const double& s) { scale = s; is_set = true; } double Pebble::Math::Functions::Box::operator()(const double& x) throw(Pebble::Exception) { if (! is_set) { throw Pebble::Exception("Scale not set."); } if (x > x_min && x <= x_max) { return scale; } else { return 0; } } Pebble-1.0.0/src/math/functions/Box.hpp0000644000175000001460000000302110666007170017173 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_FUNCTIONS_BOX #define PEBBLE_MATH_FUNCTIONS_BOX #include "../../Exception.hpp" #include "../calculus/Integrand.hpp" namespace Pebble { namespace Math { namespace Functions { /*! \brief A box function, with variable height and width. * * Implements a box function, i.e. \f$B(min \leq x \leq max) = s,\f$ * otherwise \f$0\f$. The default height/scale is 1. */ class Box : public Pebble::Math::Calculus::Integrand { public: /*! Constructs a Box instance with width max - min, * beginning at min. */ Box(const double& min, const double& max); /*! Constructs a Box instance with width max - min and * height/scale s, beginning at min. */ Box(const double& min, const double& max, const double& s); /*! Destructor. */ virtual ~Box(); /*! Returns the value of the function evaluated at x. */ virtual double operator()(const double& x) throw(Pebble::Exception); /*! Set the height/scale of the box. */ void setScale(const double& s); private: /*! Minimum limit of the box. */ double x_min; /*! Maximum limit of the box. */ double x_max; /*! Height/scale of the box. */ double scale; /*! Indicates whether the scale is set, or not. */ bool is_set; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/0000755000175000001460000000000010666007232015540 5ustar phuegaphuegaPebble-1.0.0/src/math/calculus/AngularDistribution.hpp0000644000175000001460000000262210666007171022246 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_ANGULARDISTRIBUTION #define PEBBLE_MATH_CALCULUS_ANGULARDISTRIBUTION #include "../../Exception.hpp" #include "Integrand.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief Used to implement the angular distribution function, * F12Theta. */ class AngularDistribution : public Integrand { public: /*! Constructs an AngularDistribution with only the * available energy, T0, set. */ AngularDistribution(const double& T0); /*! Constructs an AngularDistribution with T0, T1, * and T2 set. */ AngularDistribution(const double& T0, const double& T1, const double& T2); /*! Destructor. */ virtual ~AngularDistribution(); /*! Returns the value of the angular distribution function * evaluated at cos_theta. */ virtual double operator()(const double& cos_theta) = 0; /*! Sets T1 and T2. */ virtual void setConstants(const double& T_1, const double& T_2) = 0; protected: /*! Available energy. */ double T0; /*! Energy of electron 1. */ double T1; /*! Energy of electron 2. */ double T2; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/Integrator.cpp0000644000175000001460000000113110666007171020360 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "../../Exception.hpp" #include "Integrand.hpp" #include "Integrator.hpp" Pebble::Math::Calculus::Integrator::Integrator() : functor(0) { } Pebble::Math::Calculus::Integrator::~Integrator() { } void Pebble::Math::Calculus::Integrator::setFunction(Integrand& f) { functor = &f; } Pebble-1.0.0/src/math/calculus/Integrand.hpp0000644000175000001460000000164510666007171020174 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_DISTRIBUTIONS_INTEGRAND #define PEBBLE_MATH_DISTRIBUTIONS_INTEGRAND #include "../../Exception.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief A functor implemenation. * * The Integrand class implements the operator() member function, * i.e. the Integrand class is a function object. This allows the * ability to save state information used in function processing. */ class Integrand { public: /*! Constructs an Integrand instance. */ Integrand(); /*! Destructor. */ virtual ~Integrand(); virtual double operator()(const double& x) = 0; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/Normaliser.hpp0000644000175000001460000000560310666007171020372 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_NORMALISER #define PEBBLE_MATH_CALCULUS_NORMALISER #include "Integrand.hpp" #include "RombergIntegrator.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief Normalises a function. * * The Normaliser class accepts a functor, a function object, and * integrates it over the function range. The normalisation * constant is then set to the reciprocal of this value. Every * function evaluation, i.e. call to the operator() member function, * is multiplied by the normalisation constant. */ class Normaliser : public Integrand { public: /*! Constructs a Normaliser instance with an integration * range of [0, T], and total available energy T. */ Normaliser(const double& T) : T(T), low(0.0), high(T) { } /*! Constructs a Normaliser instance with an integration * range of [low_limit, high_limit], and total available * energy T. */ Normaliser(const double& T, const double& low_limit, const double& high_limit) : T(T), low(low_limit), high(high_limit) {} /*! Constructs a Normaliser instance with a function set, * and total available energy T. */ Normaliser(const double& T, Integrand& func) : T(T) { f = &func; Init(); } /*! Set the range of integration to [low_limit, high_limit]. */ void setLimits(const double& low_limit, const double& high_limit) { low = low_limit; high = high_limit; } /*! Destructor. */ virtual ~Normaliser() { }; /*! Set the function to normalise. */ void setFunction(Integrand& func) { f = &func; Init(); } /*! Set the normalisation constant, n. */ void setNorm(const double& n) { norm = n; } /*! Returns the normalised function evaluated at x. */ virtual double operator()(const double& x) { return ((*f)(x)) * norm; }; /*! Returns the normalisation constant. */ double getNorm() { return norm; }; private: /*! Finds the normalisation constant using the more efficient * RombergIntegrator. */ void Init() { i.setFunction(*f); norm = 1.0 / (i.integrate(low, high)); }; /*! Total energy available, used as a default integration * limit. */ double T; /*! Lower integration limit. */ double low; /*! Upper integration limit. */ double high; /*! Points to the working function. */ Integrand *f; /*! Normalisation constant. */ double norm; /*! An instance of the RombergIntegrator class, used during * calculation of the normalisation constant. */ RombergIntegrator i; }; }; // namespace Calculus }; // namespace Math }; // namespace Pebble #endif Pebble-1.0.0/src/math/calculus/GaussIntegrator.cpp0000644000175000001460000000250510666007171021371 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include "../../Exception.hpp" #include "GaussIntegrator.hpp" #include "Integrand.hpp" // Static private member double Pebble::Math::Calculus::GaussIntegrator::root3 = std::sqrt(3.0); Pebble::Math::Calculus::GaussIntegrator::GaussIntegrator() : Integrator(), n_points(10000) { } Pebble::Math::Calculus::GaussIntegrator::~GaussIntegrator() {} double Pebble::Math::Calculus::GaussIntegrator::integrateFunction(Integrand& f, double low, double high) { double h = (high - low) / n_points; double v = h / (2.0 * root3); double u = low + h / 2.0; double t = f(u + v) + f(u - v); for(long i = 1; i < n_points; ++i) { u += h; t += f(u + h) + f(u - v); } return (h / 2.0) * t; } double Pebble::Math::Calculus::GaussIntegrator::integrate(double low, double high) throw (Pebble::Exception) { if ( functor == 0 ) throw Pebble::Exception("Function not set."); return integrateFunction(*functor, low, high); } void Pebble::Math::Calculus::GaussIntegrator::setNumPoints(long num_points) { n_points = num_points; } Pebble-1.0.0/src/math/calculus/RombergIntegrator.hpp0000644000175000001460000000501310666007171021706 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_ROMBERGINTEGRATOR #define PEBBLE_MATH_CALCULUS_ROMBERGINTEGRATOR #include #include "../../Exception.hpp" #include "Integrand.hpp" #include "Integrator.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief Implements an integrator using the Romberg integration * technique. * * Integrates a function, an Integrand, between limits defined by * the arguments passed to integrateFunction. The Romberg * integration method fits a polynomial to the function and then * determine the area under the polynomial. The order of the * polynomial is degree. */ class RombergIntegrator : public Integrator { public: /*! Constructs a RombergIntegrator instance.*/ RombergIntegrator(); /*! Destructor.*/ virtual ~RombergIntegrator() {}; /*! Integrate the function f in the range [low, high]. */ virtual double integrateFunction(Integrand& f, double low, double high) throw (Pebble::Exception); /*! Set the tolerance, i.e. precision, of the integration. */ void setTolerance(double t); /*! Set the polynomial order. */ void setDegree(long d); /*! Returns the amount of function calls of f in the previous * integration. */ long getCount(); /*! Integrate the working function in the range [low, high].*/ virtual double integrate(double low, double high) throw (Pebble::Exception); private: /*! Interpolates between the set of f(xv[i]) values, given in * yv[i] using a recursively implemented Lagendre * interpolation method. Taken from An Introduction to * Numerical Recipes in C++, Flowers, (Oxford, 2000). */ double neville2(std::vector &xv, std::vector &yv, double &err); /*! Sequential trapezoidal integration of the function f, in * the range defined by low and high. Taken from An * Introduction to Numerical Recipes in C++, Flowers, * (Oxford, 2000). */ double seqtrap(Integrand& f, double a, double b, int n) throw (Pebble::Exception); double tolerance; long polynomialDegree; long count; /*! The next call number in the seqtrap sequence. */ int good; /*! seqtrap result */ double s; /*! The actual call number in the seqtrap sequence. */ int next; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/Integrator.hpp0000644000175000001460000000254210666007171020374 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_INTEGRATOR #define PEBBLE_MATH_CALCULUS_INTEGRATOR #include "../../Exception.hpp" #include "Integrand.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief An abstract base class defining basic integrator * functionality. * * The Integrator abstract base class is used to define the * basic functions that are required of the Pebble integrators. */ class Integrator { public: /* Constructs an Integrator instance. */ Integrator(); /* Destructor. */ virtual ~Integrator(); /*! Integrate the function f in the range [low, high]. */ virtual double integrateFunction(Integrand& f, double low, double high) = 0; /*! Set the working function, functor, to point to the * integrand func. */ void setFunction(Integrand& func); /*! Integrates the working function, functor, in the range * [low, high]. */ virtual double integrate(double low, double high) throw(Pebble::Exception) = 0; protected: /*! Points to the working function. */ Integrand* functor; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/DoubleIntegrand.cpp0000644000175000001460000000210310666007171021310 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "../../Exception.hpp" #include "DoubleIntegrand.hpp" #include "Integrand.hpp" Pebble::Math::Calculus::DoubleIntegrand::DoubleIntegrand() : constant(0), is_set(false), reverse_order(false) { } Pebble::Math::Calculus::DoubleIntegrand::~DoubleIntegrand() { } double Pebble::Math::Calculus::DoubleIntegrand::operator()(const double& x) throw(Pebble::Exception) { if (! is_set) { throw(Pebble::Exception("Constant not set.")); } // By default (reverse_order == false) the second argument is constant. if (reverse_order) { return (*this)(constant, x); } else { return (*this)(x, constant); } } void Pebble::Math::Calculus::DoubleIntegrand::setConstant(const double& c, bool reverse_order) { constant = c; reverse_order = reverse_order; is_set = true; } Pebble-1.0.0/src/math/calculus/GaussIntegrator.hpp0000644000175000001460000000322210666007171021373 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_GAUSSINTEGRATOR #define PEBBLE_MATH_CALCULUS_GAUSSINTEGRATOR #include "../../Exception.hpp" #include "Integrand.hpp" #include "Integrator.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief Implements an integrator using the Gaussian quadrature * method. * * Integrates a function, an Integrand, between limits defined by * the arguments passed to integrateFunction. The Guassian * quadrature implementation requires a fixed number of nodes, over * which to sum weighted Legendre polynomials, which is set by the * member function setNumPoints. */ class GaussIntegrator : public Integrator { public: /*! Constructs a GaussIntegrator instance. */ GaussIntegrator(); /*! Destructor. */ virtual ~GaussIntegrator(); /*! Integrate the function f in the range [low, high]. */ virtual double integrateFunction(Integrand& f, double low, double high); /*! Integrates the current function, functor, in the range * [low, high]. */ virtual double integrate(double low, double high) throw(Pebble::Exception); /*! Sets the number of Gaussian nodes to sum over, during * the integration process. */ void setNumPoints(long num_points); private: /*! The number of Gaussian nodes. */ long n_points; /*! The square root of 3. */ static double root3; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/AngularDistribution.cpp0000644000175000001460000000151210666007171022236 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "AngularDistribution.hpp" Pebble::Math::Calculus::AngularDistribution::AngularDistribution(const double& T0) : T0(T0), T1(0.0), T2(0.0) { } Pebble::Math::Calculus::AngularDistribution::AngularDistribution(const double& T0, const double& T1, const double& T2) : T0(T0), T1(T1), T2(T2) { } Pebble::Math::Calculus::AngularDistribution::~AngularDistribution() { } void Pebble::Math::Calculus::AngularDistribution::setConstants(const double& T_1, const double& T_2) // TeX-esque naming convention { T1 = T_1; T2 = T_2; } Pebble-1.0.0/src/math/calculus/Negater.hpp0000644000175000001460000000226710666007171017647 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_NEGATER #define PEBBLE_MATH_CALCULUS_NEGATER #include "Integrand.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief Negates a function. * * The Negater class accepts a functor, a function object, and * returns the negative value of the function evaluated at the * point x. */ class Negater : public Integrand { public: /*! Constructs a Negater instance. */ Negater() {}; /*! Constructs a Negater with a pointer to the Integrand i. */ Negater(Integrand& i) : f(&i) { }; /*! Destructor. */ virtual ~Negater() { }; /*! Set the working function. */ void setFunction(Integrand& i) { f = &i; } /*! Returns the negated value of f(x). */ virtual double operator()(const double& x) { return -((*f)(x)); } private: /* Points to the working function. */ Integrand *f; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/DoubleIntegrand.hpp0000644000175000001460000000371510666007171021327 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_CALCULUS_DOUBLEINTEGRAND #define PEBBLE_MATH_CALCULUS_DOUBLEINTEGRAND #include "../../Exception.hpp" #include "Integrand.hpp" namespace Pebble { namespace Math { namespace Calculus { /*! \brief Used to implement the F12 distribution function. * * The DoubleIntegrand class implements a function that accepts * two parameters. During the simulation process one of these * parameters is set constant, using the setConstant member * function, and the function f(x, y) acts like f(x). */ class DoubleIntegrand : public Integrand { public: /*! Constructs a DoubleIntegrand. */ DoubleIntegrand(); /*! Destructor. */ virtual ~DoubleIntegrand(); /*! Returns the value of the distribution function * evaluated at (x, c), or (c, x), where c is a constant. * If the constant is not set then an exception is thrown. */ virtual double operator()(const double& x) throw(Pebble::Exception); /*! Returns the value of the distribution function * evaluated at (x, y). */ virtual double operator()(const double& x, const double& y) = 0; /*! Sets the constant parameter. reverse_order indicates * which parameter accepts the constant: true results in * f(c, x), and vice versa. */ void setConstant(const double& c, bool reverse_order = false); /*! Indicates whether the distribution function contains a * reference to the delta function. */ virtual bool containsDelta() = 0; protected: /*! The value of the constant, c. */ double constant; /*! Indicates whether the constant is set. */ bool is_set; /*! Indicates whether reverse parameter passing is set. */ bool reverse_order; }; }; }; }; #endif Pebble-1.0.0/src/math/calculus/Integrand.cpp0000644000175000001460000000066510666007171020170 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "Integrand.hpp" Pebble::Math::Calculus::Integrand::Integrand() {} Pebble::Math::Calculus::Integrand::~Integrand() {} Pebble-1.0.0/src/math/calculus/RombergIntegrator.cpp0000644000175000001460000001002210666007171021675 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith ** * REFERENCES: * [1] An Introduction to Numerical Methods in C++, Flowers, * (Oxford, 2000) */ #include #include #include "../../Exception.hpp" #include "Integrand.hpp" #include "RombergIntegrator.hpp" Pebble::Math::Calculus::RombergIntegrator::RombergIntegrator() : Integrator(), tolerance(1.0E-7), polynomialDegree(5), count(0), good(0), s(0.0), next(0) { } /* * integrateFunction * Integrates the function f by first applying seqtrap(...) and * analysing the estimated error, and comparing that with the * polynomial degree. If the error is greater than the degree the * data around the current node is interpolated using neville2(...). * * Based on the romberg(...) function, pages 352-353, from [1]. */ double Pebble::Math::Calculus::RombergIntegrator::integrateFunction(Pebble::Math::Calculus::Integrand& f, double low, double high) throw (Pebble::Exception) { const int lim = 20; double s, err; std::vector t(lim), h(lim); h[0] = 1.0; for (int i = 0; i < lim; ++i) { t[i] = seqtrap(f, low, high, i); if (i > polynomialDegree) { std::vector hv(polynomialDegree + 1), tv(polynomialDegree + 1); for (int j = 0; j <= polynomialDegree; ++j) { hv[j] = h[i - polynomialDegree - 1 + j]; tv[j] = t[i - polynomialDegree - 1 + j]; } s = neville2(hv, tv, err); if (fabs(err) < tolerance * fabs(s)) { return s; } } h[i + 1] = 0.25 * h[i]; } // Too many iterations have been performed throw Pebble::Exception("Too many iterations have been performed."); } /* * seqtrap * Sequential trapezoidal integration of the function f, between in * the range defined by low and high. * * Based on the seqtrap(...) function, page 351, from [1]. */ double Pebble::Math::Calculus::RombergIntegrator::seqtrap(Pebble::Math::Calculus::Integrand& f, double low, double high, int n) throw (Pebble::Exception) { if (n != good++) { // Non-sequential call to seqtrap //throw Pebble::Exception("Non-sequential call to seqtrap."); } if (n == 0) { next = 1; return (s = 0.5 * (high - low) * (f(low) + f(high))); } else { int numb = next; double h = (high - low) / numb; double x = low + 0.5 * h; double sum = 0.0; for (int i = 0; i < numb; ++i) { sum += f(x); ++count; x += h; } next *= 2; return (s = 0.5 * (s + (high - low) * sum/numb)); } } /* * neville2 * Interpolates between the set of f(xv[i]) values, given in yv[i] * using a recursively implemented Lagendre interpolation method. * * Based on the neville2(...) function, page 352, from [1]. */ double Pebble::Math::Calculus::RombergIntegrator::neville2(std::vector &xv, std::vector &yv, double &err) { double y; int n = xv.size(); std::vector c = yv; std::vector d = yv; int k = n - 1; y = yv[k--]; double incr; for (int m = 1; m < n; ++m) { for (int i = 0; i < n - m; ++i) { double xi = xv[i]; double xim = xv[i + m]; double cd = c[i + 1 ] - d[i]; double mult = xi - xim; mult = cd / mult; c[i] = xi * mult; d[i] = xim * mult; } incr = (2 * k < (n - m - 1) ? c[k + 1] : d[k--]); y += incr; } err = fabs(incr); // Estimate of the error involved return y; } void Pebble::Math::Calculus::RombergIntegrator::setTolerance(double t) { tolerance = t; } void Pebble::Math::Calculus::RombergIntegrator::setDegree(long d) { polynomialDegree = d; } long Pebble::Math::Calculus::RombergIntegrator::getCount() { return count; } double Pebble::Math::Calculus::RombergIntegrator::integrate(double low, double high) throw (Pebble::Exception) { if ( functor == 0 ) throw Pebble::Exception("Function not set."); return integrateFunction(*functor, low, high); } Pebble-1.0.0/src/math/FourVector.cpp0000644000175000001460000000541510666007171016536 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include "FourVector.hpp" namespace Pebble { namespace Math { // Default constructor - Initialise all variables to zero FourVector::FourVector() : e(0.0), p_x(0.0), p_y(0.0), p_z(0.0) {} // Construct a four-vector from four doubles FourVector::FourVector(const double energy, const double momentum_x, const double momentum_y, const double momentum_z) : e(energy), p_x(momentum_x), p_y(momentum_y), p_z(momentum_z) {} // Copy constructor FourVector::FourVector(const FourVector& vec) : e(vec.e), p_x(vec.p_x), p_y(vec.p_y), p_z(vec.p_z) {} // Construct a four-vector from an std::vector FourVector::FourVector(const std::vector& vec) : e(vec[0]), p_x(vec[1]), p_y(vec[2]), p_z(vec[3]) {} // Indexing operator - valid indixes in the range [0,3] double& FourVector::operator[](int i) throw(std::out_of_range) // Element access { /* * This is rather messy, but it makes the constructor initialiser list much nicer * if the entities are distinct, not elements of an array... * So we'll fake being an array here! * N.B. A good compiler should optimise this into a jump table (read: array) * anyway! */ switch(i) { case 0: return e; break; case 1: return p_x; break; case 2: return p_y; break; case 3: return p_z; break; default: throw std::out_of_range("FourVector"); break; } } void FourVector::setProperties(const double& energy, const double& momentum_x, const double& momentum_y, const double& momentum_z) { e = energy; p_x = momentum_x; p_y = momentum_y; p_z = momentum_z; } // Multiplication and assignment operator for scaling the four-vector FourVector& FourVector::operator*=(double scalar) // Scaling { e *= scalar; p_x *= scalar; p_y *= scalar; p_z *= scalar; return *this; } // Multiplication operator for scaling the four-vector FourVector FourVector::operator*(double scalar) // Scaling { FourVector f(e * scalar, p_x * scalar, p_y * scalar, p_z * scalar); return f; } // Scalar product of two four vectors double FourVector::operator*(FourVector& vec) // Scalar Product { return ( (p_x * vec.p_x) + (p_y * vec.p_y) + (p_z * vec.p_z) - (e * vec.e) ); } // Output operator. Not defined as a member function (because it doesn't need to be!) std::ostream& operator<<(std::ostream& ost, FourVector& vec) { ost << "( " << vec[0] << ", " << vec[1] << ", " << vec[2] << ", " << vec[3] << " )"; return ost; } double FourVector::getEnergy() { return e; } }; }; Pebble-1.0.0/src/math/FourVector.hpp0000644000175000001460000000414110666007171016536 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_FOURVECTOR #define PEBBLE_MATH_FOURVECTOR #include #include #include namespace Pebble { namespace Math { /*! \brief An implementation of a four-dimensional vector. * * The FourVector class is an implementation of the four vector * construct, often used in particle physics. In the Pebble * framework the FourVector class is used to store energy-momenta * of all simulated particles. */ class FourVector { public: /*! Constructs an empty FourVector. */ FourVector(); /*! Constructs a FourVector from individual arguments. */ FourVector(const double energy, const double momentum_x, const double momentum_y, const double momentum_z); /*! Constructs a FourVector from another FourVector. */ FourVector(const FourVector& vec); /*! Constructs a FourVector from a four-dimensional vector. */ FourVector(const std::vector& vec); /*! Accesses the ith element of the FourVector. */ double& operator[](int i) throw(std::out_of_range); /*! Sets the FourVector properties. */ void setProperties(const double& energy, const double& momentum_x, const double& momentum_y, const double& momentum_z); /*! Scale the FourVector by a constant, given by scalar. */ FourVector& operator*=(double scalar); FourVector operator*(double scalar); /*! Perform a Scalar Product on the FourVector and another, * passed FourVector, vec. */ double operator*(FourVector& vec); /*! Returns the energy stored in the FourVector. */ double getEnergy(); private: /*! Energy. */ double e; /*! Momentum along the x-axis. */ double p_x; double p_y; double p_z; }; /*! Defines the output procedure of a FourVector instance, for an * ostream. */ std::ostream& operator<<(std::ostream& ost, FourVector& vec); }; }; #endif Pebble-1.0.0/src/math/Utility.cpp0000644000175000001460000000404110666007171016075 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith *** * REFERENCES: * [1] An Introduction to Numerical Methods in C++, Flowers, * (Oxford, 2000) * [2] The C++ Programming Language 3rd ed., Stroustrup, * (Addison-Wesley, 1997) **/ #include #include #include "../Exception.hpp" #include "calculus/Integrand.hpp" #include "Utility.hpp" int Pebble::Math::Utility::delta(const double& x) { if (x == 0) { return 1; } else { return 0; } } Pebble::Math::Utility::Minimiser::Minimiser() : n_calls(0) {} Pebble::Math::Utility::Minimiser::Minimiser(Pebble::Math::Calculus::Integrand& func) : f(&func), n_calls(0) { } void Pebble::Math::Utility::Minimiser::setFunction(Pebble::Math::Calculus::Integrand& func) { n_calls = 0; // Clear calls count f = &func; } double Pebble::Math::Utility::Minimiser::getMinimum(double min, double mid, double max) throw (Pebble::Exception) { return getMinimum(min, mid, max, (*f)(mid)); } double Pebble::Math::Utility::Minimiser::getMinimum(double min, double mid, double max, double fmid) throw (Pebble::Exception) { if ( n_calls > 10000 ) { throw Pebble::Exception("Too many calls to getMinimum()"); } ++n_calls; const double tolerance = 1E-7; const double section = 0.38197; if ( fabs(max - min) < (tolerance * fabs(mid)) ) { return mid; } if (fabs(max - mid) > fabs(mid - min)) { x = mid + (section * (max - mid)); fx = (*f)(x); if (fx < fmid) { return getMinimum(mid, x, max, fx); } else { return getMinimum(x, mid, min, fmid); } } else { x = mid - (section * (mid - min)); fx = (*f)(x); if ( fx < fmid ) { return getMinimum(mid, x, min, fx); } else { return getMinimum(x, mid, max, fmid); } } } Pebble-1.0.0/src/math/Utility.hpp0000644000175000001460000000420710666007171016106 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MATH_UTILITY #define PEBBLE_MATH_UTILITY #include "../Exception.hpp" #include "calculus/Integrand.hpp" namespace Pebble { namespace Math { namespace Utility { /*! An implementation of the Dirac delta function: * \f$\delta(0) = 1,\f$ otherwise \f$\delta(x\neq0) = 0\f$.*/ int delta(const double& x); /*! \brief Finds the minimum of a function. * * The Minimiser class accepts a function, passed as a * Integrand reference at construction or by the setFunction * method. The minimum of the function is returned by the * getMinimum method, which implements the goldsect method * outlined in An Introduction to Numerical Methods in C++, * Flowers, (Oxford, 2000). */ class Minimiser { public: /*! Constructs a minimiser without a function set. * Requires that setFunction be called before * getMinimum. */ Minimiser(); /*! Constructs a minimiser with a function set. */ Minimiser(Pebble::Math::Calculus::Integrand& func); /*! Sets the function of which to find the minimum. */ void setFunction(Pebble::Math::Calculus::Integrand& func); /*! A wrapper method for the private getMinimum. */ double getMinimum(double min, double mid, double max) throw(Pebble::Exception); private: /*! Finds the minimum of the function in the range [min, * max]. mid defines some point that is in this range, * with which the first section can be found. */ double getMinimum(double min, double mid, double max, double fmid) throw(Pebble::Exception); /*! The number of recursion calls made by getMinimum. */ unsigned long n_calls; /*! A pointer to the function to find the minimum of. */ Pebble::Math::Calculus::Integrand *f; /*! The mid point of a low order polynomial fitted to f. */ double x; /*! The value of f(x). */ double fx; }; }; }; }; #endif Pebble-1.0.0/src/merge-data.cpp0000644000175000001460000000223610666007171015513 0ustar phuegaphuega#include #include #include using namespace std; void open_error(const char* name) { cerr << "Error opening file: " << name << endl; exit(1); } class Writer { public: Writer(ostream& ost) : stream(&ost) {}; void operator()(pair p) { *stream << p.first << "\t" << p.second << "\n"; }; private: ostream* stream; }; int main(int argc, char** argv) { ios_base::sync_with_stdio(false); if ( argc < 4 ) { cerr << "Usage: " << argv[0] << " outfile file1 file2 [... [fileN] ]" << endl; exit(1); } ifstream* in = new ifstream(argv[2]); if ( ! *in ) { open_error(argv[2]); } map counts; unsigned long energy, count; while ( ! in->eof() ) { *in >> energy >> count; counts[energy] = count; } in->close(); delete in; for(int i = 3; i < argc; ++i) { in = new ifstream(argv[i]); if ( ! *in ) { open_error(argv[i]); } while ( ! in->eof() ) { *in >> energy >> count; counts[energy] += count; } in->close(); delete in; } ofstream out(argv[1]); Writer w(out); for_each(counts.begin(), counts.end(), w); out.close(); return 0; } Pebble-1.0.0/src/modes/0000755000175000001460000000000010666007254014107 5ustar phuegaphuegaPebble-1.0.0/src/modes/Mode5.hpp0000644000175000001460000000547110666007171015576 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE5 #define PEBBLE_MODES_MODE5 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode5_F1 : public Pebble::Math::Calculus::Integrand { public: Mode5_F1(const double& T) : T0(T) {}; virtual ~Mode5_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * ( ( ( T0 + 511 - T1 ) * ( T0 + 511 - T1 ) * ( T0 + 511 - T1 ) * ( T0 + 511 - T1 ) ) - 4 * (T0 + 511 - T1) + 3*511); }; private: double T0; }; class Mode5_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode5_F12(const double& T) : T0(T) {}; virtual ~Mode5_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * (T0 - T1 - T2); }; virtual bool containsDelta() { return false; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode5_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode5_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode5_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode5_F12Theta() {}; virtual double operator()(const double& cos_theta) { return ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * (T0 - T1 - T2) * (511 - (B1 * B2) * cos_theta); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/Mode6.hpp0000644000175000001460000000555010666007171015575 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE6 #define PEBBLE_MODES_MODE6 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode6_F1 : public Pebble::Math::Calculus::Integrand { public: Mode6_F1(const double& T) : T0(T) {}; virtual ~Mode6_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * ( (T0 - T1) * (T0 - T1) * (T0 - T1) * (T0 - T1) ) * ( (T0 - T1)*(T0 - T1) + 6 * (T0 - T1) + 15*511); }; private: double T0; }; class Mode6_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode6_F12(const double& T) : T0(T) {}; virtual ~Mode6_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * (T0 - T1 - T2) * (T0 - T1 - T2) * (T0 - T1 - T2); }; virtual bool containsDelta() { return false; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode6_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode6_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode6_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode6_F12Theta() {}; virtual double operator()(const double& cos_theta) { return (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * ((T0 - T1 - T2) * (T0 - T1 - T2) * (T0 - T1 - T2)) * (511 - (B1 * B2) * cos_theta); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/Mode7.hpp0000644000175000001460000000557010666007171015600 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE7 #define PEBBLE_MODES_MODE7 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode7_F1 : public Pebble::Math::Calculus::Integrand { public: Mode7_F1(const double& T) : T0(T) {}; virtual ~Mode7_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return E1 * E2 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)); }; private: double T0; }; class Mode7_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode7_F12(const double& T) : T0(T) {}; virtual ~Mode7_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return (E1 * E2 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2))) * delta(T0 - T1 - T2); }; virtual bool containsDelta() { return true; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode7_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode7_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode7_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode7_F12Theta() {}; virtual double operator()(const double& cos_theta) { return (E1 * E2 * ((3 * (P1 * P1) * (P2 * P2) * (cos_theta * cos_theta)) - ((P1 * P2 * cos_theta) * (10 * (E1 * E2 + 511) + (P1 * P1) + (P2 + P2))) + (5 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)) - ((P1 * P1) * (P2 * P2))))) * delta(T0 - T1 - T2); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/Mode8.hpp0000644000175000001460000000564210666007171015601 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE8 #define PEBBLE_MODES_MODE8 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode8_F1 : public Pebble::Math::Calculus::Integrand { public: Mode8_F1(const double& T) : T0(T) {}; virtual ~Mode8_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))); }; private: double T0; }; class Mode8_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode8_F12(const double& T) : T0(T) {}; virtual ~Mode8_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2); }; virtual bool containsDelta() { return true; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode8_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode8_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode8_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode8_F12Theta() {}; virtual double operator()(const double& cos_theta) { return (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2) * (cos_theta * cos_theta)) - (P1 * P2 * cos_theta * ((E1 + E2)*(E1 + E2) + 4 * (E1 * E2 + 511)))) + (3 * (E1 * E2+ 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/ModeFactory.hpp0000644000175000001460000000422610666007171017036 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODEFACTORY #define PEBBLE_MODES_MODEFACTORY #include #include #include #include "../math/calculus/AngularDistribution.hpp" #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../Exception.hpp" namespace Pebble { namespace Modes { class ModeFactory { public: ModeFactory(); // Constructor - should never need to be called! ~ModeFactory(); // Destructor - Should also never need to be called! static void init(); // Initialisation function. static void fini(); // Finalisation function - like a destructor, but static. template static void addMode(const std::string& name, IntegrandType* f1, DoubleIntegrandType* f12, AngularDistType* f12theta) { std::vector mode; // Add distribution functions mode.push_back(new IntegrandType(*f1)); mode.push_back(new DoubleIntegrandType(*f12)); mode.push_back(new AngularDistType(*f12theta)); addMode(name, mode); } static std::vector& getMode(const std::string& name) throw(Pebble::Exception); static Pebble::Math::Calculus::Integrand* getF1(const std::string& name) throw(Pebble::Exception); static Pebble::Math::Calculus::DoubleIntegrand* getF12(const std::string& name) throw(Pebble::Exception); static Pebble::Math::Calculus::AngularDistribution* getF12Theta(const std::string& name) throw(Pebble::Exception); private: static void addMode(const std::string& name, const std::vector& mode); static void delete_elements(std::pair > elements); static std::map > modes; }; }; }; #endif Pebble-1.0.0/src/modes/Mode9.hpp0000644000175000001460000000625110666007171015577 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE9 #define PEBBLE_MODES_MODE9 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode9_F1 : public Pebble::Math::Calculus::Integrand { public: Mode9_F1(const double& T) : T0(T) {}; virtual ~Mode9_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * ((T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)) * ( ( T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1) - 6*(T1 - 511)*(T0 - T1)*(T0 - T1)*(T0 - T1) + 11*(T1*T1 - 4*T1 + 511)*(T0 - T1)*(T0 - T1) + 110*T1*(T1 - 511)*(T0 - T1) + 495*T1*T1); }; private: double T0; }; class Mode9_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode9_F12(const double& T) : T0(T) {}; virtual ~Mode9_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * (T1 - T2)*(T1 - T2) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)); }; virtual bool containsDelta() { return false; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode9_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode9_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode9_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode9_F12Theta() {}; virtual double operator()(const double& cos_theta) { return (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * (T1 - T2)*(T1 - T2) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)) * (511 + (1/3)*(B1*B2)*cos_theta); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/ModeMaker.cpp0000644000175000001460000001101010666007171016446 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include #include #include #include #define TEMPLATE_FILE "mode_template.hpp" #define WHITESPACE "\t\r\n" using namespace std; void usage(const char* name); void open_error(const char* name); bool generate_mode(istream& ist, const string& mode); void replace_all(const string& pattern, const string& replacement, string& subject); istream& eat_whitespace(istream& ist); class HeaderMaker { public: HeaderMaker(const string& filename); ~HeaderMaker(); void operator()(const string& mode); private: ofstream* os; }; int main(int argc, char** argv) { // Improve the speed of C++ I/O by // removing the shared C/C++ I/O buffer ios_base::sync_with_stdio(false); // Verify the correct number of command-line args, otherwise print usage if ( argc != 2 ) { usage(argv[0]); exit(1); } // Open the input file ifstream modes(argv[1]); if ( ! modes ) { open_error(argv[1]); exit(1); } // Create a vector of modes vector mode_vec; // Read a mode-number and pass to generate_mode to produce output int mode; while ( modes.good() ) { modes >> mode; eat_whitespace(modes); ostringstream ost; ost << mode; string mode_string = ost.str(); mode_vec.push_back(mode_string); generate_mode(modes, mode_string); } // Close file modes.close(); // Generate a modes.hpp file... HeaderMaker hm("Modes.hpp"); for_each(mode_vec.begin(), mode_vec.end(), hm); // Return success status return 0; } void usage(const char* name) { cerr << "\nUsage: " << name << " mode-file\n\n"; cerr << "Creates double-Beta decay mode functors from information\n"; cerr << "in a mode-file. The format of this file is as follows:\n"; cerr << "\tmode_number\n"; cerr << "\tone-dimensional-function\n"; cerr << "\ttwo-dimensional-function\n\n"; cerr << "Three energies are defined: T0, T1, and T2. T0 is passed as\n"; cerr << "a constructor argument, T1 is the first dimension and T2\n"; cerr << "is the second. A delta function is defined as:\n"; cerr << "\tint delta(double arg)\n"; cerr << "returning 1 if the argument evaluates to zero, and 0 otherwise.\n\n"; } void open_error(const char* name) { cerr << "Error opening file " << name << endl; } bool generate_mode(istream& ist, const string& mode) { // Read three more lines for the function definitions string f1, f12, f12theta; if ( ! ist.good() ) { return false; } getline(ist, f1); if ( ! ist.good() ) { return false; } getline(ist, f12); if ( ! ist.good() ) { return false; } getline(ist, f12theta); bool delta_f12 = false; bool delta_f12theta = false; // Check F12, F12Theta for deltas if ( f12.find("delta") != string::npos ) { // F12 has a delta delta_f12 = true; } if ( f12theta.find("delta") != string::npos ) { // F12Theta has a delta delta_f12theta = true; } // Open the template file ifstream tpl_file(TEMPLATE_FILE); string tpl; string tpl_line; // Read the template into a string while ( tpl_file.good() ) { getline(tpl_file, tpl_line); tpl += tpl_line + "\n"; } // Close the template file tpl_file.close(); /* * Perform the following replacements: * @N@ mode * @F1@ 1-dimensional distribution function * @F2@ 2-dimensional distribution function */ replace_all("@N@", mode, tpl); replace_all("@F1@", f1, tpl); replace_all("@F12@", f12, tpl); replace_all("@F12Theta@", f12theta, tpl); replace_all("@F12DELTA@", ( delta_f12 ) ? "true" : "false", tpl); // Open the output file string out_name = "Mode" + mode + ".hpp"; ofstream out(out_name.c_str()); out << tpl; out.close(); return true; } void replace_all(const string& pattern, const string& replacement, string& subject) { string::size_type p; while ( ( p = subject.find(pattern) ) != string::npos ) { subject.replace(p, pattern.length(), replacement); } } istream& eat_whitespace(istream& ist) { char c; while ( ist.get(c) ) { if ( ! isspace(c) ) { ist.putback(c); break; } } return ist; } HeaderMaker::HeaderMaker(const string& filename) { os = new ofstream(filename.c_str()); } HeaderMaker::~HeaderMaker() { os->close(); } void HeaderMaker::operator()(const string& mode) { *os << "#include \"Mode" << mode << ".hpp\"\n"; } Pebble-1.0.0/src/modes/mode_template.hpp0000644000175000001460000000507210666007171017441 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE@N@ #define PEBBLE_MODES_MODE@N@ #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode@N@_F1 : public Pebble::Math::Calculus::Integrand { public: Mode@N@_F1(const double& T) : T0(T) {}; virtual ~Mode@N@_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return @F1@; }; private: double T0; }; class Mode@N@_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode@N@_F12(const double& T) : T0(T) {}; virtual ~Mode@N@_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return @F12@; }; virtual bool containsDelta() { return @F12DELTA@; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode@N@_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode@N@_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode@N@_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode@N@_F12Theta() {}; virtual double operator()(const double& cos_theta) { return @F12Theta@; }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/Mode1.hpp0000644000175000001460000000536310666007171015572 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE1 #define PEBBLE_MODES_MODE1 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode1_F1 : public Pebble::Math::Calculus::Integrand { public: Mode1_F1(const double& T) : T0(T) {}; virtual ~Mode1_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return ((T1 + 511)*(T1 + 511)) * ((T0 + 511 - T1)*(T0 + 511 - T1)); }; private: double T0; }; class Mode1_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode1_F12(const double& T) : T0(T) {}; virtual ~Mode1_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * delta(T0 - T1 - T2); }; virtual bool containsDelta() { return true; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode1_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode1_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode1_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode1_F12Theta() {}; virtual double operator()(const double& cos_theta) { return ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * delta(T0 - T1 - T2) * (511 - (B1 * B2) * cos_theta); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/Mode2.hpp0000644000175000001460000000544710666007171015576 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE2 #define PEBBLE_MODES_MODE2 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode2_F1 : public Pebble::Math::Calculus::Integrand { public: Mode2_F1(const double& T) : T0(T) {}; virtual ~Mode2_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return ((T1 + 511)*(T1 + 511)) * ((T0 + 511 - T1)*(T0 + 511 - T1)) * ((T0 - 2*T1)*(T0 - 2*T1)); }; private: double T0; }; class Mode2_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode2_F12(const double& T) : T0(T) {}; virtual ~Mode2_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * delta(T0 - T1 - T2); }; virtual bool containsDelta() { return true; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode2_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode2_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode2_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode2_F12Theta() {}; virtual double operator()(const double& cos_theta) { return ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * ((T1 - T2)*(T1 - T2)) * delta(T0 - T1 - T2) * (511 + (B1 * B2) * cos_theta); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/Mode3.hpp0000644000175000001460000000564210666007171015574 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE3 #define PEBBLE_MODES_MODE3 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode3_F1 : public Pebble::Math::Calculus::Integrand { public: Mode3_F1(const double& T) : T0(T) {}; virtual ~Mode3_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))); }; private: double T0; }; class Mode3_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode3_F12(const double& T) : T0(T) {}; virtual ~Mode3_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2); }; virtual bool containsDelta() { return true; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode3_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode3_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode3_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode3_F12Theta() {}; virtual double operator()(const double& cos_theta) { return (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2) * (cos_theta * cos_theta)) - (P1 * P2 * cos_theta * ((E1 + E2)*(E1 + E2) + 4 * (E1 * E2 + 511)))) + (3 * (E1 * E2+ 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/ModeFactory.cpp0000644000175000001460000000527010666007171017031 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include #include "../math/calculus/AngularDistribution.hpp" #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../Exception.hpp" #include "ModeFactory.hpp" using namespace Pebble::Math::Calculus; std::map > Pebble::Modes::ModeFactory::modes; Pebble::Modes::ModeFactory::ModeFactory() { } Pebble::Modes::ModeFactory::~ModeFactory() { } void Pebble::Modes::ModeFactory::init() { /* * Perform any initialisation required for the ModeFactory... * At present there is none, but this function exists and should * be called by the Interface to allow future implementations * to initialise their state here! */ } void Pebble::Modes::ModeFactory::fini() { /* * Perform final cleanup of the ModeFactory... * This means deleting the Mode functions from the vector! */ for_each(modes.begin(), modes.end(), Pebble::Modes::ModeFactory::delete_elements); } void Pebble::Modes::ModeFactory::delete_elements(std::pair > elements) { delete (elements.second)[0]; delete (elements.second)[1]; delete (elements.second)[2]; } void Pebble::Modes::ModeFactory::addMode(const std::string& name, const std::vector& mode) { std::map >::const_iterator f = modes.find(name); if (f == modes.end()) { modes.insert(std::make_pair(name, mode)); } } std::vector& Pebble::Modes::ModeFactory::getMode(const std::string& name) throw(Pebble::Exception) { std::map >::iterator f = modes.find(name); if (f == modes.end()) { throw Pebble::Exception("Mode " + name + " does not exist."); } return f->second; } Integrand* Pebble::Modes::ModeFactory::getF1(const std::string& name) throw(Pebble::Exception) { std::vector mode = getMode(name); return mode[0]; } DoubleIntegrand* Pebble::Modes::ModeFactory::getF12(const std::string& name) throw(Pebble::Exception) { std::vector mode = getMode(name); return dynamic_cast(mode[1]); } AngularDistribution* Pebble::Modes::ModeFactory::getF12Theta(const std::string& name) throw(Pebble::Exception) { std::vector mode = getMode(name); return dynamic_cast(mode[2]); } Pebble-1.0.0/src/modes/Modes.hpp0000644000175000001460000000032210666007171015662 0ustar phuegaphuega#include "Mode1.hpp" #include "Mode2.hpp" #include "Mode3.hpp" #include "Mode4.hpp" #include "Mode5.hpp" #include "Mode6.hpp" #include "Mode7.hpp" #include "Mode8.hpp" #include "Mode9.hpp" #include "Mode9.hpp" Pebble-1.0.0/src/modes/Mode4.hpp0000644000175000001460000000564310666007171015576 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_MODES_MODE4 #define PEBBLE_MODES_MODE4 #include "../math/calculus/DoubleIntegrand.hpp" #include "../math/calculus/Integrand.hpp" #include "../math/calculus/AngularDistribution.hpp" #include "../math/Utility.hpp" #include namespace Pebble { namespace Modes { using Pebble::Math::Utility::delta; class Mode4_F1 : public Pebble::Math::Calculus::Integrand { public: Mode4_F1(const double& T) : T0(T) {}; virtual ~Mode4_F1() {}; virtual double operator()(const double& T1) { double E1 = T1 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double B1 = P1 / E1; double T2 = T0 - T1; double E2 = T2 + 511; double P2 = std::sqrt(T2 * (T2 + 1022)); double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * ((T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)) * ( ( T0 - T1)*(T0 - T1) + 8*(T0 - T1) + 28*511); }; private: double T0; }; class Mode4_F12 : public Pebble::Math::Calculus::DoubleIntegrand { public: Mode4_F12(const double& T) : T0(T) {}; virtual ~Mode4_F12() {}; virtual double operator()(const double& T1, const double& T2) { double E1 = T1 + 511; double E2 = T2 + 511; double P1 = std::sqrt(T1 * (T1 + 1022)); double P2 = std::sqrt(T2 * (T2 + 1022)); double B1 = P1 / E1; double B2 = P2 / E2; return (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)); }; virtual bool containsDelta() { return false; }; using Pebble::Math::Calculus::DoubleIntegrand::operator(); private: double T0; }; class Mode4_F12Theta : public Pebble::Math::Calculus::AngularDistribution { public: Mode4_F12Theta(const double& T0) : AngularDistribution(T0), T0(T0) {}; Mode4_F12Theta(const double& T0, const double& T1, const double& T2) : AngularDistribution(T0), T0(T0), T1(T1), T2(T2) { initialise(); }; virtual void setConstants(const double& T_1, const double& T_2) { T1 = T_1; T2 = T_2; initialise(); } virtual ~Mode4_F12Theta() {}; virtual double operator()(const double& cos_theta) { return (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2))*(511 - (B1*B2)*cos_theta); }; private: void initialise() { E1 = T1 + 511; E2 = T2 + 511; P1 = std::sqrt(T1 * (T1 + 1022)); P2 = std::sqrt(T2 * (T2 + 1022)); B1 = P1 / E1; B2 = P2 / E2; }; int delta(double x) { return 1; }; double T0; double T1; double T2; double E1; double E2; double P1; double P2; double B1; double B2; }; }; // namespace Modes }; // namespace Pebble #endif Pebble-1.0.0/src/modes/modelist.txt0000644000175000001460000000662210666007171016474 0ustar phuegaphuega1 ((T1 + 511)*(T1 + 511)) * ((T0 + 511 - T1)*(T0 + 511 - T1)) ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * delta(T0 - T1 - T2) ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * delta(T0 - T1 - T2) * (511 - (B1 * B2) * cos_theta) 2 ((T1 + 511)*(T1 + 511)) * ((T0 + 511 - T1)*(T0 + 511 - T1)) * ((T0 - 2*T1)*(T0 - 2*T1)) ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * delta(T0 - T1 - T2) ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * ((T1 - T2)*(T1 - T2)) * delta(T0 - T1 - T2) * (511 + (B1 * B2) * cos_theta) 3 (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))) (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2) (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2) * (cos_theta * cos_theta)) - (P1 * P2 * cos_theta * ((E1 + E2)*(E1 + E2) + 4 * (E1 * E2 + 511)))) + (3 * (E1 * E2+ 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2) 4 (T1 + 511)*(T1 + 511) * ((T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)) * ( ( T0 - T1)*(T0 - T1) + 8*(T0 - T1) + 28*511) (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)) (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2))*(511 - (B1*B2)*cos_theta) 5 (T1 + 511)*(T1 + 511) * ( ( ( T0 + 511 - T1 ) * ( T0 + 511 - T1 ) * ( T0 + 511 - T1 ) * ( T0 + 511 - T1 ) ) - 4 * (T0 + 511 - T1) + 3*511) ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * (T0 - T1 - T2) ((T1 + 511)*(T1 + 511)) * ((T2 + 511)*(T2 + 511)) * (T0 - T1 - T2) * (511 - (B1 * B2) * cos_theta) 6 (T1 + 511)*(T1 + 511) * ( (T0 - T1) * (T0 - T1) * (T0 - T1) * (T0 - T1) ) * ( (T0 - T1)*(T0 - T1) + 6 * (T0 - T1) + 15*511) (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * (T0 - T1 - T2) * (T0 - T1 - T2) * (T0 - T1 - T2) (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * ((T0 - T1 - T2) * (T0 - T1 - T2) * (T0 - T1 - T2)) * (511 - (B1 * B2) * cos_theta) 7 E1 * E2 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)) (E1 * E2 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2))) * delta(T0 - T1 - T2) (E1 * E2 * ((3 * (P1 * P1) * (P2 * P2) * (cos_theta * cos_theta)) - ((P1 * P2 * cos_theta) * (10 * (E1 * E2 + 511) + (P1 * P1) + (P2 + P2))) + (5 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)) - ((P1 * P1) * (P2 * P2))))) * delta(T0 - T1 - T2) 8 (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))) (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2)) + 9 * (E1 * E2 + 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2) (E1 * E2 * ((2 * (P1 * P1) * (P2 * P2) * (cos_theta * cos_theta)) - (P1 * P2 * cos_theta * ((E1 + E2)*(E1 + E2) + 4 * (E1 * E2 + 511)))) + (3 * (E1 * E2+ 511) * ((P1 * P1) + (P2 * P2)))) * delta(T0 - T1 - T2) 9 (T1 + 511)*(T1 + 511) * ((T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1)) * ( ( T0 - T1)*(T0 - T1)*(T0 - T1)*(T0 - T1) - 6*(T1 - 511)*(T0 - T1)*(T0 - T1)*(T0 - T1) + 11*(T1*T1 - 4*T1 + 511)*(T0 - T1)*(T0 - T1) + 110*T1*(T1 - 511)*(T0 - T1) + 495*T1*T1) (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * (T1 - T2)*(T1 - T2) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)) (T1 + 511)*(T1 + 511) * (T2 + 511)*(T2 + 511) * (T1 - T2)*(T1 - T2) * ((T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)*(T0 - T1 - T2)) * (511 + (1/3)*(B1*B2)*cos_theta) Pebble-1.0.0/src/nuclei/0000755000175000001460000000000010666007260014254 5ustar phuegaphuegaPebble-1.0.0/src/nuclei/Readme.first0000644000175000001460000000106610666007171016526 0ustar phuegaphuegaThe nuclei file structure is quite simple, but must be followed for Pebble to model individual nuclei appropriately. In a .n file, a nucleus definition file, the first five values are: spin; mass, in KeV/speed of light squared; A; Z; and child; all of which must be separated by a tab, e.g. 0.5 0.23 2 5 foo The lines following represent the possible excited states of the nucleus. The first field is a string representation of the state, and the second is the associated energy, in KeV. Again the values are separated by a tab, e.g. 0+ 4032 2+ 4059 et cetera. Pebble-1.0.0/src/particles/0000755000175000001460000000000010666007266014771 5ustar phuegaphuegaPebble-1.0.0/src/particles/NuclearState.hpp0000644000175000001460000000320010666007171020062 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_NUCLEARSTATE #define PEBBLE_PARTICLES_NUCLEARSTATE #include namespace Pebble { namespace Particles { /*! \brief A representation of an excited nuclear state. * * The NuclearState contains information for representing and * retreiving various nuclear states. The information required * by the Pebble framework is total angular momentum, j, and * energy, e. */ class NuclearState { public: /*! Constructs a NuclearState instance from a pair of values, * the first is the total angular momentum, j, and the * second is the nucleus' energy. */ NuclearState(const std::pair& p); /*! Constructs a NuclearState instance with j, and e, set. */ NuclearState(const int &J, const double& e); /*! Constructs a NuclearState instance from another * instance. */ NuclearState(const NuclearState& state); /*! Copy constructor. */ NuclearState& operator=(const NuclearState& state); /*! Equality operator. */ bool operator==(const NuclearState& state) const; /*! Inequality operator. */ bool operator!=(const NuclearState& state) const; /*! Returns total nuclear angular momentum.*/ int getJ(); /*! Returns the energy of the nuclear state.*/ double getEnergy() const; private: /*! Total angular momentum. */ int j; double energy; }; }; }; #endif Pebble-1.0.0/src/particles/ElectronNeutrino.cpp0000644000175000001460000000075110666007171020772 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "ElectronNeutrino.hpp" Pebble::Particles::ElectronNeutrino::ElectronNeutrino() : Lepton(12, 0, 0.5, 0.0) {} Pebble::Particles::ElectronNeutrino::~ElectronNeutrino() {} Pebble-1.0.0/src/particles/Lepton.cpp0000644000175000001460000000076310666007171016737 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "Lepton.hpp" Pebble::Particles::Lepton::Lepton(int pdg_id, int charge, float spin, double mass) : Particle(pdg_id, charge, spin, mass) {} Pebble::Particles::Lepton::~Lepton() {} Pebble-1.0.0/src/particles/Particle.cpp0000644000175000001460000000317610666007171017242 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "../math/FourVector.hpp" #include "Particle.hpp" Pebble::Particles::Particle::Particle() : pdg_id(0), charge(0), spin(0.0), mass(0.0), energy_momentum(0.0, 0.0, 0.0, 0.0) { } Pebble::Particles::Particle::Particle(const int pdg_id, const int charge, const double& spin, const double& mass) : pdg_id(pdg_id), charge(charge), spin(spin), mass(mass), energy_momentum(0.0, 0.0, 0.0, 0.0) { } Pebble::Particles::Particle::Particle(const int pdg_id, const int charge, const double& spin, const double& mass, const Pebble::Math::FourVector& e_m) : pdg_id(pdg_id), charge(charge), spin(spin), mass(mass), energy_momentum(e_m) {} Pebble::Particles::Particle::~Particle() {} int Pebble::Particles::Particle::getID() const { return pdg_id; } int Pebble::Particles::Particle::getCharge() const { return charge; } float Pebble::Particles::Particle::getSpin() const { return spin; } double Pebble::Particles::Particle::getMass() const { return mass; } Pebble::Math::FourVector& Pebble::Particles::Particle::getEnergyMomentum() { return energy_momentum; } void Pebble::Particles::Particle::setProperties(const int id, const int c, const double& s, const double& m, const double& e, const double& p_x, const double& p_y, const double& p_z) { pdg_id = id; charge = c; spin = s; mass = m; energy_momentum.setProperties(e, p_x, p_y, p_z); } Pebble-1.0.0/src/particles/ElectronNeutrino.hpp0000644000175000001460000000110510666007171020771 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_ELECTRONNEUTRINO #define PEBBLE_PARTICLES_ELECTRONNEUTRINO #include "Lepton.hpp" namespace Pebble { namespace Particles { class ElectronNeutrino : public Lepton { public: ElectronNeutrino(); virtual ~ElectronNeutrino(); }; }; }; #endif Pebble-1.0.0/src/particles/Lepton.hpp0000644000175000001460000000546210666007171016745 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_LEPTON #define PEBBLE_PARTICLES_LEPTON #include "Particle.hpp" namespace Pebble { namespace Particles { /*! \brief A lepton class. * * The lepton class is used to distinguish particle types in * the Pebble framework. */ class Lepton : public Particle { public: /*! Constructs a Lepton instance with an associated id, * charge, spin and mass. */ Lepton(int pdg_id, int charge, float spin, double mass); virtual ~Lepton(); }; }; }; /** * NOTE TO FUTURE MAINTAINERS * -------------------------- * * When I created the Lepton class hierarchy I wanted to do * something along the lines of: * * template * class Lepton * { * public: * Lepton() * : Particle(id, charge, spin, mass) {}; * virtual ~Lepton(); * }; * * typedef Lepton<11, -1, 0.5, 0.511> Electron; * typedef Lepton<-11, 1, 0.5, 0.511> Positron; * typedef Lepton<12, 0, 0.5, 0> ElectronNeutrino; * typedef Lepton<-12, 0, 0.5, 0> ElectronAntiNeutrino; * * Alas, the C++ standard at the time does not support float or * double template parameters (for no technical reason!) so I * opted for the derived class approach. * * Perhaps now you're reading this, such a construct is supported! * * It is possible to do something like: * * extern const double Pebble::Particles::Data::lepton_spin = 0.5; * extern const double Pebble::Particles::Data::electron_mass = 0.511; * extern const double Pebble::Particles::Data::muon_mass = 105.66; * extern const double Pebble::Particles::Data::tau_mass = 1777; * extern const double Pebble::Particles::Data::neutrino_mass = 0; * * template class Lepton; * * typedef Lepton<11, -1, lepton_spin, electron_mass> Electron; * ... * * This method has the unfortunate side effect of including extern * const values into the program in some scope; very untidy indeed! * * Yet another approach would be to use some kind of data file and * a constructor (either in Lepton itself, or in a LeptonID class) * which reads the external data file and sets the values based on * an integer id passed as a template parameter. The data for basic * particles could even be hard-coded into the constructor (BAD!) * * See the Design & Implementation document for PEBBLE for more * information. * * - Andrew J. Bennieston * */ #endif Pebble-1.0.0/src/particles/Particle.hpp0000644000175000001460000000433610666007171017246 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_PARTICLE #define PEBBLE_PARTICLES_PARTICLE #include "../math/FourVector.hpp" namespace Pebble { namespace Particles { /*! \brief The abstract base class, providing a fundamental Particle * data structure. * * The Particle abstract base class provides the framework for * Pebble to represent particles and their fundamental properties. * All particles used in the Pebble simulation have their * definitions derived from the Particle class. The id field is * used for data output purposes, and is the id of the sumulated * particle as defined by the Particle Data Group. */ class Particle { public: /*! Constructs an empty Particle instance.*/ Particle(); /*! Constructs a Particle instance with id, charge, spin, * and mass set. */ Particle(const int pdg_id, const int charge, const double& spin, const double& mass); /*! Constructs a Particle instance width id, charge, spin, * mass, and energy-momentum set. */ Particle(const int pdg_id, const int charge, const double& spin, const double& mass, const Pebble::Math::FourVector& e_m); /*! Destructor. */ virtual ~Particle(); /*! Returns the id of the particle. */ int getID() const; /*! Returns the charge of the particle. */ int getCharge() const; /*! Returns the spin of the particle. */ float getSpin() const; /*! Returns the mass of the particle. */ double getMass() const; /*! Returns the energy-momentum of the particle. */ Pebble::Math::FourVector& getEnergyMomentum(); /*! Set all of the properties associated with the particle * instance. */ void setProperties(const int id, const int c, const double& s, const double& m, const double& e, const double& p_x, const double& p_y, const double& p_z); protected: /*! id, according to the Particle Data Group standard. */ int pdg_id; int charge; float spin; double mass; Pebble::Math::FourVector energy_momentum; }; }; }; #endif Pebble-1.0.0/src/particles/ElectronAntiNeutrino.cpp0000644000175000001460000000077610666007171021615 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "ElectronAntiNeutrino.hpp" Pebble::Particles::ElectronAntiNeutrino::ElectronAntiNeutrino() : Lepton(-12, 0, 0.5, 0.0) {} Pebble::Particles::ElectronAntiNeutrino::~ElectronAntiNeutrino() {} Pebble-1.0.0/src/particles/Electron.cpp0000644000175000001460000000070510666007171017245 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "Electron.hpp" Pebble::Particles::Electron::Electron() : Lepton(11, -1, 0.5, 0.511) {} Pebble::Particles::Electron::~Electron() { } Pebble-1.0.0/src/particles/Positron.cpp0000644000175000001460000000070410666007171017306 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include "Positron.hpp" Pebble::Particles::Positron::Positron() : Lepton(-11, 1, 0.5, 0.511) {} Pebble::Particles::Positron::~Positron() {} Pebble-1.0.0/src/particles/Nucleus.cpp0000644000175000001460000000242110666007171017105 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include "Nucleus.hpp" Pebble::Particles::Nucleus::Nucleus(const float spin, const double mass, const int A, const int Z, const std::string& isotope_name, const NuclearState& nuc_state, const std::string& child_name) : Particle(0, Z, spin, mass), a(A), name(isotope_name), state(nuc_state), child(child_name) { } Pebble::Particles::Nucleus::Nucleus(const Pebble::Particles::Nucleus::Nucleus& nuc) : Particle(0, nuc.getCharge(), nuc.getSpin(), nuc.getMass()), a(nuc.getA()), name(nuc.getName()), state(nuc.getState()) {} Pebble::Particles::Nucleus::~Nucleus() {} int Pebble::Particles::Nucleus::getA() const { return a; } int Pebble::Particles::Nucleus::getZ() const { return getCharge(); } const std::string& Pebble::Particles::Nucleus::getName() const { return name; } const Pebble::Particles::NuclearState& Pebble::Particles::Nucleus::getState() const { return state; } const std::string& Pebble::Particles::Nucleus::getChild() const { return child; } Pebble-1.0.0/src/particles/ElectronAntiNeutrino.hpp0000644000175000001460000000113110666007171021604 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_ELECTRONANTINEUTRINO #define PEBBLE_PARTICLES_ELECTRONANTINEUTRINO #include "Lepton.hpp" namespace Pebble { namespace Particles { class ElectronAntiNeutrino : public Lepton { public: ElectronAntiNeutrino(); virtual ~ElectronAntiNeutrino(); }; }; }; #endif Pebble-1.0.0/src/particles/Electron.hpp0000644000175000001460000000103610666007171017250 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_ELECTRON #define PEBBLE_PARTICLES_ELECTRON #include "Lepton.hpp" namespace Pebble { namespace Particles { class Electron : public Lepton { public: Electron(); virtual ~Electron(); }; }; }; #endif Pebble-1.0.0/src/particles/Positron.hpp0000644000175000001460000000103610666007171017312 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_POSITRON #define PEBBLE_PARTICLES_POSITRON #include "Lepton.hpp" namespace Pebble { namespace Particles { class Positron : public Lepton { public: Positron(); virtual ~Positron(); }; }; }; #endif Pebble-1.0.0/src/particles/Nucleus.hpp0000644000175000001460000000336510666007171017122 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_PARTICLES_NUCLEUS #define PEBBLE_PARTICLES_NUCLEUS #include #include "NuclearState.hpp" #include "Particle.hpp" namespace Pebble { namespace Particles { /*! \brief A representation of a nucleus. * * The Nucleus class contains all of the information required toe * represent a nucleus during the Pebble simulation, i.e. spin, * mass, A, Z, name, and state. */ class Nucleus : public Particle { public: /*! Constructs a Nucleus instance with spin, mass, A, Z, * name, and state information set. */ Nucleus(const float spin, const double mass, const int A, const int Z, const std::string& isotope_name, const NuclearState& nuc_state, const std::string& child_name); /*! Constructs a Nucleus instance from another instance. */ Nucleus(const Nucleus& nuc); /*! Destructor. */ virtual ~Nucleus(); /*! Returns atomic mass. */ int getA() const; /*! Returns atomic number. */ int getZ() const; /*! Returns nuclear state. */ const NuclearState& getState() const; /*! Returns the isotope name of the nucleus, e.g. 3H, 17O. */ const std::string& getName() const; /*! Returns the isotope name of the child nucleus. */ const std::string& getChild() const; private: /*! Atomic number. */ int a; /*! Isotope name, for use with the NuclearFactory class. */ std::string name; /*! Nuclear state information. */ NuclearState state; /*! The name of the child. */ std::string child; }; }; }; #endif Pebble-1.0.0/src/particles/NuclearState.cpp0000644000175000001460000000236410666007171020067 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include "NuclearState.hpp" Pebble::Particles::NuclearState::NuclearState(const std::pair& p) { j = p.first; energy = p.second; } Pebble::Particles::NuclearState::NuclearState(const int& J, const double& e) { j = J; energy = e; } Pebble::Particles::NuclearState::NuclearState(const NuclearState& state) { j = state.j; energy = state.energy; } Pebble::Particles::NuclearState& Pebble::Particles::NuclearState::operator=(const NuclearState& state) { j = state.j; energy = state.energy; return *this; } bool Pebble::Particles::NuclearState::operator==(const NuclearState& state) const { return (j == state.j && energy == state.energy); } bool Pebble::Particles::NuclearState::operator!=(const NuclearState& state) const { return (j != state.j || energy != state.energy); } int Pebble::Particles::NuclearState::getJ() { return j; } double Pebble::Particles::NuclearState::getEnergy() const { return energy; } Pebble-1.0.0/src/particles/Particles.hpp0000644000175000001460000000032510666007171017423 0ustar phuegaphuega#include "Electron.hpp" #include "ElectronAntiNeutrino.hpp" #include "ElectronNeutrino.hpp" #include "Lepton.hpp" #include "NuclearState.hpp" #include "Nucleus.hpp" #include "Particle.hpp" #include "Positron.hpp" Pebble-1.0.0/src/plotter.cpp0000644000175000001460000000247310666007171015201 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include #include #include "math/calculus/Normaliser.hpp" #include "modes/Modes.hpp" #include "Exception.hpp" using namespace std; int main(int argc, char** argv) { try { if ( argc != 3 ) { cerr << "Usage: " << argv[0] << " energy basename" << endl; exit(1); } string energy = argv[1]; istringstream* en = new istringstream(energy); double T0; *en >> T0; delete en; Pebble::Modes::Mode9_F12Theta f(T0); f.setConstants(317.958348, 1324.947592); // Pebble::Math::Calculus::Normaliser norm_f12(3034, 0, 1750); // norm_f12.setFunction(f12); string fname = argv[2]; fname += ".tsv"; string fname2 = argv[2]; fname2 += "_norm.tsv"; ofstream out(fname.c_str()); // ofstream normout(fname2.c_str()); for(double x = -1; x <= 1; x += 0.001) { out << x << "\t" << f(x) << "\n"; //normout << x << "\t" << norm_f12(x) << "\n"; } out.close(); //normout.close(); } catch(Pebble::Exception& e) { cerr << e.what(); exit(1); } return 0; } Pebble-1.0.0/src/test/0000755000175000001460000000000010666007273013760 5ustar phuegaphuegaPebble-1.0.0/src/test/particles/0000755000175000001460000000000010666007325015744 5ustar phuegaphuegaPebble-1.0.0/src/test/particles/NuclearStateUnitTest.hpp0000644000175000001460000000056210666007172022552 0ustar phuegaphuega#ifndef PEBBLE_TEST_PARTICLES_NUCLEARSTATEUNITTEST #define PEBBLE_TEST_PARTICLES_NUCLEARSTATEUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class NuclearStateUnitTest : public UnitTest { public: virtual ~NuclearStateUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/ElectronNeutrinoUnitTest.cpp0000644000175000001460000000127510666007172023454 0ustar phuegaphuega#include "../../particles/ElectronNeutrino.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "ElectronNeutrinoUnitTest.hpp" Pebble::Test::ElectronNeutrinoUnitTest::ElectronNeutrinoUnitTest() {} Pebble::Test::ElectronNeutrinoUnitTest::~ElectronNeutrinoUnitTest() {} void Pebble::Test::ElectronNeutrinoUnitTest::runTest() throw(Pebble::Test::TestException) { Pebble::Particles::ElectronNeutrino nu_e; assertTrue( nu_e.getID() == 12 , "Testing getID()." ); assertTrue( nu_e.getCharge() == 0 , "Testing getCharge()." ); assertTrue( nu_e.getSpin() == 0.5 , "Testing getSpin()." ); assertTrue( nu_e.getMass() == 0.0 , "Testing getMass()." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/LeptonUnitTest.cpp0000644000175000001460000000120010666007172021402 0ustar phuegaphuega#include "../../particles/Lepton.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "LeptonUnitTest.hpp" Pebble::Test::LeptonUnitTest::LeptonUnitTest() {} Pebble::Test::LeptonUnitTest::~LeptonUnitTest() {} void Pebble::Test::LeptonUnitTest::runTest() throw(Pebble::Test::TestException) { Pebble::Particles::Lepton muon(13, -1, 0.5, 105); assertTrue( muon.getID() == 13 , "Testing getID()." ); assertTrue( muon.getCharge() == -1 , "Testing getCharge()." ); assertTrue( muon.getSpin() == 0.5 , "Testing getSpin()." ); assertTrue( muon.getMass() == 105 , "Testing getMass()." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/ParticleUnitTest.cpp0000644000175000001460000000142210666007172021712 0ustar phuegaphuega#include "../../particles/Particle.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "ParticleUnitTest.hpp" using namespace Pebble::Particles; Pebble::Test::ParticleUnitTest::ParticleUnitTest() {} Pebble::Test::ParticleUnitTest::~ParticleUnitTest() {} void Pebble::Test::ParticleUnitTest::runTest() throw ( Pebble::Test::TestException ) { // Test construction implicitly... Particle antiproton(-2212, -1, 0.5, 938.27); assertTrue( antiproton.getID() == -2212 , "Testing getID()." ); assertTrue( antiproton.getCharge() == -1 , "Testing getCharge()." ); assertTrue( antiproton.getSpin() == 0.5 , "Testing getSpin()." ); assertTrue( antiproton.getMass() == 938.27 , "Testing getMass()."); // Test destruction implicitly! UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/ElectronNeutrinoUnitTest.hpp0000644000175000001460000000061510666007172023456 0ustar phuegaphuega#ifndef PEBBLE_TEST_ELECTRONNEUTRINOUNITTEST #define PEBBLE_TEST_ELECTRONNEUTRINOUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class ElectronNeutrinoUnitTest : public UnitTest { public: ElectronNeutrinoUnitTest(); virtual ~ElectronNeutrinoUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/LeptonUnitTest.hpp0000644000175000001460000000056110666007172021420 0ustar phuegaphuega#ifndef PEBBLE_TEST_PARTICLES_LEPTONUNITTEST #define PEBBLE_TEST_PARTICLES_LEPTONUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class LeptonUnitTest : public UnitTest { public: LeptonUnitTest(); virtual ~LeptonUnitTest(); virtual void runTest() throw (Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/ParticleUnitTest.hpp0000644000175000001460000000057510666007172021727 0ustar phuegaphuega#ifndef PEBBLE_TEST_PARTICLES_PARTICLEUNITTEST #define PEBBLE_TEST_PARTICLES_PARTICLEUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class ParticleUnitTest : public UnitTest { public: ParticleUnitTest(); virtual ~ParticleUnitTest(); virtual void runTest() throw (Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/ElectronUnitTest.cpp0000644000175000001460000000116310666007172021724 0ustar phuegaphuega#include "../../particles/Electron.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "ElectronUnitTest.hpp" Pebble::Test::ElectronUnitTest::ElectronUnitTest() {} Pebble::Test::ElectronUnitTest::~ElectronUnitTest() {} void Pebble::Test::ElectronUnitTest::runTest() throw( Pebble::Test::TestException ) { Pebble::Particles::Electron e; assertTrue( e.getID() == 11 , "Testing getID()." ); assertTrue( e.getCharge() == -1 , "Testing getCharge()." ); assertTrue( e.getSpin() == 0.5 , "Testing getSpin()." ); assertTrue( e.getMass() == 0.511 , "Testing getMass()." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/ElectronAntiNeutrinoUnitTest.cpp0000644000175000001460000000136410666007172024267 0ustar phuegaphuega#include "../../particles/ElectronAntiNeutrino.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "ElectronAntiNeutrinoUnitTest.hpp" Pebble::Test::ElectronAntiNeutrinoUnitTest::ElectronAntiNeutrinoUnitTest() {} Pebble::Test::ElectronAntiNeutrinoUnitTest::~ElectronAntiNeutrinoUnitTest() { } void Pebble::Test::ElectronAntiNeutrinoUnitTest::runTest() throw(Pebble::Test::TestException) { Pebble::Particles::ElectronAntiNeutrino nu_e_bar; assertTrue( nu_e_bar.getID() == -12 , "Testing getID()." ); assertTrue( nu_e_bar.getCharge() == 0 , "Testing getCharge()." ); assertTrue( nu_e_bar.getSpin() == 0.5 , "Testing getSpin()." ); assertTrue( nu_e_bar.getMass() == 0.0 , "Testing getMass()." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/PositronUnitTest.cpp0000644000175000001460000000116110666007172021764 0ustar phuegaphuega#include "../../particles/Positron.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "PositronUnitTest.hpp" Pebble::Test::PositronUnitTest::PositronUnitTest() {} Pebble::Test::PositronUnitTest::~PositronUnitTest() {} void Pebble::Test::PositronUnitTest::runTest() throw(Pebble::Test::TestException) { Pebble::Particles::Positron p; assertTrue( p.getID() == -11 , "Testing getID()." ); assertTrue( p.getCharge() == 1 , "Testing getCharge()." ); assertTrue( p.getSpin() == 0.5 , "Testing getSpin()." ); assertTrue( p.getMass() == 0.511 , "Testing getMass()." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/NucleusUnitTest.cpp0000644000175000001460000000211610666007172021566 0ustar phuegaphuega#include "../../particles/NuclearState.hpp" #include "../../particles/Nucleus.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "NucleusUnitTest.hpp" Pebble::Test::NucleusUnitTest::NucleusUnitTest() {} Pebble::Test::NucleusUnitTest::~NucleusUnitTest() {} void Pebble::Test::NucleusUnitTest::runTest() throw(Pebble::Test::TestException) { Pebble::Particles::NuclearState state(2, 435); Pebble::Particles::Nucleus nuc(0, 1024, 16, 8, "O16(2+)", state); assertTrue( nuc.getID() == 0 , "Testing getID()." ); assertTrue( nuc.getCharge() == 8 , "Testing getCharge()." ); assertTrue( nuc.getSpin() == 0 , "Testing getSpin()." ); assertTrue( nuc.getMass() == 1024 , "Testing getMass()." ); assertTrue( nuc.getA() == 16 , "Testing getA()." ); assertTrue( nuc.getZ() == 8 , "Testing getZ()." ); assertTrue( nuc.getZ() == nuc.getCharge() , "Testing getZ() and getCharge() equality." ); assertTrue( nuc.getName() == "O16(2+)" , "Testing getName()." ); assertTrue( nuc.getState() == state , "Testing getState() returns the original state." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/particles/ElectronUnitTest.hpp0000644000175000001460000000057210666007172021734 0ustar phuegaphuega#ifndef PEBBLE_TEST_PARTICLES_ELECTRONUNITTEST #define PEBBLE_TEST_PARTICLES_ELECTRONUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class ElectronUnitTest : public UnitTest { public: ElectronUnitTest(); virtual ~ElectronUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/ElectronAntiNeutrinoUnitTest.hpp0000644000175000001460000000066410666007172024276 0ustar phuegaphuega#ifndef PEBBLE_TEST_PARTICLES_ELECTRONANTINEUTRINOUNITTEST #define PEBBLE_TEST_PARTICLES_ELECTRONANTINEUTRINOUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class ElectronAntiNeutrinoUnitTest : public UnitTest { public: ElectronAntiNeutrinoUnitTest(); virtual ~ElectronAntiNeutrinoUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/PositronUnitTest.hpp0000644000175000001460000000055310666007172021775 0ustar phuegaphuega#ifndef PEBBLE_TEST_PARTICLES_POSITRON #define PEBBLE_TEST_PARTICLES_POSITRON #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class PositronUnitTest : public UnitTest { public: PositronUnitTest(); virtual ~PositronUnitTest(); virtual void runTest() throw (Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/NucleusUnitTest.hpp0000644000175000001460000000053710666007172021600 0ustar phuegaphuega#ifndef PEBBLE_TEST_NUCLEUSUNITTEST #define PEBBLE_TEST_NUCLEUSUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class NucleusUnitTest : public UnitTest { public: NucleusUnitTest(); virtual ~NucleusUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/particles/NuclearStateUnitTest.cpp0000644000175000001460000000276610666007172022555 0ustar phuegaphuega#include #include #include "../../particles/NuclearState.hpp" #include "../../Exception.hpp" #include "NuclearStateUnitTest.hpp" using namespace Pebble::Particles; Pebble::Test::NuclearStateUnitTest::~NuclearStateUnitTest() {} void Pebble::Test::NuclearStateUnitTest::runTest() throw (Pebble::Test::TestException) { try { // Test construction from std::pair std::pair p; p.first = 1; p.second = 16.43; NuclearState *s = new NuclearState(p); assertTrue((s->getJ() == 1 && s->getEnergy() == 16.43), "Testing NuclearState construction from std::pair."); delete s; // Test construction from const int&, const double& s = new NuclearState(1, 16.43); assertTrue((s->getJ() == 1 && s->getEnergy() == 16.43), "Testing NuclearState construction from const int&, const double&."); // Test construction from const NuclearState& NuclearState *t = new NuclearState(*s); assertTrue((t->getJ() == 1 && t->getEnergy() == 16.43), "Testing NuclearState construction from const NuclearState&."); delete s, t; // Test assignment operator s = new NuclearState(4, 13.1); t = new NuclearState(2, 12.3); t = s; assertTrue((t->getJ() == 4 && t->getEnergy() == 13.1), "Testing assignment operator."); // Test equality operators assertTrue(s == t, "Testing equality operator."); assertTrue(! (s != t), "Testing inequality operator."); delete s, t; } catch(Pebble::Exception& e) { std::cerr << e.what() << std::endl; } ++num_test_success; } Pebble-1.0.0/src/test/modes/0000755000175000001460000000000010666007315015064 5ustar phuegaphuegaPebble-1.0.0/src/test/modes/ModeFactoryUnitTest.hpp0000644000175000001460000000167110666007172021517 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_TEST_MODES_MODEFACTORYUNITTEST #define PEBBLE_TEST_MODES_MODEFACTORYUNITTEST #include "../../math/calculus/AngularDistribution.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class MFSampleAngularDistribution : public Pebble::Math::Calculus::AngularDistribution { public: MFSampleAngularDistribution(); virtual ~MFSampleAngularDistribution(); virtual double operator()(const double& cos_theta); }; class ModeFactoryUnitTest : public UnitTest { public: virtual ~ModeFactoryUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/modes/ModeFactoryUnitTest.cpp0000644000175000001460000000377410666007172021520 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include "../../math/calculus/AngularDistribution.hpp" #include "../../math/calculus/DoubleIntegrand.hpp" #include "../../math/calculus/Integrand.hpp" #include "../../modes/ModeFactory.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "ModeFactoryUnitTest.hpp" using namespace Pebble::Math::Calculus; Pebble::Test::MFSampleAngularDistribution::MFSampleAngularDistribution() : AngularDistribution(3048.0, 1022.0, 2016.0) { } Pebble::Test::MFSampleAngularDistribution::~MFSampleAngularDistribution() { } double Pebble::Test::MFSampleAngularDistribution::operator()(const double& cos_theta) { return cos_theta * cos_theta; } Pebble::Test::ModeFactoryUnitTest::~ModeFactoryUnitTest() { } void Pebble::Test::ModeFactoryUnitTest::runTest() throw(Pebble::Test::TestException) { std::vector mode; // Populate mode Integrand* f1; mode.push_back(f1); DoubleIntegrand* f12; mode.push_back(f12); MFSampleAngularDistribution* f12theta; mode.push_back(f12theta); // Testing addMode and getMode Pebble::Modes::ModeFactory::addMode("test", mode); std::vector test = Pebble::Modes::ModeFactory::getMode("test"); assertTrue(test == mode, "Testing addMode(...) and getMode(...)"); Integrand* test_f1 = Pebble::Modes::ModeFactory::getF1("test"); assertTrue(test_f1 == f1, "Testing getF1(...)"); DoubleIntegrand* test_f12 = Pebble::Modes::ModeFactory::getF12("test"); assertTrue(test_f12 = f12, "Testing getF12(...)"); MFSampleAngularDistribution* test_f12theta = (MFSampleAngularDistribution*)Pebble::Modes::ModeFactory::getF12Theta("test"); assertTrue(test_f12theta == f12theta, "Testing getF12Theta(...)"); Pebble::Test::UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/0000755000175000001460000000000010666007276014714 5ustar phuegaphuegaPebble-1.0.0/src/test/math/random/0000755000175000001460000000000010666007306016166 5ustar phuegaphuegaPebble-1.0.0/src/test/math/random/MersenneTwisterUnitTest.cpp0000644000175000001460000000217310666007173023535 0ustar phuegaphuega#include "../../../math/random/MersenneTwister.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "MersenneTwisterUnitTest.hpp" Pebble::Test::MersenneTwisterUnitTest::~MersenneTwisterUnitTest() {} void Pebble::Test::MersenneTwisterUnitTest::runTest() throw ( Pebble::Test::TestException ) { Pebble::Math::Random::MersenneTwister mt; mt.seed(14285UL); unsigned long l1 = mt.getLong(); assertTrue( l1 <= mt.getMax() , "Testing getLong()." ); long l2 = mt.getLong(20, 500); assertTrue( l2 >= 20 && l2 <= 500 , "Testing getLong(min, max)." ); double d1 = mt.getDouble(); assertTrue( d1 >= 0 && d1 <= 1 , "Testing getDouble()."); unsigned long seed_array[624]; for ( int i = 0 ; i < 624 ; ++i ) { seed_array[i] = i * 1280 - 576; } mt.seed(seed_array, 624); l1 = mt.getLong(); assertTrue( l1 <= mt.getMax() , "Testing getLong() with array seed." ); l2 = mt.getLong(20, 500); assertTrue( l2 >= 20 && l2 <= 500 , "Testing getLong(min, max) with array seed." ); d1 = mt.getDouble(); assertTrue( d1 >= 0 && d1 <= 1 , "Testing getDouble() with array seed."); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/random/STDRandomUnitTest.hpp0000644000175000001460000000066210666007173022200 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_RANDOM_STDRANDOMUNITTEST #define PEBBLE_TEST_MATH_RANDOM_STDRANDOMUNITTEST #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class STDRandomUnitTest : public UnitTest { public: virtual ~STDRandomUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; // class STDRandomUnitTest }; // namespace Test }; // namespace Pebble #endif Pebble-1.0.0/src/test/math/random/QRandomUnitTest.cpp0000644000175000001460000000147010666007173021737 0ustar phuegaphuega#include #include "../../../math/random/QRandom.hpp" #include "../../../Exception.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "QRandomUnitTest.hpp" Pebble::Test::QRandomUnitTest::~QRandomUnitTest() { } void Pebble::Test::QRandomUnitTest::runTest() throw(Pebble::Test::TestException) { try { Pebble::Math::Random::QRandom dirac("ajb_pebble", "pebble"); unsigned long l1 = dirac.getLong(); assertTrue( l1 <= dirac.getMax() , "Testing getLong()."); long l2 = dirac.getLong(5432, 5678); assertTrue( l2 >= 5432 && l2 <= 5678 , "Testing getLong(min,max)."); double d1 = dirac.getDouble(); assertTrue(d1 >= 0 && d1 <= 1 , "Testing getDouble()."); } catch(Pebble::Exception& e) { throw Pebble::Test::TestException(e.what()); } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/random/MersenneTwisterUnitTest.hpp0000644000175000001460000000072610666007173023544 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_RANDOM_MERSENNETWISTERUNITTEST #define PEBBLE_TEST_MATH_RANDOM_MERSENNETWISTERUNITTEST #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class MersenneTwisterUnitTest : public UnitTest { public: virtual ~MersenneTwisterUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; // class MersenneTwisterRandomUnitTest }; // namespace Test }; // namespace Pebble #endif Pebble-1.0.0/src/test/math/random/POSIXRandomUnitTest.cpp0000644000175000001460000000174710666007173022450 0ustar phuegaphuega#include "../../../math/random/POSIXRandom.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "POSIXRandomUnitTest.hpp" #include Pebble::Test::POSIXRandomUnitTest::~POSIXRandomUnitTest() {} void Pebble::Test::POSIXRandomUnitTest::runTest() throw ( Pebble::Test::TestException ) { Pebble::Math::Random::POSIXRandom r; double d1 = r.getDouble(); assertTrue( d1 >= 0 && d1 <= 1 , "Testing getDouble()."); long l1 = r.getLong(); assertTrue( l1 >= 0 && l1 <= r.getMax() , "Testing getLong()."); long l2 = r.getLong(1,3); assertTrue( l2 >= 1 && l2 <= 3 , "Testing getLong(min, max)."); r.seed(512); long l3 = r.getLong(); long l4 = r.getLong(); long l5 = r.getLong(); assertTrue( l3 == 3229 , "Testing deterministic output when seeded with 512."); assertTrue( l4 == 6416 , "Testing deterministic output when seeded with 512."); assertTrue( l5 == 8829 , "Testing deterministic output when seeded with 512."); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/random/URandomUnitTest.cpp0000644000175000001460000000136210666007173021743 0ustar phuegaphuega#include "../../../math/random/URandom.hpp" #include "../../../Exception.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "URandomUnitTest.hpp" Pebble::Test::URandomUnitTest::~URandomUnitTest() {} void Pebble::Test::URandomUnitTest::runTest() throw(Pebble::Test::TestException) { try { Pebble::Math::Random::URandom ur; unsigned long l1 = ur.getLong(); assertTrue( l1 <= ur.getMax() , "Testing getLong()."); long l2 = ur.getLong(1280, 1560); assertTrue( l2 >= 1280 && l2 <= 1560 , "Testing getLong(min,max)."); double d1 = ur.getDouble(); assertTrue( d1 >= 0 && d1 <= 1 , "Testing getDouble()."); } catch(Pebble::Exception& e) { assertTrue( false, e.what() ); } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/random/QRandomUnitTest.hpp0000644000175000001460000000061710666007173021746 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_RANDOM_QRANDOMUNITTEST #define PEBBLE_TEST_MATH_RANDOM_QRANDOMUNITTEST #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class QRandomUnitTest : public UnitTest { public: virtual ~QRandomUnitTest(); virtual void runTest() throw (Pebble::Test::TestException); }; }; // namespace Test }; // namespace Pebble #endif Pebble-1.0.0/src/test/math/random/POSIXRandomUnitTest.hpp0000644000175000001460000000067410666007173022453 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_RANDOM_POSIXRANDOMUNITTEST #define PEBBLE_TEST_MATH_RANDOM_POSIXRANDOMUNITTEST #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class POSIXRandomUnitTest : public UnitTest { public: virtual ~POSIXRandomUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; // class POSIXRandomUnitTest }; // namespace Test }; // namespace Pebble #endif Pebble-1.0.0/src/test/math/random/URandomUnitTest.hpp0000644000175000001460000000061710666007173021752 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_RANDOM_URANDOMUNITTEST #define PEBBLE_TEST_MATH_RANDOM_URANDOMUNITTEST #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class URandomUnitTest : public UnitTest { public: virtual ~URandomUnitTest(); virtual void runTest() throw (Pebble::Test::TestException); }; }; // namespace Test }; // namespace Pebble #endif Pebble-1.0.0/src/test/math/random/STDRandomUnitTest.cpp0000644000175000001460000000136310666007173022172 0ustar phuegaphuega#include "../../../math/random/STDRandom.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "STDRandomUnitTest.hpp" Pebble::Test::STDRandomUnitTest::~STDRandomUnitTest() {} void Pebble::Test::STDRandomUnitTest::runTest() throw ( Pebble::Test::TestException ) { Pebble::Math::Random::STDRandom r; double d1 = r.getDouble(); assertTrue( d1 >= 0 && d1 <= 1 , "Testing getDouble()."); long l1 = r.getLong(); assertTrue( l1 >= 0 && l1 <= r.getMax() , "Testing getLong()."); long l2 = r.getLong(1,3); assertTrue( l2 >= 1 && l2 <= 3 , "Testing getLong(min, max)."); long seed = 512; r.seed(512); long l3 = r.getLong(); assertTrue( l3 >= 0 && l3 <= r.getMax() , "Testing seed()."); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/calculus/0000755000175000001460000000000010666007301016514 5ustar phuegaphuegaPebble-1.0.0/src/test/math/calculus/GaussIntegratorUnitTest.cpp0000644000175000001460000000242010666007174024047 0ustar phuegaphuega#include #include "../../../math/calculus/GaussIntegrator.hpp" #include "../../../math/calculus/Integrand.hpp" #include "../../../Exception.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "GaussIntegratorUnitTest.hpp" double Pebble::Test::GISampleIntegrand::operator()(const double& x) { return x * x * x; } Pebble::Test::GISampleIntegrand::~GISampleIntegrand() {} Pebble::Test::GaussIntegratorUnitTest::~GaussIntegratorUnitTest() {} void Pebble::Test::GaussIntegratorUnitTest::runTest() throw(TestException) { GISampleIntegrand sample; try { // Test default constructor logic Pebble::Math::Calculus::GaussIntegrator integrator; double result = integrator.integrateFunction(sample, 0, 2); /* * With 100000 points the GaussIntegrator still has some * inaccuracy and therefore this test imposes a fixed range * rather than a direct equality test. */ assertTrue((result > 3.95 && result < 4.05) , "Testing GaussIntegrator.integrateFunction."); integrator.setFunction(sample); result = integrator.integrate(0, 2); assertTrue( (result > 3.95 && result < 4.05) , "Testing setFunction() and integrate()."); } catch(Pebble::Exception& e) { std::cerr << e.what() << std::endl; } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/calculus/RombergIntegratorUnitTest.hpp0000644000175000001460000000122310666007174024367 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_CALCULUS_ROMBERGINTEGRATORUNITTEST #define PEBBLE_TEST_MATH_CALCULUS_ROMBERGINTEGRATORUNITTEST #include "../../../math/calculus/Integrand.hpp" #include "../../../math/calculus/RombergIntegrator.hpp" #include "../../TestException.hpp" #include "../../TestException.hpp" namespace Pebble { namespace Test { class RISampleIntegrand : public Pebble::Math::Calculus::Integrand { public: virtual double operator()(const double& x); virtual ~RISampleIntegrand(); }; class RombergIntegratorUnitTest : public UnitTest { public: virtual ~RombergIntegratorUnitTest(); virtual void runTest() throw(TestException); }; }; }; #endif Pebble-1.0.0/src/test/math/calculus/DoubleIntegrandUnitTest.cpp0000644000175000001460000000171510666007174024002 0ustar phuegaphuega#include #include "../../../math/calculus/DoubleIntegrand.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "DoubleIntegrandUnitTest.hpp" Pebble::Test::DISampleIntegrand::DISampleIntegrand() { } Pebble::Test::DISampleIntegrand::~DISampleIntegrand() { } double Pebble::Test::DISampleIntegrand::operator()(const double& x, const double& y) { return (3 * x + 4 * y * y); } Pebble::Test::DoubleIntegrandUnitTest::~DoubleIntegrandUnitTest() { } void Pebble::Test::DoubleIntegrandUnitTest::runTest() throw(Pebble::Test::TestException) { try { Pebble::Test::DISampleIntegrand i; // Test binary operator() assertTrue(i(3.0, 2.0) == 25.0, "Testing binary operator()."); // Test setConstant() and unary operator() i.setConstant(2.0); assertTrue(i(2.0) == 22.0, "Testing setConstant() and unary operator()."); } catch(Pebble::Exception& e) { std::cerr << e.what() << std::endl; } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/calculus/GaussIntegratorUnitTest.hpp0000644000175000001460000000120410666007174024053 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_CALCULUS_GAUSSINTEGRATORUNITTEST #define PEBBLE_TEST_MATH_CALCULUS_GAUSSINTEGRATORUNITTEST #include "../../../math/calculus/GaussIntegrator.hpp" #include "../../../math/calculus/Integrand.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class GISampleIntegrand : public Pebble::Math::Calculus::Integrand { public: virtual double operator()(const double& x); virtual ~GISampleIntegrand(); }; class GaussIntegratorUnitTest : public UnitTest { public: virtual ~GaussIntegratorUnitTest(); virtual void runTest() throw(TestException); }; }; }; #endif Pebble-1.0.0/src/test/math/calculus/DoubleIntegrandUnitTest.hpp0000644000175000001460000000131110666007174023777 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_CALCULUS_DOUBLEINTEGRANDUNITTEST #define PEBBLE_TEST_MATH_CALCULUS_DOUBLEINTEGRANDUNITTEST #include "../../../math/calculus/DoubleIntegrand.hpp" #include "../../../Exception.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" namespace Pebble { namespace Test { class DISampleIntegrand : public Pebble::Math::Calculus::DoubleIntegrand { public: DISampleIntegrand(); virtual ~DISampleIntegrand(); using DoubleIntegrand::operator(); virtual double operator()(const double& x, const double& y); }; class DoubleIntegrandUnitTest : public UnitTest { public: virtual ~DoubleIntegrandUnitTest(); virtual void runTest() throw(TestException); }; }; }; #endif Pebble-1.0.0/src/test/math/calculus/RombergIntegratorUnitTest.cpp0000644000175000001460000000223710666007174024370 0ustar phuegaphuega#include #include "../../../math/calculus/Integrand.hpp" #include "../../../math/calculus/RombergIntegrator.hpp" #include "../../../Exception.hpp" #include "../../TestException.hpp" #include "../../UnitTest.hpp" #include "RombergIntegratorUnitTest.hpp" double Pebble::Test::RISampleIntegrand::operator()(const double& x) { return x * x; } Pebble::Test::RISampleIntegrand::~RISampleIntegrand() {} Pebble::Test::RombergIntegratorUnitTest::~RombergIntegratorUnitTest() {} void Pebble::Test::RombergIntegratorUnitTest::runTest() throw(Pebble::Test::TestException) { RISampleIntegrand sample; try { // Test default constructor logic Pebble::Math::Calculus::RombergIntegrator integrator; // Test integration assertTrue(integrator.integrateFunction(sample, 0, 3) == 9, "Testing integrateFunction()."); assertTrue(integrator.getCount() > 0, "Testing getCount()."); Pebble::Math::Calculus::RombergIntegrator integrator2; integrator2.setFunction(sample); assertTrue(integrator2.integrate(0, 3) == 9 , "Testing setFunction() and integrate()." ); } catch(Pebble::Exception& e) { std::cerr << e.what() << std::endl; } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/FourVectorUnitTest.cpp0000644000175000001460000000574110666007174021222 0ustar phuegaphuega#include #include #include "../../math/FourVector.hpp" #include "../TestException.hpp" #include "../UnitTest.hpp" #include "FourVectorUnitTest.hpp" using namespace Pebble::Test; Pebble::Test::FourVectorUnitTest::~FourVectorUnitTest() {} void Pebble::Test::FourVectorUnitTest::runTest() throw ( Pebble::Test::TestException ) { /* * The assertions for the construction tests * also test operator[] for reading */ // Test default construction Pebble::Math::FourVector f1; assertTrue( f1[0] == 0 , "Testing default construction."); assertTrue( f1[1] == 0 , "Testing default construction."); assertTrue( f1[2] == 0 , "Testing default construction."); assertTrue( f1[3] == 0 , "Testing default construction."); // Test construction from doubles Pebble::Math::FourVector f2(2.0, 4.0, 6.0, 8.0); assertTrue( f2[0] == 2.0 , "Testing construction from double values." ); assertTrue( f2[1] == 4.0 , "Testing construction from double values." ); assertTrue( f2[2] == 6.0 , "Testing construction from double values." ); assertTrue( f2[3] == 8.0 , "Testing construction from double values." ); // Test copy-construction Pebble::Math::FourVector f3(f2); assertTrue( f3[0] == 2.0 , "Testing copy-construction." ); assertTrue( f3[1] == 4.0 , "Testing copy-construction." ); assertTrue( f3[2] == 6.0 , "Testing copy-construction." ); assertTrue( f3[3] == 8.0 , "Testing copy-construction." ); // Test construction from an std::vector ::std::vector dvec; dvec.push_back(1.0); dvec.push_back(2.0); dvec.push_back(3.0); dvec.push_back(4.0); Pebble::Math::FourVector f4(dvec); assertTrue( f4[0] == 1.0 , "Testing construction from a vector." ); assertTrue( f4[1] == 2.0 , "Testing construction from a vector." ); assertTrue( f4[2] == 3.0 , "Testing construction from a vector." ); assertTrue( f4[3] == 4.0 , "Testing construction from a vector." ); // Test assignment through operator[] f4[2] = 10.5; assertTrue( f4[2] == 10.5 , "Testing assignment using []." ); // Test scalar multiplication Pebble::Math::FourVector f5 = f2 * 2.0; assertTrue( f5[0] == 4.0 , "Testing scalar multiplication." ); assertTrue( f5[1] == 8.0 , "Testing scalar multiplication." ); assertTrue( f5[2] == 12.0 , "Testing scalar multiplication." ); assertTrue( f5[3] == 16.0 , "Testing scalar multiplication." ); // Test scalar multiplication with assignment f2 *= 0.5; assertTrue( f2[0] == 1.0 , "Testing scalar multiplication with assignment." ); assertTrue( f2[1] == 2.0 , "Testing scalar multiplication with assignment." ); assertTrue( f2[2] == 3.0 , "Testing scalar multiplication with assignment." ); assertTrue( f2[3] == 4.0 , "Testing scalar multiplication with assignment." ); double product = f2 * f3; assertTrue( product == 56 , "Testing scalar product of two FourVectors." ); ::std::ostringstream ost; ost << f1; ::std::string ostr = ost.str(); assertTrue( ostr == "( 0, 0, 0, 0 )" , "Testing output operator." ); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/FourVectorUnitTest.hpp0000644000175000001460000000064310666007174021223 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_FOURVECTORUNITTEST #define PEBBLE_TEST_MATH_FOURVECTORUNITTEST #include "../TestException.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class FourVectorUnitTest : public UnitTest { public: virtual ~FourVectorUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; // class FourVectorUnitTest }; // namespace Test }; // namespace Pebble #endif Pebble-1.0.0/src/test/math/UtilityUnitTest.cpp0000644000175000001460000000164110666007174020562 0ustar phuegaphuega#include #include #include "../../math/calculus/Integrand.hpp" #include "../../math/Utility.hpp" #include "../../Exception.hpp" #include "../UnitTest.hpp" #include "UtilityUnitTest.hpp" Pebble::Test::USampleIntegrand::USampleIntegrand() { } Pebble::Test::USampleIntegrand::~USampleIntegrand() { } double Pebble::Test::USampleIntegrand::operator()(const double& x) { return x * x + 5 * x; } Pebble::Test::UtilityUnitTest::~UtilityUnitTest() { } void Pebble::Test::UtilityUnitTest::runTest() throw(Pebble::Test::TestException) { try { Pebble::Test::USampleIntegrand i; // Test delta function assertTrue(Pebble::Math::Utility::delta(0) == 1, "Testing delta(...)."); Pebble::Math::Utility::Minimiser m(i); assertTrue( m.getMinimum(-4, -2.5, 0) == -2.5, "Testing getMinimum(...)."); } catch(Pebble::Exception& e) { std::cerr << e.what() << std::endl; } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/math/UtilityUnitTest.hpp0000644000175000001460000000106410666007174020566 0ustar phuegaphuega#ifndef PEBBLE_TEST_MATH_UTILITYUNITTEST #define PEBBLE_TEST_MATH_UTILITYUNITTEST #include "../../math/calculus/Integrand.hpp" #include "../../Exception.hpp" #include "../UnitTest.hpp" namespace Pebble { namespace Test { class USampleIntegrand : public Pebble::Math::Calculus::Integrand { public: USampleIntegrand(); virtual ~USampleIntegrand(); virtual double operator()(const double& x); }; class UtilityUnitTest : public UnitTest { public: virtual ~UtilityUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/TestException.cpp0000644000175000001460000000070210666007174017261 0ustar phuegaphuega#include #include #include "TestException.hpp" Pebble::Test::TestException::TestException(const std::string& message) : msg(message) { } Pebble::Test::TestException::TestException(const char* message) : msg(message) { } Pebble::Test::TestException::TestException() : msg("Unspecified exception.") { } Pebble::Test::TestException::~TestException() { } const std::string& Pebble::Test::TestException::what() { return msg; } Pebble-1.0.0/src/test/UnitTest.cpp0000644000175000001460000000074110666007174016245 0ustar phuegaphuega#include #include #include #include "TestException.hpp" #include "UnitTest.hpp" int Pebble::Test::UnitTest::num_test_success = 0; Pebble::Test::UnitTest::~UnitTest() {} void Pebble::Test::UnitTest::assertTrue(bool condition,std::string message) throw (Pebble::Test::TestException) { if ( ! condition ) { throw Pebble::Test::TestException(message); } } int Pebble::Test::UnitTest::getSuccessNumber() { return UnitTest::num_test_success; } Pebble-1.0.0/src/test/EventUnitTest.cpp0000644000175000001460000000361310666007174017250 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include "../particles/Electron.hpp" #include "../particles/Particle.hpp" #include "../Event.hpp" #include "EventUnitTest.hpp" #include "TestException.hpp" #include "UnitTest.hpp" Pebble::Test::EventUnitTest::~EventUnitTest() { } void Pebble::Test::EventUnitTest::runTest() throw(Pebble::Test::TestException) { // Test default construction Pebble::Event event("Mode1"); assertTrue(event.getNumParticles() == 0, "Testing default construction."); assertTrue(event.getDecayMode() == "Mode1" , "Testing getDecayMode()."); // Test addParticle(); Pebble::Particles::Electron e; event.addParticle(e); assertTrue(event.getNumParticles() == 1, "Testing addParticle()."); // Test construction from vector std::vector v; v.push_back(e); Event event1(v, "Mode1"); assertTrue(event1.getNumParticles() == v.size(), "Testing construction from vector."); // Test construction from event Event event2(event); assertTrue(event2.getNumParticles() == 1, "Testing construction from event."); assertTrue(event1.good(), "Testing good()."); assertTrue(event1.bad() == false , "Testing bad()."); assertTrue(event1.eof() == false, "Testing eof()."); assertTrue(event1.fail() == false, "Testing fail()."); assertTrue(event1.next().getID() == 11, "Testing next()."); // Test operator<< and operator>> Event event3("Mode1"); event3 << e; Pebble::Particles::Electron my_electron; event3 >> my_electron; assertTrue(my_electron.getMass() == e.getMass(), "Testing operator<< and operator>> return the correct thing!"); UnitTest::num_test_success++; } Pebble-1.0.0/src/test/TestException.hpp0000644000175000001460000000057110666007174017272 0ustar phuegaphuega#ifndef PEBBLE_TEST_TESTEXCEPTION #define PEBBLE_TEST_TESTEXCEPTION #include namespace Pebble { namespace Test { class TestException { public: TestException(); TestException(const std::string& message); TestException(const char* message); virtual ~TestException(); virtual const std::string& what(); private: const std::string msg; }; }; }; #endif Pebble-1.0.0/src/test/UnitTest.hpp0000644000175000001460000000072310666007174016252 0ustar phuegaphuega#ifndef PEBBLE_TEST_UNITTEST #define PEBBLE_TEST_UNITTEST #include #include #include "TestException.hpp" namespace Pebble { namespace Test { class UnitTest { public: virtual ~UnitTest(); virtual void runTest() throw (Pebble::Test::TestException) = 0; static int getSuccessNumber(); protected: void assertTrue(bool condition, std::string message) throw (Pebble::Test::TestException); static int num_test_success; }; }; }; #endif Pebble-1.0.0/src/test/EventUnitTest.hpp0000644000175000001460000000112410666007174017250 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_TEST_EVENTUNITTEST #define PEBBLE_TEST_EVENTUNITTEST #include "UnitTest.hpp" namespace Pebble { namespace Test { class EventUnitTest : public UnitTest { public: virtual ~EventUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/EventGeneratorUnitTest.cpp0000644000175000001460000000233210666007174021114 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include "../EventGenerator.hpp" #include "../modes/Modes.hpp" #include "EventGeneratorUnitTest.hpp" #include "TestException.hpp" #include "UnitTest.hpp" Pebble::Test::EventGeneratorUnitTest::~EventGeneratorUnitTest() {} void Pebble::Test::EventGeneratorUnitTest::runTest() throw(Pebble::Test::TestException) { Pebble::Modes::Mode1_F1 f1(3034); Pebble::EventGenerator pebble(3034, f1); std::pair result; result = pebble.generate(); assertTrue( result.first >= 0 && result.first <= 3034 , "Testing generate() results..." ); assertTrue( result.second >= 0 && result.second <= 3034 , "Testing generate() results..."); double r = result.first + result.second; assertTrue( r >= 3030 && r <= 3037 , "Testing range of result!"); std::cerr << "T1: " << result.first << std::endl; std::cerr << "T2: " << result.second << std::endl; UnitTest::num_test_success++; } Pebble-1.0.0/src/test/testall.cpp0000644000175000001460000001046210666007174016137 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include /* #include "math/calculus/DoubleIntegrandUnitTest.hpp" #include "math/calculus/GaussIntegratorUnitTest.hpp" #include "math/calculus/RombergIntegratorUnitTest.hpp" #include "math/random/MersenneTwisterUnitTest.hpp" #include "math/random/POSIXRandomUnitTest.hpp" #include "math/random/QRandomUnitTest.hpp" #include "math/random/STDRandomUnitTest.hpp" #include "math/random/URandomUnitTest.hpp" #include "particles/ElectronAntiNeutrinoUnitTest.hpp" #include "particles/ElectronNeutrinoUnitTest.hpp" #include "particles/ElectronUnitTest.hpp" #include "particles/LeptonUnitTest.hpp" #include "particles/NuclearStateUnitTest.hpp" #include "particles/NucleusUnitTest.hpp" #include "particles/ParticleUnitTest.hpp" #include "particles/PositronUnitTest.hpp" #include "math/FourVectorUnitTest.hpp" #include "math/UtilityUnitTest.hpp" #include "modes/ModeFactoryUnitTest.hpp" #include "EventGeneratorUnitTest.hpp" #include "EventUnitTest.hpp" */ #include "NuclearFactoryUnitTest.hpp" #include "TestException.hpp" #include "UnitTest.hpp" int main() { std::cerr << "Running Unit Tests..." << std::endl; try { /* std::cerr << " + FourVector" << std::endl; Pebble::Test::FourVectorUnitTest fv_test; fv_test.runTest(); std::cerr << " + Utility" << std::endl; Pebble::Test::UtilityUnitTest u_test; u_test.runTest(); std::cerr << " + RombergIntegrator" << std::endl; Pebble::Test::RombergIntegratorUnitTest ri_test; ri_test.runTest(); std::cerr << " + GaussIntegrator" << std::endl; Pebble::Test::GaussIntegratorUnitTest gi_test; gi_test.runTest(); std::cerr << " + DoubleIntegrand" << std::endl; Pebble::Test::DoubleIntegrandUnitTest di_test; di_test.runTest(); std::cerr << " + Particle" << std::endl; Pebble::Test::ParticleUnitTest part_test; part_test.runTest(); std::cerr << " + Lepton" << std::endl; Pebble::Test::LeptonUnitTest l_test; l_test.runTest(); std::cerr << " + Electron" << std::endl; Pebble::Test::ElectronUnitTest e_test; e_test.runTest(); std::cerr << " + Positron" << std::endl; Pebble::Test::PositronUnitTest p_test; p_test.runTest(); std::cerr << " + ElectronNeutrino" << std::endl; Pebble::Test::ElectronNeutrinoUnitTest nu_e_test; nu_e_test.runTest(); std::cerr << " + ElectronAntiNeutrino" << std::endl; Pebble::Test::ElectronAntiNeutrinoUnitTest nu_e_bar_test; nu_e_bar_test.runTest(); std::cerr << " + NuclearState" << std::endl; Pebble::Test::NuclearStateUnitTest state_test; state_test.runTest(); std::cerr << " + Nucleus" << std::endl; Pebble::Test::NucleusUnitTest nuc_test; nuc_test.runTest(); std::cerr << " + Event" << std::endl; Pebble::Test::EventUnitTest event_test; event_test.runTest(); std::cerr << " + STDRandom" << std::endl; Pebble::Test::STDRandomUnitTest std_rand_test; std_rand_test.runTest(); std::cerr << " + POSIXRandom" << std::endl; Pebble::Test::POSIXRandomUnitTest posix_rand_test; posix_rand_test.runTest(); std::cerr << " + MersenneTwister" << std::endl; Pebble::Test::MersenneTwisterUnitTest mt_test; mt_test.runTest(); std::cerr << " + URandom" << std::endl; Pebble::Test::URandomUnitTest ur_test; ur_test.runTest(); #ifdef NO_QRANDOM std::cerr << " ! QRandom (SKIPPED)" << std::endl; #else std::cerr << " + QRandom" << std::endl; Pebble::Test::QRandomUnitTest qr_test; qr_test.runTest(); #endif */ std::cerr << " + NuclearFactory" << std::endl; Pebble::Test::NuclearFactoryUnitTest nf_test; nf_test.runTest(); /* std::cerr << " + EventGenerator" << std::endl; Pebble::Test::EventGeneratorUnitTest boulder; boulder.runTest(); std::cerr << " + ModeFactory" << std::endl; Pebble::Test::ModeFactoryUnitTest mf_test; mf_test.runTest(); */ std::cerr << "SUCCESS!" << std::endl; } catch ( Pebble::Test::TestException& e ) { std::cerr << "FAILURE!" << std::endl; std::cerr << e.what() << std::endl; } std::cerr << "Number of successful tests: " << Pebble::Test::UnitTest::getSuccessNumber() << std::endl; } Pebble-1.0.0/src/test/EventGeneratorUnitTest.hpp0000644000175000001460000000122710666007174021123 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_TEST_EVENTGENERATORUNITTEST #define PEBBLE_TEST_EVENTGENERATORUNITTEST #include "TestException.hpp" #include "UnitTest.hpp" namespace Pebble { namespace Test { class EventGeneratorUnitTest : public UnitTest { public: virtual ~EventGeneratorUnitTest(); virtual void runTest() throw (Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/NuclearFactoryUnitTest.cpp0000644000175000001460000000247010666007174021110 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #include #include #include "../particles/NuclearState.hpp" #include "../particles/Nucleus.hpp" #include "../Exception.hpp" #include "../NuclearFactory.hpp" #include "NuclearFactoryUnitTest.hpp" #include "TestException.hpp" Pebble::Test::NuclearFactoryUnitTest::~NuclearFactoryUnitTest() { } void Pebble::Test::NuclearFactoryUnitTest::runTest() throw(Pebble::Test::TestException) { try { Pebble::NuclearFactory f; Pebble::Particles::Nucleus n = f.getNucleus( "11Tst", "0+" ); std::string message( "Testing getNucleus" ); assertTrue( n.getSpin() == 0.5, message ); assertTrue( n.getMass() == 0.23, message ); assertTrue( n.getA() == 13, message ); assertTrue( n.getZ() == 2, message ); assertTrue( n.getChild() == "9Pbl", message ); Pebble::Particles::NuclearState s = n.getState(); assertTrue( s.getJ() == 0, message ); assertTrue( s.getEnergy() == 6223, message ); } catch (Pebble::Exception& e) { std::cerr << e.what() << std::endl; } UnitTest::num_test_success++; } Pebble-1.0.0/src/test/NuclearFactoryUnitTest.hpp0000644000175000001460000000122510666007174021112 0ustar phuegaphuega/*** * 0vBB Event Generator * * Department of Physics * University of 糖心TV * Coventry, CV4 7AL * * CREATED: 09 July 2007 * AUTHORS: A. J. Bennieston, S. D. Smith **/ #ifndef PEBBLE_TEST_NUCLEARFACTORYUNITTEST #define PEBBLE_TEST_NUCLEARFACTORYUNITTEST #include "TestException.hpp" #include "UnitTest.hpp" namespace Pebble { namespace Test { class NuclearFactoryUnitTest : public UnitTest { public: virtual ~NuclearFactoryUnitTest(); virtual void runTest() throw(Pebble::Test::TestException); }; }; }; #endif Pebble-1.0.0/src/test/11Tst.n0000644000175000001460000000004310666007174015050 0ustar phuegaphuega0.5 0.23 13 2 9Pbl 0+ 6223 2+ 6882