-****** Version 4.6.0 Realeased ??? November 2003
+****** Version 4.6.1 Released 27th March 2011 *******
+Just minor bug fix and cleanup.
+
+renamed 'src/non_gui' to just 'src'
+
+Adding a file "WARNING" in the top level.
+
+Added a new test: WARNING-The-next-test-is-a-benchmark-and-takes-a-long-while.test
+which does not actually test anything, but issues an obvious warning.
+
+Changed my email address in every file.
+
+Ensured all tests pass even if compliled with -DDEBUG, as before the
+extra debugging information was causing some tests to fail.
+
+Removed the code which indicates the amount of RAM, as that was
+inaccurate, so I gave up with it.
+
+In the file convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
+changed test from if(W>=H) to if(WH>=HH) as the former compares
+two values which are both zero. Thanks to Jim Bingham for bringing that
+to my attention.
+
+Likewise for convert_create_bmp_for_circ_in_rect_dimensions_to_integers.c
+
+In src/atlc.c, add the line:
+fclose(image_data_fp);
+to stop a theoeretical resource leakage. It was not really a leak,
+as the code exits a couple of lines later, but it stops 'cppcheck'
+complaining.
+
+Done likewise on read_bitmap_file_headers.c,
+
+src/write_fields_for_directional_couplers removed some things
+between #ifdef DEBUG, as it declared file pointers and wrote opened
+the files, but never wrote anything or closed them. Again found by cppcheck.
+
+In src/non_gui/write_fields_for_two_conductor_lines.c, removed some code
+betweend #ifdev DEBUG, as it stops atlc compiling if CFLAGS includes
+-DDEBUG
+
+In the file src/non_gui/byteswap.c, removed some things between
+#ifdef DEBUG, as that too stopped atlc building properly
+
+****** Version 4.6.0 Released 9th December 2003
top level directory:
atlc/update
EXTRA_DIST = \
README \
-README.cvs \
README.help \
README.mpi \
README.solaris \
+README.linux \
README.support \
README.threads \
README.windows \
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = .
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+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 \
+ THANKS TODO compile config.guess config.sub depcomp install-sh \
+ missing mkinstalldirs
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir dist dist-all distcheck
+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)"; }; }
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
+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@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
# This is Makefile.am, which is proceed by automake
#AUTOMAKE_OPTIONS = gnits
ACLOCAL_AMFLAGS = -I m4
-
SUBDIRS = . src m4 man docs examples tools tests
-
EXTRA_DIST = \
README \
-README.cvs \
README.help \
README.mpi \
README.solaris \
+README.linux \
README.support \
README.threads \
README.windows \
teston \
TODO
-
CLEANFILES = examplestest-coupler2.bmp.txt
DISTCLEANFILES = examplestest-coupler2.bmp.txt tmp/atlc-zero-bytes
-subdir = .
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-
-RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
- ps-recursive install-info-recursive uninstall-info-recursive \
- all-recursive install-data-recursive install-exec-recursive \
- installdirs-recursive install-recursive uninstall-recursive \
- check-recursive installcheck-recursive
-DIST_COMMON = README AUTHORS COPYING ChangeLog INSTALL Makefile.am \
- Makefile.in NEWS THANKS TODO aclocal.m4 compile config.guess \
- config.h.in config.sub configure configure.ac depcomp \
- install-sh missing mkinstalldirs
-DIST_SUBDIRS = $(SUBDIRS)
all: config.h
$(MAKE) $(AM_MAKEFLAGS) all-recursive
.SUFFIXES:
-
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
-
-$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+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'; \
+ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
+ && exit 0; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
+ $(am__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
-$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
- cd $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4): configure.ac m4/acx_mpi.m4 m4/acx_pthread.m4 m4/gtk.m4
- cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(top_srcdir)/configure: $(am__configure_deps)
+ $(am__cd) $(srcdir) && $(AUTOCONF)
+$(ACLOCAL_M4): $(am__aclocal_m4_deps)
+ $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
+$(am__aclocal_m4_deps):
config.h: stamp-h1
@if test ! -f $@; then \
rm -f stamp-h1; \
- $(MAKE) stamp-h1; \
+ $(MAKE) $(AM_MAKEFLAGS) 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: $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && $(AUTOHEADER)
- touch $(srcdir)/config.h.in
+$(srcdir)/config.h.in: $(am__configure_deps)
+ ($(am__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.
# (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):
- @set fnord $$MAKEFLAGS; amf=$$2; \
+ @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 \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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:
- @set fnord $$MAKEFLAGS; amf=$$2; \
+$(RECURSIVE_CLEAN_TARGETS):
+ @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)' ;; \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { 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=; \
+ set x; \
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 -i $$here/$$subdir/TAGS"; \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$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; }'`; \
- test -z "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ 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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = .
-distdir = $(PACKAGE)-$(VERSION)
-
-am__remove_distdir = \
- { test ! -d $(distdir) \
- || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
- && rm -fr $(distdir); }; }
-
-GZIP_ENV = --best
-distuninstallcheck_listfiles = find . -type f -print
-distcleancheck_listfiles = find . -type f -print
distdir: $(DISTFILES)
$(am__remove_distdir)
- mkdir $(distdir)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ test -d "$(distdir)" || mkdir "$(distdir)"
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
- list='$(SUBDIRS)'; for subdir in $$list; do \
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
- (cd $$subdir && \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" \
- distdir=../$(distdir)/$$subdir \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
done
- -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
+ -test -n "$(am__skip_mode_fix)" \
+ || 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)
+ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
+ || chmod -R a+r "$(distdir)"
dist-gzip: distdir
- $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ 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-lzma: distdir
+ tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
+ $(am__remove_distdir)
+
+dist-xz: distdir
+ tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
+ $(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
- $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ 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
- $(am__remove_distdir)
- GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
+ 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.lzma*) \
+ unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
+ *.tar.xz*) \
+ xz -dc $(distdir).tar.xz | $(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
+ mkdir $(distdir)/_build
+ mkdir $(distdir)/_inst
chmod a-w $(distdir)
- dc_install_base=`$(am__cd) $(distdir)/=inst && pwd` \
+ test -d $(distdir)/_build || exit 0; \
+ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
&& dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
- && $(mkinstalldirs) $$dc_destdir \
- && cd $(distdir)/=build \
+ && am__cwd=`pwd` \
+ && $(am__cd) $(distdir)/_build \
&& ../configure --srcdir=.. --prefix="$$dc_install_base" \
$(DISTCHECK_CONFIGURE_FLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) \
&& $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
distuninstallcheck \
&& chmod -R a-w "$$dc_install_base" \
- && ({ $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
+ && ({ \
+ (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-gzip \
- && rm -f $(distdir).tar.gz \
- && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
+ && $(MAKE) $(AM_MAKEFLAGS) dist \
+ && rm -rf $(DIST_ARCHIVES) \
+ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
+ && cd "$$am__cwd" \
+ || exit 1
$(am__remove_distdir)
- @echo "$(distdir).tar.gz is ready for distribution" | \
- sed 'h;s/./=/g;p;x;p;x'
+ @(echo "$(distdir) archives ready for distribution: "; \
+ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
+ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
distuninstallcheck:
- cd $(distuninstallcheck_dir) \
+ @$(am__cd) '$(distuninstallcheck_dir)' \
&& test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
|| { echo "ERROR: files left after uninstall:" ; \
if test -n "$(DESTDIR)"; then \
$(distuninstallcheck_listfiles) ; \
exit 1; } >&2
distcleancheck: distclean
- if test '$(srcdir)' = . ; then \
+ @if test '$(srcdir)' = . ; then \
echo "ERROR: distcleancheck can only run from a VPATH build" ; \
exit 1 ; \
fi
- test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
+ @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
|| { echo "ERROR: files left in build directory after distclean:" ; \
$(distcleancheck_listfiles) ; \
exit 1; } >&2
all-am: Makefile config.h
installdirs: installdirs-recursive
installdirs-am:
-
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
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
+
+html-am:
+
info: info-recursive
info-am:
install-data-am:
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-recursive
+
+install-html-am:
+
install-info: install-info-recursive
+install-info-am:
+
install-man:
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
- -rm -rf autom4te.cache
+ -rm -rf $(top_srcdir)/autom4te.cache
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
ps-am:
-uninstall-am: uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive dist \
- dist-all dist-gzip distcheck distclean distclean-generic \
- distclean-hdr distclean-recursive distclean-tags distcleancheck \
- distdir distuninstallcheck dvi dvi-am dvi-recursive info \
- info-am info-recursive install install-am install-data \
- install-data-am install-data-recursive install-exec \
- install-exec-am install-exec-recursive install-info \
- install-info-am install-info-recursive install-man \
- install-recursive install-strip installcheck installcheck-am \
- installdirs installdirs-am installdirs-recursive \
- maintainer-clean maintainer-clean-generic \
- maintainer-clean-recursive mostlyclean mostlyclean-generic \
- mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
- ps-recursive tags tags-recursive uninstall uninstall-am \
- uninstall-info-am uninstall-info-recursive uninstall-recursive
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
+ ctags-recursive install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am am--refresh check check-am clean clean-generic \
+ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
+ dist-lzma dist-shar dist-tarZ dist-xz dist-zip distcheck \
+ distclean distclean-generic distclean-hdr distclean-tags \
+ distcleancheck distdir distuninstallcheck dvi dvi-am html \
+ html-am info info-am install install-am install-data \
+ install-data-am install-dvi install-dvi-am install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am tags tags-recursive uninstall uninstall-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.
See the file INSTALL if building from sources. Online documentation may
be found at http://atlc.sourceforge.net/
-The sources are kept in src/non_gui, as a version with a GUI was
-planned, but I don't think it will happen in the near future.
-
This is the directory layout. .
-./docs
+./m4 // Some autoconf macros
+./docs // Various bits of documentation.
./docs/html-docs // As on the atlc web site at atlc.sourgeforge.net
./docs/html-docs/jpgs // JPGS needed for the html docs above.
-./docs/qex-december-1996 // A old paper I wrote, gives the theory.
-./docs/theory //
+./docs/qex-december-1996 // A old paper I wrote for QEX, gives the theory.
+./docs/theory // Some very rough ideas I have (Word Format)
./man // Standard UNIX man pages.
./examples // Some examples
./tests // Self-tests and a benchmark.
-./tools // Some tools that are useful for checkign the code
+./tools // Some tools that are useful for checking the code
./tools/src // Source code for above
-./src // Nothing much - see below
-./src/non_gui // All the C source code.
+./src // The main source code
./tmp // Used during tests to dump data.
After building (see INSTALL, which I've modified to be specific to
rather than 'make install'. If you later want to install the
examples, run 'make install-data'
-If wishing to contact me by email, mail me on drkirkby at ntlworld.com
+If wishing to contact me by email, mail me on drkirkby at gmail.com
-Dr. David Kirkby, G8WRB. 12th December 2003 Re: atlc-4.6.0
+Dr. David Kirkby, G8WRB. 27th March 2011 Re: atlc-4.6.1
+++ /dev/null
-This distribution should exactly match the CVS tree at the time
-of generation of the file atlc-4.2.8.tar.gz. This has rarely been
-the case in the past, with the CVS out of date with the
-.tar.gz's posted, but with another developer now, this
-should no longer be the case, is it will be necessary
-for the CVS to be kept up to date.
--- /dev/null
+ATLC should run fine on any linux system, though
+no effort has been taken to gather information
+about linux systems. (For some operating systems
+ATLC reports the CPU type, cache sizes etc).
code I'll put them up again, but whilst the code
is not working optimally with multi-dielectrics, it
is not seriously broken as it was before.
+
+The best solution for Windows uses is to use
+Cygin, which gives you a Linux environment on a
+Windows computer. ATLC should build fine on that,
+though I have never tried it.
-Dr. David Kirkby, G8WRB, 7th Dec, 2003.
-Re: atlc-4.6.0
+Dr. David Kirkby, G8WRB, 27th March 2011
+Re: atlc-4.6.1
TODO List
-Here is a list of the ways I would like to expand atlc, in a rough order of time.
+Here is a list of the ways I would like to expand atlc, in a rough order
+of time.
1 Re-enable support for multiple processors.
2 Improve accuraracy on transmission lines where there is more
-# generated automatically by aclocal 1.7 -*- Autoconf -*-
+# generated automatically by aclocal 1.11 -*- Autoconf -*-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+# 2005, 2006, 2007, 2008, 2009 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.
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
-# Do all the work for Automake. -*- Autoconf -*-
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
+[m4_warning([this file was generated for autoconf 2.68.
+You have another version of autoconf. It may work, but is not guaranteed to.
+If you have problems, you may need to regenerate the build system entirely.
+To do so, use the procedure documented by the package, typically `autoreconf'.])])
-# 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.
+# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 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.
+# (This private macro should not be called outside this file.)
+AC_DEFUN([AM_AUTOMAKE_VERSION],
+[am__api_version='1.11'
+dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
+dnl require some minimum version. Point them to the right macro.
+m4_if([$1], [1.11], [],
+ [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
+])
+
+# _AM_AUTOCONF_VERSION(VERSION)
+# -----------------------------
+# aclocal traces this macro to find the Autoconf version.
+# This is a private macro too. Using m4_define simplifies
+# the logic in aclocal, which can simply ignore this definition.
+m4_define([_AM_AUTOCONF_VERSION], [])
+
+# AM_SET_CURRENT_AUTOMAKE_VERSION
+# -------------------------------
+# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
+# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
+AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
+[AM_AUTOMAKE_VERSION([1.11])dnl
+m4_ifndef([AC_AUTOCONF_VERSION],
+ [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
+_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
+
+# 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`
+])
-# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002
+# AM_CONDITIONAL -*- Autoconf -*-
+
+# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
# 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 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.
+# serial 9
-# 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.
+# 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])dnl
+AC_SUBST([$1_FALSE])dnl
+_AM_SUBST_NOTMAKE([$1_TRUE])dnl
+_AM_SUBST_NOTMAKE([$1_FALSE])dnl
+m4_define([_AM_COND_VALUE_$1], [$2])dnl
+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])])
-# 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
+# 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
+# serial 10
# 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,
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
-AC_PREREQ([2.54])
+# _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], UPC, [depcc="$UPC" am_compiler_list=],
+ [$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
-# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
-# the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
+ 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
+ am__universal=false
+ m4_case([$1], [CC],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac],
+ [CXX],
+ [case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac])
+
+ 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
+
+ # 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. Also, some Intel
+ # versions had trouble with output in subdirs
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ 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
+ ;;
+ msvisualcpp | msvcmsys)
+ # This compiler won't grok `-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj 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])dnl
+_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
+])
+
+# Generate code to set up dependency tracking. -*- Autoconf -*-
+
+# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
+# 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 5
+
+# _AM_OUTPUT_DEPENDENCY_COMMANDS
+# ------------------------------
+AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
+[{
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ 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.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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, 2006, 2008, 2009 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 16
+
+# 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])
# arguments mandatory, and then we can depend on a new Autoconf
# release and drop the old call support.
AC_DEFUN([AM_INIT_AUTOMAKE],
-[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])
+[AC_PREREQ([2.62])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
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
+ fi
fi
# test whether we have cygpath
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
+dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
+m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
+ [m4_fatal([AC_INIT should be called with package and version arguments])])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])
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
AM_MISSING_PROG(AUTOHEADER, autoheader)
AM_MISSING_PROG(MAKEINFO, makeinfo)
-AM_MISSING_PROG(AMTAR, tar)
-AM_PROG_INSTALL_SH
-AM_PROG_INSTALL_STRIP
+AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
+AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
+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
+ [_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
+ [_AM_DEPENDENCIES(CXX)],
+ [define([AC_PROG_CXX],
+ defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
+AC_PROVIDE_IFELSE([AC_PROG_OBJC],
+ [_AM_DEPENDENCIES(OBJC)],
+ [define([AC_PROG_OBJC],
+ defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
])
+_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
+dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
+dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
+dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
+AC_CONFIG_COMMANDS_PRE(dnl
+[m4_provide_if([_AM_COMPILER_EXEEXT],
+ [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
])
+dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
+dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
+dnl mangled by Autoconf and run in a shell conditional statement.
+m4_define([_AC_COMPILER_EXEEXT],
+m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
+
# When config.status generates a header, we must update the stamp-h file.
# This file resides in the same directory as the config header
# loop where config.status creates the headers, so we can generate
# our stamp files there.
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
-echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
+[# Compute $1's index in $config_headers.
+_am_arg=$1
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
+done
+echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
-# Copyright 2002 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2005, 2008 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 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.
+# AM_PROG_INSTALL_SH
+# ------------------
+# Define $install_sh.
+AC_DEFUN([AM_PROG_INSTALL_SH],
+[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
+fi
+AC_SUBST(install_sh)])
-# 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.
+# 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.
-# 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., 59 Temple Place - Suite 330, Boston, MA
+# serial 2
-# 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.7"])
+# 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])])
-# 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.7])])
+# Check to see how 'make' treats includes. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2009 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_MAKE_INCLUDE()
+# -----------------
+# Check to see how make treats includes.
+AC_DEFUN([AM_MAKE_INCLUDE],
+[am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo this is the am__doit target
+.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
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+ am__include=include
+ am__quote=
+ _am_result=GNU
+ ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ case `$am_make -s -f confmf 2> /dev/null` in #(
+ *the\ am__doit\ target*)
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ ;;
+ esac
+fi
+AC_SUBST([am__include])
+AC_SUBST([am__quote])
+AC_MSG_RESULT([$_am_result])
+rm -f confinc confmf
+])
-# Helper functions for option handling. -*- Autoconf -*-
+# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
-# Copyright 2001, 2002 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
+# 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 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.
+# serial 6
-# 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.
+# 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)])
-# 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-# serial 2
+# 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
+AC_REQUIRE_AUX_FILE([missing])dnl
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
+fi
+# 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, 2006 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 for `mkdir -p'.
+AC_DEFUN([AM_PROG_MKDIR_P],
+[AC_PREREQ([2.60])dnl
+AC_REQUIRE([AC_PROG_MKDIR_P])dnl
+dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
+dnl while keeping a definition of mkdir_p for backward compatibility.
+dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
+dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
+dnl Makefile.ins that do not define MKDIR_P, so we do our own
+dnl adjustment using top_builddir (which is defined more often than
+dnl MKDIR_P).
+AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
+case $mkdir_p in
+ [[\\/$]]* | ?:[[\\/]]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
+])
+
+# Helper functions for option handling. -*- Autoconf -*-
+
+# Copyright (C) 2001, 2002, 2003, 2005, 2008 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_MANGLE_OPTION(NAME)
# -----------------------
# ----------------------------------
# OPTIONS is a space-separated list of Automake options.
AC_DEFUN([_AM_SET_OPTIONS],
-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
+[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
# -------------------------------------------
AC_DEFUN([_AM_IF_OPTION],
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-#
-# Check to make sure that the build environment is sane.
-#
-
-# Copyright 1996, 1997, 2000, 2001 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.
+# Check to make sure that the build environment is sane. -*- Autoconf -*-
-# 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
+# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
+# 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
+# serial 5
# AM_SANITY_CHECK
# ---------------
# Just in case
sleep 1
echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[[\\\"\#\$\&\'\`$am_lf]]*)
+ AC_MSG_ERROR([unsafe absolute working directory name]);;
+esac
+case $srcdir in
+ *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
+ AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
+esac
+
# 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`
+ 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`
+ set X `ls -t "$srcdir/configure" conftest.file`
fi
rm -f conftest.file
if test "$[*]" != "X $srcdir/configure conftest.file" \
fi
AC_MSG_RESULT(yes)])
-# -*- Autoconf -*-
-
-
-# Copyright 1997, 1999, 2000, 2001 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# serial 3
-
-# 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
-])
-
-# AM_AUX_DIR_EXPAND
-
-# Copyright 2001 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# 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.
+# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
#
-# 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.
-
-# Rely on autoconf to set up CDPATH properly.
-AC_PREREQ([2.50])
-
-AC_DEFUN([AM_AUX_DIR_EXPAND], [
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-])
-
-# AM_PROG_INSTALL_SH
-# ------------------
-# Define $install_sh.
-
-# Copyright 2001 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-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)])
+# 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
-
-# Copyright 2001 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
+# ---------------------
# 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
if test "$cross_compiling" != no; then
AC_CHECK_TOOL([STRIP], [strip], :)
fi
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
AC_SUBST([INSTALL_STRIP_PROGRAM])])
-# serial 4 -*- Autoconf -*-
-
-# Copyright 1999, 2000, 2001 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
+# Copyright (C) 2006, 2008 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
-# 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_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
+# This macro is traced by Automake.
+AC_DEFUN([_AM_SUBST_NOTMAKE])
+# AM_SUBST_NOTMAKE(VARIABLE)
+# ---------------------------
+# Public sister of _AM_SUBST_NOTMAKE.
+AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
+# Check how to create a tarball. -*- Autoconf -*-
-# _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.
+# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
#
-# 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
+# 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.
-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=])
+# serial 2
-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'.
+# _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
- # 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
-
- 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
- # 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.
- echo '#include "conftest.h"' > conftest.c
- echo 'int i;' > conftest.h
- echo "${am__include} ${am__quote}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=conftest.c object=conftest.o \
- depfile=conftest.Po tmpdepfile=conftest.TPo \
- $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
- grep conftest.h conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- am_cv_$1_dependencies_compiler_type=$depmode
- break
- fi
- done
-
- cd ..
+ echo GrepMe > conftest.dir/file
+ AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
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],
-[rm -f .deps 2>/dev/null
-mkdir .deps 2>/dev/null
-if test -d .deps; then
- DEPDIR=.deps
-else
- # MS-DOS does not allow filenames that begin with a dot.
- DEPDIR=_deps
-fi
-rmdir .deps 2>/dev/null
-AC_SUBST([DEPDIR])
-])
-
-
-# AM_DEP_TRACK
-# ------------
-AC_DEFUN([AM_DEP_TRACK],
-[AC_ARG_ENABLE(dependency-tracking,
-[ --disable-dependency-tracking Speeds up one-time builds
- --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 1999, 2000, 2001, 2002 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-#serial 2
-
-# _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
+ if test -s conftest.tar; then
+ AM_RUN_LOG([$am__untar <conftest.tar])
+ grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
fi
- grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
- # Extract the definition of DEP_FILES from the Makefile without
- # running `make'.
- DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
- test -z "$DEPDIR" && continue
- # When using ansi2knr, U may be empty or an underscore; expand it
- U=`sed -n -e '/^U = / s///p' < "$mf"`
- test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
- # 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 -e '
- /^DEP_FILES = .*\\\\$/ {
- s/^DEP_FILES = //
- :loop
- s/\\\\$//
- p
- n
- /\\\\$/ b loop
- p
- }
- /^DEP_FILES = / s/^DEP_FILES = //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"])
-])
-
-# Check to see how 'make' treats includes. -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# serial 2
-
-# AM_MAKE_INCLUDE()
-# -----------------
-# Check to see how make treats includes.
-AC_DEFUN([AM_MAKE_INCLUDE],
-[am_make=${MAKE-make}
-cat > confinc << 'END'
-doit:
- @echo done
-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
-])
-
-# AM_CONDITIONAL -*- Autoconf -*-
-
-# Copyright 1997, 2000, 2001 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., 59 Temple Place - Suite 330, Boston, MA
-# 02111-1307, USA.
-
-# serial 5
-
-AC_PREREQ(2.52)
-
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
-# -------------------------------------
-# Define a conditional.
-AC_DEFUN([AM_CONDITIONAL],
-[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])])
-
-dnl Available from the GNU Autoconf Macro Archive at:
-dnl http://www.gnu.org/software/ac-archive/htmldoc/acx_pthread.html
-dnl
-AC_DEFUN([ACX_PTHREAD], [
-AC_REQUIRE([AC_CANONICAL_HOST])
-AC_LANG_SAVE
-AC_LANG_C
-acx_pthread_ok=no
-
-# We used to check for pthread.h first, but this fails if pthread.h
-# requires special compiler flags (e.g. on True64 or Sequent).
-# It gets checked for in the link test anyway.
-
-# First of all, check if the user has set any of the PTHREAD_LIBS,
-# etcetera environment variables, and if threads linking works using
-# them:
-if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
- AC_TRY_LINK_FUNC(pthread_join, acx_pthread_ok=yes)
- AC_MSG_RESULT($acx_pthread_ok)
- if test x"$acx_pthread_ok" = xno; then
- PTHREAD_LIBS=""
- PTHREAD_CFLAGS=""
- fi
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-fi
-
-# We must check for the threads library under a number of different
-# names; the ordering is very important because some systems
-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
-# libraries is broken (non-POSIX).
-
-# Create a list of thread flags to try. Items starting with a "-" are
-# C compiler flags, and other items are library names, except for "none"
-# which indicates that we try without any flags at all.
-
-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt"
-
-# The ordering *is* (sometimes) important. Some notes on the
-# individual items follow:
-
-# pthreads: AIX (must check this before -lpthread)
-# none: in case threads are in libc; should be tried before -Kthread and
-# other compiler flags to prevent continual compiler warnings
-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
-# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
-# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
-# -pthreads: Solaris/gcc
-# -mthreads: Mingw32/gcc, Lynx/gcc
-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
-# doesn't hurt to check since this sometimes defines pthreads too;
-# also defines -D_REENTRANT)
-# pthread: Linux, etcetera
-# --thread-safe: KAI C++
-
-case "${host_cpu}-${host_os}" in
- *solaris*)
-
- # On Solaris (at least, for some versions), libc contains stubbed
- # (non-functional) versions of the pthreads routines, so link-based
- # tests will erroneously succeed. (We need to link with -pthread or
- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
- # a function called by this macro, so we could check for that, but
- # who knows whether they'll stub that too in a future libc.) So,
- # we'll just look for -pthreads and -lpthread first:
-
- acx_pthread_flags="-pthread -pthreads pthread -mt $acx_pthread_flags"
- ;;
-esac
-
-if test x"$acx_pthread_ok" = xno; then
-for flag in $acx_pthread_flags; do
-
- case $flag in
- none)
- AC_MSG_CHECKING([whether pthreads work without any flags])
- ;;
-
- -*)
- AC_MSG_CHECKING([whether pthreads work with $flag])
- PTHREAD_CFLAGS="$flag"
- ;;
-
- *)
- AC_MSG_CHECKING([for the pthreads library -l$flag])
- PTHREAD_LIBS="-l$flag"
- ;;
- esac
-
- save_LIBS="$LIBS"
- save_CFLAGS="$CFLAGS"
- LIBS="$PTHREAD_LIBS $LIBS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-
- # Check for various functions. We must include pthread.h,
- # since some functions may be macros. (On the Sequent, we
- # need a special flag -Kthread to make this header compile.)
- # We check for pthread_join because it is in -lpthread on IRIX
- # while pthread_create is in libc. We check for pthread_attr_init
- # due to DEC craziness with -lpthreads. We check for
- # pthread_cleanup_push because it is one of the few pthread
- # functions on Solaris that doesn't have a non-functional libc stub.
- # We try pthread_create on general principles.
- AC_TRY_LINK([#include <pthread.h>],
- [pthread_t th; pthread_join(th, 0);
- pthread_attr_init(0); pthread_cleanup_push(0, 0);
- pthread_create(0,0,0,0); pthread_cleanup_pop(0); ],
- [acx_pthread_ok=yes])
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- AC_MSG_RESULT($acx_pthread_ok)
- if test "x$acx_pthread_ok" = xyes; then
- break;
- fi
-
- PTHREAD_LIBS=""
- PTHREAD_CFLAGS=""
done
-fi
+rm -rf conftest.dir
-# Various other checks:
-if test "x$acx_pthread_ok" = xyes; then
- save_LIBS="$LIBS"
- LIBS="$PTHREAD_LIBS $LIBS"
- save_CFLAGS="$CFLAGS"
- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
-
- # Detect AIX lossage: threads are created detached by default
- # and the JOINABLE attribute has a nonstandard name (UNDETACHED).
- AC_MSG_CHECKING([for joinable pthread attribute])
- AC_TRY_LINK([#include <pthread.h>],
- [int attr=PTHREAD_CREATE_JOINABLE;],
- ok=PTHREAD_CREATE_JOINABLE, ok=unknown)
- if test x"$ok" = xunknown; then
- AC_TRY_LINK([#include <pthread.h>],
- [int attr=PTHREAD_CREATE_UNDETACHED;],
- ok=PTHREAD_CREATE_UNDETACHED, ok=unknown)
- fi
- if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
- AC_DEFINE(PTHREAD_CREATE_JOINABLE, $ok,
- [Define to the necessary symbol if this constant
- uses a non-standard name on your system.])
- fi
- AC_MSG_RESULT(${ok})
- if test x"$ok" = xunknown; then
- AC_MSG_WARN([we do not know how to create joinable pthreads])
- fi
-
- AC_MSG_CHECKING([if more special flags are required for pthreads])
- flag=no
- case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
- *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
- esac
- AC_MSG_RESULT(${flag})
- if test "x$flag" != xno; then
- PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
- fi
-
- LIBS="$save_LIBS"
- CFLAGS="$save_CFLAGS"
-
- # More AIX lossage: must compile with cc_r
- AC_CHECK_PROG(PTHREAD_CC, cc_r, cc_r, ${CC})
-else
- PTHREAD_CC="$CC"
-fi
-
-AC_SUBST(PTHREAD_LIBS)
-AC_SUBST(PTHREAD_CFLAGS)
-AC_SUBST(PTHREAD_CC)
-
-# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
-if test x"$acx_pthread_ok" = xyes; then
- ifelse([$1],,AC_DEFINE(HAVE_PTHREAD,1,[Define if you have POSIX threads libraries and header files.]),[$1])
- :
-else
- acx_pthread_ok=no
- $2
-fi
-AC_LANG_RESTORE
-])dnl ACX_PTHREAD
+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
+m4_include([m4/acx_pthread.m4])
/* config.h.in. Generated from configure.ac by autoheader. */
+/* Define if building universal (internal helper macro) */
+#undef AC_APPLE_UNIVERSAL_BUILD
+
/* with debugging code */
#undef DEBUG
/* Define to the one symbol short name of this package. */
#undef PACKAGE_TARNAME
+/* Define to the home page for this package. */
+#undef PACKAGE_URL
+
/* Define to the version of this package. */
#undef PACKAGE_VERSION
your system. */
#undef PTHREAD_CREATE_JOINABLE
-/* The size of a `size_t', as computed by sizeof. */
+/* The size of `size_t', as computed by sizeof. */
#undef SIZEOF_SIZE_T
/* Define to 1 if you have the ANSI C header files. */
/* Version number of package */
#undef VERSION
-/* Define to 1 if your processor stores words with the most significant byte
- first (like Motorola and SPARC, unlike Intel and VAX). */
-#undef WORDS_BIGENDIAN
+/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
+ significant byte first (like Motorola and SPARC, unlike Intel). */
+#if defined AC_APPLE_UNIVERSAL_BUILD
+# if defined __BIG_ENDIAN__
+# define WORDS_BIGENDIAN 1
+# endif
+#else
+# ifndef WORDS_BIGENDIAN
+# undef WORDS_BIGENDIAN
+# endif
+#endif
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
-/* Define to `unsigned' if <sys/types.h> does not define. */
+/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.57 for atlc 4.6.0.
+# Generated by GNU Autoconf 2.68 for atlc 4.6.1.
+#
+# Report bugs to <drkirkby@gmail.com>.
+#
+#
+# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
+# Foundation, Inc.
#
-# Report bugs to <drkirkby@ntlworld.com>.
#
-# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
-# 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. ##
-## --------------------- ##
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
-# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+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
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
fi
-# Support unset when possible.
-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
- as_unset=unset
-else
- as_unset=false
+
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
+ else
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
+ fi
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
+fi
+
+# The user is always right.
+if test "${PATH_SEPARATOR+set}" != set; then
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
fi
-# Work around bugs in pre-3.0 UWIN ksh.
-$as_unset ENV MAIL MAILPATH
+# 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.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+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
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && 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
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+if test "x$CONFIG_SHELL" = x; then
+ as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
+ emulate sh
+ NULLCMD=:
+ # Pre-4.2 versions of Zsh do 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
+"
+ as_required="as_fn_return () { (exit \$1); }
+as_fn_success () { as_fn_return 0; }
+as_fn_failure () { as_fn_return 1; }
+as_fn_ret_success () { return 0; }
+as_fn_ret_failure () { return 1; }
+
+exitcode=0
+as_fn_success || { exitcode=1; echo as_fn_success failed.; }
+as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
+as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
+as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
+if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
+
+else
+ exitcode=1; echo positional parameters were not saved.
+fi
+test x\$exitcode = x0 || exit 1"
+ as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
+ as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
+ eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
+ test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
+test \$(( 1 + 1 )) = 2 || exit 1"
+ if (eval "$as_required") 2>/dev/null; then :
+ as_have_required=yes
+else
+ as_have_required=no
+fi
+ if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
+
+else
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+as_found=false
+for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
do
- if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
- eval $as_var=C; export $as_var
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ as_found=:
+ case $as_dir in #(
+ /*)
+ for as_base in sh bash ksh sh5; do
+ # Try only shells that exist, to save several forks.
+ as_shell=$as_dir/$as_base
+ if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ CONFIG_SHELL=$as_shell as_have_required=yes
+ if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
+ break 2
+fi
+fi
+ done;;
+ esac
+ as_found=false
+done
+$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
+ { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
+ CONFIG_SHELL=$SHELL as_have_required=yes
+fi; }
+IFS=$as_save_IFS
+
+
+ if test "x$CONFIG_SHELL" != x; then :
+ # We cannot yet assume a decent shell, so we have to provide a
+ # neutralization value for shells without unset; and this also
+ # works around shells that cannot unset nonexistent variables.
+ # Preserve -v and -x to the replacement shell.
+ BASH_ENV=/dev/null
+ ENV=/dev/null
+ (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
+ export CONFIG_SHELL
+ case $- in # ((((
+ *v*x* | *x*v* ) as_opts=-vx ;;
+ *v* ) as_opts=-v ;;
+ *x* ) as_opts=-x ;;
+ * ) as_opts= ;;
+ esac
+ exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
+fi
+
+ if test x$as_have_required = xno; then :
+ $as_echo "$0: This script requires a shell more modern than all"
+ $as_echo "$0: the shells that I found on your system."
+ if test x${ZSH_VERSION+set} = xset ; then
+ $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
+ $as_echo "$0: be upgraded to zsh 4.3.4 or later."
else
- $as_unset $as_var
+ $as_echo "$0: Please tell bug-autoconf@gnu.org and drkirkby@gmail.com
+$0: about your system, including any error possibly output
+$0: before this message. Then install a modern shell, or
+$0: manually run the script under such a shell if you do
+$0: have one."
fi
-done
+ exit 1
+fi
+fi
+fi
+SHELL=${CONFIG_SHELL-/bin/sh}
+export SHELL
+# Unset more variables known to interfere with behavior of common tools.
+CLICOLOR_FORCE= GREP_OPTIONS=
+unset CLICOLOR_FORCE GREP_OPTIONS
+
+## --------------------- ##
+## M4sh Shell Functions. ##
+## --------------------- ##
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_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 ||
+$as_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" || as_fn_error $? "cannot create directory $as_dir"
+
+
+} # as_fn_mkdir_p
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
+ fi
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1; then
+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
+if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
as_basename=basename
else
as_basename=false
fi
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
-# Name of the executable.
-as_me=`$as_basename "$0" ||
+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'`
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
-
-# PATH needs CR, and LINENO needs CR and PATH.
# Avoid depending upon Character Ranges.
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
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
-
-
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" || {
- # Find who we are. Look in the path if we contain no path at all
- # relative or not.
- 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
-
- ;;
- 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_me: error: cannot find myself; rerun with an absolute path" >&2
- { (exit 1); exit 1; }; }
- fi
- case $CONFIG_SHELL in
- '')
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for as_base in sh bash ksh sh5; do
- case $as_dir in
- /*)
- if ("$as_dir/$as_base" -c '
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
- CONFIG_SHELL=$as_dir/$as_base
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
- fi;;
- esac
- done
-done
-;;
- esac
- # 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 before each line; the second 'sed' does the real
- # work. The second script uses 'N' to pair each line-number line
- # with the numbered line, 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
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
- sed '=' <$as_myself |
+ as_lineno_1=$LINENO as_lineno_1a=$LINENO
+ as_lineno_2=$LINENO as_lineno_2a=$LINENO
+ eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
+ test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
+ # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
+ sed -n '
+ p
+ /[$]LINENO/=
+ ' <$as_myself |
sed '
+ s/[$]LINENO.*/&-/
+ t lineno
+ b
+ :lineno
N
- s,$,-,
- : loop
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+ :loop
+ s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
t loop
- s,-$,,
- s,^['$as_cr_digits']*\n,,
+ 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; }; }
+ chmod +x "$as_me.lineno" ||
+ { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_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 sensible to this).
- . ./$as_me.lineno
+ # original and so on. Autoconf is especially sensitive to this).
+ . "./$as_me.lineno"
# Exit status is that of the last command.
exit
}
-
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
esac
-if expr a : '\(a\)' >/dev/null 2>&1; then
- as_expr=expr
+rm -f conf$$ conf$$.exe conf$$.file
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
else
- as_expr=false
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
fi
-
-rm -f conf$$ conf$$.exe conf$$.file
-echo >conf$$.file
-if ln -s conf$$.file conf$$ 2>/dev/null; then
- # We could just check for DJGPP; but this test a) works b) is more generic
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
- if test -f conf$$.exe; then
- # Don't use ln at all; we don't have any links
- as_ln_s='cp -p'
- else
+if (echo >conf$$.file) 2>/dev/null; then
+ 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
-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$$.file
+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=:
+ as_mkdir_p='mkdir -p "$as_dir"'
else
+ test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
-as_executable_p="test -f"
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.
-as_nl='
-'
-IFS=" $as_nl"
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-# CDPATH.
-$as_unset CDPATH
+test -n "$DJDIR" || exec 7<&0 </dev/null
+exec 6>&1
# Name of the host.
-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
+# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
# so uname gets run too.
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-exec 6>&1
-
#
# 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}
-
-# Maximum number of lines to put in a shell here document.
-# This variable seems obsolete. It should probably be removed, and
-# only ac_max_sed_lines should be used.
-: ${ac_max_here_lines=38}
# Identity of this package.
PACKAGE_NAME='atlc'
PACKAGE_TARNAME='atlc'
-PACKAGE_VERSION='4.6.0'
-PACKAGE_STRING='atlc 4.6.0'
-PACKAGE_BUGREPORT='drkirkby@ntlworld.com'
+PACKAGE_VERSION='4.6.1'
+PACKAGE_STRING='atlc 4.6.1'
+PACKAGE_BUGREPORT='drkirkby@gmail.com'
+PACKAGE_URL=''
ac_unique_file="tools/src/myfilelength.c"
# Factoring default headers for most tests.
ac_includes_default="\
#include <stdio.h>
-#if HAVE_SYS_TYPES_H
+#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
#endif
-#if HAVE_SYS_STAT_H
+#ifdef HAVE_SYS_STAT_H
# include <sys/stat.h>
#endif
-#if STDC_HEADERS
+#ifdef STDC_HEADERS
# include <stdlib.h>
# include <stddef.h>
#else
-# if HAVE_STDLIB_H
+# ifdef HAVE_STDLIB_H
# include <stdlib.h>
# endif
#endif
-#if HAVE_STRING_H
-# if !STDC_HEADERS && HAVE_MEMORY_H
+#ifdef HAVE_STRING_H
+# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
# include <memory.h>
# endif
# include <string.h>
#endif
-#if HAVE_STRINGS_H
+#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif
-#if HAVE_INTTYPES_H
+#ifdef HAVE_INTTYPES_H
# include <inttypes.h>
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
#endif
-#if HAVE_UNISTD_H
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_UNISTD_H
# include <unistd.h>
#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 datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP POW_LIB LIBOBJS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS built_with_posix_threads compiled_with_compiler compiled_with_cflags LTLIBOBJS'
+ac_subst_vars='am__EXEEXT_FALSE
+am__EXEEXT_TRUE
+LTLIBOBJS
+compiled_with_cflags
+compiled_with_compiler
+built_with_posix_threads
+PTHREAD_CFLAGS
+PTHREAD_LIBS
+PTHREAD_CC
+host_os
+host_vendor
+host_cpu
+host
+build_os
+build_vendor
+build_cpu
+build
+LIBOBJS
+POW_LIB
+EGREP
+GREP
+CPP
+am__fastdepCC_FALSE
+am__fastdepCC_TRUE
+CCDEPMODE
+AMDEPBACKSLASH
+AMDEP_FALSE
+AMDEP_TRUE
+am__quote
+am__include
+DEPDIR
+OBJEXT
+EXEEXT
+ac_ct_CC
+CPPFLAGS
+LDFLAGS
+CFLAGS
+CC
+am__untar
+am__tar
+AMTAR
+am__leading_dot
+SET_MAKE
+AWK
+mkdir_p
+MKDIR_P
+INSTALL_STRIP_PROGRAM
+STRIP
+install_sh
+MAKEINFO
+AUTOHEADER
+AUTOMAKE
+AUTOCONF
+ACLOCAL
+VERSION
+PACKAGE
+CYGPATH_W
+am__isrc
+INSTALL_DATA
+INSTALL_SCRIPT
+INSTALL_PROGRAM
+target_alias
+host_alias
+build_alias
+LIBS
+ECHO_T
+ECHO_N
+ECHO_C
+DEFS
+mandir
+localedir
+libdir
+psdir
+pdfdir
+dvidir
+htmldir
+infodir
+docdir
+oldincludedir
+includedir
+localstatedir
+sharedstatedir
+sysconfdir
+datadir
+datarootdir
+libexecdir
+sbindir
+bindir
+program_transform_name
+prefix
+exec_prefix
+PACKAGE_URL
+PACKAGE_BUGREPORT
+PACKAGE_STRING
+PACKAGE_VERSION
+PACKAGE_TARNAME
+PACKAGE_NAME
+PATH_SEPARATOR
+SHELL'
ac_subst_files=''
+ac_user_opts='
+enable_option_checking
+enable_dependency_tracking
+enable_debug
+enable_hardware_info
+'
+ ac_precious_vars='build_alias
+host_alias
+target_alias
+CC
+CFLAGS
+LDFLAGS
+LIBS
+CPPFLAGS
+CPP'
+
# Initialize some variables set by options.
ac_init_help=
ac_init_version=false
+ac_unrecognized_opts=
+ac_unrecognized_sep=
# The variables have the same names as the options, with
# dashes changed to underlines.
cache_file=/dev/null
# 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'
-datadir='${prefix}/share'
+datarootdir='${prefix}/share'
+datadir='${datarootdir}'
sysconfdir='${prefix}/etc'
sharedstatedir='${prefix}/com'
localstatedir='${prefix}/var'
-libdir='${exec_prefix}/lib'
includedir='${prefix}/include'
oldincludedir='/usr/include'
-infodir='${prefix}/info'
-mandir='${prefix}/man'
+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"
+ eval $ac_prev=\$ac_option
ac_prev=
continue
fi
- ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
+ case $ac_option in
+ *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
+ *=) ac_optarg= ;;
+ *) ac_optarg=yes ;;
+ esac
# Accept the important Cygnus configure options, so we can diagnose typos.
- case $ac_option in
+ case $ac_dashdash$ac_option in
+ --)
+ ac_dashdash=yes ;;
-bindir | --bindir | --bindi | --bind | --bin | --bi)
ac_prev=bindir ;;
--config-cache | -C)
cache_file=config.cache ;;
- -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+ -datadir | --datadir | --datadi | --datad)
ac_prev=datadir ;;
- -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
- | --da=*)
+ -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-\(.*\)'`
+ ac_useropt=`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" ;;
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval enable_$ac_useropt=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-\([^=]*\)'`
+ ac_useropt=`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'`
- case $ac_option in
- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
- *) ac_optarg=yes ;;
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid feature name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"enable_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
esac
- eval "enable_$ac_feature='$ac_optarg'" ;;
+ eval enable_$ac_useropt=\$ac_optarg ;;
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
-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 ;;
| --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 | --local | --loca | --loc | --lo)
+ | --localstate | --localstat | --localsta | --localst | --locals)
ac_prev=localstatedir ;;
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
- | --localstate=* | --localstat=* | --localsta=* | --localst=* \
- | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
localstatedir=$ac_optarg ;;
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
| --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 ;;
ac_init_version=: ;;
-with-* | --with-*)
- ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
+ ac_useropt=`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'`
- case $ac_option in
- *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
- *) ac_optarg=yes ;;
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
esac
- eval "with_$ac_package='$ac_optarg'" ;;
+ eval with_$ac_useropt=\$ac_optarg ;;
-without-* | --without-*)
- ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
+ ac_useropt=`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" ;;
+ expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
+ as_fn_error $? "invalid package name: $ac_useropt"
+ ac_useropt_orig=$ac_useropt
+ ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
+ case $ac_user_opts in
+ *"
+"with_$ac_useropt"
+"*) ;;
+ *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
+ ac_unrecognized_sep=', ';;
+ esac
+ eval with_$ac_useropt=no ;;
--x)
# Obsolete; use --with-x.
| --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; }; }
+ -*) as_fn_error $? "unrecognized option: \`$ac_option'
+Try \`$0 --help' for more information"
;;
*=*)
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; }; }
- ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
- eval "$ac_envvar='$ac_optarg'"
+ case $ac_envvar in #(
+ '' | [0-9]* | *[!_$as_cr_alnum]* )
+ as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
+ esac
+ 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
+ $as_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}
+ $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
+ : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
;;
esac
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; }; }
+ as_fn_error $? "missing argument to $ac_option"
fi
-# Be sure to have absolute paths.
-for ac_var in exec_prefix prefix
-do
- eval ac_val=$`echo $ac_var`
- case $ac_val in
- [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; };;
+if test -n "$ac_unrecognized_opts"; then
+ case $enable_option_checking in
+ no) ;;
+ fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
+ *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
esac
-done
+fi
-# Be sure to have absolute paths.
-for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
- localstatedir libdir includedir oldincludedir infodir mandir
+# Check all directory arguments for consistency.
+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=$`echo $ac_var`
+ eval ac_val=\$$ac_var
+ # Remove trailing slashes.
+ case $ac_val in
+ */ )
+ ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
+ eval $ac_var=\$ac_val;;
+ esac
+ # Be sure to have absolute directory names.
case $ac_val in
- [\\/$]* | ?:[\\/]* ) ;;
- *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
- { (exit 1); exit 1; }; };;
+ [\\/$]* | ?:[\\/]* ) continue;;
+ NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
esac
+ as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
done
# There might be people who depend on the old broken behavior: `$host'
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
+ $as_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
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 .` ||
+ as_fn_error $? "working directory cannot be determined"
+test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
+ as_fn_error $? "pwd does not report name of working directory"
+
+
# Find the source files, if location was not specified.
if test -z "$srcdir"; then
ac_srcdir_defaulted=yes
- # Try the directory containing this script, then its parent.
- ac_confdir=`(dirname "$0") 2>/dev/null ||
-$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'`
+ # Try the directory containing this script, then the parent directory.
+ ac_confdir=`$as_dirname -- "$as_myself" ||
+$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$as_myself" : 'X\(//\)[^/]' \| \
+ X"$as_myself" : 'X\(//\)$' \| \
+ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$as_myself" |
+ 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
+ if test ! -r "$srcdir/$ac_unique_file"; then
srcdir=..
fi
else
ac_srcdir_defaulted=no
fi
-if test ! -r $srcdir/$ac_unique_file; then
- if test "$ac_srcdir_defaulted" = yes; then
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
- { (exit 1); exit 1; }; }
- else
- { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
- { (exit 1); exit 1; }; }
- fi
-fi
-(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
- { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
- { (exit 1); exit 1; }; }
-srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
-ac_env_build_alias_set=${build_alias+set}
-ac_env_build_alias_value=$build_alias
-ac_cv_env_build_alias_set=${build_alias+set}
-ac_cv_env_build_alias_value=$build_alias
-ac_env_host_alias_set=${host_alias+set}
-ac_env_host_alias_value=$host_alias
-ac_cv_env_host_alias_set=${host_alias+set}
-ac_cv_env_host_alias_value=$host_alias
-ac_env_target_alias_set=${target_alias+set}
-ac_env_target_alias_value=$target_alias
-ac_cv_env_target_alias_set=${target_alias+set}
-ac_cv_env_target_alias_value=$target_alias
-ac_env_CC_set=${CC+set}
-ac_env_CC_value=$CC
-ac_cv_env_CC_set=${CC+set}
-ac_cv_env_CC_value=$CC
-ac_env_CFLAGS_set=${CFLAGS+set}
-ac_env_CFLAGS_value=$CFLAGS
-ac_cv_env_CFLAGS_set=${CFLAGS+set}
-ac_cv_env_CFLAGS_value=$CFLAGS
-ac_env_LDFLAGS_set=${LDFLAGS+set}
-ac_env_LDFLAGS_value=$LDFLAGS
-ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
-ac_cv_env_LDFLAGS_value=$LDFLAGS
-ac_env_CPPFLAGS_set=${CPPFLAGS+set}
-ac_env_CPPFLAGS_value=$CPPFLAGS
-ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
-ac_cv_env_CPPFLAGS_value=$CPPFLAGS
-ac_env_CPP_set=${CPP+set}
-ac_env_CPP_value=$CPP
-ac_cv_env_CPP_set=${CPP+set}
-ac_cv_env_CPP_value=$CPP
+if test ! -r "$srcdir/$ac_unique_file"; then
+ test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
+ as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
+fi
+ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
+ac_abs_confdir=`(
+ cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
+ 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.
# 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 atlc 4.6.0 to adapt to many kinds of systems.
+\`configure' configures atlc 4.6.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
--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
+ -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 \`..']
-_ACEOF
-
- cat <<_ACEOF
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[$ac_default_prefix]
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]
- --datadir=DIR read-only architecture-independent data [PREFIX/share]
- --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]
- --infodir=DIR info documentation [PREFIX/info]
- --mandir=DIR man documentation [PREFIX/man]
+ --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/atlc]
+ --htmldir=DIR html documentation [DOCDIR]
+ --dvidir=DIR dvi documentation [DOCDIR]
+ --pdfdir=DIR pdf documentation [DOCDIR]
+ --psdir=DIR ps documentation [DOCDIR]
_ACEOF
cat <<\_ACEOF
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of atlc 4.6.0:";;
+ short | recursive ) echo "Configuration of atlc 4.6.1:";;
esac
cat <<\_ACEOF
Optional Features:
+ --disable-option-checking ignore unrecognized --enable/--with options
--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 builds
- --enable-dependency-tracking Do not reject slow dependency extractors
+ --disable-dependency-tracking speeds up one-time build
+ --enable-dependency-tracking do not reject slow dependency extractors
--enable-debug with debugging code
--disable-hardware-info Find out information about hardware (Disable if
compilation fails during 'make check')
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
- CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
- headers in a nonstandard directory <include dir>
+ LIBS libraries to pass to the linker, e.g. -l<library>
+ CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
+ you have headers in a nonstandard directory <include dir>
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 <drkirkby@ntlworld.com>.
+Report bugs to <drkirkby@gmail.com>.
_ACEOF
+ac_status=$?
fi
if test "$ac_init_help" = "recursive"; then
# If there are subdirs, report their specific --help.
- ac_popdir=`pwd`
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
- test -d $ac_dir || continue
+ test -d "$ac_dir" ||
+ { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
+ continue
ac_builddir=.
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_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
- .) # No --srcdir option. We are building in place.
+ .) # We are building in place.
ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
+ 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 ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
+ 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
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
-
- cd $ac_dir
- # Check for guested configure; otherwise get Cygnus style 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
- elif test -f $ac_srcdir/configure.ac ||
- test -f $ac_srcdir/configure.in; then
- echo
- $ac_configure --help
+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
- cd $ac_popdir
+ $as_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 0
+test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-atlc configure 4.6.0
-generated by GNU Autoconf 2.57
+atlc configure 4.6.1
+generated by GNU Autoconf 2.68
-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
-Free Software Foundation, Inc.
+Copyright (C) 2010 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 0
+ exit
fi
-exec 5>config.log
-cat >&5 <<_ACEOF
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-It was created by atlc $as_me 4.6.0, which was
-generated by GNU Autoconf 2.57. Invocation command line was
-
- $ $0 $@
+## ------------------------ ##
+## Autoconf initialization. ##
+## ------------------------ ##
-_ACEOF
+# ac_fn_c_try_compile LINENO
+# --------------------------
+# Try to compile conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_compile ()
{
-cat <<_ASUNAME
-## --------- ##
-## Platform. ##
-## --------- ##
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest.$ac_objext; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-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`
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
-/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
-/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
+} # ac_fn_c_try_compile
-/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`
-hostinfo = `(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`
+# ac_fn_c_try_link LINENO
+# -----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_link ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ 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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && {
+ test -z "$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ } && test -s conftest$ac_exeext && {
+ test "$cross_compiling" = yes ||
+ $as_test_x conftest$ac_exeext
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-_ASUNAME
+ ac_retval=1
+fi
+ # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
+ # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
+ # interfere with the next link command; also delete a directory that is
+ # left behind by Apple's compiler. We do this before executing the actions.
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
-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
+} # ac_fn_c_try_link
-} >&5
+# ac_fn_c_try_cpp LINENO
+# ----------------------
+# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
+ac_fn_c_try_cpp ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_cpp conftest.$ac_ext"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
+ ac_status=$?
+ if test -s conftest.err; then
+ grep -v '^ *+' conftest.err >conftest.er1
+ cat conftest.er1 >&5
+ mv -f conftest.er1 conftest.err
+ fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } > conftest.i && {
+ test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
+ test ! -s conftest.err
+ }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-cat >&5 <<_ACEOF
+ ac_retval=1
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+} # ac_fn_c_try_cpp
-## ----------- ##
-## Core tests. ##
-## ----------- ##
+# ac_fn_c_try_run LINENO
+# ----------------------
+# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
+# that executables *can* be run.
+ac_fn_c_try_run ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then :
+ ac_retval=0
+else
+ $as_echo "$as_me: program exited with status $ac_status" >&5
+ $as_echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
-_ACEOF
+ ac_retval=$ac_status
+fi
+ rm -rf conftest.dSYM conftest_ipa8_conftest.oo
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+} # ac_fn_c_try_run
-# 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_sep=
-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_sep'$ac_arg'"
- # Get rid of the leading space.
- ac_sep=" "
- ;;
- 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: Be sure not to use single quotes in there, as some shells,
-# such as our DU 5.0 friend, will then `close' the trap.
-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,
-{
- (set) 2>&1 |
- case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- sed -n \
- "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
- s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
- ;;
- *)
- sed -n \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
- ;;
- esac;
-}
- echo
-
- cat <<\_ASBOX
-## ----------------- ##
-## Output variables. ##
-## ----------------- ##
-_ASBOX
- echo
- for ac_var in $ac_subst_vars
- do
- eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
- done | sort
- echo
-
- if test -n "$ac_subst_files"; then
- cat <<\_ASBOX
-## ------------- ##
-## Output files. ##
-## ------------- ##
-_ASBOX
- echo
- for ac_var in $ac_subst_files
- do
- eval ac_val=$`echo $ac_var`
- echo "$ac_var='"'"'$ac_val'"'"'"
- done | sort
- echo
- fi
-
- if test -s confdefs.h; then
- cat <<\_ASBOX
-## ----------- ##
-## confdefs.h. ##
-## ----------- ##
-_ASBOX
- echo
- sed "/^$/d" confdefs.h | sort
- 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 &&
- rm -rf 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 -rf conftest* confdefs.h
-# AIX cpp loses on an empty file, so make sure it contains at least a newline.
-echo >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 -z "$CONFIG_SITE"; then
- if test "x$prefix" != xNONE; then
- CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
- else
- CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
- fi
-fi
-for ac_site_file in $CONFIG_SITE; do
- if test -r "$ac_site_file"; then
- { echo "$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 `(set) 2>&1 |
- sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; 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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-am__api_version="1.7"
-ac_aux_dir=
-for ac_dir in $srcdir $srcdir/.. $srcdir/../..; 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 $srcdir $srcdir/.. $srcdir/../.." >&5
-echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
- { (exit 1); exit 1; }; }
-fi
-ac_config_guess="$SHELL $ac_aux_dir/config.guess"
-ac_config_sub="$SHELL $ac_aux_dir/config.sub"
-ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
-
-# 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"
-# ./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/* | \
- /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 $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
-
-
-fi
- if test "${ac_cv_path_install+set}" = set; then
- INSTALL=$ac_cv_path_install
- else
- # As a last resort, use the slow shell script. We don't cache a
- # path for INSTALL within a source directory, because that will
- # break other packages using the cache if that directory is
- # removed, or if the path is relative.
- INSTALL=$ac_install_sh
- fi
-fi
-echo "$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; }; }
+# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists, giving a warning if it cannot be compiled using
+# the include files in INCLUDES and setting the cache variable VAR
+# accordingly.
+ac_fn_c_check_header_mongrel ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if eval \${$3+:} false; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
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,$//
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+else
+ # Is the header compilable?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
+$as_echo_n "checking $2 usability... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
_ACEOF
-program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
-rm 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 "
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_header_compiler=yes
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;}
+ ac_header_compiler=no
fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
+$as_echo "$ac_header_compiler" >&6; }
-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.
+# Is the header present?
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
+$as_echo_n "checking $2 presence... " >&6; }
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <$2>
+_ACEOF
+if ac_fn_c_try_cpp "$LINENO"; then :
+ ac_header_preproc=yes
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 $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
-
-fi
+ ac_header_preproc=no
fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
- echo "$as_me:$LINENO: result: $AWK" >&5
-echo "${ECHO_T}$AWK" >&6
+rm -f conftest.err conftest.i conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
+$as_echo "$ac_header_preproc" >&6; }
+
+# So? What about this header?
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
+ yes:no: )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
+$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+ ;;
+ no:yes:* )
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
+$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
+$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
+$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
+$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
+$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
+( $as_echo "## --------------------------------- ##
+## Report this to drkirkby@gmail.com ##
+## --------------------------------- ##"
+ ) | sed "s/^/$as_me: WARNING: /" >&2
+ ;;
+esac
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ eval "$3=\$ac_header_compiler"
fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- test -n "$AWK" && break
-done
+} # ac_fn_c_check_header_mongrel
-echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
-set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
-if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
+# -------------------------------------------------------
+# Tests whether HEADER exists and can be compiled using the include files in
+# INCLUDES, setting the cache variable VAR accordingly.
+ac_fn_c_check_header_compile ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- cat >conftest.make <<\_ACEOF
-all:
- @echo 'ac_maketemp="$(MAKE)"'
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+#include <$2>
_ACEOF
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
-eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
-if test -n "$ac_maketemp"; then
- eval ac_cv_prog_make_${ac_make}_set=yes
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
else
- eval ac_cv_prog_make_${ac_make}_set=no
+ eval "$3=no"
fi
-rm -f conftest.make
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
- echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6
- SET_MAKE=
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+
+} # ac_fn_c_check_header_compile
+
+# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
+# -------------------------------------------
+# Tests whether TYPE exists after having included INCLUDES, setting cache
+# variable VAR accordingly.
+ac_fn_c_check_type ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ eval "$3=no"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+if (sizeof ($2))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+if (sizeof (($2)))
+ return 0;
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
- SET_MAKE="MAKE=${MAKE-make}"
+ eval "$3=yes"
fi
-
- # 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; }; }
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+} # ac_fn_c_check_type
-# Define the identity of the package.
- PACKAGE=atlc
- VERSION=4.6.0
-
+# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
+# --------------------------------------------
+# Tries to find the compile-time value of EXPR in a program that includes
+# INCLUDES, setting VAR accordingly. Returns whether the value could be
+# computed
+ac_fn_c_compute_int ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ if test "$cross_compiling" = yes; then
+ # Depending upon the size, compute the lo and hi bounds.
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) >= 0)];
+test_array [0] = 0
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE "$PACKAGE"
+ ;
+ return 0;
+}
_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_lo=0 ac_mid=0
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0
-
-cat >>confdefs.h <<_ACEOF
-#define VERSION "$VERSION"
+ ;
+ return 0;
+}
_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"}
-
-
-AMTAR=${AMTAR-"${am_missing_run}tar"}
-
-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.
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_hi=$ac_mid; break
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 $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
-
+ as_fn_arith $ac_mid + 1 && ac_lo=$as_val
+ if test $ac_lo -le $ac_mid; then
+ ac_lo= ac_hi=
+ break
+ fi
+ as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
- echo "$as_me:$LINENO: result: $STRIP" >&5
-echo "${ECHO_T}$STRIP" >&6
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
-fi
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) < 0)];
+test_array [0] = 0
-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 $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
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_hi=-1 ac_mid=-1
+ while :; do
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) >= $ac_mid)];
+test_array [0] = 0
- test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
-fi
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_lo=$ac_mid; break
+else
+ as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
+ if test $ac_mid -le $ac_hi; then
+ ac_lo= ac_hi=
+ break
+ fi
+ as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
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
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ done
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ ac_lo= ac_hi=
fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+# Binary search between lo and hi bounds.
+while test "x$ac_lo" != "x$ac_hi"; do
+ as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+static int test_array [1 - 2 * !(($2) <= $ac_mid)];
+test_array [0] = 0
- STRIP=$ac_ct_STRIP
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_hi=$ac_mid
else
- STRIP="$ac_cv_prog_STRIP"
+ as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+case $ac_lo in #((
+?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
+'') ac_retval=1 ;;
+esac
+ else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+static long int longval () { return $2; }
+static unsigned long int ulongval () { return $2; }
+#include <stdio.h>
+#include <stdlib.h>
+int
+main ()
+{
-fi
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
+ FILE *f = fopen ("conftest.val", "w");
+ if (! f)
+ return 1;
+ if (($2) < 0)
+ {
+ long int i = longval ();
+ if (i != ($2))
+ return 1;
+ fprintf (f, "%ld", i);
+ }
+ else
+ {
+ unsigned long int i = ulongval ();
+ if (i != ($2))
+ return 1;
+ fprintf (f, "%lu", i);
+ }
+ /* Do not output a trailing newline, as this causes \r\n confusion
+ on some platforms. */
+ return ferror (f) || fclose (f) != 0;
-# We need awk for the "check" target. The system "awk" is bad on
-# some platforms.
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ echo >>conftest.val; read $3 <conftest.val; ac_retval=0
+else
+ ac_retval=1
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+rm -f conftest.val
+ fi
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+ as_fn_set_status $ac_retval
+} # ac_fn_c_compute_int
+# ac_fn_c_check_func LINENO FUNC VAR
+# ----------------------------------
+# Tests whether FUNC exists, setting the cache variable VAR accordingly
+ac_fn_c_check_func ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
+$as_echo_n "checking for $2... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
+ For example, HP-UX 11i <limits.h> declares gettimeofday. */
+#define $2 innocuous_$2
+/* System header to define __stub macros and hopefully few prototypes,
+ which can conflict with char $2 (); below.
+ Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
+ <limits.h> exists even on freestanding compilers. */
-# defining a config.h might be useful as it can prevent a command line becoming
-# too long, but I find it more of a pain than it is useful. To
-# make use of it, it would be necessary to hack every source file to
-# include it. I can't be bothered yet.
- ac_config_headers="$ac_config_headers config.h"
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+#undef $2
+/* 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 $2 ();
+/* 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_$2 || defined __stub___$2
+choke me
+#endif
-# Checks for programs.
-rm -f .deps 2>/dev/null
-mkdir .deps 2>/dev/null
-if test -d .deps; then
- DEPDIR=.deps
+int
+main ()
+{
+return $2 ();
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+ eval "$3=yes"
else
- # MS-DOS does not allow filenames that begin with a dot.
- DEPDIR=_deps
+ eval "$3=no"
fi
-rmdir .deps 2>/dev/null
-
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
- ac_config_commands="$ac_config_commands depfiles"
+} # ac_fn_c_check_func
+# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
+# ---------------------------------------------
+# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
+# accordingly.
+ac_fn_c_check_decl ()
+{
+ as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ as_decl_name=`echo $2|sed 's/ *(.*//'`
+ as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
+$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
+if eval \${$3+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$4
+int
+main ()
+{
+#ifndef $as_decl_name
+#ifdef __cplusplus
+ (void) $as_decl_use;
+#else
+ (void) $as_decl_name;
+#endif
+#endif
-am_make=${MAKE-make}
-cat > confinc << 'END'
-doit:
- @echo done
-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
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ eval "$3=yes"
+else
+ eval "$3=no"
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
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
+eval ac_res=\$$3
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
+$as_echo "$ac_res" >&6; }
+ eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
+} # ac_fn_c_check_decl
+cat >config.log <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
-echo "$as_me:$LINENO: result: $_am_result" >&5
-echo "${ECHO_T}$_am_result" >&6
-rm -f confinc confmf
+It was created by atlc $as_me 4.6.1, which was
+generated by GNU Autoconf 2.68. Invocation command line was
-# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then
- enableval="$enable_dependency_tracking"
+ $ $0 $@
-fi;
-if test "x$enable_dependency_tracking" != xno; then
- am_depcomp="$ac_aux_dir/depcomp"
- AMDEPBACKSLASH='\'
-fi
+_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`
-if test "x$enable_dependency_tracking" != xno; then
- AMDEP_TRUE=
- AMDEP_FALSE='#'
-else
- AMDEP_TRUE='#'
- AMDEP_FALSE=
-fi
+/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
-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 $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
+ $as_echo "PATH: $as_dir"
+ 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
+} >&5
-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
+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
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $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
+ 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=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ case $ac_pass in
+ 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
+ 2)
+ as_fn_append 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
+ as_fn_append ac_configure_args " '$ac_arg'"
+ ;;
+ esac
+ done
done
+{ ac_configure_args0=; unset ac_configure_args0;}
+{ ac_configure_args1=; unset 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
+
+ $as_echo "## ---------------- ##
+## Cache variables. ##
+## ---------------- ##"
+ 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; 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
+
+ $as_echo "## ----------------- ##
+## Output variables. ##
+## ----------------- ##"
+ echo
+ for ac_var in $ac_subst_vars
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+
+ if test -n "$ac_subst_files"; then
+ $as_echo "## ------------------- ##
+## File substitutions. ##
+## ------------------- ##"
+ echo
+ for ac_var in $ac_subst_files
+ do
+ eval ac_val=\$$ac_var
+ case $ac_val in
+ *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
+ esac
+ $as_echo "$ac_var='\''$ac_val'\''"
+ done | sort
+ echo
+ fi
+
+ if test -s confdefs.h; then
+ $as_echo "## ----------- ##
+## confdefs.h. ##
+## ----------- ##"
+ echo
+ cat confdefs.h
+ echo
+ fi
+ test "$ac_signal" != 0 &&
+ $as_echo "$as_me: caught signal $ac_signal"
+ $as_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'; as_fn_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
+
+$as_echo "/* confdefs.h */" > 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
+
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE_URL "$PACKAGE_URL"
+_ACEOF
-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
- CC=$ac_ct_CC
+# Let the site file select an alternate cache file if it wants to.
+# Prefer an explicitly selected file to automatically selected ones.
+ac_site_file1=NONE
+ac_site_file2=NONE
+if test -n "$CONFIG_SITE"; then
+ # We do not want a PATH search for config.site.
+ case $CONFIG_SITE in #((
+ -*) ac_site_file1=./$CONFIG_SITE;;
+ */*) ac_site_file1=$CONFIG_SITE;;
+ *) ac_site_file1=./$CONFIG_SITE;;
+ esac
+elif test "x$prefix" != xNONE; then
+ ac_site_file1=$prefix/share/config.site
+ ac_site_file2=$prefix/etc/config.site
else
- CC="$ac_cv_prog_CC"
+ ac_site_file1=$ac_default_prefix/share/config.site
+ ac_site_file2=$ac_default_prefix/etc/config.site
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
+for ac_site_file in "$ac_site_file1" "$ac_site_file2"
do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $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
+ test "x$ac_site_file" = xNONE && continue
+ if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
+$as_echo "$as_me: loading site script $ac_site_file" >&6;}
+ sed 's/^/| /' "$ac_site_file" >&5
+ . "$ac_site_file" \
+ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "failed to load site script $ac_site_file
+See \`config.log' for more details" "$LINENO" 5; }
fi
done
-done
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
+if test -r "$cache_file"; then
+ # Some versions of bash will fail to source /dev/null (special files
+ # actually), so we avoid doing that. DJGPP emulates it as a regular file.
+ if test /dev/null != "$cache_file" && test -f "$cache_file"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
+$as_echo "$as_me: loading cache $cache_file" >&6;}
+ case $cache_file in
+ [\\/]* | ?:[\\/]* ) . "$cache_file";;
+ *) . "./$cache_file";;
+ esac
+ fi
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
+$as_echo "$as_me: creating cache $cache_file" >&6;}
+ >$cache_file
fi
-fi
-if test -z "$ac_cv_prog_CC"; then
- ac_ct_CC=$CC
- # 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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
- ac_cv_prog_ac_ct_CC="cc"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
- break 2
+# 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,)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
+$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
+ ac_cache_corrupted=: ;;
+ ,set)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
+$as_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
+ # differences in whitespace do not lead to failure.
+ ac_old_val_w=`echo x $ac_old_val`
+ ac_new_val_w=`echo x $ac_new_val`
+ if test "$ac_old_val_w" != "$ac_new_val_w"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
+$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
+ ac_cache_corrupted=:
+ else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
+$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
+ eval $ac_var=\$ac_old_val
+ fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
+$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
+$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
+ fi;;
+ esac
+ # Pass precious variables to config.status.
+ if test "$ac_new_set" = set; then
+ case $ac_new_val in
+ *\'*) ac_arg=$ac_var=`$as_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.
+ *) as_fn_append ac_configure_args " '$ac_arg'" ;;
+ esac
fi
done
-done
-
-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
+if $ac_cache_corrupted; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
+$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
+ as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
fi
+## -------------------- ##
+## Main body of script. ##
+## -------------------- ##
- CC=$ac_ct_CC
-else
- CC="$ac_cv_prog_CC"
-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
+
+
+am__api_version='1.11'
+ac_aux_dir=
+for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; 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
+ as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
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.
+
+# 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.
+
+
+# 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.
+# Reject install programs that cannot install multiple files.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
+$as_echo_n "checking for a BSD-compatible install... " >&6; }
+if test -z "$INSTALL"; then
+if ${ac_cv_path_install+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+ 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 $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
+ # 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_test_x "$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
+ rm -rf conftest.one conftest.two conftest.dir
+ echo one > conftest.one
+ echo two > conftest.two
+ mkdir conftest.dir
+ if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
+ test -s conftest.one && test -s conftest.two &&
+ test -s conftest.dir/conftest.one &&
+ test -s conftest.dir/conftest.two
+ then
+ ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
+ break 3
+ fi
+ fi
+ fi
+ done
+ done
+ ;;
+esac
-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+' '}$@"
+ done
+IFS=$as_save_IFS
+
+rm -rf conftest.one conftest.two conftest.dir
+
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
+$as_echo "$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'
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
+$as_echo_n "checking whether build environment is sane... " >&6; }
+# Just in case
+sleep 1
+echo timestamp > conftest.file
+# Reject unsafe characters in $srcdir or the absolute working directory
+# name. Accept space and tab only in the latter.
+am_lf='
+'
+case `pwd` in
+ *[\\\"\#\$\&\'\`$am_lf]*)
+ as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
+esac
+case $srcdir in
+ *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
+ as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
+esac
+
+# 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".
+ as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
+alias in your environment" "$LINENO" 5
+ fi
+
+ test "$2" = conftest.file
+ )
+then
+ # Ok.
+ :
+else
+ as_fn_error $? "newly created file is older than distributed files!
+Check your system clock" "$LINENO" 5
fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "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 $.
+# By default was `s,x,x', remove it if useless.
+ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
+program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
+
+# expand $ac_aux_dir to an absolute path
+am_aux_dir=`cd $ac_aux_dir && pwd`
+
+if test x"${MISSING+set}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
+ *)
+ MISSING="\${SHELL} $am_aux_dir/missing" ;;
+ esac
fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
- echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6
+# Use eval to expand $SHELL
+if eval "$MISSING --run true"; then
+ am_missing_run="$MISSING --run "
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ am_missing_run=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
+$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
fi
+if test x"${install_sh}" != xset; then
+ case $am_aux_dir in
+ *\ * | *\ *)
+ install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
+ *)
+ install_sh="\${SHELL} $am_aux_dir/install-sh"
+ esac
fi
-if test -z "$CC"; then
+
+# 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
- for ac_prog in cl
- 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
+ # 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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- if test -n "$CC"; then
- ac_cv_prog_CC="$CC" # Let the user override the test.
+ 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 $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
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_STRIP="${ac_tool_prefix}strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
-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
+STRIP=$ac_cv_prog_STRIP
+if test -n "$STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
+$as_echo "$STRIP" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
- test -n "$CC" && break
- done
+
fi
-if test -z "$CC"; then
- ac_ct_CC=$CC
- for ac_prog in cl
-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
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- if test -n "$ac_ct_CC"; then
- ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
+ 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 $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
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_STRIP="strip"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
-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
+ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
+if test -n "$ac_ct_STRIP"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
+$as_echo "$ac_ct_STRIP" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
- test -n "$ac_ct_CC" && break
-done
-
- CC=$ac_ct_CC
+ if test "x$ac_ct_STRIP" = x; then
+ STRIP=":"
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ STRIP=$ac_ct_STRIP
+ fi
+else
+ STRIP="$ac_cv_prog_STRIP"
fi
fi
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
-
-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`
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
- (eval $ac_compiler --version </dev/null >&5) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
- (eval $ac_compiler -v </dev/null >&5) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
- (eval $ac_compiler -V </dev/null >&5) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }
-
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* 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" >&5
-echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
- (eval $ac_link_default) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- # Find the output, starting from the most likely. This scheme is
-# not robust to junk in `.', hence go to wildcards (a.*) only as a last
-# resort.
-
-# Be careful to initialize this variable, since it used to be cached.
-# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
-ac_cv_exeext=
-# b.out is created by i960 compilers.
-for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
-do
- test -f "$ac_file" || continue
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
- ;;
- conftest.$ac_ext )
- # This is the source file.
- ;;
- [ab].out )
- # We found the default executable, but exeext='' is most
- # certainly right.
- break;;
- *.* )
- ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- # FIXME: I believe we export ac_cv_exeext for Libtool,
- # but it would be cool to find out if it's true. Does anybody
- # maintain Libtool? --akim.
- export ac_cv_exeext
- break;;
- * )
- break;;
- esac
-done
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
+$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
+if test -z "$MKDIR_P"; then
+ if ${ac_cv_path_mkdir+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
+do
+ IFS=$as_save_IFS
+ test -z "$as_dir" && as_dir=.
+ for ac_prog in mkdir gmkdir; do
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
+ case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
+ 'mkdir (GNU coreutils) '* | \
+ 'mkdir (coreutils) '* | \
+ 'mkdir (fileutils) '4.1*)
+ ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
+ break 3;;
+ esac
+ done
+ done
+ done
+IFS=$as_save_IFS
-{ { 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 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'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- cross_compiling=no
+ test -d ./--version && rmdir ./--version
+ if test "${ac_cv_path_mkdir+set}" = set; then
+ MKDIR_P="$ac_cv_path_mkdir -p"
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
+ # As a last resort, use the slow shell script. Don't cache a
+ # value for MKDIR_P within a source directory, because that will
+ # break other packages using the cache if that directory is
+ # removed, or if the value is a relative name.
+ MKDIR_P="$ac_install_sh -d"
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 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 | *.o | *.obj ) ;;
- *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
- export ac_cv_exeext
- 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
+$as_echo "$MKDIR_P" >&6; }
-int
-main ()
-{
+mkdir_p="$MKDIR_P"
+case $mkdir_p in
+ [\\/$]* | ?:[\\/]*) ;;
+ */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
+esac
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.o conftest.obj
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; then
- for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
- case $ac_file in
- *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
- *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
- break;;
- esac
-done
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_AWK+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_AWK="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
-{ { 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_c_compiler_gnu+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_compiler_gnu=yes
+AWK=$ac_cv_prog_AWK
+if test -n "$AWK"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
+$as_echo "$AWK" >&6; }
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_compiler_gnu=no
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
-rm -f 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
-CFLAGS="-g"
-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
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-int
-main ()
-{
+ test -n "$AWK" && break
+done
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
+$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
+set x ${MAKE-make}
+ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
+if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_prog_cc_g=no
+ 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
-rm -f conftest.$ac_objext conftest.$ac_ext
+if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+ SET_MAKE=
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+ SET_MAKE="MAKE=${MAKE-make}"
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
+
+rm -rf .tst 2>/dev/null
+mkdir .tst 2>/dev/null
+if test -d .tst; then
+ am__leading_dot=.
else
- if test "$GCC" = yes; then
- CFLAGS="-O2"
- else
- CFLAGS=
+ am__leading_dot=_
+fi
+rmdir .tst 2>/dev/null
+
+if test "`cd $srcdir && pwd`" != "`pwd`"; then
+ # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
+ # is not polluted with repeated "-I."
+ am__isrc=' -I$(srcdir)'
+ # test to see if srcdir already configured
+ if test -f $srcdir/config.status; then
+ as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
fi
fi
-echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
-echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
-if test "${ac_cv_prog_cc_stdc+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_prog_cc_stdc=no
-ac_save_CC=$CC
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* 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;
-}
-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
-# Don't try gcc -ansi; that turns off useful extensions and
-# breaks some systems' header files.
-# AIX -qlanglvl=ansi
-# Ultrix and OSF/1 -std1
-# HP-UX 10.20 and later -Ae
-# HP-UX older versions -Aa -D_HPUX_SOURCE
-# SVR4 -Xc -D__EXTENSIONS__
-for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
- CC="$ac_save_CC $ac_arg"
- rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_prog_cc_stdc=$ac_arg
-break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+# 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
-rm -f conftest.$ac_objext
-done
-rm -f conftest.$ac_ext conftest.$ac_objext
-CC=$ac_save_CC
-fi
-case "x$ac_cv_prog_cc_stdc" in
- x|xno)
- echo "$as_me:$LINENO: result: none needed" >&5
-echo "${ECHO_T}none needed" >&6 ;;
- *)
- echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
- CC="$CC $ac_cv_prog_cc_stdc" ;;
-esac
+# Define the identity of the package.
+ PACKAGE='atlc'
+ VERSION='4.6.1'
-# Some people use a C++ compiler to compile C. Since we use `exit',
-# in C++ we need to declare it. In case someone uses the same compiler
-# for both compiling C and C++ we need to have the C++ compiler decide
-# the declaration of exit, since it's the most demanding environment.
-cat >conftest.$ac_ext <<_ACEOF
-#ifndef __cplusplus
- choke me
-#endif
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- for ac_declaration in \
- ''\
- '#include <stdlib.h>' \
- 'extern "C" void std::exit (int) throw (); using std::exit;' \
- 'extern "C" void std::exit (int); using std::exit;' \
- 'extern "C" void exit (int) throw ();' \
- 'extern "C" void exit (int);' \
- 'void exit (int);'
-do
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-$ac_declaration
-int
-main ()
-{
-exit (42);
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
-continue
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
+cat >>confdefs.h <<_ACEOF
+#define PACKAGE "$PACKAGE"
_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_declaration
-int
-main ()
-{
-exit (42);
- ;
- return 0;
-}
+
+
+cat >>confdefs.h <<_ACEOF
+#define VERSION "$VERSION"
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+# 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"}
+
+# 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 -'
+
+
+
+
+
+
+
+# defining a config.h might be useful as it can prevent a command line becoming
+# too long, but I find it more of a pain than it is useful. To
+# make use of it, it would be necessary to hack every source file to
+# include it. I can't be bothered yet.
+ac_config_headers="$ac_config_headers config.h"
+
+
+
+# Checks for programs.
+DEPDIR="${am__leading_dot}deps"
+
+ac_config_commands="$ac_config_commands depfiles"
+
+
+am_make=${MAKE-make}
+cat > confinc << 'END'
+am__doit:
+ @echo this is the am__doit target
+.PHONY: am__doit
+END
+# If we don't find an include directive, just comment out the code.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
+$as_echo_n "checking for style of include used by $am_make... " >&6; }
+am__include="#"
+am__quote=
+_am_result=none
+# First try GNU make style include.
+echo "include confinc" > confmf
+# Ignore all kinds of additional output from `make'.
+case `$am_make -s -f confmf 2> /dev/null` in #(
+*the\ am__doit\ target*)
+ am__include=include
+ am__quote=
+ _am_result=GNU
+ ;;
+esac
+# Now try BSD make style include.
+if test "$am__include" = "#"; then
+ echo '.include "confinc"' > confmf
+ case `$am_make -s -f confmf 2> /dev/null` in #(
+ *the\ am__doit\ target*)
+ am__include=.include
+ am__quote="\""
+ _am_result=BSD
+ ;;
+ esac
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-done
-rm -f conftest*
-if test -n "$ac_declaration"; then
- echo '#ifdef __cplusplus' >>confdefs.h
- echo $ac_declaration >>confdefs.h
- echo '#endif' >>confdefs.h
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
+$as_echo "$_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
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
+ AMDEP_TRUE='#'
+ AMDEP_FALSE=
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+
+
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
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&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
-
- 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`
+ 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
- for depmode in $am_compiler_list; do
- # 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.
- echo '#include "conftest.h"' > conftest.c
- echo 'int i;' > conftest.h
- echo "${am__include} ${am__quote}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=conftest.c object=conftest.o \
- depfile=conftest.Po tmpdepfile=conftest.TPo \
- $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
- grep conftest.h conftest.Po > /dev/null 2>&1 &&
- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
- am_cv_CC_dependencies_compiler_type=$depmode
- break
- fi
+done
done
+IFS=$as_save_IFS
- 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='#'
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
else
- am__fastdepCC_TRUE='#'
- am__fastdepCC_FALSE=
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
-
-echo "$as_me:$LINENO: checking for library containing strerror" >&5
-echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
-if test "${ac_cv_search_strerror+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ac_func_search_save_LIBS=$LIBS
-ac_cv_search_strerror=no
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
+ 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="gcc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char strerror ();
-int
-main ()
-{
-strerror ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_strerror="none required"
+fi
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+ if test "x$ac_ct_CC" = x; then
+ CC=""
+ else
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
+ fi
+else
+ CC="$ac_cv_prog_CC"
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-if test "$ac_cv_search_strerror" = no; then
- for ac_lib in cposix; do
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char strerror ();
-int
-main ()
-{
-strerror ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_search_strerror="-l$ac_lib"
-break
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="${ac_tool_prefix}cc"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- done
fi
-LIBS=$ac_func_search_save_LIBS
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
-echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
-echo "${ECHO_T}$ac_cv_search_strerror" >&6
-if test "$ac_cv_search_strerror" != no; then
- test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
-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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&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_test_x "$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"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
-# AC_OUTPUT_COMMANDS([exit])
+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
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
-# Checks for libraries.
-# check for optimised math library on SPARC
-# AC_CHECK_LIB([mopt],[main])
-# check for the optimised
-# AC_CHECK_LIB([copt],[main])
-echo "$as_me:$LINENO: checking for log in -lm" >&5
-echo $ECHO_N "checking for log in -lm... $ECHO_C" >&6
-if test "${ac_cv_lib_m_log+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char log ();
-int
-main ()
-{
-log ();
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_lib_m_log=yes
+ if test -n "$CC"; then
+ ac_cv_prog_CC="$CC" # Let the user override the test.
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
+ fi
+done
+ done
+IFS=$as_save_IFS
-ac_cv_lib_m_log=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_m_log" >&5
-echo "${ECHO_T}$ac_cv_lib_m_log" >&6
-if test $ac_cv_lib_m_log = yes; then
- cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBM 1
-_ACEOF
-
- LIBS="-lm $LIBS"
-
+CC=$ac_cv_prog_CC
+if test -n "$CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
+$as_echo "$CC" >&6; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
-# 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=
+ test -n "$CC" && break
+ done
fi
-if test -z "$CPP"; then
- if test "${ac_cv_prog_CPP+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_ac_ct_CC+:} false; then :
+ $as_echo_n "(cached) " >&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
+ 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
- # Use a header file that comes with gcc, so configuring glibc
- # with a fresh cross-compiler works.
- # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
- else
- ac_cpp_err=
+ 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_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
+ ac_cv_prog_ac_ct_CC="$ac_prog"
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
+ break 2
fi
-else
- ac_cpp_err=yes
+done
+ done
+IFS=$as_save_IFS
+
fi
-if test -z "$ac_cpp_err"; then
- :
+fi
+ac_ct_CC=$ac_cv_prog_ac_ct_CC
+if test -n "$ac_ct_CC"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
+$as_echo "$ac_ct_CC" >&6; }
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
- # Broken: fails on valid input.
-continue
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
-rm -f conftest.err conftest.$ac_ext
- # OK, works on sane cases. Now check whether non-existent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
+
+ test -n "$ac_ct_CC" && break
+done
+
+ if test "x$ac_ct_CC" = x; then
+ CC=""
else
- ac_cpp_err=
+ case $cross_compiling:$ac_tool_warned in
+yes:)
+{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
+$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
+ac_tool_warned=yes ;;
+esac
+ CC=$ac_ct_CC
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
+test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "no acceptable C compiler found in \$PATH
+See \`config.log' for more details" "$LINENO" 5; }
-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 <limits.h> to <assert.h> if __STDC__ is defined, since
- # <limits.h> 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
- Syntax error
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+# Provide some information about the compiler.
+$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
+set X $ac_compile
+ac_compiler=$2
+for ac_option in --version -v -V -qversion; do
+ { { ac_try="$ac_compiler $ac_option >&5"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compiler $ac_option >&5") 2>conftest.err
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
- else
- ac_cpp_err=
+ sed '10a\
+... rest of stderr output deleted ...
+ 10q' conftest.err >conftest.er1
+ cat conftest.er1 >&5
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
+ rm -f conftest.er1 conftest.err
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+done
- # Broken: fails on valid input.
-continue
-fi
-rm -f conftest.err conftest.$ac_ext
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
+
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files_save=$ac_clean_files
+ac_clean_files="$ac_clean_files a.out a.out.dSYM 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.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
+$as_echo_n "checking whether the C compiler works... " >&6; }
+ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
+
+# The possible output files:
+ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
+
+ac_rmfiles=
+for ac_file in $ac_files
+do
+ case $ac_file in
+ *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
+ * ) ac_rmfiles="$ac_rmfiles $ac_file";;
+ esac
+done
+rm -f $ac_rmfiles
- # OK, works on sane cases. Now check whether non-existent headers
- # can be detected and how.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
- (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
+if { { ac_try="$ac_link_default"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link_default") 2>&5
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
- else
- ac_cpp_err=
- fi
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; 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 | *.dSYM | *.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
- ac_cpp_err=yes
+ ac_file=''
fi
-if test -z "$ac_cpp_err"; then
- # Broken: success on invalid input.
-continue
-else
- echo "$as_me: failed program was:" >&5
+if test -z "$ac_file"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+$as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
- # Passes both tests.
-ac_preproc_ok=:
-break
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "C compiler cannot create executables
+See \`config.log' for more details" "$LINENO" 5; }
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
fi
-rm -f conftest.err conftest.$ac_ext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
+$as_echo_n "checking for C compiler default output file name... " >&6; }
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
+$as_echo "$ac_file" >&6; }
+ac_exeext=$ac_cv_exeext
+rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
+$as_echo_n "checking for suffix of executables... " >&6; }
+if { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; 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 | *.dSYM | *.o | *.obj ) ;;
+ *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+ break;;
+ * ) break;;
+ esac
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; }; }
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of executables: cannot compile and link
+See \`config.log' for more details" "$LINENO" 5; }
fi
+rm -f conftest conftest$ac_cv_exeext
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
+$as_echo "$ac_cv_exeext" >&6; }
-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
-
+rm -f conftest.$ac_ext
+EXEEXT=$ac_cv_exeext
+ac_exeext=$EXEEXT
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdio.h>
+int
+main ()
+{
+FILE *f = fopen ("conftest.out", "w");
+ return ferror (f) || fclose (f) != 0;
-echo "$as_me:$LINENO: checking for egrep" >&5
-echo $ECHO_N "checking for egrep... $ECHO_C" >&6
-if test "${ac_cv_prog_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_prog_egrep='grep -E'
- else ac_cv_prog_egrep='egrep'
+ ;
+ return 0;
+}
+_ACEOF
+ac_clean_files="$ac_clean_files conftest.out"
+# Check that the compiler produces executables we can run. If not, either
+# the compiler is broken, or we cross compile.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
+$as_echo_n "checking whether we are cross compiling... " >&6; }
+if test "$cross_compiling" != yes; then
+ { { ac_try="$ac_link"
+case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_link") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }
+ if { ac_try='./conftest$ac_cv_exeext'
+ { { case "(($ac_try" in
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
+ *) ac_try_echo=$ac_try;;
+esac
+eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_try") 2>&5
+ ac_status=$?
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; }; then
+ cross_compiling=no
+ else
+ if test "$cross_compiling" = maybe; then
+ cross_compiling=yes
+ else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot run C compiled programs.
+If you meant to cross compile, use \`--host'.
+See \`config.log' for more details" "$LINENO" 5; }
fi
+ fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
-echo "${ECHO_T}$ac_cv_prog_egrep" >&6
- EGREP=$ac_cv_prog_egrep
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
+$as_echo "$cross_compiling" >&6; }
-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
+rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
+ac_clean_files=$ac_clean_files_save
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
+$as_echo_n "checking for suffix of object files... " >&6; }
+if ${ac_cv_objext+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
int
main ()
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
+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 ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
+$as_echo "$ac_try_echo"; } >&5
+ (eval "$ac_compile") 2>&5
ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_header_stdc=yes
+ $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+ test $ac_status = 0; }; 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 | *.dSYM ) ;;
+ *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
+ break;;
+ esac
+done
else
- echo "$as_me: failed program was:" >&5
+ $as_echo "$as_me: failed program was:" >&5
sed 's/^/| /' conftest.$ac_ext >&5
-ac_cv_header_stdc=no
+{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "cannot compute suffix of object files: cannot compile
+See \`config.log' for more details" "$LINENO" 5; }
fi
-rm -f 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+rm -f conftest.$ac_cv_objext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
+$as_echo "$ac_cv_objext" >&6; }
+OBJEXT=$ac_cv_objext
+ac_objext=$OBJEXT
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
+$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
+if ${ac_cv_c_compiler_gnu+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <string.h>
+int
+main ()
+{
+#ifndef __GNUC__
+ choke me
+#endif
+
+ ;
+ return 0;
+}
_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "memchr" >/dev/null 2>&1; then
- :
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_compiler_gnu=yes
else
- ac_cv_header_stdc=no
+ ac_compiler_gnu=no
fi
-rm -f conftest*
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ac_cv_c_compiler_gnu=$ac_compiler_gnu
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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- $EGREP "free" >/dev/null 2>&1; then
- :
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
+$as_echo "$ac_cv_c_compiler_gnu" >&6; }
+if test $ac_compiler_gnu = yes; then
+ GCC=yes
else
- ac_cv_header_stdc=no
+ GCC=
fi
-rm -f conftest*
+ac_test_CFLAGS=${CFLAGS+set}
+ac_save_CFLAGS=$CFLAGS
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
+$as_echo_n "checking whether $CC accepts -g... " >&6; }
+if ${ac_cv_prog_cc_g+:} false; then :
+ $as_echo_n "(cached) " >&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 confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
-fi
+int
+main ()
+{
-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
-#line $LINENO "configure"
-/* confdefs.h. */
+ ;
+ return 0;
+}
_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
+else
+ CFLAGS=""
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <ctype.h>
-#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))
- exit(2);
- exit (0);
+
+ ;
+ return 0;
}
_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- :
+if ac_fn_c_try_compile "$LINENO"; 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
+ ac_c_werror_flag=$ac_save_c_werror_flag
+ CFLAGS="-g"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+
+int
+main ()
+{
-( exit $ac_status )
-ac_cv_header_stdc=no
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_g=yes
fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+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_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
-
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
+$as_echo "$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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
+$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
+if ${ac_cv_prog_cc_c89+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_prog_cc_c89=no
+ac_save_CC=$CC
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdarg.h>
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+/* 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;
+}
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-
-
-
-
-
-
-
-
+/* 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];
-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 eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
+/* 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];
-#include <$ac_header>
+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
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
+for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
+ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+ CC="$ac_save_CC $ac_arg"
+ if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_prog_cc_c89=$ac_arg
+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
-eval "$as_ac_Header=no"
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
+# AC_CACHE_VAL
+case "x$ac_cv_prog_cc_c89" in
+ x)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
+$as_echo "none needed" >&6; } ;;
+ xno)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
+$as_echo "unsupported" >&6; } ;;
+ *)
+ CC="$CC $ac_cv_prog_cc_c89"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
+$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
+esac
+if test "x$ac_cv_prog_cc_c89" != xno; then :
fi
-done
-
-
+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=
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
+$as_echo_n "checking dependency style of $depcc... " >&6; }
+if ${am_cv_CC_dependencies_compiler_type+:} false; then :
+ $as_echo_n "(cached) " >&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
+ am__universal=false
+ case " $depcc " in #(
+ *\ -arch\ *\ -arch\ *) am__universal=true ;;
+ esac
+ 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
+ # 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. Also, some Intel
+ # versions had trouble with output in subdirs
+ am__obj=sub/conftest.${OBJEXT-o}
+ am__minus_obj="-o $am__obj"
+ case $depmode in
+ gcc)
+ # This depmode causes a compiler race in universal mode.
+ test "$am__universal" = false || continue
+ ;;
+ 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
+ ;;
+ msvisualcpp | msvcmsys)
+ # This compiler won't grok `-c -o', but also, the minuso test has
+ # not run yet. These depmodes are late enough in the game, and
+ # so weak that their functioning should not be impacted.
+ am__obj=conftest.${OBJEXT-o}
+ am__minus_obj=
+ ;;
+ none) break ;;
+ esac
+ if depmode=$depmode \
+ source=sub/conftest.c object=$am__obj \
+ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
+ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
+ >/dev/null 2>conftest.err &&
+ grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep $am__obj 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
-for ac_header in stdio.h math.h malloc.h stdlib.h string.h time.h limits.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
-#line $LINENO "configure"
-/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
+$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
+CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-ac_header_compiler=no
+ 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
-rm -f 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
+$as_echo_n "checking for library containing strerror... " >&6; }
+if ${ac_cv_search_strerror+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_func_search_save_LIBS=$LIBS
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <$ac_header>
+
+/* 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 strerror ();
+int
+main ()
+{
+return strerror ();
+ ;
+ return 0;
+}
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
+for ac_lib in '' cposix; do
+ if test -z "$ac_lib"; then
+ ac_res="none required"
else
- ac_cpp_err=
+ ac_res=-l$ac_lib
+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
fi
-else
- ac_cpp_err=yes
+ if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_search_strerror=$ac_res
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
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext
+ if ${ac_cv_search_strerror+:} false; then :
+ break
fi
-rm -f conftest.err conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6
+done
+if ${ac_cv_search_strerror+:} false; then :
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc 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 preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- 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: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_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 eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
else
- eval "$as_ac_Header=$ac_header_preproc"
+ ac_cv_search_strerror=no
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-
+rm conftest.$ac_ext
+LIBS=$ac_func_search_save_LIBS
fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
+$as_echo "$ac_cv_search_strerror" >&6; }
+ac_res=$ac_cv_search_strerror
+if test "$ac_res" != no; then :
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
fi
-done
-
-
-
+# AC_OUTPUT_COMMANDS([exit])
-for ac_header in strings.h sys/types.h machine/hal_sysinfo.h sys/sysinfo.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+# Checks for libraries.
+# check for optimised math library on SPARC
+# AC_CHECK_LIB([mopt],[main])
+# check for the optimised
+# AC_CHECK_LIB([copt],[main])
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
+$as_echo_n "checking for log in -lm... " >&6; }
+if ${ac_cv_lib_m_log+:} false; then :
+ $as_echo_n "(cached) " >&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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ ac_check_lib_save_LIBS=$LIBS
+LIBS="-lm $LIBS"
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <$ac_header>
+/* 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 log ();
+int
+main ()
+{
+return log ();
+ ;
+ return 0;
+}
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
- 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 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 preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- 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: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_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 eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+if ac_fn_c_try_link "$LINENO"; then :
+ ac_cv_lib_m_log=yes
else
- eval "$as_ac_Header=$ac_header_preproc"
+ ac_cv_lib_m_log=no
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
-
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+LIBS=$ac_check_lib_save_LIBS
fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
+$as_echo "$ac_cv_lib_m_log" >&6; }
+if test "x$ac_cv_lib_m_log" = xyes; then :
cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+#define HAVE_LIBM 1
_ACEOF
-fi
-
-done
-
-
-
+ LIBS="-lm $LIBS"
+fi
-for ac_header in sys/processor.h sched.h sys/param.h sys/pstat.h sys/unistd.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+# 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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
+$as_echo_n "checking how to run the C preprocessor... " >&6; }
+# On Suns, sometimes $CPP names a directory.
+if test -n "$CPP" && test -d "$CPP"; then
+ CPP=
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
-#line $LINENO "configure"
-/* 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
+if test -z "$CPP"; then
+ if ${ac_cv_prog_CPP+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_header_compiler=no
-fi
-rm -f 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ # 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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <$ac_header>
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
- 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
+if ac_fn_c_try_cpp "$LINENO"; then :
-# So? What about this header?
-case $ac_header_compiler:$ac_header_preproc 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 preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- 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: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_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 eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
else
- eval "$as_ac_Header=$ac_header_preproc"
+ # Broken: fails on valid input.
+continue
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+rm -f conftest.err conftest.i conftest.$ac_ext
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
- cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ac_nonexistent.h>
_ACEOF
-
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
+else
+ # Passes both tests.
+ac_preproc_ok=:
+break
fi
+rm -f conftest.err conftest.i conftest.$ac_ext
done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+ break
+fi
+ done
+ ac_cv_prog_CPP=$CPP
-
-
-
-for ac_header in sys/utsname.h sys/systeminfo.h unistd.h aixfont.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+ CPP=$ac_cv_prog_CPP
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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ ac_cv_prog_CPP=$CPP
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
+$as_echo "$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 <limits.h> to <assert.h> if __STDC__ is defined, since
+ # <limits.h> 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
+#ifdef __STDC__
+# include <limits.h>
+#else
+# include <assert.h>
+#endif
+ Syntax error
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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
+if ac_fn_c_try_cpp "$LINENO"; then :
-ac_header_compiler=no
+else
+ # Broken: fails on valid input.
+continue
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6
+rm -f conftest.err conftest.i conftest.$ac_ext
-# 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ # OK, works on sane cases. Now check whether nonexistent headers
+ # can be detected and how.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <$ac_header>
+#include <ac_nonexistent.h>
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
- else
- ac_cpp_err=
- fi
+if ac_fn_c_try_cpp "$LINENO"; then :
+ # Broken: success on invalid input.
+continue
else
- ac_cpp_err=yes
+ # Passes both tests.
+ac_preproc_ok=:
+break
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
+rm -f conftest.err conftest.i conftest.$ac_ext
- ac_header_preproc=no
+done
+# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
+rm -f conftest.i conftest.err conftest.$ac_ext
+if $ac_preproc_ok; then :
+
+else
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
+See \`config.log' for more details" "$LINENO" 5; }
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 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 preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- 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: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
+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
+
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
+$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
+if ${ac_cv_path_GREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if test -z "$GREP"; then
+ 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_test_x "$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
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_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
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ 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
-echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+
+ $ac_path_GREP_found && break 3
+ done
+ done
+ done
+IFS=$as_save_IFS
+ if test -z "$ac_cv_path_GREP"; then
+ as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
else
- eval "$as_ac_Header=$ac_header_preproc"
+ ac_cv_path_GREP=$GREP
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
+$as_echo "$ac_cv_path_GREP" >&6; }
+ GREP="$ac_cv_path_GREP"
-fi
-done
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
+$as_echo_n "checking for egrep... " >&6; }
+if ${ac_cv_path_EGREP+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
+ then ac_cv_path_EGREP="$GREP -E"
+ else
+ if test -z "$EGREP"; then
+ 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_test_x "$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
+ $as_echo_n 0123456789 >"conftest.in"
+ while :
+ do
+ cat "conftest.in" "conftest.in" >"conftest.tmp"
+ mv "conftest.tmp" "conftest.in"
+ cp "conftest.in" "conftest.nl"
+ $as_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
+ as_fn_arith $ac_count + 1 && ac_count=$as_val
+ 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
+ if test -z "$ac_cv_path_EGREP"; then
+ as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
+ fi
+else
+ ac_cv_path_EGREP=$EGREP
+fi
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
+$as_echo "$ac_cv_path_EGREP" >&6; }
+ EGREP="$ac_cv_path_EGREP"
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
+$as_echo_n "checking for ANSI C header files... " >&6; }
+if ${ac_cv_header_stdc+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <float.h>
+int
+main ()
+{
-for ac_header in linux/ip.h errno.h sys/vid.h invent.h sys/sysctl.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
-#line $LINENO "configure"
-/* confdefs.h. */
+ ;
+ return 0;
+}
_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdc=yes
+else
+ 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 confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
+#include <string.h>
+
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_header_compiler=yes
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "memchr" >/dev/null 2>&1; then :
+
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ ac_cv_header_stdc=no
+fi
+rm -f conftest*
-ac_header_compiler=no
fi
-rm -f 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+if test $ac_cv_header_stdc = yes; then
+ # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-#include <$ac_header>
+#include <stdlib.h>
+
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
- else
- ac_cpp_err=
- fi
+if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+ $EGREP "free" >/dev/null 2>&1; then :
+
else
- ac_cpp_err=yes
+ ac_cv_header_stdc=no
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
+rm -f conftest*
- 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 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 preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- 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: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_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 eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+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 confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <ctype.h>
+#include <stdlib.h>
+#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
+if ac_fn_c_try_run "$LINENO"; then :
+
else
- eval "$as_ac_Header=$ac_header_preproc"
+ ac_cv_header_stdc=no
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+fi
fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
+$as_echo "$ac_cv_header_stdc" >&6; }
+if test $ac_cv_header_stdc = yes; then
+
+$as_echo "#define STDC_HEADERS 1" >>confdefs.h
fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+
+# 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=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
+"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
done
-# sys/syslimits.h and sys/param.h sometimes needed on OpenBSD 3.2 SPARC
-for ac_header in sys/syslimits.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
-if eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-#include <$ac_header>
+for ac_header in stdio.h math.h malloc.h stdlib.h string.h time.h limits.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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
-#line $LINENO "configure"
-/* confdefs.h. */
+done
+
+for ac_header in strings.h sys/types.h machine/hal_sysinfo.h sys/sysinfo.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-#include <$ac_header>
+
+fi
+
+done
+
+for ac_header in sys/processor.h sched.h sys/param.h sys/pstat.h sys/unistd.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
-if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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
- 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
+done
+
+for ac_header in sys/utsname.h sys/systeminfo.h unistd.h aixfont.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
+
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 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 preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_ASBOX
- ) |
- sed "s/^/$as_me: WARNING: /" >&2
- ;;
- 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: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
- (
- cat <<\_ASBOX
-## ------------------------------------ ##
-## Report this to bug-autoconf@gnu.org. ##
-## ------------------------------------ ##
-_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 eval "test \"\${$as_ac_Header+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- eval "$as_ac_Header=$ac_header_preproc"
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
+done
+
+for ac_header in linux/ip.h errno.h sys/vid.h invent.h sys/sysctl.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
+_ACEOF
fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
+
+done
+
+# sys/syslimits.h and sys/param.h sometimes needed on OpenBSD 3.2 SPARC
+for ac_header in sys/syslimits.h
+do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
fi
# Checks for typedefs
-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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
+$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
+if ${ac_cv_header_stdbool_h+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdbool.h>
#ifndef bool
-# error bool is not defined
+ "error: bool is not defined"
#endif
#ifndef false
-# error false is not defined
+ "error: false is not defined"
#endif
#if false
-# error false is not 0
+ "error: false is not 0"
#endif
#ifndef true
-# error true is not defined
+ "error: true is not defined"
#endif
#if true != 1
-# error true is not 1
+ "error: true is not 1"
#endif
#ifndef __bool_true_false_are_defined
-# error __bool_true_false_are_defined is not 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];
+ 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];
+ /* See body of main program for 'e'. */
+ 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 };
+ /* The following fails for
+ HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
+ _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];
+ /* 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 ()
{
- return !a + !b + !c + !d + !e + !f + !g + !h + !i;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-if ((_Bool *) 0)
- return 0;
-if (sizeof (_Bool))
- return 0;
+ bool e = &s;
+ *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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_type__Bool=yes
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_header_stdbool_h=yes
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_type__Bool=no
+ ac_cv_header_stdbool_h=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
+$as_echo "$ac_cv_header_stdbool_h" >&6; }
+ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
+if test "x$ac_cv_type__Bool" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE__BOOL 1
if test $ac_cv_header_stdbool_h = yes; then
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_STDBOOL_H 1
-_ACEOF
+$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
+$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
+if ${ac_cv_c_const+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
#ifndef __cplusplus
/* Ultrix mips cc rejects this. */
typedef int charset[2];
- const charset x;
+ const charset cs;
/* SunOS 4.1.1 cc rejects this. */
- char const *const *ccp;
- char **p;
+ char const *const *pcpcc;
+ char **ppc;
/* NEC SVR4.0.2 mips cc rejects this. */
struct point {int x, y;};
static struct point const zero = {0,0};
an arm of an if-expression whose if-part is not a constant
expression */
const char *g = "string";
- ccp = &g + (g ? g-g : 0);
+ pcpcc = &g + (g ? g-g : 0);
/* HPUX 7.0 cc rejects these. */
- ++ccp;
- p = (char**) ccp;
- ccp = (char const *const *) p;
+ ++pcpcc;
+ ppc = (char**) pcpcc;
+ pcpcc = (char const *const *) ppc;
{ /* 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};
}
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
const int foo = 10;
+ if (!foo) return 0;
}
+ return !cs[0] && !zero.x;
#endif
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_compile "$LINENO"; 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
+ ac_cv_c_const=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
+$as_echo "$ac_cv_c_const" >&6; }
if test $ac_cv_c_const = no; then
-cat >>confdefs.h <<\_ACEOF
-#define const
-_ACEOF
+$as_echo "#define const /**/" >>confdefs.h
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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-if ((size_t *) 0)
- return 0;
-if (sizeof (size_t))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
+if test "x$ac_cv_type_size_t" = xyes; then :
-ac_cv_type_size_t=no
-fi
-rm -f 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
+#define size_t unsigned int
_ACEOF
fi
# checks for structures (none need to be tested)
# checks for compiler characteristics
-echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
-echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
-if test "${ac_cv_c_bigendian+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- # See if sys/param.h defines the BYTE_ORDER macro.
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
+$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
+if ${ac_cv_c_bigendian+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_bigendian=unknown
+ # See if we're dealing with a universal compiler.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __APPLE_CC__
+ not a universal capable compiler
+ #endif
+ typedef int dummy;
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+ # Check for potential -arch flags. It is not universal unless
+ # there are at least two -arch flags with different values.
+ ac_arch=
+ ac_prev=
+ for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
+ if test -n "$ac_prev"; then
+ case $ac_word in
+ i?86 | x86_64 | ppc | ppc64)
+ if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
+ ac_arch=$ac_word
+ else
+ ac_cv_c_bigendian=universal
+ break
+ fi
+ ;;
+ esac
+ ac_prev=
+ elif test "x$ac_word" = "x-arch"; then
+ ac_prev=arch
+ fi
+ done
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
-#include <sys/param.h>
+ #include <sys/param.h>
int
main ()
{
-#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
- bogus endian macros
-#endif
+#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
+ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
+ && LITTLE_ENDIAN)
+ bogus endian macros
+ #endif
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_compile "$LINENO"; then :
# It does; now see whether it defined to BIG_ENDIAN or not.
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <sys/types.h>
-#include <sys/param.h>
+ #include <sys/param.h>
int
main ()
{
#if BYTE_ORDER != BIG_ENDIAN
- not big endian
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_c_bigendian=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_c_bigendian=no
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ not big endian
+ #endif
-# It does not; compile a test program.
-if test "$cross_compiling" = yes; then
- # try to guess the endianness by grepping values into an object file
- ac_cv_c_bigendian=unknown
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
-short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
-void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
-short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
-short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
-void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
-int
-main ()
-{
- _ascii (); _ebcdic ();
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
+if ac_fn_c_try_compile "$LINENO"; then :
ac_cv_c_bigendian=yes
-fi
-if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
- if test "$ac_cv_c_bigendian" = unknown; then
- ac_cv_c_bigendian=no
- else
- # finding both strings is unlikely to happen, but who knows?
- ac_cv_c_bigendian=unknown
- fi
-fi
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-int
-main ()
-{
- /* Are we little or big endian? From Harbison&Steele. */
- union
- {
- long l;
- char c[sizeof (long)];
- } u;
- u.l = 1;
- exit (u.c[sizeof (long) - 1] == 1);
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
ac_cv_c_bigendian=no
-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_c_bigendian=yes
-fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
-echo "${ECHO_T}$ac_cv_c_bigendian" >&6
-case $ac_cv_c_bigendian in
- yes)
-
-cat >>confdefs.h <<\_ACEOF
-#define WORDS_BIGENDIAN 1
-_ACEOF
- ;;
- no)
- ;;
- *)
- { { echo "$as_me:$LINENO: error: unknown endianness
-presetting ac_cv_c_bigendian=no (or yes) will help" >&5
-echo "$as_me: error: unknown endianness
-presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
- { (exit 1); exit 1; }; } ;;
-esac
-
-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
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-if ((size_t *) 0)
- return 0;
-if (sizeof (size_t))
- return 0;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.$ac_objext conftest.$ac_ext
+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
-
-echo "$as_me:$LINENO: checking size of size_t" >&5
-echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
-if test "${ac_cv_sizeof_size_t+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- if test "$ac_cv_type_size_t" = yes; then
- # The cast to unsigned long works around a bug in the HP C Compiler
- # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
- # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
- # This bug is HP SR number 8606223364.
- if test "$cross_compiling" = yes; then
- # Depending upon the size, compute the lo and hi bounds.
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
-test_array [0] = 0
+#include <limits.h>
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_lo=0 ac_mid=0
- while :; do
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
-test_array [0] = 0
+#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
+ bogus endian macros
+ #endif
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_hi=$ac_mid; break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_lo=`expr $ac_mid + 1`
- if test $ac_lo -le $ac_mid; then
- ac_lo= ac_hi=
- break
- fi
- ac_mid=`expr 2 '*' $ac_mid + 1`
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- done
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ # It does; now see whether it defined to _BIG_ENDIAN or not.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
-test_array [0] = 0
+#include <limits.h>
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_hi=-1 ac_mid=-1
- while :; do
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
-test_array [0] = 0
+#ifndef _BIG_ENDIAN
+ not big endian
+ #endif
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_lo=$ac_mid; break
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_hi=`expr '(' $ac_mid ')' - 1`
- if test $ac_mid -le $ac_hi; then
- ac_lo= ac_hi=
- break
- fi
- ac_mid=`expr 2 '*' $ac_mid`
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
- done
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_bigendian=yes
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_lo= ac_hi=
+ ac_cv_c_bigendian=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-# Binary search between lo and hi bounds.
-while test "x$ac_lo" != "x$ac_hi"; do
- ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # Compile a test program.
+ if test "$cross_compiling" = yes; then :
+ # Try to guess by grepping values from an object file.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-$ac_includes_default
+short int ascii_mm[] =
+ { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+ short int ascii_ii[] =
+ { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+ int use_ascii (int i) {
+ return ascii_mm[i] + ascii_ii[i];
+ }
+ short int ebcdic_ii[] =
+ { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+ short int ebcdic_mm[] =
+ { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+ int use_ebcdic (int i) {
+ return ebcdic_mm[i] + ebcdic_ii[i];
+ }
+ extern int foo;
+
int
main ()
{
-static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
-test_array [0] = 0
-
+return use_ascii (foo) == use_ebcdic (foo);
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_hi=$ac_mid
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_lo=`expr '(' $ac_mid ')' + 1`
-fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-done
-case $ac_lo in
-?*) ac_cv_sizeof_size_t=$ac_lo;;
-'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (size_t), 77
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; } ;;
-esac
-else
- if test "$cross_compiling" = yes; then
- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run test program while cross compiling
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
+ ac_cv_c_bigendian=yes
+ fi
+ if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if test "$ac_cv_c_bigendian" = unknown; then
+ ac_cv_c_bigendian=no
+ else
+ # finding both strings is unlikely to happen, but who knows?
+ ac_cv_c_bigendian=unknown
+ fi
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
$ac_includes_default
-long longval () { return (long) (sizeof (size_t)); }
-unsigned long ulongval () { return (long) (sizeof (size_t)); }
-#include <stdio.h>
-#include <stdlib.h>
-int
-main ()
-{
-
- FILE *f = fopen ("conftest.val", "w");
- if (! f)
- exit (1);
- if (((long) (sizeof (size_t))) < 0)
- {
- long i = longval ();
- if (i != ((long) (sizeof (size_t))))
- exit (1);
- fprintf (f, "%ld\n", i);
- }
- else
- {
- unsigned long i = ulongval ();
- if (i != ((long) (sizeof (size_t))))
- exit (1);
- fprintf (f, "%lu\n", i);
- }
- exit (ferror (f) || fclose (f) != 0);
+int
+main ()
+{
+
+ /* Are we little or big endian? From Harbison&Steele. */
+ union
+ {
+ long int l;
+ char c[sizeof (long int)];
+ } u;
+ u.l = 1;
+ return u.c[sizeof (long int) - 1] == 1;
;
return 0;
}
_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_sizeof_size_t=`cat conftest.val`
+if ac_fn_c_try_run "$LINENO"; then :
+ ac_cv_c_bigendian=no
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 )
-{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute sizeof (size_t), 77
-See \`config.log' for more details." >&2;}
- { (exit 1); exit 1; }; }
+ ac_cv_c_bigendian=yes
fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
+
+ fi
fi
-rm -f conftest.val
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
+$as_echo "$ac_cv_c_bigendian" >&6; }
+ case $ac_cv_c_bigendian in #(
+ yes)
+ $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
+;; #(
+ no)
+ ;; #(
+ universal)
+
+$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
+
+ ;; #(
+ *)
+ as_fn_error $? "unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ esac
+
+# The cast to long int works around a bug in the HP C Compiler
+# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
+# This bug is HP SR number 8606223364.
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
+$as_echo_n "checking size of size_t... " >&6; }
+if ${ac_cv_sizeof_size_t+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ac_cv_sizeof_size_t=0
+ if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
+
+else
+ if test "$ac_cv_type_size_t" = yes; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+as_fn_error 77 "cannot compute sizeof (size_t)
+See \`config.log' for more details" "$LINENO" 5; }
+ else
+ ac_cv_sizeof_size_t=0
+ fi
fi
+
fi
-echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
-echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
+$as_echo "$ac_cv_sizeof_size_t" >&6; }
+
+
+
cat >>confdefs.h <<_ACEOF
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
_ACEOF
# checks for library functions
-echo "$as_me:$LINENO: checking for working strtod" >&5
-echo $ECHO_N "checking for working strtod... $ECHO_C" >&6
-if test "${ac_cv_func_strtod+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
+$as_echo_n "checking for working strtod... " >&6; }
+if ${ac_cv_func_strtod+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- if test "$cross_compiling" = yes; then
+ if test "$cross_compiling" = yes; then :
ac_cv_func_strtod=no
else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
+$ac_includes_default
+#ifndef strtod
double strtod ();
+#endif
int
main()
{
double value;
value = strtod (string, &term);
if (value != 69 || term != (string + 4))
- exit (1);
+ return 1;
}
{
char *term;
strtod (string, &term);
if (term != string && *(term - 1) == 0)
- exit (1);
+ return 1;
}
- exit (0);
+ return 0;
}
_ACEOF
-rm -f conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_run "$LINENO"; then :
ac_cv_func_strtod=yes
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_func_strtod=no
+ ac_cv_func_strtod=no
fi
-rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
fi
+
fi
-echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
-echo "${ECHO_T}$ac_cv_func_strtod" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
+$as_echo "$ac_cv_func_strtod" >&6; }
if test $ac_cv_func_strtod = no; then
- LIBOBJS="$LIBOBJS strtod.$ac_objext"
-echo "$as_me:$LINENO: checking for pow" >&5
-echo $ECHO_N "checking for pow... $ECHO_C" >&6
-if test "${ac_cv_func_pow+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pow (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char pow ();
-/* 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_pow) || defined (__stub___pow)
-choke me
-#else
-char (*f) () = pow;
-#endif
-#ifdef __cplusplus
-}
-#endif
+ case " $LIBOBJS " in
+ *" strtod.$ac_objext "* ) ;;
+ *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
+ ;;
+esac
-int
-main ()
-{
-return f != pow;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_pow=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
+if test "x$ac_cv_func_pow" = xyes; then :
-ac_cv_func_pow=no
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fi
-echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
-echo "${ECHO_T}$ac_cv_func_pow" >&6
if test $ac_cv_func_pow = no; then
- echo "$as_me:$LINENO: checking for pow in -lm" >&5
-echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
-if test "${ac_cv_lib_m_pow+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
+$as_echo_n "checking for pow in -lm... " >&6; }
+if ${ac_cv_lib_m_pow+:} false; then :
+ $as_echo_n "(cached) " >&6
else
ac_check_lib_save_LIBS=$LIBS
LIBS="-lm $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-/* Override any gcc2 internal prototype to avoid an error. */
+/* 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
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
char pow ();
int
main ()
{
-pow ();
+return pow ();
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_link "$LINENO"; then :
ac_cv_lib_m_pow=yes
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_lib_m_pow=no
+ ac_cv_lib_m_pow=no
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
-echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
-echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
-if test $ac_cv_lib_m_pow = yes; then
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
+$as_echo "$ac_cv_lib_m_pow" >&6; }
+if test "x$ac_cv_lib_m_pow" = xyes; then :
POW_LIB=-lm
else
- { echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
-echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
+$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
fi
fi
fi
-
-
-
-
-
-
for ac_func in memset strchr strtol processor_info getsysinfo pthread_num_processors_np
-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 eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-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
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
-
-
-
-
-
-
-
for ac_func in cpu_get_max pstat pstat_getdynamic pstat_getprocessor uname sysconf sysinfo
-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 eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-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
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
-
-
-
-
for ac_func in cpusetcreate cpucountset cpu_get_num sysctl
-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 eval "test \"\${$as_ac_var+set}\" = set"; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-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
-#else
-char (*f) () = $ac_func;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != $ac_func;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
-echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
-if test `eval echo '${'$as_ac_var'}'` = yes; then
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
#AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],[ with debugging code]), AC_DEFINE([DEBUG],[1]))
-# Check whether --enable-debug or --disable-debug was given.
-if test "${enable_debug+set}" = set; then
- enableval="$enable_debug"
+# Check whether --enable-debug was given.
+if test "${enable_debug+set}" = set; then :
+ enableval=$enable_debug;
+$as_echo "#define DEBUG 1" >>confdefs.h
-cat >>confdefs.h <<\_ACEOF
-#define DEBUG 1
-_ACEOF
+fi
-fi;
-# Check whether --enable-hardware-info or --disable-hardware-info was given.
-if test "${enable_hardware_info+set}" = set; then
- enableval="$enable_hardware_info"
- 1
+# Check whether --enable-hardware-info was given.
+if test "${enable_hardware_info+set}" = set; then :
+ enableval=$enable_hardware_info; 1
else
-cat >>confdefs.h <<\_ACEOF
-#define TRY_TO_GET_HARDWARE_INFO 1
-_ACEOF
+$as_echo "#define TRY_TO_GET_HARDWARE_INFO 1" >>confdefs.h
+
+fi
-fi;
# Put a usage message so the user can use threads if wanted.
#AC_ARG_WITH(threads,
# Multi-Processor Support checked with the macro m4/acx_pthread.m4
if test "x$with_threads" = "xyes"; then
# Make sure we can run config.sub.
-$ac_config_sub sun4 >/dev/null 2>&1 ||
- { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
-echo "$as_me: error: cannot run $ac_config_sub" >&2;}
- { (exit 1); exit 1; }; }
-
-echo "$as_me:$LINENO: checking build system type" >&5
-echo $ECHO_N "checking build system type... $ECHO_C" >&6
-if test "${ac_cv_build+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- ac_cv_build_alias=$build_alias
-test -z "$ac_cv_build_alias" &&
- ac_cv_build_alias=`$ac_config_guess`
-test -z "$ac_cv_build_alias" &&
- { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
-echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
- { (exit 1); exit 1; }; }
-ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
- { (exit 1); exit 1; }; }
-
-fi
-echo "$as_me:$LINENO: result: $ac_cv_build" >&5
-echo "${ECHO_T}$ac_cv_build" >&6
+$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
+ as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
+
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
+$as_echo_n "checking build system type... " >&6; }
+if ${ac_cv_build+:} false; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_build_alias=$build_alias
+test "x$ac_build_alias" = x &&
+ ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
+test "x$ac_build_alias" = x &&
+ as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
+ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
+
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
+$as_echo "$ac_cv_build" >&6; }
+case $ac_cv_build in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
+esac
build=$ac_cv_build
-build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_build
+shift
+build_cpu=$1
+build_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+build_os=$*
+IFS=$ac_save_IFS
+case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
-echo "$as_me:$LINENO: checking host system type" >&5
-echo $ECHO_N "checking host system type... $ECHO_C" >&6
-if test "${ac_cv_host+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
+$as_echo_n "checking host system type... " >&6; }
+if ${ac_cv_host+:} false; then :
+ $as_echo_n "(cached) " >&6
else
- ac_cv_host_alias=$host_alias
-test -z "$ac_cv_host_alias" &&
- ac_cv_host_alias=$ac_cv_build_alias
-ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
- { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
-echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
- { (exit 1); exit 1; }; }
+ if test "x$host_alias" = x; then
+ ac_cv_host=$ac_cv_build
+else
+ ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
+ as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
+fi
fi
-echo "$as_me:$LINENO: result: $ac_cv_host" >&5
-echo "${ECHO_T}$ac_cv_host" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
+$as_echo "$ac_cv_host" >&6; }
+case $ac_cv_host in
+*-*-*) ;;
+*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
+esac
host=$ac_cv_host
-host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
-host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
-host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
-
+ac_save_IFS=$IFS; IFS='-'
+set x $ac_cv_host
+shift
+host_cpu=$1
+host_vendor=$2
+shift; shift
+# Remember, the first character of IFS is used to create $*,
+# except with old shells:
+host_os=$*
+IFS=$ac_save_IFS
+case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
save_LIBS="$LIBS"
LIBS="$PTHREAD_LIBS $LIBS"
- echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
-echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
+$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-/* Override any gcc2 internal prototype to avoid an error. */
+/* 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
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
char pthread_join ();
int
main ()
{
-pthread_join ();
+return pthread_join ();
;
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_link "$LINENO"; then :
acx_pthread_ok=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
- echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
-echo "${ECHO_T}$acx_pthread_ok" >&6
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
+$as_echo "$acx_pthread_ok" >&6; }
if test x"$acx_pthread_ok" = xno; then
PTHREAD_LIBS=""
PTHREAD_CFLAGS=""
case $flag in
none)
- echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
-echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
+$as_echo_n "checking whether pthreads work without any flags... " >&6; }
;;
-*)
- echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
-echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
+$as_echo_n "checking whether pthreads work with $flag... " >&6; }
PTHREAD_CFLAGS="$flag"
;;
*)
- echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
-echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
+$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
PTHREAD_LIBS="-l$flag"
;;
esac
# pthread_cleanup_push because it is one of the few pthread
# functions on Solaris that doesn't have a non-functional libc stub.
# We try pthread_create on general principles.
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pthread.h>
int
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_link "$LINENO"; then :
acx_pthread_ok=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
LIBS="$save_LIBS"
CFLAGS="$save_CFLAGS"
- echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
-echo "${ECHO_T}$acx_pthread_ok" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
+$as_echo "$acx_pthread_ok" >&6; }
if test "x$acx_pthread_ok" = xyes; then
break;
fi
# Detect AIX lossage: threads are created detached by default
# and the JOINABLE attribute has a nonstandard name (UNDETACHED).
- echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
-echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
+$as_echo_n "checking for joinable pthread attribute... " >&6; }
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pthread.h>
int
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_link "$LINENO"; then :
ok=PTHREAD_CREATE_JOINABLE
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ok=unknown
+ ok=unknown
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
if test x"$ok" = xunknown; then
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <pthread.h>
int
return 0;
}
_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
+if ac_fn_c_try_link "$LINENO"; then :
ok=PTHREAD_CREATE_UNDETACHED
else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ok=unknown
+ ok=unknown
fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
+rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
fi
if test x"$ok" != xPTHREAD_CREATE_JOINABLE; then
-cat >>confdefs.h <<\_ACEOF
-#define PTHREAD_CREATE_JOINABLE $ok
-_ACEOF
+$as_echo "#define PTHREAD_CREATE_JOINABLE \$ok" >>confdefs.h
fi
- echo "$as_me:$LINENO: result: ${ok}" >&5
-echo "${ECHO_T}${ok}" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
+$as_echo "${ok}" >&6; }
if test x"$ok" = xunknown; then
- { echo "$as_me:$LINENO: WARNING: we do not know how to create joinable pthreads" >&5
-echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we do not know how to create joinable pthreads" >&5
+$as_echo "$as_me: WARNING: we do not know how to create joinable pthreads" >&2;}
fi
- echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
-echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
+$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
flag=no
case "${host_cpu}-${host_os}" in
*-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
*solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
esac
- echo "$as_me:$LINENO: result: ${flag}" >&5
-echo "${ECHO_T}${flag}" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
+$as_echo "${flag}" >&6; }
if test "x$flag" != xno; then
PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
fi
# More AIX lossage: must compile with cc_r
# Extract the first word of "cc_r", so it can be a program name with args.
set dummy cc_r; 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_PTHREAD_CC+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
+$as_echo_n "checking for $ac_word... " >&6; }
+if ${ac_cv_prog_PTHREAD_CC+:} false; then :
+ $as_echo_n "(cached) " >&6
else
if test -n "$PTHREAD_CC"; then
ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
- for ac_exec_ext in '' $ac_executable_extensions; do
- if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+ for ac_exec_ext in '' $ac_executable_extensions; do
+ if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
ac_cv_prog_PTHREAD_CC="cc_r"
- echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+ $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
-done
+ done
+IFS=$as_save_IFS
test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
fi
fi
PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
if test -n "$PTHREAD_CC"; then
- echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
-echo "${ECHO_T}$PTHREAD_CC" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
+$as_echo "$PTHREAD_CC" >&6; }
else
- echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
fi
+
else
PTHREAD_CC="$CC"
fi
# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
if test x"$acx_pthread_ok" = xyes; then
-cat >>confdefs.h <<\_ACEOF
-#define ENABLE_POSIX_THREADS 1
-_ACEOF
+$as_echo "#define ENABLE_POSIX_THREADS 1" >>confdefs.h
:
else
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CC="$PTHREAD_CC"
# if possible for a number of threads to run at once.
- echo "$as_me:$LINENO: checking for pthread_setconcurrency" >&5
-echo $ECHO_N "checking for pthread_setconcurrency... $ECHO_C" >&6
-if test "${ac_cv_func_pthread_setconcurrency+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-/* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char pthread_setconcurrency (); below.
- Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
- <limits.h> exists even on freestanding compilers. */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-/* Override any gcc2 internal prototype to avoid an error. */
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-/* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
-char pthread_setconcurrency ();
-/* 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_pthread_setconcurrency) || defined (__stub___pthread_setconcurrency)
-choke me
-#else
-char (*f) () = pthread_setconcurrency;
-#endif
-#ifdef __cplusplus
-}
-#endif
-
-int
-main ()
-{
-return f != pthread_setconcurrency;
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
- (eval $ac_link) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest$ac_exeext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_func_pthread_setconcurrency=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-ac_cv_func_pthread_setconcurrency=no
-fi
-rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_func_pthread_setconcurrency" >&5
-echo "${ECHO_T}$ac_cv_func_pthread_setconcurrency" >&6
-if test $ac_cv_func_pthread_setconcurrency = yes; then
+ ac_fn_c_check_func "$LINENO" "pthread_setconcurrency" "ac_cv_func_pthread_setconcurrency"
+if test "x$ac_cv_func_pthread_setconcurrency" = xyes; then :
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_PTHREAD_SETCONCURRENCY 1
-_ACEOF
+$as_echo "#define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
fi
built_with_posix_threads=yes
fi
-echo "$as_me:$LINENO: checking whether _SC_PHYS_PAGES is declared" >&5
-echo $ECHO_N "checking whether _SC_PHYS_PAGES is declared... $ECHO_C" >&6
-if test "${ac_cv_have_decl__SC_PHYS_PAGES+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-#ifndef _SC_PHYS_PAGES
- char *p = (char *) _SC_PHYS_PAGES;
-#endif
-
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_have_decl__SC_PHYS_PAGES=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_decl "$LINENO" "_SC_PHYS_PAGES" "ac_cv_have_decl__SC_PHYS_PAGES" "$ac_includes_default"
+if test "x$ac_cv_have_decl__SC_PHYS_PAGES" = xyes; then :
-ac_cv_have_decl__SC_PHYS_PAGES=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_have_decl__SC_PHYS_PAGES" >&5
-echo "${ECHO_T}$ac_cv_have_decl__SC_PHYS_PAGES" >&6
-
-echo "$as_me:$LINENO: checking whether _SC_PAGESIZE is declared" >&5
-echo $ECHO_N "checking whether _SC_PAGESIZE is declared... $ECHO_C" >&6
-if test "${ac_cv_have_decl__SC_PAGESIZE+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-#ifndef _SC_PAGESIZE
- char *p = (char *) _SC_PAGESIZE;
-#endif
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_have_decl__SC_PAGESIZE=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default"
+if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then :
-ac_cv_have_decl__SC_PAGESIZE=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_have_decl__SC_PAGESIZE" >&5
-echo "${ECHO_T}$ac_cv_have_decl__SC_PAGESIZE" >&6
-
-echo "$as_me:$LINENO: checking whether _SC_CRAY_NCPU is declared" >&5
-echo $ECHO_N "checking whether _SC_CRAY_NCPU is declared... $ECHO_C" >&6
-if test "${ac_cv_have_decl__SC_CRAY_NCPU+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-#ifndef _SC_CRAY_NCPU
- char *p = (char *) _SC_CRAY_NCPU;
-#endif
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_have_decl__SC_CRAY_NCPU=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_decl "$LINENO" "_SC_CRAY_NCPU" "ac_cv_have_decl__SC_CRAY_NCPU" "$ac_includes_default"
+if test "x$ac_cv_have_decl__SC_CRAY_NCPU" = xyes; then :
-ac_cv_have_decl__SC_CRAY_NCPU=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_have_decl__SC_CRAY_NCPU" >&5
-echo "${ECHO_T}$ac_cv_have_decl__SC_CRAY_NCPU" >&6
-
-echo "$as_me:$LINENO: checking whether _SC_CRAY_NCPU is declared" >&5
-echo $ECHO_N "checking whether _SC_CRAY_NCPU is declared... $ECHO_C" >&6
-if test "${ac_cv_have_decl__SC_CRAY_NCPU+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-#ifndef _SC_CRAY_NCPU
- char *p = (char *) _SC_CRAY_NCPU;
-#endif
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_have_decl__SC_CRAY_NCPU=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_decl "$LINENO" "_SC_CRAY_NCPU" "ac_cv_have_decl__SC_CRAY_NCPU" "$ac_includes_default"
+if test "x$ac_cv_have_decl__SC_CRAY_NCPU" = xyes; then :
-ac_cv_have_decl__SC_CRAY_NCPU=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_have_decl__SC_CRAY_NCPU" >&5
-echo "${ECHO_T}$ac_cv_have_decl__SC_CRAY_NCPU" >&6
-
-echo "$as_me:$LINENO: checking whether _SC_NPROC_CONF is declared" >&5
-echo $ECHO_N "checking whether _SC_NPROC_CONF is declared... $ECHO_C" >&6
-if test "${ac_cv_have_decl__SC_NPROC_CONF+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-#ifndef _SC_NPROC_CONF
- char *p = (char *) _SC_NPROC_CONF;
-#endif
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_have_decl__SC_NPROC_CONF=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_decl "$LINENO" "_SC_NPROC_CONF" "ac_cv_have_decl__SC_NPROC_CONF" "$ac_includes_default"
+if test "x$ac_cv_have_decl__SC_NPROC_CONF" = xyes; then :
-ac_cv_have_decl__SC_NPROC_CONF=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_have_decl__SC_NPROC_CONF" >&5
-echo "${ECHO_T}$ac_cv_have_decl__SC_NPROC_CONF" >&6
-
-echo "$as_me:$LINENO: checking whether _SC_NPROC_ONLN is declared" >&5
-echo $ECHO_N "checking whether _SC_NPROC_ONLN is declared... $ECHO_C" >&6
-if test "${ac_cv_have_decl__SC_NPROC_ONLN+set}" = set; then
- echo $ECHO_N "(cached) $ECHO_C" >&6
-else
- cat >conftest.$ac_ext <<_ACEOF
-#line $LINENO "configure"
-/* confdefs.h. */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h. */
-$ac_includes_default
-int
-main ()
-{
-#ifndef _SC_NPROC_ONLN
- char *p = (char *) _SC_NPROC_ONLN;
-#endif
- ;
- return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
- (eval $ac_compile) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); } &&
- { ac_try='test -s conftest.$ac_objext'
- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- echo "$as_me:$LINENO: \$? = $ac_status" >&5
- (exit $ac_status); }; }; then
- ac_cv_have_decl__SC_NPROC_ONLN=yes
-else
- echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
+ac_fn_c_check_decl "$LINENO" "_SC_NPROC_ONLN" "ac_cv_have_decl__SC_NPROC_ONLN" "$ac_includes_default"
+if test "x$ac_cv_have_decl__SC_NPROC_ONLN" = xyes; then :
-ac_cv_have_decl__SC_NPROC_ONLN=no
fi
-rm -f conftest.$ac_objext conftest.$ac_ext
-fi
-echo "$as_me:$LINENO: result: $ac_cv_have_decl__SC_NPROC_ONLN" >&5
-echo "${ECHO_T}$ac_cv_have_decl__SC_NPROC_ONLN" >&6
# MPI and MPE Support
compiled_with_cflags="$CFLAGS"
- ac_config_files="$ac_config_files Makefile src/Makefile src/non_gui/Makefile m4/Makefile man/Makefile man/man1/Makefile examples/Makefile tools/Makefile tools/src/Makefile tests/Makefile docs/html-docs/Makefile docs/html-docs/jpgs/Makefile docs/qex-december-1996/Makefile docs/theory/Makefile docs/Makefile"
+ac_config_files="$ac_config_files Makefile src/Makefile m4/Makefile man/Makefile man/man1/Makefile examples/Makefile tools/Makefile tools/src/Makefile tests/Makefile docs/html-docs/Makefile docs/html-docs/jpgs/Makefile docs/qex-december-1996/Makefile docs/theory/Makefile docs/Makefile"
+
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
# The following way of writing the cache mishandles newlines in values,
# but we know of no workaround that is simple, portable, and efficient.
-# So, don't put newlines in cache variables' values.
+# 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_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
+$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
+ esac
+ case $ac_var in #(
+ _ | IFS | as_nl) ;; #(
+ BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
+ *) { eval $ac_var=; unset $ac_var;} ;;
+ esac ;;
+ esac
+ done
+
(set) 2>&1 |
- case `(ac_space=' '; set | grep ac_space) 2>&1` in
- *ac_space=\ *)
- # `set' does not quote correctly, so add quotes (double-quote
- # substitution turns \\\\ into \\, and sed turns \\ into \).
+ 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"
- ;;
+ "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 \
- "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+ sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
;;
- esac;
-} |
+ esac |
+ sort
+) |
sed '
+ /^ac_cv_env_/b end
t clear
- : clear
+ :clear
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
t end
- /^ac_cv_env/!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 "updating cache $cache_file"
- cat confcache >$cache_file
+ s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
+ :end' >>confcache
+if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
+ if test -w "$cache_file"; then
+ if test "x$cache_file" != "x/dev/null"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
+$as_echo "$as_me: updating cache $cache_file" >&6;}
+ if test ! -f "$cache_file" || test -h "$cache_file"; then
+ cat confcache >"$cache_file"
+ else
+ case $cache_file in #(
+ */* | ?:*)
+ mv -f confcache "$cache_file"$$ &&
+ mv -f "$cache_file"$$ "$cache_file" ;; #(
+ *)
+ mv -f confcache "$cache_file" ;;
+ esac
+ fi
+ fi
else
- echo "not updating unwritable cache $cache_file"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
+$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
fi
fi
rm -f confcache
# Let make expand exec_prefix.
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-# 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
-
DEFS=-DHAVE_CONFIG_H
ac_libobjs=
ac_ltlibobjs=
+U=
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
# 1. Remove the extension, and $U if already installed.
- ac_i=`echo "$ac_i" |
- sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
- # 2. Add them.
- ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
- ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+ ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
+ ac_i=`$as_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.
+ as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
+ as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
done
LIBOBJS=$ac_libobjs
LTLIBOBJS=$ac_ltlibobjs
+ if test -n "$EXEEXT"; then
+ am__EXEEXT_TRUE=
+ am__EXEEXT_FALSE='#'
+else
+ am__EXEEXT_TRUE='#'
+ am__EXEEXT_FALSE=
+fi
+
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; }; }
+ as_fn_error $? "conditional \"AMDEP\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
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; }; }
+ as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
+Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
-: ${CONFIG_STATUS=./config.status}
+
+: "${CONFIG_STATUS=./config.status}"
+ac_write_fail=0
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
+{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
+$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
+as_write_fail=0
+cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
#! $SHELL
# Generated by $as_me.
# Run this file to recreate the current configuration.
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
+SHELL=\${CONFIG_SHELL-$SHELL}
+export SHELL
+_ASEOF
+cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
+## -------------------- ##
+## M4sh Initialization. ##
+## -------------------- ##
+
+# Be more Bourne compatible
+DUALCASE=1; export DUALCASE # for MKS sh
+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
+ # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
-fi
-
-# Support unset when possible.
-if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
- as_unset=unset
+ setopt NO_GLOB_SUBST
else
- as_unset=false
+ case `(set -o) 2>/dev/null` in #(
+ *posix*) :
+ set -o posix ;; #(
+ *) :
+ ;;
+esac
fi
-# Work around bugs in pre-3.0 UWIN ksh.
-$as_unset ENV MAIL MAILPATH
-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 -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
- eval $as_var=C; export $as_var
+as_nl='
+'
+export as_nl
+# Printing a long string crashes Solaris 7 /usr/bin/printf.
+as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
+as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
+# Prefer a ksh shell builtin over an external printf program on Solaris,
+# but without wasting forks for bash or zsh.
+if test -z "$BASH_VERSION$ZSH_VERSION" \
+ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='print -r --'
+ as_echo_n='print -rn --'
+elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
+ as_echo='printf %s\n'
+ as_echo_n='printf %s'
+else
+ if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
+ as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
+ as_echo_n='/usr/ucb/echo -n'
else
- $as_unset $as_var
+ as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
+ as_echo_n_body='eval
+ arg=$1;
+ case $arg in #(
+ *"$as_nl"*)
+ expr "X$arg" : "X\\(.*\\)$as_nl";
+ arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
+ esac;
+ expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
+ '
+ export as_echo_n_body
+ as_echo_n='sh -c $as_echo_n_body as_echo'
fi
-done
-
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1; 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
+ export as_echo_body
+ as_echo='sh -c $as_echo_body as_echo'
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'`
-
-
-# PATH needs CR, and LINENO needs CR and PATH.
-# 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
+ PATH_SEPARATOR=:
+ (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
+ (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
+ PATH_SEPARATOR=';'
+ }
fi
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" || {
- # Find who we are. Look in the path if we contain no path at all
- # relative or not.
- case $0 in
- *[\\/]* ) as_myself=$0 ;;
- *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
+# 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.)
+IFS=" "" $as_nl"
+
+# Find who we are. Look in the path if we contain no directory separator.
+as_myself=
+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
+ 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
+ $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
+ exit 1
+fi
+
+# Unset variables that we do not need and which cause bugs (e.g. in
+# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
+# suppresses any "Segmentation fault" message there. '((' could
+# trigger a bug in pdksh 5.2.14.
+for as_var in BASH_ENV ENV MAIL MAILPATH
+do eval test x\${$as_var+set} = xset \
+ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
done
+PS1='$ '
+PS2='> '
+PS4='+ '
- ;;
- 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_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
-echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
- { (exit 1); exit 1; }; }
+# NLS nuisances.
+LC_ALL=C
+export LC_ALL
+LANGUAGE=C
+export LANGUAGE
+
+# CDPATH.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# as_fn_error STATUS ERROR [LINENO LOG_FD]
+# ----------------------------------------
+# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
+# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
+# script with STATUS, using 1 if that was 0.
+as_fn_error ()
+{
+ as_status=$1; test $as_status -eq 0 && as_status=1
+ if test "$4"; then
+ as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
+ $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
fi
- case $CONFIG_SHELL in
- '')
- as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
- IFS=$as_save_IFS
- test -z "$as_dir" && as_dir=.
- for as_base in sh bash ksh sh5; do
- case $as_dir in
- /*)
- if ("$as_dir/$as_base" -c '
- as_lineno_1=$LINENO
- as_lineno_2=$LINENO
- as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
- test "x$as_lineno_1" != "x$as_lineno_2" &&
- test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
- $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
- $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
- CONFIG_SHELL=$as_dir/$as_base
- export CONFIG_SHELL
- exec "$CONFIG_SHELL" "$0" ${1+"$@"}
- fi;;
- esac
- done
-done
-;;
- esac
+ $as_echo "$as_me: error: $2" >&2
+ as_fn_exit $as_status
+} # as_fn_error
- # 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 before each line; the second 'sed' does the real
- # work. The second script uses 'N' to pair each line-number line
- # with the numbered line, 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
- # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
- sed '=' <$as_myself |
- sed '
- N
- s,$,-,
- : loop
- s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
- t loop
- s,-$,,
- s,^['$as_cr_digits']*\n,,
- ' >$as_me.lineno &&
- chmod +x $as_me.lineno ||
- { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
-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 sensible to this).
- . ./$as_me.lineno
- # Exit status is that of the last command.
- exit
-}
+# as_fn_set_status STATUS
+# -----------------------
+# Set $? to STATUS, without forking.
+as_fn_set_status ()
+{
+ return $1
+} # as_fn_set_status
+# as_fn_exit STATUS
+# -----------------
+# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
+as_fn_exit ()
+{
+ set +e
+ as_fn_set_status $1
+ exit $1
+} # as_fn_exit
+
+# as_fn_unset VAR
+# ---------------
+# Portably unset VAR.
+as_fn_unset ()
+{
+ { eval $1=; unset $1;}
+}
+as_unset=as_fn_unset
+# as_fn_append VAR VALUE
+# ----------------------
+# Append the text in VALUE to the end of the definition contained in VAR. Take
+# advantage of any shell optimizations that allow amortized linear growth over
+# repeated appends, instead of the typical quadratic growth present in naive
+# implementations.
+if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
+ eval 'as_fn_append ()
+ {
+ eval $1+=\$2
+ }'
+else
+ as_fn_append ()
+ {
+ eval $1=\$$1\$2
+ }
+fi # as_fn_append
+
+# as_fn_arith ARG...
+# ------------------
+# Perform arithmetic evaluation on the ARGs, and store the result in the
+# global $as_val. Take advantage of shells that can avoid forks. The arguments
+# must be portable across $(()) and expr.
+if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
+ eval 'as_fn_arith ()
+ {
+ as_val=$(( $* ))
+ }'
+else
+ as_fn_arith ()
+ {
+ as_val=`expr "$@" || test $? -eq 1`
+ }
+fi # as_fn_arith
-case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
- *c*,-n*) ECHO_N= ECHO_C='
-' ECHO_T=' ' ;;
- *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
- *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
-esac
-if expr a : '\(a\)' >/dev/null 2>&1; then
+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
+
+if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
+ as_dirname=dirname
+else
+ as_dirname=false
+fi
+
+as_me=`$as_basename -- "$0" ||
+$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
+ X"$0" : 'X\(//\)$' \| \
+ X"$0" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X/"$0" |
+ sed '/^.*\/\([^/][^/]*\)\/*$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\/\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`
+
+# 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
+
+ECHO_C= ECHO_N= ECHO_T=
+case `echo -n x` in #(((((
+-n*)
+ case `echo 'xy\c'` in
+ *c*) ECHO_T=' ';; # ECHO_T is single tab character.
+ xy) ECHO_C='\c';;
+ *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
+ ECHO_T=' ';;
+ esac;;
+*)
+ ECHO_N='-n';;
+esac
+
rm -f conf$$ conf$$.exe conf$$.file
-echo >conf$$.file
-if ln -s conf$$.file conf$$ 2>/dev/null; then
- # We could just check for DJGPP; but this test a) works b) is more generic
- # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
- if test -f conf$$.exe; then
- # Don't use ln at all; we don't have any links
- as_ln_s='cp -p'
- else
+if test -d conf$$.dir; then
+ rm -f conf$$.dir/conf$$.file
+else
+ rm -f conf$$.dir
+ mkdir conf$$.dir 2>/dev/null
+fi
+if (echo >conf$$.file) 2>/dev/null; then
+ 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
-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$$.file
+rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
+rmdir conf$$.dir 2>/dev/null
+
+
+# as_fn_mkdir_p
+# -------------
+# Create "$as_dir" as a directory, including parents if necessary.
+as_fn_mkdir_p ()
+{
+
+ case $as_dir in #(
+ -*) as_dir=./$as_dir;;
+ esac
+ test -d "$as_dir" || eval $as_mkdir_p || {
+ as_dirs=
+ while :; do
+ case $as_dir in #(
+ *\'*) as_qdir=`$as_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 ||
+$as_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" || as_fn_error $? "cannot create directory $as_dir"
+
+} # as_fn_mkdir_p
if mkdir -p . 2>/dev/null; then
- as_mkdir_p=:
+ as_mkdir_p='mkdir -p "$as_dir"'
else
+ test -d ./-p && rmdir ./-p
as_mkdir_p=false
fi
-as_executable_p="test -f"
+if test -x / >/dev/null 2>&1; then
+ as_test_x='test -x'
+else
+ if ls -dL / >/dev/null 2>&1; then
+ as_ls_L_option=L
+ else
+ as_ls_L_option=
+ fi
+ as_test_x='
+ eval sh -c '\''
+ if test -d "$1"; then
+ test -d "$1/.";
+ else
+ case $1 in #(
+ -*)set "./$1";;
+ esac;
+ case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
+ ???[sx]*):;;*)false;;esac;fi
+ '\'' sh
+ '
+fi
+as_executable_p=$as_test_x
# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
+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="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.
-as_nl='
-'
-IFS=" $as_nl"
+as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-# CDPATH.
-$as_unset CDPATH
exec 6>&1
-
-# Open the log real soon, to keep \$[0] and so on meaningful, and to
+## ----------------------------------- ##
+## Main body of $CONFIG_STATUS script. ##
+## ----------------------------------- ##
+_ASEOF
+test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=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. Logging --version etc. is OK.
-exec 5>>config.log
-{
- echo
- sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
-} >&5
-cat >&5 <<_CSEOF
-
-This file was extended by atlc $as_me 4.6.0, which was
-generated by GNU Autoconf 2.57. Invocation command line was
+# values after options handling.
+ac_log="
+This file was extended by atlc $as_me 4.6.1, which was
+generated by GNU Autoconf 2.68. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
CONFIG_HEADERS = $CONFIG_HEADERS
CONFIG_COMMANDS = $CONFIG_COMMANDS
$ $0 $@
-_CSEOF
-echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
-echo >&5
+on `(hostname || uname -n) 2>/dev/null | sed 1q`
+"
+
_ACEOF
-# Files that config.status was made for.
-if test -n "$ac_config_files"; then
- echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
-fi
+case $ac_config_files in *"
+"*) set x $ac_config_files; shift; ac_config_files=$*;;
+esac
-if test -n "$ac_config_headers"; then
- echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
-fi
+case $ac_config_headers in *"
+"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
+esac
-if test -n "$ac_config_links"; then
- echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
-fi
-if test -n "$ac_config_commands"; then
- echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
-fi
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+# Files that config.status was made for.
+config_files="$ac_config_files"
+config_headers="$ac_config_headers"
+config_commands="$ac_config_commands"
-cat >>$CONFIG_STATUS <<\_ACEOF
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ac_cs_usage="\
-\`$as_me' instantiates files from templates according to the
-current configuration.
+\`$as_me' instantiates files and other configuration actions
+from templates according to the current configuration. Unless the files
+and actions are specified as TAGs, all are instantiated by default.
-Usage: $0 [OPTIONS] [FILE]...
+Usage: $0 [OPTION]... [TAG]...
-h, --help print this help, then exit
- -V, --version print version number, then exit
- -q, --quiet do not print progress messages
+ -V, --version print version number and configuration settings, then exit
+ --config print configuration, then exit
+ -q, --quiet, --silent
+ 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]
+ --file=FILE[:TEMPLATE]
instantiate the configuration file FILE
- --header=FILE[:TEMPLATE]
+ --header=FILE[:TEMPLATE]
instantiate the configuration header FILE
Configuration files:
Configuration commands:
$config_commands
-Report bugs to <bug-autoconf@gnu.org>."
-_ACEOF
+Report bugs to <drkirkby@gmail.com>."
-cat >>$CONFIG_STATUS <<_ACEOF
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-atlc config.status 4.6.0
-configured by $0, generated by GNU Autoconf 2.57,
- with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+atlc config.status 4.6.1
+configured by $0, generated by GNU Autoconf 2.68,
+ with options \\"\$ac_cs_config\\"
-Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
-Free Software Foundation, Inc.
+Copyright (C) 2010 Free Software Foundation, Inc.
This config.status script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it."
-srcdir=$srcdir
-INSTALL="$INSTALL"
+
+ac_pwd='$ac_pwd'
+srcdir='$srcdir'
+INSTALL='$INSTALL'
+MKDIR_P='$MKDIR_P'
+AWK='$AWK'
+test -n "\$AWK" || AWK=awk
_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.
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# The default lists apply if the user does not specify any file.
ac_need_defaults=:
while test $# != 0
do
case $1 in
- --*=*)
- ac_option=`expr "x$1" : 'x\([^=]*\)='`
- ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
+ --*=?*)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
+ ac_shift=:
+ ;;
+ --*=)
+ ac_option=`expr "X$1" : 'X\([^=]*\)='`
+ ac_optarg=
ac_shift=:
;;
- -*)
+ *)
ac_option=$1
ac_optarg=$2
ac_shift=shift
;;
- *) # This is not an option, so the user has probably given explicit
- # arguments.
- ac_option=$1
- ac_need_defaults=false;;
esac
case $ac_option in
# Handling of the options.
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
ac_cs_recheck=: ;;
- --version | --vers* | -V )
- echo "$ac_cs_version"; exit 0 ;;
- --he | --h)
- # Conflict between --help and --header
- { { echo "$as_me:$LINENO: error: ambiguous option: $1
-Try \`$0 --help' for more information." >&5
-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 0 ;;
- --debug | --d* | -d )
+ --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
+ $as_echo "$ac_cs_version"; exit ;;
+ --config | --confi | --conf | --con | --co | --c )
+ $as_echo "$ac_cs_config"; exit ;;
+ --debug | --debu | --deb | --de | --d | -d )
debug=: ;;
--file | --fil | --fi | --f )
$ac_shift
- CONFIG_FILES="$CONFIG_FILES $ac_optarg"
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ '') as_fn_error $? "missing file argument" ;;
+ esac
+ as_fn_append CONFIG_FILES " '$ac_optarg'"
ac_need_defaults=false;;
--header | --heade | --head | --hea )
$ac_shift
- CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
+ case $ac_optarg in
+ *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
+ esac
+ as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ac_need_defaults=false;;
+ --he | --h)
+ # Conflict between --help and --header
+ as_fn_error $? "ambiguous option: \`$1'
+Try \`$0 --help' for more information.";;
+ --help | --hel | -h )
+ $as_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:$LINENO: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&5
-echo "$as_me: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&2;}
- { (exit 1); exit 1; }; } ;;
+ -*) as_fn_error $? "unrecognized option: \`$1'
+Try \`$0 --help' for more information." ;;
- *) ac_config_targets="$ac_config_targets $1" ;;
+ *) as_fn_append ac_config_targets " $1"
+ ac_need_defaults=false ;;
esac
shift
fi
_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
if \$ac_cs_recheck; then
- echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
- exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+ shift
+ \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
+ CONFIG_SHELL='$SHELL'
+ export CONFIG_SHELL
+ exec "\$@"
fi
_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+exec 5>>config.log
+{
+ echo
+ sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+ $as_echo "$ac_log"
+} >&5
-cat >>$CONFIG_STATUS <<_ACEOF
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
#
-# INIT-COMMANDS section.
+# INIT-COMMANDS
#
-
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
-
-cat >>$CONFIG_STATUS <<\_ACEOF
+# Handling of arguments.
for ac_config_target in $ac_config_targets
do
- case "$ac_config_target" in
- # Handling of arguments.
- "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
- "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
- "src/non_gui/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/non_gui/Makefile" ;;
- "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
- "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
- "man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
- "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
- "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
- "tools/src/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/src/Makefile" ;;
- "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
- "docs/html-docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/html-docs/Makefile" ;;
- "docs/html-docs/jpgs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/html-docs/jpgs/Makefile" ;;
- "docs/qex-december-1996/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/qex-december-1996/Makefile" ;;
- "docs/theory/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/theory/Makefile" ;;
- "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
- "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
- "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
- *) { { 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; }; };;
+ case $ac_config_target in
+ "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+ "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+ "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
+ "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
+ "man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
+ "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
+ "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
+ "tools/src/Makefile") CONFIG_FILES="$CONFIG_FILES tools/src/Makefile" ;;
+ "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
+ "docs/html-docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/html-docs/Makefile" ;;
+ "docs/html-docs/jpgs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/html-docs/jpgs/Makefile" ;;
+ "docs/qex-december-1996/Makefile") CONFIG_FILES="$CONFIG_FILES docs/qex-december-1996/Makefile" ;;
+ "docs/theory/Makefile") CONFIG_FILES="$CONFIG_FILES docs/theory/Makefile" ;;
+ "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
+
+ *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
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
fi
# Have a temporary directory for convenience. Make it in the build tree
-# simply because there is no reason to put it here, and in addition,
+# simply because there is no reason against having it here, and in addition,
# creating and moving files from /tmp can sometimes cause problems.
-# Create a temporary directory, and hook for its removal unless debugging.
+# 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 ||
{
- trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
- trap '{ (exit 1); exit 1; }' 1 2 13 15
+ tmp= ac_tmp=
+ trap 'exit_status=$?
+ : "${ac_tmp:=$tmp}"
+ { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
+' 0
+ trap 'as_fn_exit 1' 1 2 13 15
}
-
# Create a (secure) tmp directory for tmp files.
{
- tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
- test -n "$tmp" && test -d "$tmp"
+ tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ test -d "$tmp"
} ||
{
- tmp=./confstat$$-$RANDOM
- (umask 077 && mkdir $tmp)
-} ||
+ tmp=./conf$$-$RANDOM
+ (umask 077 && mkdir "$tmp")
+} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
+ac_tmp=$tmp
+
+# Set up the scripts for CONFIG_FILES section.
+# No need to generate them if there are no CONFIG_FILES.
+# This happens for instance with `./config.status config.h'.
+if test -n "$CONFIG_FILES"; then
+
+
+ac_cr=`echo X | tr X '\015'`
+# On cygwin, bash can eat \r inside `` if the user requested igncr.
+# But we know of no other shell where ac_cr would be empty at this
+# point, so we can use a bashism as a fallback.
+if test "x$ac_cr" = x; then
+ eval ac_cr=\$\'\\r\'
+fi
+ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
+if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
+ ac_cs_awk_cr='\\r'
+else
+ ac_cs_awk_cr=$ac_cr
+fi
+
+echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
+_ACEOF
+
+
+{
+ echo "cat >conf$$subs.awk <<_ACEOF" &&
+ echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
+ echo "_ACEOF"
+} >conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
+ac_delim='%!_!# '
+for ac_last_try in false false false false false :; do
+ . ./conf$$subs.sh ||
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+
+ ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
+ if test $ac_delim_n = $ac_delim_num; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
+ fi
+done
+rm -f conf$$subs.sh
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
+_ACEOF
+sed -n '
+h
+s/^/S["/; s/!.*/"]=/
+p
+g
+s/^[^!]*!//
+:repl
+t repl
+s/'"$ac_delim"'$//
+t delim
+:nl
+h
+s/\(.\{148\}\)..*/\1/
+t more1
+s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
+p
+n
+b repl
+:more1
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t nl
+:delim
+h
+s/\(.\{148\}\)..*/\1/
+t more2
+s/["\\]/\\&/g; s/^/"/; s/$/"/
+p
+b
+:more2
+s/["\\]/\\&/g; s/^/"/; s/$/"\\/
+p
+g
+s/.\{148\}//
+t delim
+' <conf$$subs.awk | sed '
+/^[^""]/{
+ N
+ s/\n//
+}
+' >>$CONFIG_STATUS || ac_write_fail=1
+rm -f conf$$subs.awk
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+_ACAWK
+cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
+ for (key in S) S_is_set[key] = 1
+ FS = "\a"
+
+}
{
- echo "$me: cannot create a temporary directory in ." >&2
- { (exit 1); exit 1; }
+ line = $ 0
+ nfields = split(line, field, "@")
+ substed = 0
+ len = length(field[1])
+ for (i = 2; i < nfields; i++) {
+ key = field[i]
+ keylen = length(key)
+ if (S_is_set[key]) {
+ value = S[key]
+ line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
+ len += length(value) + length(field[++i])
+ substed = 1
+ } else
+ len += 1 + keylen
+ }
+
+ print line
}
+_ACAWK
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
+ sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
+else
+ cat
+fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
+ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-
-#
-# CONFIG_FILES section.
-#
+# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
+# ${srcdir} and @srcdir@ entries 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[ ]*=[ ]*/{
+h
+s///
+s/^/:/
+s/[ ]*$/:/
+s/:\$(srcdir):/:/g
+s/:\${srcdir}:/:/g
+s/:@srcdir@:/:/g
+s/^:*//
+s/:*$//
+x
+s/\(=[ ]*\).*/\1/
+G
+s/\n//
+s/^[^=]*=[ ]*$//
+}'
+fi
-# 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
- # Protect against being on the right side of a sed subst in config.status.
- sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
- s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
-s,@SHELL@,$SHELL,;t t
-s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
-s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
-s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
-s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
-s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
-s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
-s,@exec_prefix@,$exec_prefix,;t t
-s,@prefix@,$prefix,;t t
-s,@program_transform_name@,$program_transform_name,;t t
-s,@bindir@,$bindir,;t t
-s,@sbindir@,$sbindir,;t t
-s,@libexecdir@,$libexecdir,;t t
-s,@datadir@,$datadir,;t t
-s,@sysconfdir@,$sysconfdir,;t t
-s,@sharedstatedir@,$sharedstatedir,;t t
-s,@localstatedir@,$localstatedir,;t t
-s,@libdir@,$libdir,;t t
-s,@includedir@,$includedir,;t t
-s,@oldincludedir@,$oldincludedir,;t t
-s,@infodir@,$infodir,;t t
-s,@mandir@,$mandir,;t t
-s,@build_alias@,$build_alias,;t t
-s,@host_alias@,$host_alias,;t t
-s,@target_alias@,$target_alias,;t t
-s,@DEFS@,$DEFS,;t t
-s,@ECHO_C@,$ECHO_C,;t t
-s,@ECHO_N@,$ECHO_N,;t t
-s,@ECHO_T@,$ECHO_T,;t t
-s,@LIBS@,$LIBS,;t t
-s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
-s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
-s,@INSTALL_DATA@,$INSTALL_DATA,;t t
-s,@CYGPATH_W@,$CYGPATH_W,;t t
-s,@PACKAGE@,$PACKAGE,;t t
-s,@VERSION@,$VERSION,;t t
-s,@ACLOCAL@,$ACLOCAL,;t t
-s,@AUTOCONF@,$AUTOCONF,;t t
-s,@AUTOMAKE@,$AUTOMAKE,;t t
-s,@AUTOHEADER@,$AUTOHEADER,;t t
-s,@MAKEINFO@,$MAKEINFO,;t t
-s,@AMTAR@,$AMTAR,;t t
-s,@install_sh@,$install_sh,;t t
-s,@STRIP@,$STRIP,;t t
-s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
-s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
-s,@AWK@,$AWK,;t t
-s,@SET_MAKE@,$SET_MAKE,;t t
-s,@CC@,$CC,;t t
-s,@CFLAGS@,$CFLAGS,;t t
-s,@LDFLAGS@,$LDFLAGS,;t t
-s,@CPPFLAGS@,$CPPFLAGS,;t t
-s,@ac_ct_CC@,$ac_ct_CC,;t t
-s,@EXEEXT@,$EXEEXT,;t t
-s,@OBJEXT@,$OBJEXT,;t t
-s,@DEPDIR@,$DEPDIR,;t t
-s,@am__include@,$am__include,;t t
-s,@am__quote@,$am__quote,;t t
-s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
-s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
-s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
-s,@CCDEPMODE@,$CCDEPMODE,;t t
-s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
-s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
-s,@CPP@,$CPP,;t t
-s,@EGREP@,$EGREP,;t t
-s,@POW_LIB@,$POW_LIB,;t t
-s,@LIBOBJS@,$LIBOBJS,;t t
-s,@build@,$build,;t t
-s,@build_cpu@,$build_cpu,;t t
-s,@build_vendor@,$build_vendor,;t t
-s,@build_os@,$build_os,;t t
-s,@host@,$host,;t t
-s,@host_cpu@,$host_cpu,;t t
-s,@host_vendor@,$host_vendor,;t t
-s,@host_os@,$host_os,;t t
-s,@PTHREAD_CC@,$PTHREAD_CC,;t t
-s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
-s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
-s,@built_with_posix_threads@,$built_with_posix_threads,;t t
-s,@compiled_with_compiler@,$compiled_with_compiler,;t t
-s,@compiled_with_cflags@,$compiled_with_cflags,;t t
-s,@LTLIBOBJS@,$LTLIBOBJS,;t t
-CEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+fi # test -n "$CONFIG_FILES"
+# Set up the scripts for CONFIG_HEADERS section.
+# No need to generate them if there are no CONFIG_HEADERS.
+# This happens for instance with `./config.status Makefile'.
+if test -n "$CONFIG_HEADERS"; then
+cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
+BEGIN {
_ACEOF
- cat >>$CONFIG_STATUS <<\_ACEOF
- # Split the substitutions into bite-sized pieces for seds with
- # small command number limits, like on Digital OSF/1 and HP-UX.
- ac_max_sed_lines=48
- ac_sed_frag=1 # Number of current file.
- ac_beg=1 # First line for current file.
- ac_end=$ac_max_sed_lines # Line after last line for current file.
- ac_more_lines=:
- ac_sed_cmds=
- while $ac_more_lines; do
- if test $ac_beg -gt 1; then
- sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- else
- sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
- fi
- if test ! -s $tmp/subs.frag; then
- ac_more_lines=false
- else
- # The purpose of the label and of the branching condition is to
- # speed up the sed processing (if there are no `@' at all, there
- # is no need to browse any of the substitutions).
- # These are the two extra sed commands mentioned above.
- (echo ':t
- /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
- else
- ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
- fi
- ac_sed_frag=`expr $ac_sed_frag + 1`
- ac_beg=$ac_end
- ac_end=`expr $ac_end + $ac_max_sed_lines`
- fi
- done
- if test -z "$ac_sed_cmds"; then
- ac_sed_cmds=cat
+# Transform confdefs.h into an awk script `defines.awk', embedded as
+# here-document in config.status, that substitutes the proper values into
+# config.h.in to produce config.h.
+
+# Create a delimiter string that does not exist in confdefs.h, to ease
+# handling of long lines.
+ac_delim='%!_!# '
+for ac_last_try in false false :; do
+ ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
+ if test -z "$ac_tt"; then
+ break
+ elif $ac_last_try; then
+ as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
+ else
+ ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
fi
-fi # test -n "$CONFIG_FILES"
+done
+# For the awk script, D is an array of macro values keyed by name,
+# likewise P contains macro parameters if any. Preserve backslash
+# newline sequences.
+
+ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
+sed -n '
+s/.\{148\}/&'"$ac_delim"'/g
+t rset
+:rset
+s/^[ ]*#[ ]*define[ ][ ]*/ /
+t def
+d
+:def
+s/\\$//
+t bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3"/p
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
+d
+:bsnl
+s/["\\]/\\&/g
+s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
+D["\1"]=" \3\\\\\\n"\\/p
+t cont
+s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
+t cont
+d
+:cont
+n
+s/.\{148\}/&'"$ac_delim"'/g
+t clear
+:clear
+s/\\$//
+t bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/"/p
+d
+:bsnlc
+s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
+b cont
+' <confdefs.h | sed '
+s/'"$ac_delim"'/"\\\
+"/g' >>$CONFIG_STATUS || ac_write_fail=1
+
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ for (key in D) D_is_set[key] = 1
+ FS = "\a"
+}
+/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
+ line = \$ 0
+ split(line, arg, " ")
+ if (arg[1] == "#") {
+ defundef = arg[2]
+ mac1 = arg[3]
+ } else {
+ defundef = substr(arg[1], 2)
+ mac1 = arg[2]
+ }
+ split(mac1, mac2, "(") #)
+ macro = mac2[1]
+ prefix = substr(line, 1, index(line, defundef) - 1)
+ if (D_is_set[macro]) {
+ # Preserve the white space surrounding the "#".
+ print prefix "define", macro P[macro] D[macro]
+ next
+ } else {
+ # 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.
+ if (defundef == "undef") {
+ print "/*", prefix defundef, macro, "*/"
+ next
+ }
+ }
+}
+{ print }
+_ACAWK
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
- case $ac_file in
- - | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- * ) ac_file_in=$ac_file.in ;;
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+ as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
+fi # test -n "$CONFIG_HEADERS"
+
+
+eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
+shift
+for ac_tag
+do
+ case $ac_tag in
+ :[FHLC]) ac_mode=$ac_tag; continue;;
+ esac
+ case $ac_mode$ac_tag in
+ :[FHL]*:*);;
+ :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
+ :[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
- # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
-$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'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$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'`
+ case $ac_mode in
+ :L) ac_source=$1;;
+ :[FH])
+ ac_file_inputs=
+ for ac_f
+ do
+ case $ac_f in
+ -) ac_f="$ac_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 ||
+ as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
+ esac
+ case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
+ as_fn_append ac_file_inputs " '$ac_f'"
done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
- { (exit 1); exit 1; }; }; }
+ # 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 '`
+ $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
+ `' by configure.'
+ if test x"$ac_file" != x-; then
+ configure_input="$ac_file. $configure_input"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
+$as_echo "$as_me: creating $ac_file" >&6;}
+ fi
+ # Neutralize special characters interpreted by sed in replacement strings.
+ case $configure_input in #(
+ *\&* | *\|* | *\\* )
+ ac_sed_conf_input=`$as_echo "$configure_input" |
+ sed 's/[\\\\&|]/\\\\&/g'`;; #(
+ *) ac_sed_conf_input=$configure_input;;
+ esac
+
+ case $ac_tag in
+ *:-:* | *:-) cat >"$ac_tmp/stdin" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
+ 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 ||
+$as_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"; as_fn_mkdir_p
ac_builddir=.
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
+case "$ac_dir" in
+.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
+*)
+ ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
+ # A ".." for each directory in $ac_dir_suffix.
+ ac_top_builddir_sub=`$as_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
- .) # No --srcdir option. We are building in place.
+ .) # We are building in place.
ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
+ 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 ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
+ 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
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
+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_builddir$INSTALL ;;
+ *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
+ esac
+ ac_MKDIR_P=$MKDIR_P
+ case $MKDIR_P in
+ [\\/$]* | ?:[\\/]* ) ;;
+ */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
esac
+_ACEOF
- if test x"$ac_file" != x-; then
- { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
- rm -f "$ac_file"
- fi
- # 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. */
- if test x"$ac_file" = x-; then
- configure_input=
- else
- configure_input="$ac_file. "
- fi
- configure_input=$configure_input"Generated from `echo $ac_file_in |
- sed 's,.*/,,'` by configure."
-
- # First look for the input files in the build tree, otherwise in the
- # src tree.
- ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- [\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- echo $f;;
- *) # Relative
- if test -f "$f"; then
- # Build tree
- echo $f
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo $srcdir/$f
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- fi;;
- esac
- done` || { (exit 1); exit 1; }
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
+# 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=
+ac_sed_dataroot='
+/datarootdir/ {
+ p
+ q
+}
+/@datadir@/p
+/@docdir@/p
+/@infodir@/p
+/@localedir@/p
+/@mandir@/p'
+case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
+*datarootdir*) ac_datarootdir_seen=yes;;
+*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
+$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
+_ACEOF
+cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
+ 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
-cat >>$CONFIG_STATUS <<_ACEOF
- sed "$ac_vpsub
+
+# 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 || ac_write_fail=1
+ac_sed_extra="$ac_vpsub
$extrasub
_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
:t
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s,@configure_input@,$configure_input,;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,@top_builddir@,$ac_top_builddir,;t t
-s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
-s,@INSTALL@,$ac_INSTALL,;t t
-" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
- rm -f $tmp/stdin
- if test x"$ac_file" != x-; then
- mv $tmp/out $ac_file
- else
- cat $tmp/out
- rm -f $tmp/out
- fi
-
-done
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-#
-# CONFIG_HEADER section.
-#
-
-# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
-# NAME is the cpp macro being defined and VALUE is the value it is being given.
-#
-# ac_d sets the value in "#define NAME VALUE" lines.
-ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
-ac_dB='[ ].*$,\1#\2'
-ac_dC=' '
-ac_dD=',;t'
-# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
-ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
-ac_uB='$,\1#\2define\3'
-ac_uC=' '
-ac_uD=',;t'
-
-for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
- # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+s|@configure_input@|$ac_sed_conf_input|;t t
+s&@top_builddir@&$ac_top_builddir_sub&;t t
+s&@top_build_prefix@&$ac_top_build_prefix&;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
+s&@MKDIR_P@&$ac_MKDIR_P&;t t
+$ac_datarootdir_hack
+"
+eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
+ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+
+test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
+ { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
+ { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
+ "$ac_tmp/out"`; test -z "$ac_out"; } &&
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
+which seems to be undefined. Please make sure it is defined" >&5
+$as_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 "$ac_tmp/stdin"
case $ac_file in
- - | *:- | *:-:* ) # input from stdin
- cat >$tmp/stdin
- ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
- * ) ac_file_in=$ac_file.in ;;
- esac
-
- test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
-
- # First look for the input files in the build tree, otherwise in the
- # src tree.
- ac_file_inputs=`IFS=:
- for f in $ac_file_in; do
- case $f in
- -) echo $tmp/stdin ;;
- [\\/$]*)
- # Absolute (can't be DOS-style, as IFS=:)
- test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- echo $f;;
- *) # Relative
- if test -f "$f"; then
- # Build tree
- echo $f
- elif test -f "$srcdir/$f"; then
- # Source tree
- echo $srcdir/$f
- else
- # /dev/null tree
- { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
-echo "$as_me: error: cannot find input file: $f" >&2;}
- { (exit 1); exit 1; }; }
- fi;;
- esac
- done` || { (exit 1); exit 1; }
- # Remove the trailing spaces.
- sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
-
-_ACEOF
-
-# Transform confdefs.h into two sed scripts, `conftest.defines' and
-# `conftest.undefs', that substitutes the proper values into
-# config.h.in to produce config.h. The first handles `#define'
-# templates, and the second `#undef' templates.
-# And first: Protect against being on the right side of a sed subst in
-# config.status. Protect against being in an unquoted here document
-# in config.status.
-rm -f conftest.defines conftest.undefs
-# Using a here document instead of a string reduces the quoting nightmare.
-# Putting comments in sed scripts is not portable.
-#
-# `end' is used to avoid that the second main sed command (meant for
-# 0-ary CPP macros) applies to n-ary macro definitions.
-# See the Autoconf documentation for `clear'.
-cat >confdef2sed.sed <<\_ACEOF
-s/[\\&,]/\\&/g
-s,[\\$`],\\&,g
-t clear
-: clear
-s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
-t end
-s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
-: end
-_ACEOF
-# If some macros were called several times there might be several times
-# the same #defines, which is useless. Nevertheless, we may not want to
-# sort them, since we want the *last* AC-DEFINE to be honored.
-uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
-sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
-rm -f confdef2sed.sed
-
-# This sed command replaces #undef with comments. This is necessary, for
-# example, in the case of _POSIX_SOURCE, which is predefined and required
-# on some systems where configure will not decide to define it.
-cat >>conftest.undefs <<\_ACEOF
-s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
-_ACEOF
-
-# Break up conftest.defines because some shells have a limit on the size
-# of here documents, and old seds have small limits too (100 cmds).
-echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
-echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
-echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
-echo ' :' >>$CONFIG_STATUS
-rm -f conftest.tail
-while grep . conftest.defines >/dev/null
-do
- # Write a limited-size here document to $tmp/defines.sed.
- echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
- # Speed up: don't consider the non `#define' lines.
- echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
- # Work around the forget-to-reset-the-flag bug.
- echo 't clr' >>$CONFIG_STATUS
- echo ': clr' >>$CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
- echo 'CEOF
- sed -f $tmp/defines.sed $tmp/in >$tmp/out
- rm -f $tmp/in
- mv $tmp/out $tmp/in
-' >>$CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
- rm -f conftest.defines
- mv conftest.tail conftest.defines
-done
-rm -f conftest.defines
-echo ' fi # grep' >>$CONFIG_STATUS
-echo >>$CONFIG_STATUS
-
-# Break up conftest.undefs because some shells have a limit on the size
-# of here documents, and old seds have small limits too (100 cmds).
-echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
-rm -f conftest.tail
-while grep . conftest.undefs >/dev/null
-do
- # Write a limited-size here document to $tmp/undefs.sed.
- echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
- # Speed up: don't consider the non `#undef'
- echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
- # Work around the forget-to-reset-the-flag bug.
- echo 't clr' >>$CONFIG_STATUS
- echo ': clr' >>$CONFIG_STATUS
- sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
- echo 'CEOF
- sed -f $tmp/undefs.sed $tmp/in >$tmp/out
- rm -f $tmp/in
- mv $tmp/out $tmp/in
-' >>$CONFIG_STATUS
- sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
- rm -f conftest.undefs
- mv conftest.tail conftest.undefs
-done
-rm -f conftest.undefs
-
-cat >>$CONFIG_STATUS <<\_ACEOF
- # 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. */
- if test x"$ac_file" = x-; then
- echo "/* Generated by configure. */" >$tmp/config.h
- else
- echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
- fi
- cat $tmp/in >>$tmp/config.h
- rm -f $tmp/in
+ -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
+ *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
+ esac \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ ;;
+ :H)
+ #
+ # CONFIG_HEADER
+ #
if test x"$ac_file" != x-; then
- 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;}
+ {
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
+ } >"$ac_tmp/config.h" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
+ if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
+$as_echo "$as_me: $ac_file is unchanged" >&6;}
else
- ac_dir=`(dirname "$ac_file") 2>/dev/null ||
-$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'`
- { if $as_mkdir_p; then
- mkdir -p "$ac_dir"
- else
- as_dir="$ac_dir"
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$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'`
- done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
-echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
- { (exit 1); exit 1; }; }; }
-
- rm -f $ac_file
- mv $tmp/config.h $ac_file
+ rm -f "$ac_file"
+ mv "$ac_tmp/config.h" "$ac_file" \
+ || as_fn_error $? "could not create $ac_file" "$LINENO" 5
fi
else
- cat $tmp/config.h
- rm -f $tmp/config.h
+ $as_echo "/* $configure_input */" \
+ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
+ || as_fn_error $? "could not create -" "$LINENO" 5
fi
-_am_stamp_count=`expr ${_am_stamp_count-0} + 1`
-echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
-$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
+# Compute "$ac_file"'s index in $config_headers.
+_am_arg="$ac_file"
+_am_stamp_count=1
+for _am_header in $config_headers :; do
+ case $_am_header in
+ $_am_arg | $_am_arg:* )
+ break ;;
+ * )
+ _am_stamp_count=`expr $_am_stamp_count + 1` ;;
+ esac
done
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
+echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
+$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+ X"$_am_arg" : 'X\(//\)[^/]' \| \
+ X"$_am_arg" : 'X\(//\)$' \| \
+ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
+$as_echo X"$_am_arg" |
+ sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)[^/].*/{
+ s//\1/
+ q
+ }
+ /^X\(\/\/\)$/{
+ s//\1/
+ q
+ }
+ /^X\(\/\).*/{
+ s//\1/
+ q
+ }
+ s/.*/./; q'`/stamp-h$_am_stamp_count
+ ;;
-#
-# CONFIG_COMMANDS section.
-#
-for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
- ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
- ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
- ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
-$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
- X"$ac_dest" : 'X\(//\)[^/]' \| \
- X"$ac_dest" : 'X\(//\)$' \| \
- X"$ac_dest" : 'X\(/\)' \| \
- . : '\(.\)' 2>/dev/null ||
-echo X"$ac_dest" |
- sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
- /^X\(\/\/\)[^/].*/{ s//\1/; q; }
- /^X\(\/\/\)$/{ s//\1/; q; }
- /^X\(\/\).*/{ s//\1/; q; }
- s/.*/./; q'`
- ac_builddir=.
+ :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
+$as_echo "$as_me: executing $ac_file commands" >&6;}
+ ;;
+ esac
-if test "$ac_dir" != .; then
- ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
- # A "../" for each directory in $ac_dir_suffix.
- ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
-else
- ac_dir_suffix= ac_top_builddir=
-fi
-case $srcdir in
- .) # No --srcdir option. We are building in place.
- ac_srcdir=.
- if test -z "$ac_top_builddir"; then
- ac_top_srcdir=.
- else
- ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
- fi ;;
- [\\/]* | ?:[\\/]* ) # Absolute path.
- ac_srcdir=$srcdir$ac_dir_suffix;
- ac_top_srcdir=$srcdir ;;
- *) # Relative path.
- ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
- ac_top_srcdir=$ac_top_builddir$srcdir ;;
-esac
-# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
-# absolute.
-ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
-ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
-ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
-ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
-
-
- { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
-echo "$as_me: executing $ac_dest commands" >&6;}
- case $ac_dest in
- depfiles ) 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=`(dirname "$mf") 2>/dev/null ||
+ case $ac_file$ac_mode in
+ "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
+ # Autoconf 2.62 quotes --file arguments for eval, but not when files
+ # are listed without --file. Let's play safe and only enable the eval
+ # if we detect the quoting.
+ case $CONFIG_FILES in
+ *\'*) eval set x "$CONFIG_FILES" ;;
+ *) set x $CONFIG_FILES ;;
+ esac
+ shift
+ for mf
+ 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.
+ # Grep'ing the whole file is not good either: AIX grep has a line
+ # limit of 2048, but all sed's we know have understand at least 4000.
+ if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/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
- grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
- # Extract the definition of DEP_FILES from the Makefile without
- # running `make'.
- DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
- test -z "$DEPDIR" && continue
- # When using ansi2knr, U may be empty or an underscore; expand it
- U=`sed -n -e '/^U = / s///p' < "$mf"`
- test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
- # 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 -e '
- /^DEP_FILES = .*\\\\$/ {
- s/^DEP_FILES = //
- :loop
- s/\\\\$//
- p
- n
- /\\\\$/ b loop
- p
- }
- /^DEP_FILES = / s/^DEP_FILES = //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=`(dirname "$file") 2>/dev/null ||
+ X"$mf" : 'X\(//\)[^/]' \| \
+ X"$mf" : 'X\(//\)$' \| \
+ X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
+$as_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'`
- { if $as_mkdir_p; then
- mkdir -p $dirpart/$fdir
- else
- as_dir=$dirpart/$fdir
- as_dirs=
- while test ! -d "$as_dir"; do
- as_dirs="$as_dir $as_dirs"
- as_dir=`(dirname "$as_dir") 2>/dev/null ||
-$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'`
+ X"$file" : 'X\(//\)[^/]' \| \
+ X"$file" : 'X\(//\)$' \| \
+ X"$file" : 'X\(/\)' \| . 2>/dev/null ||
+$as_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; as_fn_mkdir_p
+ # echo "creating $dirpart/$file"
+ echo '# dummy' > "$dirpart/$file"
done
- test ! -n "$as_dirs" || mkdir $as_dirs
- fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
-echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
- { (exit 1); exit 1; }; }; }
-
- # echo "creating $dirpart/$file"
- echo '# dummy' > "$dirpart/$file"
done
-done
+}
;;
+
esac
-done
-_ACEOF
+done # for ac_tag
-cat >>$CONFIG_STATUS <<\_ACEOF
-{ (exit 0); exit 0; }
+as_fn_exit 0
_ACEOF
-chmod +x $CONFIG_STATUS
ac_clean_files=$ac_clean_files_save
+test $ac_write_fail = 0 ||
+ as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
+
# configure is writing to config.log, and then calls config.status.
# config.status does its own redirection, appending to config.log.
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; }
+ $ac_cs_success || as_fn_exit 1
+fi
+if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
+$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
fi
# checks for system services
# AC_OUTPUT([file...])
-AC_INIT([atlc], [4.6.0], [drkirkby@ntlworld.com])
+AC_INIT([atlc], [4.6.1], [drkirkby@gmail.com])
AM_INIT_AUTOMAKE
AC_PREREQ([2.57])
AC_CONFIG_SRCDIR([tools/src/myfilelength.c])
AC_OUTPUT([\
Makefile \
src/Makefile \
-src/non_gui/Makefile \
m4/Makefile \
man/Makefile \
man/man1/Makefile \
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = docs
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
# This is Makefile.am, which is proceed by automake
SUBDIRS = html-docs qex-december-1996 theory
EXTRA_DIST = README
-subdir = docs
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-
-RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
- ps-recursive install-info-recursive uninstall-info-recursive \
- all-recursive install-data-recursive install-exec-recursive \
- installdirs-recursive install-recursive uninstall-recursive \
- check-recursive installcheck-recursive
-DIST_COMMON = README Makefile.am Makefile.in
-DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu docs/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu docs/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
+$(am__aclocal_m4_deps):
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# (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):
- @set fnord $$MAKEFLAGS; amf=$$2; \
+ @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 \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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:
- @set fnord $$MAKEFLAGS; amf=$$2; \
+$(RECURSIVE_CLEAN_TARGETS):
+ @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)' ;; \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
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 -i $$here/$$subdir/TAGS"; \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
ctags: CTAGS
CTAGS: ctags-recursive $(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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
- list='$(SUBDIRS)'; for subdir in $$list; do \
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
- (cd $$subdir && \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" \
- distdir=../$(distdir)/$$subdir \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
-
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-recursive
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
+html: html-recursive
+
+html-am:
+
info: info-recursive
info-am:
install-data-am:
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-recursive
+
+install-html-am:
+
install-info: install-info-recursive
+install-info-am:
+
install-man:
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
ps-am:
-uninstall-am: uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive distclean \
- distclean-generic distclean-recursive distclean-tags distdir \
- dvi dvi-am dvi-recursive info info-am info-recursive install \
- install-am install-data install-data-am install-data-recursive \
- install-exec install-exec-am install-exec-recursive \
- install-info install-info-am install-info-recursive install-man \
- install-recursive install-strip installcheck installcheck-am \
- installdirs installdirs-am installdirs-recursive \
- maintainer-clean maintainer-clean-generic \
- maintainer-clean-recursive mostlyclean mostlyclean-generic \
- mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
- ps-recursive tags tags-recursive uninstall uninstall-am \
- uninstall-info-am uninstall-info-recursive uninstall-recursive
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic ctags \
+ ctags-recursive distclean distclean-generic distclean-tags \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
+ tags-recursive uninstall uninstall-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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 is Makefile.am, which is proceed by automake
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = docs/html-docs
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(htmldir)"
+DATA = $(html_DATA)
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+htmldir = $(datadir)/atlc/docs/html-docs
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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
SUBDIRS = jpgs
-
-htmldir = $(datadir)/atlc/docs/html-docs
-
html_DATA = IMPORTANT.html \
FAQ.html \
accuracy.html \
usage_design_coupler.html \
valid-html40.gif
-
EXTRA_DIST = BUGS.html \
FAQ.html \
IMPORTANT.html \
valid-html40.gif \
usage_design_coupler.html
-
CLEANFILES =
-
DISTCLEANFILES =
-subdir = docs/html-docs
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-DATA = $(html_DATA)
-
-
-RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
- ps-recursive install-info-recursive uninstall-info-recursive \
- all-recursive install-data-recursive install-exec-recursive \
- installdirs-recursive install-recursive uninstall-recursive \
- check-recursive installcheck-recursive
-DIST_COMMON = Makefile.am Makefile.in
-DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu docs/html-docs/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
-htmlDATA_INSTALL = $(INSTALL_DATA)
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/html-docs/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu docs/html-docs/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
+$(am__aclocal_m4_deps):
install-htmlDATA: $(html_DATA)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(htmldir)
- @list='$(html_DATA)'; for p in $$list; do \
+ test -z "$(htmldir)" || $(MKDIR_P) "$(DESTDIR)$(htmldir)"
+ @list='$(html_DATA)'; test -n "$(htmldir)" || list=; \
+ for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(htmlDATA_INSTALL) $$d$$p $(DESTDIR)$(htmldir)/$$f"; \
- $(htmlDATA_INSTALL) $$d$$p $(DESTDIR)$(htmldir)/$$f; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(htmldir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(htmldir)" || exit $$?; \
done
uninstall-htmlDATA:
@$(NORMAL_UNINSTALL)
- @list='$(html_DATA)'; for p in $$list; do \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " rm -f $(DESTDIR)$(htmldir)/$$f"; \
- rm -f $(DESTDIR)$(htmldir)/$$f; \
- done
+ @list='$(html_DATA)'; test -n "$(htmldir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ test -n "$$files" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(htmldir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(htmldir)" && rm -f $$files
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# (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):
- @set fnord $$MAKEFLAGS; amf=$$2; \
+ @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 \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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:
- @set fnord $$MAKEFLAGS; amf=$$2; \
+$(RECURSIVE_CLEAN_TARGETS):
+ @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)' ;; \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
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 -i $$here/$$subdir/TAGS"; \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
ctags: CTAGS
CTAGS: ctags-recursive $(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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
- list='$(SUBDIRS)'; for subdir in $$list; do \
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
- (cd $$subdir && \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" \
- distdir=../$(distdir)/$$subdir \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
all-am: Makefile $(DATA)
installdirs: installdirs-recursive
installdirs-am:
- $(mkinstalldirs) $(DESTDIR)$(htmldir)
-
+ for dir in "$(DESTDIR)$(htmldir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
clean-am: clean-generic mostlyclean-am
distclean: distclean-recursive
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
+html: html-recursive
+
+html-am:
+
info: info-recursive
info-am:
install-data-am: install-htmlDATA
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-recursive
+
+install-html-am:
+
install-info: install-info-recursive
+install-info-am:
+
install-man:
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
ps-am:
-uninstall-am: uninstall-htmlDATA uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive distclean \
- distclean-generic distclean-recursive distclean-tags distdir \
- dvi dvi-am dvi-recursive info info-am info-recursive install \
- install-am install-data install-data-am install-data-recursive \
- install-exec install-exec-am install-exec-recursive \
- install-htmlDATA install-info install-info-am \
- install-info-recursive install-man install-recursive \
- install-strip installcheck installcheck-am installdirs \
- installdirs-am installdirs-recursive maintainer-clean \
- maintainer-clean-generic maintainer-clean-recursive mostlyclean \
- mostlyclean-generic mostlyclean-recursive pdf pdf-am \
- pdf-recursive ps ps-am ps-recursive tags tags-recursive \
- uninstall uninstall-am uninstall-htmlDATA uninstall-info-am \
- uninstall-info-recursive uninstall-recursive
+uninstall-am: uninstall-htmlDATA
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic ctags \
+ ctags-recursive distclean distclean-generic distclean-tags \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-htmlDATA install-info install-info-am \
+ install-man install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
+ installdirs installdirs-am maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am tags tags-recursive uninstall uninstall-am \
+ uninstall-htmlDATA
+
# 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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 is Makefile.am, which is proceed by automake
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../../..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = docs/html-docs/jpgs
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(jpgdir)"
+DATA = $(jpg_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
jpgdir = $(datadir)/atlc/docs/html-docs/jpgs
-
jpg_DATA = 000000.jpg \
home-email.jpg \
0000ff.jpg \
very-odd.jpg \
wide.jpg
-
EXTRA_DIST = 000000.jpg \
home-email.jpg \
0000ff.jpg \
very-odd.jpg \
wide.jpg
-subdir = docs/html-docs/jpgs
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-DATA = $(jpg_DATA)
-
-DIST_COMMON = Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu docs/html-docs/jpgs/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
-jpgDATA_INSTALL = $(INSTALL_DATA)
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/html-docs/jpgs/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu docs/html-docs/jpgs/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
+$(am__aclocal_m4_deps):
install-jpgDATA: $(jpg_DATA)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(jpgdir)
- @list='$(jpg_DATA)'; for p in $$list; do \
+ test -z "$(jpgdir)" || $(MKDIR_P) "$(DESTDIR)$(jpgdir)"
+ @list='$(jpg_DATA)'; test -n "$(jpgdir)" || list=; \
+ for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(jpgDATA_INSTALL) $$d$$p $(DESTDIR)$(jpgdir)/$$f"; \
- $(jpgDATA_INSTALL) $$d$$p $(DESTDIR)$(jpgdir)/$$f; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(jpgdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(jpgdir)" || exit $$?; \
done
uninstall-jpgDATA:
@$(NORMAL_UNINSTALL)
- @list='$(jpg_DATA)'; for p in $$list; do \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " rm -f $(DESTDIR)$(jpgdir)/$$f"; \
- rm -f $(DESTDIR)$(jpgdir)/$$f; \
- done
+ @list='$(jpg_DATA)'; test -n "$(jpgdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ test -n "$$files" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(jpgdir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(jpgdir)" && rm -f $$files
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
-
installdirs:
- $(mkinstalldirs) $(DESTDIR)$(jpgdir)
-
+ for dir in "$(DESTDIR)$(jpgdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am: install-jpgDATA
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-info-am uninstall-jpgDATA
+uninstall-am: uninstall-jpgDATA
+
+.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic distclean \
- distclean-generic distdir dvi dvi-am info info-am install \
- install-am install-data install-data-am install-exec \
- install-exec-am install-info install-info-am install-jpgDATA \
- install-man install-strip installcheck installcheck-am \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-jpgDATA \
+ install-man install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am uninstall-info-am uninstall-jpgDATA
+ uninstall-am uninstall-jpgDATA
+
# 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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
@SET_MAKE@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = docs/qex-december-1996
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(qexdir)"
+DATA = $(qex_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
qexdir = $(datadir)/atlc/docs/qex_december_1996
-
qex_DATA = README atlc.pdf ATLC.C
-
EXTRA_DIST = ATLC.C README atlc.pdf
-subdir = docs/qex-december-1996
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-DATA = $(qex_DATA)
-
-DIST_COMMON = README Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu docs/qex-december-1996/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
-qexDATA_INSTALL = $(INSTALL_DATA)
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/qex-december-1996/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu docs/qex-december-1996/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
+$(am__aclocal_m4_deps):
install-qexDATA: $(qex_DATA)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(qexdir)
- @list='$(qex_DATA)'; for p in $$list; do \
+ test -z "$(qexdir)" || $(MKDIR_P) "$(DESTDIR)$(qexdir)"
+ @list='$(qex_DATA)'; test -n "$(qexdir)" || list=; \
+ for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(qexDATA_INSTALL) $$d$$p $(DESTDIR)$(qexdir)/$$f"; \
- $(qexDATA_INSTALL) $$d$$p $(DESTDIR)$(qexdir)/$$f; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(qexdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(qexdir)" || exit $$?; \
done
uninstall-qexDATA:
@$(NORMAL_UNINSTALL)
- @list='$(qex_DATA)'; for p in $$list; do \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " rm -f $(DESTDIR)$(qexdir)/$$f"; \
- rm -f $(DESTDIR)$(qexdir)/$$f; \
- done
+ @list='$(qex_DATA)'; test -n "$(qexdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ test -n "$$files" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(qexdir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(qexdir)" && rm -f $$files
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
-
installdirs:
- $(mkinstalldirs) $(DESTDIR)$(qexdir)
-
+ for dir in "$(DESTDIR)$(qexdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am: install-qexDATA
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-info-am uninstall-qexDATA
+uninstall-am: uninstall-qexDATA
+
+.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic distclean \
- distclean-generic distdir dvi dvi-am info info-am install \
- install-am install-data install-data-am install-exec \
- install-exec-am install-info install-info-am install-man \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
install-qexDATA install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am uninstall-info-am uninstall-qexDATA
+ uninstall-am uninstall-qexDATA
+
# 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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = docs/theory
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
EXTRA_DIST = README atlc-theory1.doc atlc-theory2.doc ideas-for-gui.sxw
-subdir = docs/theory
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-DIST_COMMON = README Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu docs/theory/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu docs/theory/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu docs/theory/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
+$(am__aclocal_m4_deps):
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
-
installdirs:
-
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am:
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-info-am
+uninstall-am:
+
+.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic distclean \
- distclean-generic distdir dvi dvi-am info info-am install \
- install-am install-data install-data-am install-exec \
- install-exec-am install-info install-info-am install-man \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
- uninstall-info-am
+ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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 is Makefile.am, which is processed by automake
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = examples
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+am__installdirs = "$(DESTDIR)$(examplesdir)"
+DATA = $(examples_DATA)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
examplesdir = $(datadir)/atlc/examples
-
examples_DATA = \
100ohm-201h.bmp \
100ohm-201h.bmp.txt \
wide-9pixel.bmp \
wide-9pixel.bmp.txt
-
EXTRA_DIST = $(examples_DATA)
-subdir = examples
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-DATA = $(examples_DATA)
-
-DIST_COMMON = README Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu examples/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
-examplesDATA_INSTALL = $(INSTALL_DATA)
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu examples/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu examples/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
+$(am__aclocal_m4_deps):
install-examplesDATA: $(examples_DATA)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(examplesdir)
- @list='$(examples_DATA)'; for p in $$list; do \
+ test -z "$(examplesdir)" || $(MKDIR_P) "$(DESTDIR)$(examplesdir)"
+ @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \
+ for p in $$list; do \
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " $(examplesDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f"; \
- $(examplesDATA_INSTALL) $$d$$p $(DESTDIR)$(examplesdir)/$$f; \
+ echo "$$d$$p"; \
+ done | $(am__base_list) | \
+ while read files; do \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(examplesdir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(examplesdir)" || exit $$?; \
done
uninstall-examplesDATA:
@$(NORMAL_UNINSTALL)
- @list='$(examples_DATA)'; for p in $$list; do \
- f="`echo $$p | sed -e 's|^.*/||'`"; \
- echo " rm -f $(DESTDIR)$(examplesdir)/$$f"; \
- rm -f $(DESTDIR)$(examplesdir)/$$f; \
- done
+ @list='$(examples_DATA)'; test -n "$(examplesdir)" || list=; \
+ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
+ test -n "$$files" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(examplesdir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(examplesdir)" && rm -f $$files
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(DATA)
-
installdirs:
- $(mkinstalldirs) $(DESTDIR)$(examplesdir)
-
+ for dir in "$(DESTDIR)$(examplesdir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am: install-examplesDATA
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-examplesDATA uninstall-info-am
+uninstall-am: uninstall-examplesDATA
+
+.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic distclean \
- distclean-generic distdir dvi dvi-am info info-am install \
- install-am install-data install-data-am install-examplesDATA \
- 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-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am uninstall-examplesDATA uninstall-info-am
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-examplesDATA install-exec \
+ install-exec-am install-html install-html-am install-info \
+ install-info-am install-man install-pdf install-pdf-am \
+ install-ps install-ps-am install-strip installcheck \
+ installcheck-am installdirs maintainer-clean \
+ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \
+ pdf-am ps ps-am uninstall uninstall-am uninstall-examplesDATA
+
# 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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = m4
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
EXTRA_DIST = \
README \
acx_pthread.m4 \
gtk.m4 \
acx_mpi.m4
-subdir = m4
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-DIST_COMMON = README Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu m4/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu m4/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
+$(am__aclocal_m4_deps):
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile
-
installdirs:
-
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am:
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-info-am
+uninstall-am:
+
+.MAKE: install-am install-strip
.PHONY: all all-am check check-am clean clean-generic distclean \
- distclean-generic distdir dvi dvi-am info info-am install \
- install-am install-data install-data-am install-exec \
- install-exec-am install-info install-info-am install-man \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
install-strip installcheck installcheck-am installdirs \
maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
- uninstall-info-am
+ mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = man
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
SUBDIRS = man1
-subdir = man
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-
-RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
- ps-recursive install-info-recursive uninstall-info-recursive \
- all-recursive install-data-recursive install-exec-recursive \
- installdirs-recursive install-recursive uninstall-recursive \
- check-recursive installcheck-recursive
-DIST_COMMON = Makefile.am Makefile.in
-DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu man/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu man/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
+$(am__aclocal_m4_deps):
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# (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):
- @set fnord $$MAKEFLAGS; amf=$$2; \
+ @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 \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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:
- @set fnord $$MAKEFLAGS; amf=$$2; \
+$(RECURSIVE_CLEAN_TARGETS):
+ @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)' ;; \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
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 -i $$here/$$subdir/TAGS"; \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
ctags: CTAGS
CTAGS: ctags-recursive $(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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
- list='$(SUBDIRS)'; for subdir in $$list; do \
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
- (cd $$subdir && \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" \
- distdir=../$(distdir)/$$subdir \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
-
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-recursive
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
+html: html-recursive
+
+html-am:
+
info: info-recursive
info-am:
install-data-am:
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-recursive
+
+install-html-am:
+
install-info: install-info-recursive
+install-info-am:
+
install-man:
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
ps-am:
-uninstall-am: uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive distclean \
- distclean-generic distclean-recursive distclean-tags distdir \
- dvi dvi-am dvi-recursive info info-am info-recursive install \
- install-am install-data install-data-am install-data-recursive \
- install-exec install-exec-am install-exec-recursive \
- install-info install-info-am install-info-recursive install-man \
- install-recursive install-strip installcheck installcheck-am \
- installdirs installdirs-am installdirs-recursive \
- maintainer-clean maintainer-clean-generic \
- maintainer-clean-recursive mostlyclean mostlyclean-generic \
- mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
- ps-recursive tags tags-recursive uninstall uninstall-am \
- uninstall-info-am uninstall-info-recursive uninstall-recursive
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic ctags \
+ ctags-recursive distclean distclean-generic distclean-tags \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
+ tags-recursive uninstall uninstall-am
#EXTRA_DIST = $(man_MANS) makehtml
+
# 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:
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = man/man1
+DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
+am__vpath_adj = case $$p in \
+ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
+ *) f=$$p;; \
+ esac;
+am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
+am__install_max = 40
+am__nobase_strip_setup = \
+ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
+am__nobase_strip = \
+ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
+am__nobase_list = $(am__nobase_strip_setup); \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
+ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
+ if (++n[$$2] == $(am__install_max)) \
+ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
+ END { for (dir in files) print dir, files[dir] }'
+am__base_list = \
+ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
+ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
+man1dir = $(mandir)/man1
+am__installdirs = "$(DESTDIR)$(man1dir)"
+NROFF = nroff
+MANS = $(man_MANS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
man_MANS = \
atlc.1 \
coax.1 \
sysdata.1
EXTRA_DIST = $(man_MANS)
-subdir = man/man1
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-
-NROFF = nroff
-MANS = $(man_MANS)
-DIST_COMMON = Makefile.am Makefile.in
all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu man/man1/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
-
-man1dir = $(mandir)/man1
-install-man1: $(man1_MANS) $(man_MANS)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(DESTDIR)$(man1dir)
- @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
- for i in $$l2; do \
- case "$$i" in \
- *.1*) list="$$list $$i" ;; \
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
esac; \
done; \
- for i in $$list; do \
- if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
- else file=$$i; fi; \
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- case "$$ext" in \
- 1*) ;; \
- *) ext='1' ;; \
- esac; \
- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
- inst=`echo $$inst | sed -e 's/^.*\///'`; \
- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \
- $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \
- done
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu man/man1/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu man/man1/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
+$(am__aclocal_m4_deps):
+install-man1: $(man_MANS)
+ @$(NORMAL_INSTALL)
+ test -z "$(man1dir)" || $(MKDIR_P) "$(DESTDIR)$(man1dir)"
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ { for i in $$list; do echo "$$i"; done; \
+ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | while read p; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ echo "$$d$$p"; echo "$$p"; \
+ done | \
+ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
+ sed 'N;N;s,\n, ,g' | { \
+ list=; while read file base inst; do \
+ if test "$$base" = "$$inst"; then list="$$list $$file"; else \
+ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
+ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
+ fi; \
+ done; \
+ for i in $$list; do echo "$$i"; done | $(am__base_list) | \
+ while read files; do \
+ test -z "$$files" || { \
+ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
+ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
+ done; }
+
uninstall-man1:
@$(NORMAL_UNINSTALL)
- @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
- l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
- for i in $$l2; do \
- case "$$i" in \
- *.1*) list="$$list $$i" ;; \
- esac; \
- done; \
- for i in $$list; do \
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
- inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
- inst=`echo $$inst | sed -e 's/^.*\///'`; \
- inst=`echo $$inst | sed '$(transform)'`.$$ext; \
- echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \
- rm -f $(DESTDIR)$(man1dir)/$$inst; \
- done
+ @list=''; test -n "$(man1dir)" || exit 0; \
+ files=`{ for i in $$list; do echo "$$i"; done; \
+ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
+ sed -n '/\.1[a-z]*$$/p'; \
+ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
+ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
+ test -z "$$files" || { \
+ echo " ( cd '$(DESTDIR)$(man1dir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(man1dir)" && rm -f $$files; }
tags: TAGS
TAGS:
ctags: CTAGS
CTAGS:
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @list='$(MANS)'; if test -n "$$list"; then \
+ list=`for p in $$list; do \
+ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
+ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
+ if test -n "$$list" && \
+ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
+ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
+ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
+ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
+ echo " typically \`make maintainer-clean' will remove them" >&2; \
+ exit 1; \
+ else :; fi; \
+ else :; fi
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(MANS)
-
installdirs:
- $(mkinstalldirs) $(DESTDIR)$(man1dir)
-
+ for dir in "$(DESTDIR)$(man1dir)"; do \
+ test -z "$$dir" || $(MKDIR_P) "$$dir"; \
+ done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-am
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am: install-man
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man: install-man1
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-info-am uninstall-man
+uninstall-am: uninstall-man
uninstall-man: uninstall-man1
+.MAKE: install-am install-strip
+
.PHONY: all all-am check check-am clean clean-generic distclean \
- distclean-generic distdir dvi dvi-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-man1 install-strip installcheck installcheck-am \
+ distclean-generic distdir dvi dvi-am html html-am info info-am \
+ install install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-man1 install-pdf install-pdf-am install-ps \
+ install-ps-am install-strip installcheck installcheck-am \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am uninstall-info-am uninstall-man uninstall-man1
+ uninstall-am uninstall-man uninstall-man1
+
# 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.
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* Note, the number of dilectrics defined must be set by the parameter
+#define NUMBER_OF_ORDINARY_INTERIOR_POINTS_DEFINED ?? in definitions.h. There needs
+ot be a better way of setting this, but for now it will do */
+
+char *names[]={"Vacuum","Air","PTFE", "duroid_5880","Polyethelene", "Polystyrene", "PVC","Epoxy_resin", "FR4 PCB", "Fibreglass_PCB", "duroid_6006","duroid_6010","one_hundred"};
+double Ers[]={1.0,1.0006, 2.1,2.2,2.33,2.5,3.3,3.335,3.7,4.8,6.15,10.2,100.0};
+int colours[]={0xffffff,0xffcaca, 0x8235ef,0x8e8e8e,0xff00ff,0xffff00, 0xefcc1a,0xbc7f60,0xdff788,0x1aefb3,0x696969,0xdcdcdc, 0xd5a04d};
+
-SUBDIRS = non_gui
-EXTRA_DIST = README
+bin_PROGRAMS = atlc create_bmp_for_rect_in_rect \
+create_any_bitmap \
+create_bmp_for_circ_in_circ create_bmp_for_rect_cen_in_rect \
+create_bmp_for_circ_in_rect create_bmp_for_rect_in_circ \
+readbin create_bmp_for_symmetrical_stripline \
+design_coupler create_bmp_for_stripline_coupler \
+create_bmp_for_microstrip_coupler \
+find_optimal_dimensions_for_microstrip_coupler \
+create_bmp_for_rect_cen_in_rect_coupler
+
+atlc_SOURCES = atlc.c read_bitmap_file_headers.c \
+update_voltage_array.c \
+check_for_boundaries.c \
+memory.c setup_arrays.c \
+finite_difference_single_threaded.c \
+finite_difference_multi_threaded.c \
+usage_atlc.c \
+check_for_shorts.c bmp.h definitions.h Erdata.h \
+find_energy_per_metre.c \
+set_oddity_from_Greens_paper.c \
+get_file_pointer_with_right_filename.c \
+find_maximum_values.c calculate_colour_data.c find_electric_fields.c \
+get_options.c exit_with_msg_and_exit_code.c do_fd_calculation.c \
+swap_conductor_voltages.c print_copyright.c \
+print_data_for_directional_couplers.c \
+print_data_for_two_conductor_lines.c \
+set_data_to_sensible_starting_values.c \
+write_fields_for_two_conductor_lines.c \
+write_fields_for_directional_couplers.c \
+exit_codes.h definitions.h
+
+atlc_CPPFLAGS = -DNEED_MPI_CODE @PTHREAD_CFLAGS@
+atlc_LDADD = @PTHREAD_LIBS@ @LIBS@
+
+
+create_bmp_for_rect_in_rect_SOURCES = create_bmp_for_rect_in_rect.c \
+usage_create_bmp_for_rect_in_rect.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_rect_in_rect.c \
+check_parameters_of_create_bmp_for_rect_in_rect.c \
+check_error.c get_options.c definitions.h \
+exit_with_msg_and_exit_code.c print_copyright.c \
+exit_codes.h definitions.h
+
+create_bmp_for_rect_in_rect_LDADD = @LIBS@
+
+create_any_bitmap_SOURCES = \
+create_any_bitmap.c \
+exit_with_msg_and_exit_code.c \
+definitions.h \
+exit_codes.h \
+usage_create_any_bitmap.c
+
+create_bmp_for_rect_cen_in_rect_coupler_SOURCES = \
+create_bmp_for_rect_cen_in_rect_coupler.c \
+usage_create_bmp_for_rect_cen_in_rect_coupler.c \
+get_options.c definitions.h memory.c \
+write_bitmap_out.c \
+align_bitmap_image.c check_error.c exit_with_msg_and_exit_code.c \
+print_copyright.c \
+exit_codes.h definitions.h
+
+
+create_bmp_for_rect_cen_in_rect_SOURCES = create_bmp_for_rect_cen_in_rect.c \
+usage_create_bmp_for_rect_cen_in_rect.c \
+write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c \
+fill_rect_in_rect.c check_parameters_of_create_bmp_for_rect_in_rect.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h exit_codes.h
+create_bmp_for_rect_cen_in_rect_LDADD = @LIBS@
+
+create_bmp_for_microstrip_coupler_SOURCES = \
+usage_create_bmp_for_microstrip_coupler.c \
+create_bmp_for_microstrip_coupler.c get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.c \
+print_copyright.c \
+write_bitmap_out.c memory.c \
+get_options.c check_parameters_of_create_bmp_for_microstrip_coupler.c \
+write_bitmap.c align_bitmap_image.c \
+fill_image_vector_for_create_bmp_for_microstrip_coupler.c \
+check_error.c exit_with_msg_and_exit_code.c \
+Erdata.h definitions.h exit_codes.h
+create_bmp_for_microstrip_coupler_LDADD = @LIBS@
+
+create_bmp_for_circ_in_circ_SOURCES = create_bmp_for_circ_in_circ.c \
+usage_create_bmp_for_circ_in_circ.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_circ_in_circ_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_circ_in_circ.c \
+check_parameters_of_create_bmp_for_circ_in_circ.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h
+create_bmp_for_circ_in_circ_LDADD = @LIBS@
+
+create_bmp_for_circ_in_rect_SOURCES = create_bmp_for_circ_in_rect.c \
+convert_create_bmp_for_circ_in_rect_dimensions_to_integers.c \
+usage_create_bmp_for_circ_in_rect.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+check_parameters_of_create_bmp_for_circ_in_rect.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_circ_in_rect.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h exit_codes.h
+create_bmp_for_circ_in_rect_LDADD = @LIBS@
+
+create_bmp_for_rect_in_circ_SOURCES = create_bmp_for_rect_in_circ.c \
+usage_create_bmp_for_rect_in_circ.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_rect_in_circ_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_rect_in_circ.c check_parameters_of_create_bmp_for_rect_in_circ.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h
+
+readbin_SOURCES = \
+readbin.c \
+get_options.c exit_with_msg_and_exit_code.c print_copyright.c \
+usage_readbin.c byteswap.c \
+memory.c
+readbin_LDADD = @LIBS@
+
+create_bmp_for_symmetrical_stripline_SOURCES = \
+create_bmp_for_symmetrical_stripline.c \
+fill_image_vector_for_create_bmp_for_symmetrical_stripline.c \
+usage_create_bmp_for_symmetrical_stripline.c memory.c write_bitmap_out.c \
+align_bitmap_image.c \
+calculate_impedance_for_create_bmp_for_symmetrical_stripline.c \
+elliptic_integral.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c
+create_bmp_for_symmetrical_stripline_LDADD = @LIBS@
+
+create_bmp_for_stripline_coupler_SOURCES = \
+create_bmp_for_stripline_coupler.c usage_create_bmp_for_stripline_coupler.c \
+calculate_Zodd_and_Zeven.c get_options.c definitions.h \
+calculate_integer_values.c write_bitmap.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_make_coupler.c \
+check_error.c exit_with_msg_and_exit_code.c \
+get_Er1_and_Er2_colours.c print_copyright.c \
+gsl_types.h \
+gsl_definitions.h \
+gsl_sf_ellint_Kcomp.c
+create_bmp_for_stripline_coupler_LDADD = @LIBS@
+create_bmp_for_stripline_coupler_CFLAGS = @CFLAGS@
+
+design_coupler_SOURCES = design_coupler.c usage_design_coupler.c \
+get_options.c print_copyright.c calculate_Zodd_and_Zeven.c \
+give_examples_of_using_design_coupler.c exit_with_msg_and_exit_code.c \
+gsl_types.h \
+gsl_definitions.h \
+gsl_sf_ellint_Kcomp.c
+design_coupler_LDADD = @LIBS@
+design_coupler_CFLAGS = @CFLAGS@
+
+find_optimal_dimensions_for_microstrip_coupler_SOURCES = \
+find_optimal_dimensions_for_microstrip_coupler.c \
+exit_with_msg_and_exit_code.c \
+usage_find_optimal_dimensions_for_microstrip_coupler.c \
+print_copyright.c get_options.c \
+memory.c \
+check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.c
+find_optimal_dimensions_for_microstrip_coupler_LDADD = @LIBS@
+
+EXTRA_DIST = finite_difference_mpi.c
+
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
@SET_MAKE@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+bin_PROGRAMS = atlc$(EXEEXT) create_bmp_for_rect_in_rect$(EXEEXT) \
+ create_any_bitmap$(EXEEXT) \
+ create_bmp_for_circ_in_circ$(EXEEXT) \
+ create_bmp_for_rect_cen_in_rect$(EXEEXT) \
+ create_bmp_for_circ_in_rect$(EXEEXT) \
+ create_bmp_for_rect_in_circ$(EXEEXT) readbin$(EXEEXT) \
+ create_bmp_for_symmetrical_stripline$(EXEEXT) \
+ design_coupler$(EXEEXT) \
+ create_bmp_for_stripline_coupler$(EXEEXT) \
+ create_bmp_for_microstrip_coupler$(EXEEXT) \
+ find_optimal_dimensions_for_microstrip_coupler$(EXEEXT) \
+ create_bmp_for_rect_cen_in_rect_coupler$(EXEEXT)
+subdir = src
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+PROGRAMS = $(bin_PROGRAMS)
+am_atlc_OBJECTS = atlc-atlc.$(OBJEXT) \
+ atlc-read_bitmap_file_headers.$(OBJEXT) \
+ atlc-update_voltage_array.$(OBJEXT) \
+ atlc-check_for_boundaries.$(OBJEXT) atlc-memory.$(OBJEXT) \
+ atlc-setup_arrays.$(OBJEXT) \
+ atlc-finite_difference_single_threaded.$(OBJEXT) \
+ atlc-finite_difference_multi_threaded.$(OBJEXT) \
+ atlc-usage_atlc.$(OBJEXT) atlc-check_for_shorts.$(OBJEXT) \
+ atlc-find_energy_per_metre.$(OBJEXT) \
+ atlc-set_oddity_from_Greens_paper.$(OBJEXT) \
+ atlc-get_file_pointer_with_right_filename.$(OBJEXT) \
+ atlc-find_maximum_values.$(OBJEXT) \
+ atlc-calculate_colour_data.$(OBJEXT) \
+ atlc-find_electric_fields.$(OBJEXT) atlc-get_options.$(OBJEXT) \
+ atlc-exit_with_msg_and_exit_code.$(OBJEXT) \
+ atlc-do_fd_calculation.$(OBJEXT) \
+ atlc-swap_conductor_voltages.$(OBJEXT) \
+ atlc-print_copyright.$(OBJEXT) \
+ atlc-print_data_for_directional_couplers.$(OBJEXT) \
+ atlc-print_data_for_two_conductor_lines.$(OBJEXT) \
+ atlc-set_data_to_sensible_starting_values.$(OBJEXT) \
+ atlc-write_fields_for_two_conductor_lines.$(OBJEXT) \
+ atlc-write_fields_for_directional_couplers.$(OBJEXT)
+atlc_OBJECTS = $(am_atlc_OBJECTS)
+atlc_DEPENDENCIES =
+am_create_any_bitmap_OBJECTS = create_any_bitmap.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ usage_create_any_bitmap.$(OBJEXT)
+create_any_bitmap_OBJECTS = $(am_create_any_bitmap_OBJECTS)
+create_any_bitmap_LDADD = $(LDADD)
+am_create_bmp_for_circ_in_circ_OBJECTS = \
+ create_bmp_for_circ_in_circ.$(OBJEXT) \
+ usage_create_bmp_for_circ_in_circ.$(OBJEXT) \
+ write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
+ convert_create_bmp_for_circ_in_circ_dimensions_to_integers.$(OBJEXT) \
+ memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ align_bitmap_image.$(OBJEXT) fill_circ_in_circ.$(OBJEXT) \
+ check_parameters_of_create_bmp_for_circ_in_circ.$(OBJEXT) \
+ check_error.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_circ_in_circ_OBJECTS = \
+ $(am_create_bmp_for_circ_in_circ_OBJECTS)
+create_bmp_for_circ_in_circ_DEPENDENCIES =
+am_create_bmp_for_circ_in_rect_OBJECTS = \
+ create_bmp_for_circ_in_rect.$(OBJEXT) \
+ convert_create_bmp_for_circ_in_rect_dimensions_to_integers.$(OBJEXT) \
+ usage_create_bmp_for_circ_in_rect.$(OBJEXT) \
+ write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
+ check_parameters_of_create_bmp_for_circ_in_rect.$(OBJEXT) \
+ memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ align_bitmap_image.$(OBJEXT) fill_circ_in_rect.$(OBJEXT) \
+ check_error.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_circ_in_rect_OBJECTS = \
+ $(am_create_bmp_for_circ_in_rect_OBJECTS)
+create_bmp_for_circ_in_rect_DEPENDENCIES =
+am_create_bmp_for_microstrip_coupler_OBJECTS = \
+ usage_create_bmp_for_microstrip_coupler.$(OBJEXT) \
+ create_bmp_for_microstrip_coupler.$(OBJEXT) \
+ get_Er1_and_Er2_colours.$(OBJEXT) \
+ convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.$(OBJEXT) \
+ print_copyright.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ memory.$(OBJEXT) get_options.$(OBJEXT) \
+ check_parameters_of_create_bmp_for_microstrip_coupler.$(OBJEXT) \
+ write_bitmap.$(OBJEXT) align_bitmap_image.$(OBJEXT) \
+ fill_image_vector_for_create_bmp_for_microstrip_coupler.$(OBJEXT) \
+ check_error.$(OBJEXT) exit_with_msg_and_exit_code.$(OBJEXT)
+create_bmp_for_microstrip_coupler_OBJECTS = \
+ $(am_create_bmp_for_microstrip_coupler_OBJECTS)
+create_bmp_for_microstrip_coupler_DEPENDENCIES =
+am_create_bmp_for_rect_cen_in_rect_OBJECTS = \
+ create_bmp_for_rect_cen_in_rect.$(OBJEXT) \
+ usage_create_bmp_for_rect_cen_in_rect.$(OBJEXT) \
+ write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
+ convert_create_bmp_for_rect_in_rect_dimensions_to_integers.$(OBJEXT) \
+ memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ align_bitmap_image.$(OBJEXT) fill_rect_in_rect.$(OBJEXT) \
+ check_parameters_of_create_bmp_for_rect_in_rect.$(OBJEXT) \
+ check_error.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_rect_cen_in_rect_OBJECTS = \
+ $(am_create_bmp_for_rect_cen_in_rect_OBJECTS)
+create_bmp_for_rect_cen_in_rect_DEPENDENCIES =
+am_create_bmp_for_rect_cen_in_rect_coupler_OBJECTS = \
+ create_bmp_for_rect_cen_in_rect_coupler.$(OBJEXT) \
+ usage_create_bmp_for_rect_cen_in_rect_coupler.$(OBJEXT) \
+ get_options.$(OBJEXT) memory.$(OBJEXT) \
+ write_bitmap_out.$(OBJEXT) align_bitmap_image.$(OBJEXT) \
+ check_error.$(OBJEXT) exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_rect_cen_in_rect_coupler_OBJECTS = \
+ $(am_create_bmp_for_rect_cen_in_rect_coupler_OBJECTS)
+create_bmp_for_rect_cen_in_rect_coupler_LDADD = $(LDADD)
+am_create_bmp_for_rect_in_circ_OBJECTS = \
+ create_bmp_for_rect_in_circ.$(OBJEXT) \
+ usage_create_bmp_for_rect_in_circ.$(OBJEXT) \
+ write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
+ convert_create_bmp_for_rect_in_circ_dimensions_to_integers.$(OBJEXT) \
+ memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ align_bitmap_image.$(OBJEXT) fill_rect_in_circ.$(OBJEXT) \
+ check_parameters_of_create_bmp_for_rect_in_circ.$(OBJEXT) \
+ check_error.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_rect_in_circ_OBJECTS = \
+ $(am_create_bmp_for_rect_in_circ_OBJECTS)
+create_bmp_for_rect_in_circ_LDADD = $(LDADD)
+am_create_bmp_for_rect_in_rect_OBJECTS = \
+ create_bmp_for_rect_in_rect.$(OBJEXT) \
+ usage_create_bmp_for_rect_in_rect.$(OBJEXT) \
+ write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
+ convert_create_bmp_for_rect_in_rect_dimensions_to_integers.$(OBJEXT) \
+ memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ align_bitmap_image.$(OBJEXT) fill_rect_in_rect.$(OBJEXT) \
+ check_parameters_of_create_bmp_for_rect_in_rect.$(OBJEXT) \
+ check_error.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_rect_in_rect_OBJECTS = \
+ $(am_create_bmp_for_rect_in_rect_OBJECTS)
+create_bmp_for_rect_in_rect_DEPENDENCIES =
+am_create_bmp_for_stripline_coupler_OBJECTS = create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-get_options.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-calculate_integer_values.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-write_bitmap.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-memory.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-write_bitmap_out.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-align_bitmap_image.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-fill_make_coupler.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-check_error.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-print_copyright.$(OBJEXT) \
+ create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.$(OBJEXT)
+create_bmp_for_stripline_coupler_OBJECTS = \
+ $(am_create_bmp_for_stripline_coupler_OBJECTS)
+create_bmp_for_stripline_coupler_DEPENDENCIES =
+create_bmp_for_stripline_coupler_LINK = $(CCLD) \
+ $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+am_create_bmp_for_symmetrical_stripline_OBJECTS = \
+ create_bmp_for_symmetrical_stripline.$(OBJEXT) \
+ fill_image_vector_for_create_bmp_for_symmetrical_stripline.$(OBJEXT) \
+ usage_create_bmp_for_symmetrical_stripline.$(OBJEXT) \
+ memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
+ align_bitmap_image.$(OBJEXT) \
+ calculate_impedance_for_create_bmp_for_symmetrical_stripline.$(OBJEXT) \
+ elliptic_integral.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT)
+create_bmp_for_symmetrical_stripline_OBJECTS = \
+ $(am_create_bmp_for_symmetrical_stripline_OBJECTS)
+create_bmp_for_symmetrical_stripline_DEPENDENCIES =
+am_design_coupler_OBJECTS = design_coupler-design_coupler.$(OBJEXT) \
+ design_coupler-usage_design_coupler.$(OBJEXT) \
+ design_coupler-get_options.$(OBJEXT) \
+ design_coupler-print_copyright.$(OBJEXT) \
+ design_coupler-calculate_Zodd_and_Zeven.$(OBJEXT) \
+ design_coupler-give_examples_of_using_design_coupler.$(OBJEXT) \
+ design_coupler-exit_with_msg_and_exit_code.$(OBJEXT) \
+ design_coupler-gsl_sf_ellint_Kcomp.$(OBJEXT)
+design_coupler_OBJECTS = $(am_design_coupler_OBJECTS)
+design_coupler_DEPENDENCIES =
+design_coupler_LINK = $(CCLD) $(design_coupler_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+am_find_optimal_dimensions_for_microstrip_coupler_OBJECTS = \
+ find_optimal_dimensions_for_microstrip_coupler.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ usage_find_optimal_dimensions_for_microstrip_coupler.$(OBJEXT) \
+ print_copyright.$(OBJEXT) get_options.$(OBJEXT) \
+ memory.$(OBJEXT) \
+ check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.$(OBJEXT)
+find_optimal_dimensions_for_microstrip_coupler_OBJECTS = \
+ $(am_find_optimal_dimensions_for_microstrip_coupler_OBJECTS)
+find_optimal_dimensions_for_microstrip_coupler_DEPENDENCIES =
+am_readbin_OBJECTS = readbin.$(OBJEXT) get_options.$(OBJEXT) \
+ exit_with_msg_and_exit_code.$(OBJEXT) \
+ print_copyright.$(OBJEXT) usage_readbin.$(OBJEXT) \
+ byteswap.$(OBJEXT) memory.$(OBJEXT)
+readbin_OBJECTS = $(am_readbin_OBJECTS)
+readbin_DEPENDENCIES =
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(atlc_SOURCES) $(create_any_bitmap_SOURCES) \
+ $(create_bmp_for_circ_in_circ_SOURCES) \
+ $(create_bmp_for_circ_in_rect_SOURCES) \
+ $(create_bmp_for_microstrip_coupler_SOURCES) \
+ $(create_bmp_for_rect_cen_in_rect_SOURCES) \
+ $(create_bmp_for_rect_cen_in_rect_coupler_SOURCES) \
+ $(create_bmp_for_rect_in_circ_SOURCES) \
+ $(create_bmp_for_rect_in_rect_SOURCES) \
+ $(create_bmp_for_stripline_coupler_SOURCES) \
+ $(create_bmp_for_symmetrical_stripline_SOURCES) \
+ $(design_coupler_SOURCES) \
+ $(find_optimal_dimensions_for_microstrip_coupler_SOURCES) \
+ $(readbin_SOURCES)
+DIST_SOURCES = $(atlc_SOURCES) $(create_any_bitmap_SOURCES) \
+ $(create_bmp_for_circ_in_circ_SOURCES) \
+ $(create_bmp_for_circ_in_rect_SOURCES) \
+ $(create_bmp_for_microstrip_coupler_SOURCES) \
+ $(create_bmp_for_rect_cen_in_rect_SOURCES) \
+ $(create_bmp_for_rect_cen_in_rect_coupler_SOURCES) \
+ $(create_bmp_for_rect_in_circ_SOURCES) \
+ $(create_bmp_for_rect_in_rect_SOURCES) \
+ $(create_bmp_for_stripline_coupler_SOURCES) \
+ $(create_bmp_for_symmetrical_stripline_SOURCES) \
+ $(design_coupler_SOURCES) \
+ $(find_optimal_dimensions_for_microstrip_coupler_SOURCES) \
+ $(readbin_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@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-SUBDIRS = non_gui
-EXTRA_DIST = README
-subdir = src
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
+atlc_SOURCES = atlc.c read_bitmap_file_headers.c \
+update_voltage_array.c \
+check_for_boundaries.c \
+memory.c setup_arrays.c \
+finite_difference_single_threaded.c \
+finite_difference_multi_threaded.c \
+usage_atlc.c \
+check_for_shorts.c bmp.h definitions.h Erdata.h \
+find_energy_per_metre.c \
+set_oddity_from_Greens_paper.c \
+get_file_pointer_with_right_filename.c \
+find_maximum_values.c calculate_colour_data.c find_electric_fields.c \
+get_options.c exit_with_msg_and_exit_code.c do_fd_calculation.c \
+swap_conductor_voltages.c print_copyright.c \
+print_data_for_directional_couplers.c \
+print_data_for_two_conductor_lines.c \
+set_data_to_sensible_starting_values.c \
+write_fields_for_two_conductor_lines.c \
+write_fields_for_directional_couplers.c \
+exit_codes.h definitions.h
+
+atlc_CPPFLAGS = -DNEED_MPI_CODE @PTHREAD_CFLAGS@
+atlc_LDADD = @PTHREAD_LIBS@ @LIBS@
+create_bmp_for_rect_in_rect_SOURCES = create_bmp_for_rect_in_rect.c \
+usage_create_bmp_for_rect_in_rect.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_rect_in_rect.c \
+check_parameters_of_create_bmp_for_rect_in_rect.c \
+check_error.c get_options.c definitions.h \
+exit_with_msg_and_exit_code.c print_copyright.c \
+exit_codes.h definitions.h
+
+create_bmp_for_rect_in_rect_LDADD = @LIBS@
+create_any_bitmap_SOURCES = \
+create_any_bitmap.c \
+exit_with_msg_and_exit_code.c \
+definitions.h \
+exit_codes.h \
+usage_create_any_bitmap.c
+
+create_bmp_for_rect_cen_in_rect_coupler_SOURCES = \
+create_bmp_for_rect_cen_in_rect_coupler.c \
+usage_create_bmp_for_rect_cen_in_rect_coupler.c \
+get_options.c definitions.h memory.c \
+write_bitmap_out.c \
+align_bitmap_image.c check_error.c exit_with_msg_and_exit_code.c \
+print_copyright.c \
+exit_codes.h definitions.h
+
+create_bmp_for_rect_cen_in_rect_SOURCES = create_bmp_for_rect_cen_in_rect.c \
+usage_create_bmp_for_rect_cen_in_rect.c \
+write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c \
+fill_rect_in_rect.c check_parameters_of_create_bmp_for_rect_in_rect.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h exit_codes.h
-RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
- ps-recursive install-info-recursive uninstall-info-recursive \
- all-recursive install-data-recursive install-exec-recursive \
- installdirs-recursive install-recursive uninstall-recursive \
- check-recursive installcheck-recursive
-DIST_COMMON = README Makefile.am Makefile.in
-DIST_SUBDIRS = $(SUBDIRS)
-all: all-recursive
+create_bmp_for_rect_cen_in_rect_LDADD = @LIBS@
+create_bmp_for_microstrip_coupler_SOURCES = \
+usage_create_bmp_for_microstrip_coupler.c \
+create_bmp_for_microstrip_coupler.c get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.c \
+print_copyright.c \
+write_bitmap_out.c memory.c \
+get_options.c check_parameters_of_create_bmp_for_microstrip_coupler.c \
+write_bitmap.c align_bitmap_image.c \
+fill_image_vector_for_create_bmp_for_microstrip_coupler.c \
+check_error.c exit_with_msg_and_exit_code.c \
+Erdata.h definitions.h exit_codes.h
+
+create_bmp_for_microstrip_coupler_LDADD = @LIBS@
+create_bmp_for_circ_in_circ_SOURCES = create_bmp_for_circ_in_circ.c \
+usage_create_bmp_for_circ_in_circ.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_circ_in_circ_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_circ_in_circ.c \
+check_parameters_of_create_bmp_for_circ_in_circ.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h
+
+create_bmp_for_circ_in_circ_LDADD = @LIBS@
+create_bmp_for_circ_in_rect_SOURCES = create_bmp_for_circ_in_rect.c \
+convert_create_bmp_for_circ_in_rect_dimensions_to_integers.c \
+usage_create_bmp_for_circ_in_rect.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+check_parameters_of_create_bmp_for_circ_in_rect.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_circ_in_rect.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h exit_codes.h
+
+create_bmp_for_circ_in_rect_LDADD = @LIBS@
+create_bmp_for_rect_in_circ_SOURCES = create_bmp_for_rect_in_circ.c \
+usage_create_bmp_for_rect_in_circ.c write_bitmap.c \
+get_Er1_and_Er2_colours.c \
+convert_create_bmp_for_rect_in_circ_dimensions_to_integers.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_rect_in_circ.c check_parameters_of_create_bmp_for_rect_in_circ.c \
+check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c Erdata.h
+
+readbin_SOURCES = \
+readbin.c \
+get_options.c exit_with_msg_and_exit_code.c print_copyright.c \
+usage_readbin.c byteswap.c \
+memory.c
+
+readbin_LDADD = @LIBS@
+create_bmp_for_symmetrical_stripline_SOURCES = \
+create_bmp_for_symmetrical_stripline.c \
+fill_image_vector_for_create_bmp_for_symmetrical_stripline.c \
+usage_create_bmp_for_symmetrical_stripline.c memory.c write_bitmap_out.c \
+align_bitmap_image.c \
+calculate_impedance_for_create_bmp_for_symmetrical_stripline.c \
+elliptic_integral.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
+print_copyright.c
+
+create_bmp_for_symmetrical_stripline_LDADD = @LIBS@
+create_bmp_for_stripline_coupler_SOURCES = \
+create_bmp_for_stripline_coupler.c usage_create_bmp_for_stripline_coupler.c \
+calculate_Zodd_and_Zeven.c get_options.c definitions.h \
+calculate_integer_values.c write_bitmap.c \
+memory.c write_bitmap_out.c \
+align_bitmap_image.c fill_make_coupler.c \
+check_error.c exit_with_msg_and_exit_code.c \
+get_Er1_and_Er2_colours.c print_copyright.c \
+gsl_types.h \
+gsl_definitions.h \
+gsl_sf_ellint_Kcomp.c
+
+create_bmp_for_stripline_coupler_LDADD = @LIBS@
+create_bmp_for_stripline_coupler_CFLAGS = @CFLAGS@
+design_coupler_SOURCES = design_coupler.c usage_design_coupler.c \
+get_options.c print_copyright.c calculate_Zodd_and_Zeven.c \
+give_examples_of_using_design_coupler.c exit_with_msg_and_exit_code.c \
+gsl_types.h \
+gsl_definitions.h \
+gsl_sf_ellint_Kcomp.c
+
+design_coupler_LDADD = @LIBS@
+design_coupler_CFLAGS = @CFLAGS@
+find_optimal_dimensions_for_microstrip_coupler_SOURCES = \
+find_optimal_dimensions_for_microstrip_coupler.c \
+exit_with_msg_and_exit_code.c \
+usage_find_optimal_dimensions_for_microstrip_coupler.c \
+print_copyright.c get_options.c \
+memory.c \
+check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.c
+
+find_optimal_dimensions_for_microstrip_coupler_LDADD = @LIBS@
+EXTRA_DIST = finite_difference_mpi.c
+all: all-am
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu src/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-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):
- @set fnord $$MAKEFLAGS; amf=$$2; \
- 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) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
- 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:
- @set fnord $$MAKEFLAGS; amf=$$2; \
- 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; \
+.SUFFIXES: .c .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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
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) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
- 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
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
+ $(am__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;
-ETAGS = etags
-ETAGSFLAGS =
+$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
+ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-CTAGS = ctags
-CTAGSFLAGS =
+$(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
+$(am__aclocal_m4_deps):
+install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed 's/$(EXEEXT)$$//' | \
+ while read p p1; do if test -f $$p; \
+ then echo "$$p"; echo "$$p"; else :; fi; \
+ done | \
+ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
+ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+ sed 'N;N;N;s,\n, ,g' | \
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+ if ($$2 == $$4) files[d] = files[d] " " $$1; \
+ else { print "f", $$3 "/" $$4, $$1; } } \
+ END { for (d in files) print "f", d, files[d] }' | \
+ while read type dir files; do \
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+ test -z "$$files" || { \
+ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+ } \
+ ; done
-tags: TAGS
+uninstall-binPROGRAMS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ files=`for p in $$list; do echo "$$p"; done | \
+ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+ -e 's/$$/$(EXEEXT)/' `; \
+ test -n "$$list" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
+
+clean-binPROGRAMS:
+ -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
+atlc$(EXEEXT): $(atlc_OBJECTS) $(atlc_DEPENDENCIES)
+ @rm -f atlc$(EXEEXT)
+ $(LINK) $(atlc_OBJECTS) $(atlc_LDADD) $(LIBS)
+create_any_bitmap$(EXEEXT): $(create_any_bitmap_OBJECTS) $(create_any_bitmap_DEPENDENCIES)
+ @rm -f create_any_bitmap$(EXEEXT)
+ $(LINK) $(create_any_bitmap_OBJECTS) $(create_any_bitmap_LDADD) $(LIBS)
+create_bmp_for_circ_in_circ$(EXEEXT): $(create_bmp_for_circ_in_circ_OBJECTS) $(create_bmp_for_circ_in_circ_DEPENDENCIES)
+ @rm -f create_bmp_for_circ_in_circ$(EXEEXT)
+ $(LINK) $(create_bmp_for_circ_in_circ_OBJECTS) $(create_bmp_for_circ_in_circ_LDADD) $(LIBS)
+create_bmp_for_circ_in_rect$(EXEEXT): $(create_bmp_for_circ_in_rect_OBJECTS) $(create_bmp_for_circ_in_rect_DEPENDENCIES)
+ @rm -f create_bmp_for_circ_in_rect$(EXEEXT)
+ $(LINK) $(create_bmp_for_circ_in_rect_OBJECTS) $(create_bmp_for_circ_in_rect_LDADD) $(LIBS)
+create_bmp_for_microstrip_coupler$(EXEEXT): $(create_bmp_for_microstrip_coupler_OBJECTS) $(create_bmp_for_microstrip_coupler_DEPENDENCIES)
+ @rm -f create_bmp_for_microstrip_coupler$(EXEEXT)
+ $(LINK) $(create_bmp_for_microstrip_coupler_OBJECTS) $(create_bmp_for_microstrip_coupler_LDADD) $(LIBS)
+create_bmp_for_rect_cen_in_rect$(EXEEXT): $(create_bmp_for_rect_cen_in_rect_OBJECTS) $(create_bmp_for_rect_cen_in_rect_DEPENDENCIES)
+ @rm -f create_bmp_for_rect_cen_in_rect$(EXEEXT)
+ $(LINK) $(create_bmp_for_rect_cen_in_rect_OBJECTS) $(create_bmp_for_rect_cen_in_rect_LDADD) $(LIBS)
+create_bmp_for_rect_cen_in_rect_coupler$(EXEEXT): $(create_bmp_for_rect_cen_in_rect_coupler_OBJECTS) $(create_bmp_for_rect_cen_in_rect_coupler_DEPENDENCIES)
+ @rm -f create_bmp_for_rect_cen_in_rect_coupler$(EXEEXT)
+ $(LINK) $(create_bmp_for_rect_cen_in_rect_coupler_OBJECTS) $(create_bmp_for_rect_cen_in_rect_coupler_LDADD) $(LIBS)
+create_bmp_for_rect_in_circ$(EXEEXT): $(create_bmp_for_rect_in_circ_OBJECTS) $(create_bmp_for_rect_in_circ_DEPENDENCIES)
+ @rm -f create_bmp_for_rect_in_circ$(EXEEXT)
+ $(LINK) $(create_bmp_for_rect_in_circ_OBJECTS) $(create_bmp_for_rect_in_circ_LDADD) $(LIBS)
+create_bmp_for_rect_in_rect$(EXEEXT): $(create_bmp_for_rect_in_rect_OBJECTS) $(create_bmp_for_rect_in_rect_DEPENDENCIES)
+ @rm -f create_bmp_for_rect_in_rect$(EXEEXT)
+ $(LINK) $(create_bmp_for_rect_in_rect_OBJECTS) $(create_bmp_for_rect_in_rect_LDADD) $(LIBS)
+create_bmp_for_stripline_coupler$(EXEEXT): $(create_bmp_for_stripline_coupler_OBJECTS) $(create_bmp_for_stripline_coupler_DEPENDENCIES)
+ @rm -f create_bmp_for_stripline_coupler$(EXEEXT)
+ $(create_bmp_for_stripline_coupler_LINK) $(create_bmp_for_stripline_coupler_OBJECTS) $(create_bmp_for_stripline_coupler_LDADD) $(LIBS)
+create_bmp_for_symmetrical_stripline$(EXEEXT): $(create_bmp_for_symmetrical_stripline_OBJECTS) $(create_bmp_for_symmetrical_stripline_DEPENDENCIES)
+ @rm -f create_bmp_for_symmetrical_stripline$(EXEEXT)
+ $(LINK) $(create_bmp_for_symmetrical_stripline_OBJECTS) $(create_bmp_for_symmetrical_stripline_LDADD) $(LIBS)
+design_coupler$(EXEEXT): $(design_coupler_OBJECTS) $(design_coupler_DEPENDENCIES)
+ @rm -f design_coupler$(EXEEXT)
+ $(design_coupler_LINK) $(design_coupler_OBJECTS) $(design_coupler_LDADD) $(LIBS)
+find_optimal_dimensions_for_microstrip_coupler$(EXEEXT): $(find_optimal_dimensions_for_microstrip_coupler_OBJECTS) $(find_optimal_dimensions_for_microstrip_coupler_DEPENDENCIES)
+ @rm -f find_optimal_dimensions_for_microstrip_coupler$(EXEEXT)
+ $(LINK) $(find_optimal_dimensions_for_microstrip_coupler_OBJECTS) $(find_optimal_dimensions_for_microstrip_coupler_LDADD) $(LIBS)
+readbin$(EXEEXT): $(readbin_OBJECTS) $(readbin_DEPENDENCIES)
+ @rm -f readbin$(EXEEXT)
+ $(LINK) $(readbin_OBJECTS) $(readbin_LDADD) $(LIBS)
+
+mostlyclean-compile:
+ -rm -f *.$(OBJEXT)
+
+distclean-compile:
+ -rm -f *.tab.c
+
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/align_bitmap_image.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-atlc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-calculate_colour_data.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-check_for_boundaries.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-check_for_shorts.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-do_fd_calculation.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-find_electric_fields.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-find_energy_per_metre.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-find_maximum_values.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-finite_difference_multi_threaded.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-finite_difference_single_threaded.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-get_options.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-memory.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-print_copyright.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-print_data_for_directional_couplers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-read_bitmap_file_headers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-setup_arrays.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-swap_conductor_voltages.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-update_voltage_array.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-usage_atlc.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/byteswap.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calculate_impedance_for_create_bmp_for_symmetrical_stripline.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_error.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_circ_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_circ_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_rect_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_rect_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_circ_in_circ_dimensions_to_integers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_circ_in_rect_dimensions_to_integers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_rect_in_circ_dimensions_to_integers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_rect_in_rect_dimensions_to_integers.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_any_bitmap.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_circ_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_circ_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_cen_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_cen_in_rect_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_symmetrical_stripline.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-design_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-get_options.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-print_copyright.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-usage_design_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elliptic_integral.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exit_with_msg_and_exit_code.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_circ_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_circ_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_image_vector_for_create_bmp_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_image_vector_for_create_bmp_for_symmetrical_stripline.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_rect_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_rect_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find_optimal_dimensions_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_Er1_and_Er2_colours.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_options.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memory.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_copyright.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readbin.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_any_bitmap.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_circ_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_circ_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_cen_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_cen_in_rect_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_in_circ.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_in_rect.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_symmetrical_stripline.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_find_optimal_dimensions_for_microstrip_coupler.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_readbin.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write_bitmap.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write_bitmap_out.Po@am__quote@
+
+.c.o:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
+
+.c.obj:
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
+
+atlc-atlc.o: atlc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-atlc.o -MD -MP -MF $(DEPDIR)/atlc-atlc.Tpo -c -o atlc-atlc.o `test -f 'atlc.c' || echo '$(srcdir)/'`atlc.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-atlc.Tpo $(DEPDIR)/atlc-atlc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atlc.c' object='atlc-atlc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-atlc.o `test -f 'atlc.c' || echo '$(srcdir)/'`atlc.c
+
+atlc-atlc.obj: atlc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-atlc.obj -MD -MP -MF $(DEPDIR)/atlc-atlc.Tpo -c -o atlc-atlc.obj `if test -f 'atlc.c'; then $(CYGPATH_W) 'atlc.c'; else $(CYGPATH_W) '$(srcdir)/atlc.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-atlc.Tpo $(DEPDIR)/atlc-atlc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atlc.c' object='atlc-atlc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-atlc.obj `if test -f 'atlc.c'; then $(CYGPATH_W) 'atlc.c'; else $(CYGPATH_W) '$(srcdir)/atlc.c'; fi`
+
+atlc-read_bitmap_file_headers.o: read_bitmap_file_headers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-read_bitmap_file_headers.o -MD -MP -MF $(DEPDIR)/atlc-read_bitmap_file_headers.Tpo -c -o atlc-read_bitmap_file_headers.o `test -f 'read_bitmap_file_headers.c' || echo '$(srcdir)/'`read_bitmap_file_headers.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-read_bitmap_file_headers.Tpo $(DEPDIR)/atlc-read_bitmap_file_headers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='read_bitmap_file_headers.c' object='atlc-read_bitmap_file_headers.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-read_bitmap_file_headers.o `test -f 'read_bitmap_file_headers.c' || echo '$(srcdir)/'`read_bitmap_file_headers.c
+
+atlc-read_bitmap_file_headers.obj: read_bitmap_file_headers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-read_bitmap_file_headers.obj -MD -MP -MF $(DEPDIR)/atlc-read_bitmap_file_headers.Tpo -c -o atlc-read_bitmap_file_headers.obj `if test -f 'read_bitmap_file_headers.c'; then $(CYGPATH_W) 'read_bitmap_file_headers.c'; else $(CYGPATH_W) '$(srcdir)/read_bitmap_file_headers.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-read_bitmap_file_headers.Tpo $(DEPDIR)/atlc-read_bitmap_file_headers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='read_bitmap_file_headers.c' object='atlc-read_bitmap_file_headers.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-read_bitmap_file_headers.obj `if test -f 'read_bitmap_file_headers.c'; then $(CYGPATH_W) 'read_bitmap_file_headers.c'; else $(CYGPATH_W) '$(srcdir)/read_bitmap_file_headers.c'; fi`
+
+atlc-update_voltage_array.o: update_voltage_array.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-update_voltage_array.o -MD -MP -MF $(DEPDIR)/atlc-update_voltage_array.Tpo -c -o atlc-update_voltage_array.o `test -f 'update_voltage_array.c' || echo '$(srcdir)/'`update_voltage_array.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-update_voltage_array.Tpo $(DEPDIR)/atlc-update_voltage_array.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='update_voltage_array.c' object='atlc-update_voltage_array.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-update_voltage_array.o `test -f 'update_voltage_array.c' || echo '$(srcdir)/'`update_voltage_array.c
+
+atlc-update_voltage_array.obj: update_voltage_array.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-update_voltage_array.obj -MD -MP -MF $(DEPDIR)/atlc-update_voltage_array.Tpo -c -o atlc-update_voltage_array.obj `if test -f 'update_voltage_array.c'; then $(CYGPATH_W) 'update_voltage_array.c'; else $(CYGPATH_W) '$(srcdir)/update_voltage_array.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-update_voltage_array.Tpo $(DEPDIR)/atlc-update_voltage_array.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='update_voltage_array.c' object='atlc-update_voltage_array.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-update_voltage_array.obj `if test -f 'update_voltage_array.c'; then $(CYGPATH_W) 'update_voltage_array.c'; else $(CYGPATH_W) '$(srcdir)/update_voltage_array.c'; fi`
+
+atlc-check_for_boundaries.o: check_for_boundaries.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_boundaries.o -MD -MP -MF $(DEPDIR)/atlc-check_for_boundaries.Tpo -c -o atlc-check_for_boundaries.o `test -f 'check_for_boundaries.c' || echo '$(srcdir)/'`check_for_boundaries.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-check_for_boundaries.Tpo $(DEPDIR)/atlc-check_for_boundaries.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_boundaries.c' object='atlc-check_for_boundaries.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_boundaries.o `test -f 'check_for_boundaries.c' || echo '$(srcdir)/'`check_for_boundaries.c
+
+atlc-check_for_boundaries.obj: check_for_boundaries.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_boundaries.obj -MD -MP -MF $(DEPDIR)/atlc-check_for_boundaries.Tpo -c -o atlc-check_for_boundaries.obj `if test -f 'check_for_boundaries.c'; then $(CYGPATH_W) 'check_for_boundaries.c'; else $(CYGPATH_W) '$(srcdir)/check_for_boundaries.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-check_for_boundaries.Tpo $(DEPDIR)/atlc-check_for_boundaries.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_boundaries.c' object='atlc-check_for_boundaries.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_boundaries.obj `if test -f 'check_for_boundaries.c'; then $(CYGPATH_W) 'check_for_boundaries.c'; else $(CYGPATH_W) '$(srcdir)/check_for_boundaries.c'; fi`
+
+atlc-memory.o: memory.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-memory.o -MD -MP -MF $(DEPDIR)/atlc-memory.Tpo -c -o atlc-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-memory.Tpo $(DEPDIR)/atlc-memory.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='atlc-memory.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
+
+atlc-memory.obj: memory.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-memory.obj -MD -MP -MF $(DEPDIR)/atlc-memory.Tpo -c -o atlc-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-memory.Tpo $(DEPDIR)/atlc-memory.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='atlc-memory.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'; fi`
+
+atlc-setup_arrays.o: setup_arrays.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-setup_arrays.o -MD -MP -MF $(DEPDIR)/atlc-setup_arrays.Tpo -c -o atlc-setup_arrays.o `test -f 'setup_arrays.c' || echo '$(srcdir)/'`setup_arrays.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-setup_arrays.Tpo $(DEPDIR)/atlc-setup_arrays.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup_arrays.c' object='atlc-setup_arrays.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-setup_arrays.o `test -f 'setup_arrays.c' || echo '$(srcdir)/'`setup_arrays.c
+
+atlc-setup_arrays.obj: setup_arrays.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-setup_arrays.obj -MD -MP -MF $(DEPDIR)/atlc-setup_arrays.Tpo -c -o atlc-setup_arrays.obj `if test -f 'setup_arrays.c'; then $(CYGPATH_W) 'setup_arrays.c'; else $(CYGPATH_W) '$(srcdir)/setup_arrays.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-setup_arrays.Tpo $(DEPDIR)/atlc-setup_arrays.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup_arrays.c' object='atlc-setup_arrays.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-setup_arrays.obj `if test -f 'setup_arrays.c'; then $(CYGPATH_W) 'setup_arrays.c'; else $(CYGPATH_W) '$(srcdir)/setup_arrays.c'; fi`
+
+atlc-finite_difference_single_threaded.o: finite_difference_single_threaded.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_single_threaded.o -MD -MP -MF $(DEPDIR)/atlc-finite_difference_single_threaded.Tpo -c -o atlc-finite_difference_single_threaded.o `test -f 'finite_difference_single_threaded.c' || echo '$(srcdir)/'`finite_difference_single_threaded.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-finite_difference_single_threaded.Tpo $(DEPDIR)/atlc-finite_difference_single_threaded.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_single_threaded.c' object='atlc-finite_difference_single_threaded.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_single_threaded.o `test -f 'finite_difference_single_threaded.c' || echo '$(srcdir)/'`finite_difference_single_threaded.c
+
+atlc-finite_difference_single_threaded.obj: finite_difference_single_threaded.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_single_threaded.obj -MD -MP -MF $(DEPDIR)/atlc-finite_difference_single_threaded.Tpo -c -o atlc-finite_difference_single_threaded.obj `if test -f 'finite_difference_single_threaded.c'; then $(CYGPATH_W) 'finite_difference_single_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_single_threaded.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-finite_difference_single_threaded.Tpo $(DEPDIR)/atlc-finite_difference_single_threaded.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_single_threaded.c' object='atlc-finite_difference_single_threaded.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_single_threaded.obj `if test -f 'finite_difference_single_threaded.c'; then $(CYGPATH_W) 'finite_difference_single_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_single_threaded.c'; fi`
+
+atlc-finite_difference_multi_threaded.o: finite_difference_multi_threaded.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_multi_threaded.o -MD -MP -MF $(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo -c -o atlc-finite_difference_multi_threaded.o `test -f 'finite_difference_multi_threaded.c' || echo '$(srcdir)/'`finite_difference_multi_threaded.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo $(DEPDIR)/atlc-finite_difference_multi_threaded.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_multi_threaded.c' object='atlc-finite_difference_multi_threaded.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_multi_threaded.o `test -f 'finite_difference_multi_threaded.c' || echo '$(srcdir)/'`finite_difference_multi_threaded.c
+
+atlc-finite_difference_multi_threaded.obj: finite_difference_multi_threaded.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_multi_threaded.obj -MD -MP -MF $(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo -c -o atlc-finite_difference_multi_threaded.obj `if test -f 'finite_difference_multi_threaded.c'; then $(CYGPATH_W) 'finite_difference_multi_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_multi_threaded.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo $(DEPDIR)/atlc-finite_difference_multi_threaded.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_multi_threaded.c' object='atlc-finite_difference_multi_threaded.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_multi_threaded.obj `if test -f 'finite_difference_multi_threaded.c'; then $(CYGPATH_W) 'finite_difference_multi_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_multi_threaded.c'; fi`
+
+atlc-usage_atlc.o: usage_atlc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-usage_atlc.o -MD -MP -MF $(DEPDIR)/atlc-usage_atlc.Tpo -c -o atlc-usage_atlc.o `test -f 'usage_atlc.c' || echo '$(srcdir)/'`usage_atlc.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-usage_atlc.Tpo $(DEPDIR)/atlc-usage_atlc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_atlc.c' object='atlc-usage_atlc.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-usage_atlc.o `test -f 'usage_atlc.c' || echo '$(srcdir)/'`usage_atlc.c
+
+atlc-usage_atlc.obj: usage_atlc.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-usage_atlc.obj -MD -MP -MF $(DEPDIR)/atlc-usage_atlc.Tpo -c -o atlc-usage_atlc.obj `if test -f 'usage_atlc.c'; then $(CYGPATH_W) 'usage_atlc.c'; else $(CYGPATH_W) '$(srcdir)/usage_atlc.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-usage_atlc.Tpo $(DEPDIR)/atlc-usage_atlc.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_atlc.c' object='atlc-usage_atlc.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-usage_atlc.obj `if test -f 'usage_atlc.c'; then $(CYGPATH_W) 'usage_atlc.c'; else $(CYGPATH_W) '$(srcdir)/usage_atlc.c'; fi`
+
+atlc-check_for_shorts.o: check_for_shorts.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_shorts.o -MD -MP -MF $(DEPDIR)/atlc-check_for_shorts.Tpo -c -o atlc-check_for_shorts.o `test -f 'check_for_shorts.c' || echo '$(srcdir)/'`check_for_shorts.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-check_for_shorts.Tpo $(DEPDIR)/atlc-check_for_shorts.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_shorts.c' object='atlc-check_for_shorts.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_shorts.o `test -f 'check_for_shorts.c' || echo '$(srcdir)/'`check_for_shorts.c
+
+atlc-check_for_shorts.obj: check_for_shorts.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_shorts.obj -MD -MP -MF $(DEPDIR)/atlc-check_for_shorts.Tpo -c -o atlc-check_for_shorts.obj `if test -f 'check_for_shorts.c'; then $(CYGPATH_W) 'check_for_shorts.c'; else $(CYGPATH_W) '$(srcdir)/check_for_shorts.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-check_for_shorts.Tpo $(DEPDIR)/atlc-check_for_shorts.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_shorts.c' object='atlc-check_for_shorts.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_shorts.obj `if test -f 'check_for_shorts.c'; then $(CYGPATH_W) 'check_for_shorts.c'; else $(CYGPATH_W) '$(srcdir)/check_for_shorts.c'; fi`
+
+atlc-find_energy_per_metre.o: find_energy_per_metre.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_energy_per_metre.o -MD -MP -MF $(DEPDIR)/atlc-find_energy_per_metre.Tpo -c -o atlc-find_energy_per_metre.o `test -f 'find_energy_per_metre.c' || echo '$(srcdir)/'`find_energy_per_metre.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-find_energy_per_metre.Tpo $(DEPDIR)/atlc-find_energy_per_metre.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_energy_per_metre.c' object='atlc-find_energy_per_metre.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_energy_per_metre.o `test -f 'find_energy_per_metre.c' || echo '$(srcdir)/'`find_energy_per_metre.c
+
+atlc-find_energy_per_metre.obj: find_energy_per_metre.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_energy_per_metre.obj -MD -MP -MF $(DEPDIR)/atlc-find_energy_per_metre.Tpo -c -o atlc-find_energy_per_metre.obj `if test -f 'find_energy_per_metre.c'; then $(CYGPATH_W) 'find_energy_per_metre.c'; else $(CYGPATH_W) '$(srcdir)/find_energy_per_metre.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-find_energy_per_metre.Tpo $(DEPDIR)/atlc-find_energy_per_metre.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_energy_per_metre.c' object='atlc-find_energy_per_metre.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_energy_per_metre.obj `if test -f 'find_energy_per_metre.c'; then $(CYGPATH_W) 'find_energy_per_metre.c'; else $(CYGPATH_W) '$(srcdir)/find_energy_per_metre.c'; fi`
+
+atlc-set_oddity_from_Greens_paper.o: set_oddity_from_Greens_paper.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_oddity_from_Greens_paper.o -MD -MP -MF $(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo -c -o atlc-set_oddity_from_Greens_paper.o `test -f 'set_oddity_from_Greens_paper.c' || echo '$(srcdir)/'`set_oddity_from_Greens_paper.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo $(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_oddity_from_Greens_paper.c' object='atlc-set_oddity_from_Greens_paper.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_oddity_from_Greens_paper.o `test -f 'set_oddity_from_Greens_paper.c' || echo '$(srcdir)/'`set_oddity_from_Greens_paper.c
+
+atlc-set_oddity_from_Greens_paper.obj: set_oddity_from_Greens_paper.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_oddity_from_Greens_paper.obj -MD -MP -MF $(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo -c -o atlc-set_oddity_from_Greens_paper.obj `if test -f 'set_oddity_from_Greens_paper.c'; then $(CYGPATH_W) 'set_oddity_from_Greens_paper.c'; else $(CYGPATH_W) '$(srcdir)/set_oddity_from_Greens_paper.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo $(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_oddity_from_Greens_paper.c' object='atlc-set_oddity_from_Greens_paper.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_oddity_from_Greens_paper.obj `if test -f 'set_oddity_from_Greens_paper.c'; then $(CYGPATH_W) 'set_oddity_from_Greens_paper.c'; else $(CYGPATH_W) '$(srcdir)/set_oddity_from_Greens_paper.c'; fi`
+
+atlc-get_file_pointer_with_right_filename.o: get_file_pointer_with_right_filename.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_file_pointer_with_right_filename.o -MD -MP -MF $(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo -c -o atlc-get_file_pointer_with_right_filename.o `test -f 'get_file_pointer_with_right_filename.c' || echo '$(srcdir)/'`get_file_pointer_with_right_filename.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo $(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_file_pointer_with_right_filename.c' object='atlc-get_file_pointer_with_right_filename.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_file_pointer_with_right_filename.o `test -f 'get_file_pointer_with_right_filename.c' || echo '$(srcdir)/'`get_file_pointer_with_right_filename.c
+
+atlc-get_file_pointer_with_right_filename.obj: get_file_pointer_with_right_filename.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_file_pointer_with_right_filename.obj -MD -MP -MF $(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo -c -o atlc-get_file_pointer_with_right_filename.obj `if test -f 'get_file_pointer_with_right_filename.c'; then $(CYGPATH_W) 'get_file_pointer_with_right_filename.c'; else $(CYGPATH_W) '$(srcdir)/get_file_pointer_with_right_filename.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo $(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_file_pointer_with_right_filename.c' object='atlc-get_file_pointer_with_right_filename.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_file_pointer_with_right_filename.obj `if test -f 'get_file_pointer_with_right_filename.c'; then $(CYGPATH_W) 'get_file_pointer_with_right_filename.c'; else $(CYGPATH_W) '$(srcdir)/get_file_pointer_with_right_filename.c'; fi`
+
+atlc-find_maximum_values.o: find_maximum_values.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_maximum_values.o -MD -MP -MF $(DEPDIR)/atlc-find_maximum_values.Tpo -c -o atlc-find_maximum_values.o `test -f 'find_maximum_values.c' || echo '$(srcdir)/'`find_maximum_values.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-find_maximum_values.Tpo $(DEPDIR)/atlc-find_maximum_values.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_maximum_values.c' object='atlc-find_maximum_values.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_maximum_values.o `test -f 'find_maximum_values.c' || echo '$(srcdir)/'`find_maximum_values.c
+
+atlc-find_maximum_values.obj: find_maximum_values.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_maximum_values.obj -MD -MP -MF $(DEPDIR)/atlc-find_maximum_values.Tpo -c -o atlc-find_maximum_values.obj `if test -f 'find_maximum_values.c'; then $(CYGPATH_W) 'find_maximum_values.c'; else $(CYGPATH_W) '$(srcdir)/find_maximum_values.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-find_maximum_values.Tpo $(DEPDIR)/atlc-find_maximum_values.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_maximum_values.c' object='atlc-find_maximum_values.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_maximum_values.obj `if test -f 'find_maximum_values.c'; then $(CYGPATH_W) 'find_maximum_values.c'; else $(CYGPATH_W) '$(srcdir)/find_maximum_values.c'; fi`
+
+atlc-calculate_colour_data.o: calculate_colour_data.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-calculate_colour_data.o -MD -MP -MF $(DEPDIR)/atlc-calculate_colour_data.Tpo -c -o atlc-calculate_colour_data.o `test -f 'calculate_colour_data.c' || echo '$(srcdir)/'`calculate_colour_data.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-calculate_colour_data.Tpo $(DEPDIR)/atlc-calculate_colour_data.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_colour_data.c' object='atlc-calculate_colour_data.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-calculate_colour_data.o `test -f 'calculate_colour_data.c' || echo '$(srcdir)/'`calculate_colour_data.c
+
+atlc-calculate_colour_data.obj: calculate_colour_data.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-calculate_colour_data.obj -MD -MP -MF $(DEPDIR)/atlc-calculate_colour_data.Tpo -c -o atlc-calculate_colour_data.obj `if test -f 'calculate_colour_data.c'; then $(CYGPATH_W) 'calculate_colour_data.c'; else $(CYGPATH_W) '$(srcdir)/calculate_colour_data.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-calculate_colour_data.Tpo $(DEPDIR)/atlc-calculate_colour_data.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_colour_data.c' object='atlc-calculate_colour_data.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-calculate_colour_data.obj `if test -f 'calculate_colour_data.c'; then $(CYGPATH_W) 'calculate_colour_data.c'; else $(CYGPATH_W) '$(srcdir)/calculate_colour_data.c'; fi`
+
+atlc-find_electric_fields.o: find_electric_fields.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_electric_fields.o -MD -MP -MF $(DEPDIR)/atlc-find_electric_fields.Tpo -c -o atlc-find_electric_fields.o `test -f 'find_electric_fields.c' || echo '$(srcdir)/'`find_electric_fields.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-find_electric_fields.Tpo $(DEPDIR)/atlc-find_electric_fields.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_electric_fields.c' object='atlc-find_electric_fields.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_electric_fields.o `test -f 'find_electric_fields.c' || echo '$(srcdir)/'`find_electric_fields.c
+
+atlc-find_electric_fields.obj: find_electric_fields.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_electric_fields.obj -MD -MP -MF $(DEPDIR)/atlc-find_electric_fields.Tpo -c -o atlc-find_electric_fields.obj `if test -f 'find_electric_fields.c'; then $(CYGPATH_W) 'find_electric_fields.c'; else $(CYGPATH_W) '$(srcdir)/find_electric_fields.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-find_electric_fields.Tpo $(DEPDIR)/atlc-find_electric_fields.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_electric_fields.c' object='atlc-find_electric_fields.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_electric_fields.obj `if test -f 'find_electric_fields.c'; then $(CYGPATH_W) 'find_electric_fields.c'; else $(CYGPATH_W) '$(srcdir)/find_electric_fields.c'; fi`
+
+atlc-get_options.o: get_options.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_options.o -MD -MP -MF $(DEPDIR)/atlc-get_options.Tpo -c -o atlc-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-get_options.Tpo $(DEPDIR)/atlc-get_options.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='atlc-get_options.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
+
+atlc-get_options.obj: get_options.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_options.obj -MD -MP -MF $(DEPDIR)/atlc-get_options.Tpo -c -o atlc-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-get_options.Tpo $(DEPDIR)/atlc-get_options.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='atlc-get_options.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'; fi`
+
+atlc-exit_with_msg_and_exit_code.o: exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-exit_with_msg_and_exit_code.o -MD -MP -MF $(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo -c -o atlc-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo $(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='atlc-exit_with_msg_and_exit_code.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
+
+atlc-exit_with_msg_and_exit_code.obj: exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-exit_with_msg_and_exit_code.obj -MD -MP -MF $(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo -c -o atlc-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo $(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='atlc-exit_with_msg_and_exit_code.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'; fi`
+
+atlc-do_fd_calculation.o: do_fd_calculation.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-do_fd_calculation.o -MD -MP -MF $(DEPDIR)/atlc-do_fd_calculation.Tpo -c -o atlc-do_fd_calculation.o `test -f 'do_fd_calculation.c' || echo '$(srcdir)/'`do_fd_calculation.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-do_fd_calculation.Tpo $(DEPDIR)/atlc-do_fd_calculation.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='do_fd_calculation.c' object='atlc-do_fd_calculation.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-do_fd_calculation.o `test -f 'do_fd_calculation.c' || echo '$(srcdir)/'`do_fd_calculation.c
+
+atlc-do_fd_calculation.obj: do_fd_calculation.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-do_fd_calculation.obj -MD -MP -MF $(DEPDIR)/atlc-do_fd_calculation.Tpo -c -o atlc-do_fd_calculation.obj `if test -f 'do_fd_calculation.c'; then $(CYGPATH_W) 'do_fd_calculation.c'; else $(CYGPATH_W) '$(srcdir)/do_fd_calculation.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-do_fd_calculation.Tpo $(DEPDIR)/atlc-do_fd_calculation.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='do_fd_calculation.c' object='atlc-do_fd_calculation.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-do_fd_calculation.obj `if test -f 'do_fd_calculation.c'; then $(CYGPATH_W) 'do_fd_calculation.c'; else $(CYGPATH_W) '$(srcdir)/do_fd_calculation.c'; fi`
+
+atlc-swap_conductor_voltages.o: swap_conductor_voltages.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-swap_conductor_voltages.o -MD -MP -MF $(DEPDIR)/atlc-swap_conductor_voltages.Tpo -c -o atlc-swap_conductor_voltages.o `test -f 'swap_conductor_voltages.c' || echo '$(srcdir)/'`swap_conductor_voltages.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-swap_conductor_voltages.Tpo $(DEPDIR)/atlc-swap_conductor_voltages.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='swap_conductor_voltages.c' object='atlc-swap_conductor_voltages.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-swap_conductor_voltages.o `test -f 'swap_conductor_voltages.c' || echo '$(srcdir)/'`swap_conductor_voltages.c
+
+atlc-swap_conductor_voltages.obj: swap_conductor_voltages.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-swap_conductor_voltages.obj -MD -MP -MF $(DEPDIR)/atlc-swap_conductor_voltages.Tpo -c -o atlc-swap_conductor_voltages.obj `if test -f 'swap_conductor_voltages.c'; then $(CYGPATH_W) 'swap_conductor_voltages.c'; else $(CYGPATH_W) '$(srcdir)/swap_conductor_voltages.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-swap_conductor_voltages.Tpo $(DEPDIR)/atlc-swap_conductor_voltages.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='swap_conductor_voltages.c' object='atlc-swap_conductor_voltages.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-swap_conductor_voltages.obj `if test -f 'swap_conductor_voltages.c'; then $(CYGPATH_W) 'swap_conductor_voltages.c'; else $(CYGPATH_W) '$(srcdir)/swap_conductor_voltages.c'; fi`
+
+atlc-print_copyright.o: print_copyright.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_copyright.o -MD -MP -MF $(DEPDIR)/atlc-print_copyright.Tpo -c -o atlc-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-print_copyright.Tpo $(DEPDIR)/atlc-print_copyright.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='atlc-print_copyright.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
+
+atlc-print_copyright.obj: print_copyright.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_copyright.obj -MD -MP -MF $(DEPDIR)/atlc-print_copyright.Tpo -c -o atlc-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-print_copyright.Tpo $(DEPDIR)/atlc-print_copyright.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='atlc-print_copyright.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'; fi`
+
+atlc-print_data_for_directional_couplers.o: print_data_for_directional_couplers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_directional_couplers.o -MD -MP -MF $(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo -c -o atlc-print_data_for_directional_couplers.o `test -f 'print_data_for_directional_couplers.c' || echo '$(srcdir)/'`print_data_for_directional_couplers.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo $(DEPDIR)/atlc-print_data_for_directional_couplers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_directional_couplers.c' object='atlc-print_data_for_directional_couplers.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_directional_couplers.o `test -f 'print_data_for_directional_couplers.c' || echo '$(srcdir)/'`print_data_for_directional_couplers.c
+
+atlc-print_data_for_directional_couplers.obj: print_data_for_directional_couplers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_directional_couplers.obj -MD -MP -MF $(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo -c -o atlc-print_data_for_directional_couplers.obj `if test -f 'print_data_for_directional_couplers.c'; then $(CYGPATH_W) 'print_data_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_directional_couplers.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo $(DEPDIR)/atlc-print_data_for_directional_couplers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_directional_couplers.c' object='atlc-print_data_for_directional_couplers.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_directional_couplers.obj `if test -f 'print_data_for_directional_couplers.c'; then $(CYGPATH_W) 'print_data_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_directional_couplers.c'; fi`
+
+atlc-print_data_for_two_conductor_lines.o: print_data_for_two_conductor_lines.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_two_conductor_lines.o -MD -MP -MF $(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo -c -o atlc-print_data_for_two_conductor_lines.o `test -f 'print_data_for_two_conductor_lines.c' || echo '$(srcdir)/'`print_data_for_two_conductor_lines.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo $(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_two_conductor_lines.c' object='atlc-print_data_for_two_conductor_lines.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_two_conductor_lines.o `test -f 'print_data_for_two_conductor_lines.c' || echo '$(srcdir)/'`print_data_for_two_conductor_lines.c
+
+atlc-print_data_for_two_conductor_lines.obj: print_data_for_two_conductor_lines.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_two_conductor_lines.obj -MD -MP -MF $(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo -c -o atlc-print_data_for_two_conductor_lines.obj `if test -f 'print_data_for_two_conductor_lines.c'; then $(CYGPATH_W) 'print_data_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_two_conductor_lines.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo $(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_two_conductor_lines.c' object='atlc-print_data_for_two_conductor_lines.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_two_conductor_lines.obj `if test -f 'print_data_for_two_conductor_lines.c'; then $(CYGPATH_W) 'print_data_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_two_conductor_lines.c'; fi`
+
+atlc-set_data_to_sensible_starting_values.o: set_data_to_sensible_starting_values.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_data_to_sensible_starting_values.o -MD -MP -MF $(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo -c -o atlc-set_data_to_sensible_starting_values.o `test -f 'set_data_to_sensible_starting_values.c' || echo '$(srcdir)/'`set_data_to_sensible_starting_values.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo $(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_data_to_sensible_starting_values.c' object='atlc-set_data_to_sensible_starting_values.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_data_to_sensible_starting_values.o `test -f 'set_data_to_sensible_starting_values.c' || echo '$(srcdir)/'`set_data_to_sensible_starting_values.c
+
+atlc-set_data_to_sensible_starting_values.obj: set_data_to_sensible_starting_values.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_data_to_sensible_starting_values.obj -MD -MP -MF $(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo -c -o atlc-set_data_to_sensible_starting_values.obj `if test -f 'set_data_to_sensible_starting_values.c'; then $(CYGPATH_W) 'set_data_to_sensible_starting_values.c'; else $(CYGPATH_W) '$(srcdir)/set_data_to_sensible_starting_values.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo $(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_data_to_sensible_starting_values.c' object='atlc-set_data_to_sensible_starting_values.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_data_to_sensible_starting_values.obj `if test -f 'set_data_to_sensible_starting_values.c'; then $(CYGPATH_W) 'set_data_to_sensible_starting_values.c'; else $(CYGPATH_W) '$(srcdir)/set_data_to_sensible_starting_values.c'; fi`
+
+atlc-write_fields_for_two_conductor_lines.o: write_fields_for_two_conductor_lines.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_two_conductor_lines.o -MD -MP -MF $(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo -c -o atlc-write_fields_for_two_conductor_lines.o `test -f 'write_fields_for_two_conductor_lines.c' || echo '$(srcdir)/'`write_fields_for_two_conductor_lines.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo $(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_two_conductor_lines.c' object='atlc-write_fields_for_two_conductor_lines.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_two_conductor_lines.o `test -f 'write_fields_for_two_conductor_lines.c' || echo '$(srcdir)/'`write_fields_for_two_conductor_lines.c
+
+atlc-write_fields_for_two_conductor_lines.obj: write_fields_for_two_conductor_lines.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_two_conductor_lines.obj -MD -MP -MF $(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo -c -o atlc-write_fields_for_two_conductor_lines.obj `if test -f 'write_fields_for_two_conductor_lines.c'; then $(CYGPATH_W) 'write_fields_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_two_conductor_lines.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo $(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_two_conductor_lines.c' object='atlc-write_fields_for_two_conductor_lines.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_two_conductor_lines.obj `if test -f 'write_fields_for_two_conductor_lines.c'; then $(CYGPATH_W) 'write_fields_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_two_conductor_lines.c'; fi`
+
+atlc-write_fields_for_directional_couplers.o: write_fields_for_directional_couplers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_directional_couplers.o -MD -MP -MF $(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo -c -o atlc-write_fields_for_directional_couplers.o `test -f 'write_fields_for_directional_couplers.c' || echo '$(srcdir)/'`write_fields_for_directional_couplers.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo $(DEPDIR)/atlc-write_fields_for_directional_couplers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_directional_couplers.c' object='atlc-write_fields_for_directional_couplers.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_directional_couplers.o `test -f 'write_fields_for_directional_couplers.c' || echo '$(srcdir)/'`write_fields_for_directional_couplers.c
+
+atlc-write_fields_for_directional_couplers.obj: write_fields_for_directional_couplers.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_directional_couplers.obj -MD -MP -MF $(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo -c -o atlc-write_fields_for_directional_couplers.obj `if test -f 'write_fields_for_directional_couplers.c'; then $(CYGPATH_W) 'write_fields_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_directional_couplers.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo $(DEPDIR)/atlc-write_fields_for_directional_couplers.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_directional_couplers.c' object='atlc-write_fields_for_directional_couplers.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_directional_couplers.obj `if test -f 'write_fields_for_directional_couplers.c'; then $(CYGPATH_W) 'write_fields_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_directional_couplers.c'; fi`
+
+create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o: create_bmp_for_stripline_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o `test -f 'create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`create_bmp_for_stripline_coupler.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o `test -f 'create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`create_bmp_for_stripline_coupler.c
+
+create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj: create_bmp_for_stripline_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj `if test -f 'create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/create_bmp_for_stripline_coupler.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj `if test -f 'create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/create_bmp_for_stripline_coupler.c'; fi`
+
+create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o: usage_create_bmp_for_stripline_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o `test -f 'usage_create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`usage_create_bmp_for_stripline_coupler.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o `test -f 'usage_create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`usage_create_bmp_for_stripline_coupler.c
+
+create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj: usage_create_bmp_for_stripline_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj `if test -f 'usage_create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'usage_create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_create_bmp_for_stripline_coupler.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj `if test -f 'usage_create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'usage_create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_create_bmp_for_stripline_coupler.c'; fi`
+
+create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o: calculate_Zodd_and_Zeven.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c
+
+create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj: calculate_Zodd_and_Zeven.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'; fi`
+
+create_bmp_for_stripline_coupler-get_options.o: get_options.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_options.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo -c -o create_bmp_for_stripline_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='create_bmp_for_stripline_coupler-get_options.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
+
+create_bmp_for_stripline_coupler-get_options.obj: get_options.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_options.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo -c -o create_bmp_for_stripline_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='create_bmp_for_stripline_coupler-get_options.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'; fi`
+
+create_bmp_for_stripline_coupler-calculate_integer_values.o: calculate_integer_values.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_integer_values.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo -c -o create_bmp_for_stripline_coupler-calculate_integer_values.o `test -f 'calculate_integer_values.c' || echo '$(srcdir)/'`calculate_integer_values.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_integer_values.c' object='create_bmp_for_stripline_coupler-calculate_integer_values.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_integer_values.o `test -f 'calculate_integer_values.c' || echo '$(srcdir)/'`calculate_integer_values.c
+
+create_bmp_for_stripline_coupler-calculate_integer_values.obj: calculate_integer_values.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_integer_values.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo -c -o create_bmp_for_stripline_coupler-calculate_integer_values.obj `if test -f 'calculate_integer_values.c'; then $(CYGPATH_W) 'calculate_integer_values.c'; else $(CYGPATH_W) '$(srcdir)/calculate_integer_values.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_integer_values.c' object='create_bmp_for_stripline_coupler-calculate_integer_values.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_integer_values.obj `if test -f 'calculate_integer_values.c'; then $(CYGPATH_W) 'calculate_integer_values.c'; else $(CYGPATH_W) '$(srcdir)/calculate_integer_values.c'; fi`
+
+create_bmp_for_stripline_coupler-write_bitmap.o: write_bitmap.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo -c -o create_bmp_for_stripline_coupler-write_bitmap.o `test -f 'write_bitmap.c' || echo '$(srcdir)/'`write_bitmap.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap.c' object='create_bmp_for_stripline_coupler-write_bitmap.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap.o `test -f 'write_bitmap.c' || echo '$(srcdir)/'`write_bitmap.c
+
+create_bmp_for_stripline_coupler-write_bitmap.obj: write_bitmap.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo -c -o create_bmp_for_stripline_coupler-write_bitmap.obj `if test -f 'write_bitmap.c'; then $(CYGPATH_W) 'write_bitmap.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap.c' object='create_bmp_for_stripline_coupler-write_bitmap.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap.obj `if test -f 'write_bitmap.c'; then $(CYGPATH_W) 'write_bitmap.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap.c'; fi`
+
+create_bmp_for_stripline_coupler-memory.o: memory.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-memory.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo -c -o create_bmp_for_stripline_coupler-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='create_bmp_for_stripline_coupler-memory.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
+
+create_bmp_for_stripline_coupler-memory.obj: memory.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-memory.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo -c -o create_bmp_for_stripline_coupler-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='create_bmp_for_stripline_coupler-memory.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'; fi`
+
+create_bmp_for_stripline_coupler-write_bitmap_out.o: write_bitmap_out.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap_out.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo -c -o create_bmp_for_stripline_coupler-write_bitmap_out.o `test -f 'write_bitmap_out.c' || echo '$(srcdir)/'`write_bitmap_out.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap_out.c' object='create_bmp_for_stripline_coupler-write_bitmap_out.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap_out.o `test -f 'write_bitmap_out.c' || echo '$(srcdir)/'`write_bitmap_out.c
+
+create_bmp_for_stripline_coupler-write_bitmap_out.obj: write_bitmap_out.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap_out.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo -c -o create_bmp_for_stripline_coupler-write_bitmap_out.obj `if test -f 'write_bitmap_out.c'; then $(CYGPATH_W) 'write_bitmap_out.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap_out.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap_out.c' object='create_bmp_for_stripline_coupler-write_bitmap_out.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap_out.obj `if test -f 'write_bitmap_out.c'; then $(CYGPATH_W) 'write_bitmap_out.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap_out.c'; fi`
+
+create_bmp_for_stripline_coupler-align_bitmap_image.o: align_bitmap_image.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-align_bitmap_image.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo -c -o create_bmp_for_stripline_coupler-align_bitmap_image.o `test -f 'align_bitmap_image.c' || echo '$(srcdir)/'`align_bitmap_image.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='align_bitmap_image.c' object='create_bmp_for_stripline_coupler-align_bitmap_image.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-align_bitmap_image.o `test -f 'align_bitmap_image.c' || echo '$(srcdir)/'`align_bitmap_image.c
+
+create_bmp_for_stripline_coupler-align_bitmap_image.obj: align_bitmap_image.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-align_bitmap_image.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo -c -o create_bmp_for_stripline_coupler-align_bitmap_image.obj `if test -f 'align_bitmap_image.c'; then $(CYGPATH_W) 'align_bitmap_image.c'; else $(CYGPATH_W) '$(srcdir)/align_bitmap_image.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='align_bitmap_image.c' object='create_bmp_for_stripline_coupler-align_bitmap_image.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-align_bitmap_image.obj `if test -f 'align_bitmap_image.c'; then $(CYGPATH_W) 'align_bitmap_image.c'; else $(CYGPATH_W) '$(srcdir)/align_bitmap_image.c'; fi`
+
+create_bmp_for_stripline_coupler-fill_make_coupler.o: fill_make_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-fill_make_coupler.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo -c -o create_bmp_for_stripline_coupler-fill_make_coupler.o `test -f 'fill_make_coupler.c' || echo '$(srcdir)/'`fill_make_coupler.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fill_make_coupler.c' object='create_bmp_for_stripline_coupler-fill_make_coupler.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-fill_make_coupler.o `test -f 'fill_make_coupler.c' || echo '$(srcdir)/'`fill_make_coupler.c
+
+create_bmp_for_stripline_coupler-fill_make_coupler.obj: fill_make_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-fill_make_coupler.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo -c -o create_bmp_for_stripline_coupler-fill_make_coupler.obj `if test -f 'fill_make_coupler.c'; then $(CYGPATH_W) 'fill_make_coupler.c'; else $(CYGPATH_W) '$(srcdir)/fill_make_coupler.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fill_make_coupler.c' object='create_bmp_for_stripline_coupler-fill_make_coupler.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-fill_make_coupler.obj `if test -f 'fill_make_coupler.c'; then $(CYGPATH_W) 'fill_make_coupler.c'; else $(CYGPATH_W) '$(srcdir)/fill_make_coupler.c'; fi`
+
+create_bmp_for_stripline_coupler-check_error.o: check_error.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-check_error.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo -c -o create_bmp_for_stripline_coupler-check_error.o `test -f 'check_error.c' || echo '$(srcdir)/'`check_error.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_error.c' object='create_bmp_for_stripline_coupler-check_error.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-check_error.o `test -f 'check_error.c' || echo '$(srcdir)/'`check_error.c
+
+create_bmp_for_stripline_coupler-check_error.obj: check_error.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-check_error.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo -c -o create_bmp_for_stripline_coupler-check_error.obj `if test -f 'check_error.c'; then $(CYGPATH_W) 'check_error.c'; else $(CYGPATH_W) '$(srcdir)/check_error.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_error.c' object='create_bmp_for_stripline_coupler-check_error.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-check_error.obj `if test -f 'check_error.c'; then $(CYGPATH_W) 'check_error.c'; else $(CYGPATH_W) '$(srcdir)/check_error.c'; fi`
+
+create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o: exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
+
+create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj: exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'; fi`
+
+create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o: get_Er1_and_Er2_colours.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o `test -f 'get_Er1_and_Er2_colours.c' || echo '$(srcdir)/'`get_Er1_and_Er2_colours.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_Er1_and_Er2_colours.c' object='create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o `test -f 'get_Er1_and_Er2_colours.c' || echo '$(srcdir)/'`get_Er1_and_Er2_colours.c
+
+create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj: get_Er1_and_Er2_colours.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj `if test -f 'get_Er1_and_Er2_colours.c'; then $(CYGPATH_W) 'get_Er1_and_Er2_colours.c'; else $(CYGPATH_W) '$(srcdir)/get_Er1_and_Er2_colours.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_Er1_and_Er2_colours.c' object='create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj `if test -f 'get_Er1_and_Er2_colours.c'; then $(CYGPATH_W) 'get_Er1_and_Er2_colours.c'; else $(CYGPATH_W) '$(srcdir)/get_Er1_and_Er2_colours.c'; fi`
+
+create_bmp_for_stripline_coupler-print_copyright.o: print_copyright.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-print_copyright.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo -c -o create_bmp_for_stripline_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='create_bmp_for_stripline_coupler-print_copyright.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
+
+create_bmp_for_stripline_coupler-print_copyright.obj: print_copyright.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-print_copyright.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo -c -o create_bmp_for_stripline_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='create_bmp_for_stripline_coupler-print_copyright.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'; fi`
+
+create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o: gsl_sf_ellint_Kcomp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c
+
+create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj: gsl_sf_ellint_Kcomp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj -MD -MP -MF $(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo $(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'; fi`
+
+design_coupler-design_coupler.o: design_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-design_coupler.o -MD -MP -MF $(DEPDIR)/design_coupler-design_coupler.Tpo -c -o design_coupler-design_coupler.o `test -f 'design_coupler.c' || echo '$(srcdir)/'`design_coupler.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-design_coupler.Tpo $(DEPDIR)/design_coupler-design_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='design_coupler.c' object='design_coupler-design_coupler.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-design_coupler.o `test -f 'design_coupler.c' || echo '$(srcdir)/'`design_coupler.c
+
+design_coupler-design_coupler.obj: design_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-design_coupler.obj -MD -MP -MF $(DEPDIR)/design_coupler-design_coupler.Tpo -c -o design_coupler-design_coupler.obj `if test -f 'design_coupler.c'; then $(CYGPATH_W) 'design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/design_coupler.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-design_coupler.Tpo $(DEPDIR)/design_coupler-design_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='design_coupler.c' object='design_coupler-design_coupler.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-design_coupler.obj `if test -f 'design_coupler.c'; then $(CYGPATH_W) 'design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/design_coupler.c'; fi`
+
+design_coupler-usage_design_coupler.o: usage_design_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-usage_design_coupler.o -MD -MP -MF $(DEPDIR)/design_coupler-usage_design_coupler.Tpo -c -o design_coupler-usage_design_coupler.o `test -f 'usage_design_coupler.c' || echo '$(srcdir)/'`usage_design_coupler.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-usage_design_coupler.Tpo $(DEPDIR)/design_coupler-usage_design_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_design_coupler.c' object='design_coupler-usage_design_coupler.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-usage_design_coupler.o `test -f 'usage_design_coupler.c' || echo '$(srcdir)/'`usage_design_coupler.c
+
+design_coupler-usage_design_coupler.obj: usage_design_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-usage_design_coupler.obj -MD -MP -MF $(DEPDIR)/design_coupler-usage_design_coupler.Tpo -c -o design_coupler-usage_design_coupler.obj `if test -f 'usage_design_coupler.c'; then $(CYGPATH_W) 'usage_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_design_coupler.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-usage_design_coupler.Tpo $(DEPDIR)/design_coupler-usage_design_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_design_coupler.c' object='design_coupler-usage_design_coupler.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-usage_design_coupler.obj `if test -f 'usage_design_coupler.c'; then $(CYGPATH_W) 'usage_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_design_coupler.c'; fi`
+
+design_coupler-get_options.o: get_options.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-get_options.o -MD -MP -MF $(DEPDIR)/design_coupler-get_options.Tpo -c -o design_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-get_options.Tpo $(DEPDIR)/design_coupler-get_options.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='design_coupler-get_options.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
+
+design_coupler-get_options.obj: get_options.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-get_options.obj -MD -MP -MF $(DEPDIR)/design_coupler-get_options.Tpo -c -o design_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-get_options.Tpo $(DEPDIR)/design_coupler-get_options.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='design_coupler-get_options.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'; fi`
+
+design_coupler-print_copyright.o: print_copyright.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-print_copyright.o -MD -MP -MF $(DEPDIR)/design_coupler-print_copyright.Tpo -c -o design_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-print_copyright.Tpo $(DEPDIR)/design_coupler-print_copyright.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='design_coupler-print_copyright.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
+
+design_coupler-print_copyright.obj: print_copyright.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-print_copyright.obj -MD -MP -MF $(DEPDIR)/design_coupler-print_copyright.Tpo -c -o design_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-print_copyright.Tpo $(DEPDIR)/design_coupler-print_copyright.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='design_coupler-print_copyright.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'; fi`
+
+design_coupler-calculate_Zodd_and_Zeven.o: calculate_Zodd_and_Zeven.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-calculate_Zodd_and_Zeven.o -MD -MP -MF $(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo -c -o design_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo $(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='design_coupler-calculate_Zodd_and_Zeven.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c
+
+design_coupler-calculate_Zodd_and_Zeven.obj: calculate_Zodd_and_Zeven.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-calculate_Zodd_and_Zeven.obj -MD -MP -MF $(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo -c -o design_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo $(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='design_coupler-calculate_Zodd_and_Zeven.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'; fi`
+
+design_coupler-give_examples_of_using_design_coupler.o: give_examples_of_using_design_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-give_examples_of_using_design_coupler.o -MD -MP -MF $(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo -c -o design_coupler-give_examples_of_using_design_coupler.o `test -f 'give_examples_of_using_design_coupler.c' || echo '$(srcdir)/'`give_examples_of_using_design_coupler.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo $(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='give_examples_of_using_design_coupler.c' object='design_coupler-give_examples_of_using_design_coupler.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-give_examples_of_using_design_coupler.o `test -f 'give_examples_of_using_design_coupler.c' || echo '$(srcdir)/'`give_examples_of_using_design_coupler.c
+
+design_coupler-give_examples_of_using_design_coupler.obj: give_examples_of_using_design_coupler.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-give_examples_of_using_design_coupler.obj -MD -MP -MF $(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo -c -o design_coupler-give_examples_of_using_design_coupler.obj `if test -f 'give_examples_of_using_design_coupler.c'; then $(CYGPATH_W) 'give_examples_of_using_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/give_examples_of_using_design_coupler.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo $(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='give_examples_of_using_design_coupler.c' object='design_coupler-give_examples_of_using_design_coupler.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-give_examples_of_using_design_coupler.obj `if test -f 'give_examples_of_using_design_coupler.c'; then $(CYGPATH_W) 'give_examples_of_using_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/give_examples_of_using_design_coupler.c'; fi`
+
+design_coupler-exit_with_msg_and_exit_code.o: exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-exit_with_msg_and_exit_code.o -MD -MP -MF $(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo -c -o design_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo $(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='design_coupler-exit_with_msg_and_exit_code.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
+
+design_coupler-exit_with_msg_and_exit_code.obj: exit_with_msg_and_exit_code.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-exit_with_msg_and_exit_code.obj -MD -MP -MF $(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo -c -o design_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo $(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='design_coupler-exit_with_msg_and_exit_code.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'; fi`
+
+design_coupler-gsl_sf_ellint_Kcomp.o: gsl_sf_ellint_Kcomp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-gsl_sf_ellint_Kcomp.o -MD -MP -MF $(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo -c -o design_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo $(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='design_coupler-gsl_sf_ellint_Kcomp.o' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c
+
+design_coupler-gsl_sf_ellint_Kcomp.obj: gsl_sf_ellint_Kcomp.c
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-gsl_sf_ellint_Kcomp.obj -MD -MP -MF $(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo -c -o design_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo $(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='design_coupler-gsl_sf_ellint_Kcomp.obj' libtool=no @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'; fi`
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
-TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
here=`pwd`; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
- fi; \
- done; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
+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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
- (cd $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" \
- distdir=../$(distdir)/$$subdir \
- distdir) \
- || exit 1; \
fi; \
done
check-am: all-am
-check: check-recursive
-all-am: Makefile
-installdirs: installdirs-recursive
-installdirs-am:
-
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
+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-recursive
+installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_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
+clean: clean-am
-distclean: distclean-recursive
+clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
-distclean-am: clean-am distclean-generic distclean-tags
+distclean: distclean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
-dvi: dvi-recursive
+dvi: dvi-am
dvi-am:
-info: info-recursive
+html: html-am
+
+html-am:
+
+info: info-am
info-am:
install-data-am:
-install-exec-am:
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
+install-exec-am: install-binPROGRAMS
-install-info: install-info-recursive
+install-html: install-html-am
+
+install-html-am:
+
+install-info: install-info-am
+
+install-info-am:
install-man:
-installcheck-am:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
-maintainer-clean: maintainer-clean-recursive
+install-ps-am:
+installcheck-am:
+
+maintainer-clean: maintainer-clean-am
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
-mostlyclean: mostlyclean-recursive
+mostlyclean: mostlyclean-am
-mostlyclean-am: mostlyclean-generic
+mostlyclean-am: mostlyclean-compile mostlyclean-generic
-pdf: pdf-recursive
+pdf: pdf-am
pdf-am:
-ps: ps-recursive
+ps: ps-am
ps-am:
-uninstall-am: uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive distclean \
- distclean-generic distclean-recursive distclean-tags distdir \
- dvi dvi-am dvi-recursive info info-am info-recursive install \
- install-am install-data install-data-am install-data-recursive \
- install-exec install-exec-am install-exec-recursive \
- install-info install-info-am install-info-recursive install-man \
- install-recursive install-strip installcheck installcheck-am \
- installdirs installdirs-am installdirs-recursive \
- maintainer-clean maintainer-clean-generic \
- maintainer-clean-recursive mostlyclean mostlyclean-generic \
- mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
- ps-recursive tags tags-recursive uninstall uninstall-am \
- uninstall-info-am uninstall-info-recursive uninstall-recursive
+uninstall-am: uninstall-binPROGRAMS
+
+.MAKE: install-am install-strip
+
+.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-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
+ install-info install-info-am install-man install-pdf \
+ install-pdf-am install-ps install-ps-am 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
+
# 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.
-On 18/4/02 I moved all the sources from atlc-x.y.z/src to atlc-x.y.z/src/non_gui with
-the intention of starting on some graphical code in the src/gui directory. Nothing ever
-happened to that, so on 3rd May 2003 the src/gui directory was removed.
+Here are a number of example files, falling into 4 catabories:
-Dr. David Kirkby 14/12/02
+foo.bmp (a bitmap showing the cross section)
+foo.V.bmo, foo.E.bmp .. (showing the voltage, electric field etc)
+foo.bmp.txt (the result of running atlc on foo.bmp)
+foo.V.even.bmp, foo.E.odd.bmp (voltage, E-field etc for coupled lines).
+
+Formally a lot of examples were created during the 'make check' stage.
+However, users of the automake mailing list all thought this was not
+such a good idea and that the files should be distributed. Hence a lot
+more examples are now distrubted. Whilst this makes the package bigger,
+it solves a lot of problems with automake.
+
+Dr. David Kirkby
+29th March 2003.
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+/* a vector of length W*H called 'unaligned_image' contains the data.
+This is written to a vector 'byte_aligned_image', which in general is longer
+and is of length 'vector_aligned. This routine returns the lenght of the image,
+once it have been byte-aligned
+
+The image 'unaligned_image' is expected to have the top of the image at the top of the
+file. This routine puts the image, so the bottom of the image is at the beggining of the
+vector 'byte_aligned_image'
+*/
+
+int align_bitmap_image(int W,int H,unsigned char *unaligned_image,unsigned char *byte_aligned_image)
+{
+ int i, j, vector_aligned=0, vector_original=0;
+ /* put into the vector, in reverse order - i.e. from bottom to top */
+ for(j=0;j<H;j++)
+ {
+ for(i=0;i <W; ++i)
+ {
+ /* vector_aligned is the offset into the image that's padded
+ to allow 4-byte alignment */
+ /* offset is not, and so will allways be <=vector_offset */
+ if( (i==0) && (vector_aligned%4!=0) )
+ vector_aligned++;
+ if( (i==0) && (vector_aligned%4!=0) )
+ vector_aligned++;
+ if( (i==0) && (vector_aligned%4!=0) )
+ vector_aligned++;
+ byte_aligned_image[vector_aligned]=unaligned_image[vector_original];
+ byte_aligned_image[vector_aligned+1]=unaligned_image[vector_original+1];
+ byte_aligned_image[vector_aligned+2]=unaligned_image[vector_original+2];
+ vector_original+=3;
+ vector_aligned+=3;
+ }
+ }
+ if( vector_aligned%4!=0 )
+ vector_aligned++;
+ if( vector_aligned%4!=0 )
+ vector_aligned++;
+ if( vector_aligned%4!=0 )
+ vector_aligned++;
+ return(vector_aligned);
+}
--- /dev/null
+/*
+atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby@gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_ERRNO_H
+#include <errno.h>
+#endif
+
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef ENABLE_POSIX_THREADS
+#include <pthread.h>
+#endif
+
+#ifdef ENABLE_MPI
+#include <mpi.h>
+#endif
+
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+
+
+struct pixels Er_on_command_line[MAX_DIFFERENT_PERMITTIVITIES];
+struct pixels Er_in_bitmap[MAX_DIFFERENT_PERMITTIVITIES];
+
+double **Vij;
+double **Er;
+unsigned char **oddity;
+unsigned char **cell_type;
+unsigned char *image_data;
+int width=-1, height=-1;
+extern int errno;
+int number_of_workers=MAX_THREADS;
+int non_vacuum_found=FALSE;
+int dielectrics_to_consider_just_now;
+int coupler=FALSE;
+double r=1.90;
+
+char *inputfile_name;
+
+int main(int argc, char **argv) /* Read parameters from command line */
+{
+ FILE *where_to_print_fp=stdout, *image_data_fp;
+ char *outputfile_name, *appendfile_name, *output_prefix;
+ long i;
+ size_t size;
+ int offset;
+ int q;
+ char *end;
+ struct transmission_line_properties data;
+ errno=0;
+ set_data_to_sensible_starting_values(&data);
+ inputfile_name=string(0,1024);
+ outputfile_name=string(0,1024);
+ appendfile_name=string(0,1024);
+ output_prefix=string(0,1024);
+ /* only use this if we have both a multi-threaded application and that
+ with have the function */
+ (void) strcpy(output_prefix,"");
+ while((q=get_options(argc,argv,"Cr:vsSc:d:p:i:t:w:")) != -1)
+ switch (q)
+ {
+ case 'C':
+ print_copyright( (char *) "1996-2002");
+ exit_with_msg_and_exit_code("",1);
+ break;
+ case 'b':
+ data.should_binary_data_be_written_tooQ=TRUE;
+ break;
+ case 'd':
+ /* Read a colour from the command line */
+ Er_on_command_line[data.dielectrics_on_command_line].other_colour=\
+ strtol(my_optarg, &end, 16);
+ /* Sepparte it into the Red, Green and Blue components */
+ Er_on_command_line[data.dielectrics_on_command_line].blue=\
+ Er_on_command_line[data.dielectrics_on_command_line].other_colour%256;
+ Er_on_command_line[data.dielectrics_on_command_line].green=\
+ Er_on_command_line[data.dielectrics_on_command_line].other_colour/(256);
+ Er_on_command_line[data.dielectrics_on_command_line].red=\
+ Er_on_command_line[data.dielectrics_on_command_line].other_colour/(256*256);
+ end++; /* Gets rid of '=' sign which we put on the command line */
+ Er_on_command_line[data.dielectrics_on_command_line].epsilon=atof(end);
+ if (data.verbose_level > 1)
+ printf("r=%x g=%x b=%x col=%x Er=%f\n",\
+ Er_on_command_line[data.dielectrics_on_command_line].red,\
+ Er_on_command_line[data.dielectrics_on_command_line].green, \
+ Er_on_command_line[data.dielectrics_on_command_line].blue, \
+ Er_on_command_line[data.dielectrics_on_command_line].other_colour, \
+ Er_on_command_line[data.dielectrics_on_command_line].epsilon);
+ data.dielectrics_on_command_line++;
+ break;
+ case 'c':
+ data.cutoff=atof(my_optarg);
+ break;
+ case 'p':
+ (void) strcpy(output_prefix,my_optarg);
+ break;
+ case 'r':
+ data.r=atof(my_optarg);
+ r=data.r;
+ break;
+ case 's':
+ data.write_bitmap_field_imagesQ=FALSE;
+ break;
+ case 'S':
+ data.write_binary_field_imagesQ=FALSE;
+ break;
+ case 't':
+ number_of_workers=atol(my_optarg);
+ if(number_of_workers > MAXIMUM_PROCESSING_DEVICES)
+ {
+ fprintf(stderr,"You are exceeded the %d limit set in the file definitions.h\n",MAXIMUM_PROCESSING_DEVICES);
+ fprintf(stderr,"If you really do want this many, you will need to recompile\n");
+ exit_with_msg_and_exit_code("",USER_REQUESTED_TOO_MANY_THREADS);
+ }
+#ifndef ENABLE_POSIX_THREADS
+ if(number_of_workers != 0)
+ exit_with_msg_and_exit_code("Error #1. The -t option can not be \
+used, (except to set t=0, which is an \nexception made to allow a \
+benchmark to run), on a version of atlc that was \nnot configured with the \
+--with-threads option, and hence built without the \nthreads library.\n",1);
+#endif
+ break;
+ case 'w':
+#ifndef ENABLE_MPI
+ exit_with_msg_and_exit_code("Error #1a. The -w option can not be used on \
+a version of atlc that was not\nconfigured with the --with-mpi option, \
+hence built without the mpi\nlibrary.\n",1);
+#endif
+ break;
+ case 'i': /* Lighten or darken images of E-field */
+ data.image_fiddle_factor=atof(my_optarg);
+ break;
+ case 'v':
+ data.verbose_level++;
+ break;
+ case '?':
+ usage_atlc();
+ } /* End of the switch statement */
+
+ /* There should only be one argument to atlc, the bitmapfile name.
+ There can be a few options though. We now check that there is only
+ one argument */
+
+ if(argc-my_optind == 1) /* This should be so hopefully !! */
+ {
+#ifdef DEBUG
+ if (errno != 0)
+ fprintf(stderr,"errno=%d in atlc.c #2\n",errno);
+#endif
+ (void) strcpy(inputfile_name, argv[my_optind]);
+ (void) strcpy(outputfile_name, output_prefix);
+ (void) strcat(output_prefix,inputfile_name);
+ (void) strcpy(outputfile_name,output_prefix);
+ free_string(output_prefix,0,1024);
+ read_bitmap_file_headers(inputfile_name, &offset, &size, &width, &height);
+
+ /* Allocate all ram now, so atlc is sure to have it. There is no point
+ in getting some now, starting work then finding atlc can't get the
+ rest of what is needed. */
+ image_data=ustring(0L,(long)size);
+ oddity=ucmatrix(0,width-1,0,height-1);
+ cell_type=ucmatrix(0,width-1,0,height-1);
+ Vij=dmatrix(0,width-1,0,height-1);
+ Er=dmatrix(0,width-1,0,height-1);
+ /* On Solaris systems, if the following is not executed, only one
+ thread will run at any one time, which rather defeats the object of
+ running multi-threaded. */
+
+#ifdef ENABLE_POSIX_THREADS
+#ifdef HAVE_PTHREAD_SETCONCURRENCY
+ pthread_setconcurrency(number_of_workers);
+#endif
+#endif
+
+ /* Each thread solves the equations for a part of the voltage
+ matrix. If there were more threads than columms we would have a
+ problem. I'm not sure exactly how many can be got away with, but
+ one is unlikly to have more cpus that matrix columns */
+
+ /* In theory, it would be sensible to get atlc to be able to read
+ from stdin. This is a test, that checks if the filename is '-', and
+ if so assumes its reading from stdin. So far, the program is
+ unable to read from stdin, so this code is not really doing
+ anything useful, but might be expanded at a later date. */
+#ifdef DEBUG
+ if (errno != 0)
+ fprintf(stderr,"errno=%d in atlc.c #3\n",errno);
+#endif
+ if( strcmp(argv[my_optind],"-") != 0)
+ {
+ if( (image_data_fp=fopen(inputfile_name, "rb")) == NULL)
+ {
+ fprintf(stderr,"Error #3. Can't open %s!!!!!\n", argv[my_optind]);
+ exit_with_msg_and_exit_code("",3);
+ }
+ if(fseek(image_data_fp, offset, SEEK_SET)!=0)
+ {
+ fprintf(stderr,"Error #4. Sorry, unable to seek to the correct part \
+ (offset=%d) of the bmp image\n", offset);
+ exit_with_msg_and_exit_code("",4);
+ }
+ } /* end of if( strcmp(argv[my_optind],"-") != 0) */
+ else
+ image_data_fp=stdin;
+ /* For some unknown reason Microsoft's Visual C++ was unhappy to read
+ the bitmap image using an fread() call. Instead, the following two
+ stupid lines fixed that issue. This will only get compiled under
+ Windoze, the more sensible fread call being used on other operating
+ systems. */
+
+#ifdef WINDOWS
+ for(i=0; (i < (long)size ) && (feof(image_data_fp)==0); i++)
+ image_data[i]=(unsigned char)fgetc(image_data_fp);
+#else
+ i = fread(image_data, size, 1, image_data_fp);
+#endif
+ if((ferror(image_data_fp) || (i != 1 )))
+ {
+ fprintf(stderr,"Error #5. Unable to read all of the image data properly\n");
+ exit_with_msg_and_exit_code("",5);
+ }
+ /* declare matrix's to indicate what pixels are fixed and variable */
+ /* We now fill the following 3 arrays with the correct data, based on the
+ contents of the bitmap image */
+
+ setup_arrays(&data);
+ set_oddity_value();
+
+ /* If there are multiple dielectrics, the impedance calculations
+ needs to be done twice. We start by doing them once, for an vacuum
+ dielectric. If necessary, they will be done again */
+ do_fd_calculation(&data, size, where_to_print_fp,outputfile_name);
+ }
+ else
+ {
+ usage_atlc();
+ return(PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+ }
+ free_string(inputfile_name,0,1024);
+ free_string(outputfile_name,0,1024);
+ free_string(appendfile_name,0,1024);
+ free_ustring(image_data,0L,(long) size);
+ free_ucmatrix(oddity,0,width-1,0,height-1);
+ free_ucmatrix(cell_type,0,width-1,0,height-1);
+ free_dmatrix(Vij, 0,width-1,0,height-1);
+ free_dmatrix(Er,0,width-1,0,height-1);
+ fclose(image_data_fp);
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+struct Bitmap_File_Head_Struct
+{
+ char zzMagic[2]; /* 00 "BM" */
+ long bfSize; /* 02 */
+ short zzHotX; /* 06 */
+ short zzHotY; /* 08 */
+ long bfOffs; /* 0A */
+ long biSize; /* 0E */
+} Bitmap_File_Head;
+
+struct Bitmap_Head_Struct
+{
+ long biWidth; /* 12 */
+ long biHeight; /* 16 */
+ short biPlanes; /* 1A */
+ short biBitCnt; /* 1C */
+ long biCompr; /* 1E */
+ long biSizeIm; /* 22 */
+ long biXPels; /* 26 */
+ long biYPels; /* 2A */
+ long biClrUsed; /* 2E */
+ long biClrImp; /* 32 */
+ /* 36 */
+} Bitmap_Head;
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include "definitions.h"
+
+extern int errno;
+
+/* This routine swaps data from the little-endian format to the big-endian
+format or visa-versa. */
+
+void byteswap_doubles(double *a)
+{
+ unsigned char b[8],c[8];
+ (void) memcpy(b,a,8);
+ c[0]=b[7]; /* swap data around */
+ c[1]=b[6];
+ c[2]=b[5];
+ c[3]=b[4];
+ c[4]=b[3];
+ c[5]=b[2];
+ c[6]=b[1];
+ c[7]=b[0];
+ (void) memcpy(a,c,8);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The following calculates the odd and even mode impedances between two
+zero thickness strips of width w, spaced a distance s between two
+groundplanes of spacing h. */
+
+#include "config.h"
+
+#include "gsl_types.h"
+#include "gsl_definitions.h"
+#include "definitions.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#include "exit_codes.h"
+/* formuals taken from Matthaei, Young and Jones, Microwave Filters, Impedance Matching
+Networks and Coupling Structures, Artech House, Dedham, MA., 1980. , but I've substituted
+29.97924580105028, as its clear 30 is just a close approximation */
+
+void calculate_Zodd_and_Zeven(double *Zodd, double *Zeven, double *Zo, double w, double H, double s, double er)
+{
+ double ke, ko, ko_dash, ke_dash;
+ ke=(tanh((M_PI/2)*(w/H)))*tanh((M_PI/2)*(w+s)/H);
+ ko=(tanh((M_PI/2)*(w/H)))/tanh((M_PI/2)*(w+s)/H);
+
+ ke_dash=sqrt(1-ke*ke);
+ ko_dash=sqrt(1-ko*ko);
+
+ *Zeven=29.9792458010502837*M_PI*gsl_sf_ellint_Kcomp(ke_dash, GSL_PREC_DOUBLE)/(gsl_sf_ellint_Kcomp(ke,GSL_PREC_DOUBLE)*sqrt(er));
+ *Zodd= 29.9792458010502837*M_PI*gsl_sf_ellint_Kcomp(ko_dash, GSL_PREC_DOUBLE)/(gsl_sf_ellint_Kcomp(ko,GSL_PREC_DOUBLE)*sqrt(er));
+ *Zo=sqrt( (*Zodd)*(*Zeven));
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_h
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#include "definitions.h"
+
+extern double **Vij;
+extern double **Er;
+extern unsigned char **oddity;
+
+void calculate_colour_data(double x, double xmax, int w, int h, int offset, unsigned char *image_dat, int image_type,
+unsigned char *red, unsigned char *green, unsigned char *blue, double image_fiddle_factor)
+{
+ if(image_type==COLOUR) /*Ex, Ey, V */
+ {
+ if(fabs(x) < 1e-9) /* This is a bit of a fiddle I admit, but */
+ { /* Is needed to prevent problems at 'small' values */
+ *red=0;
+ *green=0;
+ *blue=0;
+ }
+ else if(x > 0.0)
+ {
+ *red=255*pow(x/xmax,1.0/image_fiddle_factor);
+ *green=0;
+ *blue=0;
+ }
+ else
+ {
+ *red=0;
+ *green=0;
+ *blue=255*pow(-x/xmax,1.0/image_fiddle_factor);
+ }
+ }
+ else if (image_type==MONOCHROME) /* E, energy, permittivity */
+ {
+ if(x > xmax)
+ {
+ *red=0; *green=0; *blue=0;
+ }
+ else
+ {
+ *red=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
+ *green=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
+ *blue=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
+ }
+ }
+ else if (image_type==MIXED) /* Only for permittivity*/
+ {
+ if(oddity[w][h]==CONDUCTOR_ZERO_V)
+ {
+ *red=0; *green=255; *blue=0;
+ }
+ else if(oddity[w][h]==CONDUCTOR_PLUS_ONE_V)
+ {
+ *red=255; *green=0; *blue=0;
+ }
+ else if(oddity[w][h]==CONDUCTOR_MINUS_ONE_V)
+ {
+ *red=0; *green=0; *blue=255;
+ }
+ else
+ {
+ *red=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
+ *green=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
+ *blue=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
+ }
+ }
+ image_dat[offset]=*blue;
+ image_dat[offset+1]=*green;
+ image_dat[offset+2]=*red;
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* This routine calaculates the impedance exaclty for the case of two
+infinity wide conductors sepparated a distance H, with between them
+placed centrally a conductor of width w and infinitely thin.
+
+i.e.
+******^***********************************************************************
+ |
+ |
+ H ----------w----------
+ |
+ |
+******Vij***********************************************************************
+
+It uses the method given in "Filed Theory of Guided Waves, Colen R.E.,
+2nd edition, pp 259-273, IEEE Press, (1990). */
+
+#include "config.h"
+
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern int verbose;
+
+double calculate_symmetrical_stripline_impedance(int H, int w)
+{
+ double Zo;
+ double mu=4*M_PI*1e-7, x0, v0, c, l, k;
+ x0=pow(cosh(M_PI*w/(2.0*H)),2.0);
+ if (verbose >=2)
+ printf("w=%d H=%d w/H=%f xo=%g\n",w,H,(double)w/H,x0);
+ if((double) w / (double) H > 226.369458)
+ exit_with_msg_and_exit_code("Bitmap is written fine, but can't compute impedance", THE_WIDTH_w_DIVIDED_BY_THE_HEIGHT_H_IS_TOO_LARGE);
+ k=1.0/sqrt(x0);
+ v0=K_over_Kdash(k);
+ c=4*EPSILON_0/v0;
+ l=mu*EPSILON_0/c;
+ Zo=sqrt(l/c);
+ return(Zo);
+}
+
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The following calculates the odd and even mode impedances between two
+zero thickness strips of width w, spaced a distance s between two
+groundplanes of spacing h. */
+
+#include "config.h"
+#include "definitions.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+double calculate_integer_values(struct transmission_line_properties *optimise,int nmax,int accuracy_level)
+{
+ double grid_size, error, error_max=1e6;
+ int i, min_pixels, max_pixels, n, min_critical_pixels, max_critical_pixels;
+ int most_critical=0, step=1;
+ double min_pixel_size, max_pixel_size;
+ double W, H;
+
+ for(i=0;i<9;++i)
+ optimise->best[i]=-1; /* A silly value, indicating it is not acceptable */
+
+ /* Let the number of pixel in the image be between 2^n and 2^(n+2) */
+
+ min_pixels=(int) pow(2.0,(double)(accuracy_level-1));
+ max_pixels=(int) pow(2.0,(double)(accuracy_level+1));
+
+ /* Although the stucture W by H has an exact area of W*H, we will
+ allocate some pixels to this, which will be much smaller than
+ the W*H. Each pixel will have a variable area, which we don't
+ know yet, but can put upper and lower limits on it.
+ */
+
+ W=optimise->float_values[0]; /* The calculated W and H */
+ H=optimise->float_values[1];
+ min_pixel_size=sqrt(W*H/max_pixels);
+ max_pixel_size=sqrt(W*H/min_pixels);
+
+ /* find the most critical dimension */
+ for(n=0;n<nmax;n++)
+ {
+ if(optimise->importance[n]==MOST_IMPORTANT)
+ most_critical=n;
+ }
+ /* we will allocate a number of pixels to this most critical
+ dimension, set by */
+
+ min_critical_pixels = optimise->float_values[most_critical]/max_pixel_size;
+ max_critical_pixels = optimise->float_values[most_critical]/min_pixel_size;
+
+
+ /* Normally we would try every combination of i, but it may be necessary to keep it even or odd */
+ if(optimise->odd_or_even[most_critical] == ODD && min_critical_pixels%2==0)
+ min_critical_pixels--;
+ else if(optimise->odd_or_even[most_critical] == EVEN && min_critical_pixels%2==1)
+ min_critical_pixels--;
+ if(optimise->odd_or_even[most_critical] != DONT_CARE)
+ step=2;
+
+ for(i=min_critical_pixels; i<max_critical_pixels;i+=step)
+ {
+ /* set the most critical dimension to i pixels, trying every i
+ between two set limits */
+
+ optimise->int_values[most_critical]=i;
+ grid_size=optimise->float_values[most_critical]/i;
+
+ /* Now set all the others to the optimal, assuming i would be used
+ for the most critical dimension */
+ error=0.0;
+ for(n=0; n<nmax;++n)
+ {
+ optimise->int_values[n]=(int) (0.5+optimise->float_values[n]/grid_size);
+ if (optimise->importance[n] != NOT_IMPORTANT)
+ {
+ error+=fabs((double)optimise->int_values[n]*grid_size-optimise->float_values[n]);
+ }
+ }
+ /* Since the numbers generated for the integers seeme to differ on different
+ computers, I've suspected the problem might be that an error is very
+ similar at two different sets of integer values. Hence I will only
+ consider the error lower its lower by 1e-9. That should avoid silly
+ rounding problems. */
+
+ if(error<(error_max-TINY)) /* The 1e-9 avoids different results on different*/
+ { /* machines due to rounding errors */
+ error_max=error;
+ for(n=0; n<nmax;++n)
+ optimise->best[n]=optimise->int_values[n];
+ }
+ }
+ return(error_max); /* return the error */
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include "definitions.h"
+#include "exit_codes.h"
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+
+
+/* This function checks to see if the errors on the grid are too large.
+A problem occurs if a number was zero, so this needs to be carefullly
+controlled. */
+
+void check_error(double user, int create_bmp_for_rect_in_rect, double gridsize, const char *name)
+{
+ double fractional_error;
+ fractional_error=fabs((user-(create_bmp_for_rect_in_rect*gridsize))/user);
+ if(user > 0)
+ {
+ if(fractional_error > UNACCEPTABLE_ERROR)
+ {
+ fprintf(stderr,"Error #14. Unacceptable %f%% error in representing %s on the grid\n", fractional_error*100.0, name);
+ fprintf(stderr,"Try increasing the bitmap size with the -b option\n");
+ exit_with_msg_and_exit_code("exiting ...",UNACCEPTABLE_ERROR_WHEN_CONVERTING_TO_INTEGERS);
+ }
+ else if(fractional_error > ACCEPTABLE_ERROR)
+ fprintf(stderr,"*WARNING* %f%% error in representing %s on the grid\n", fractional_error*100.0, name);
+ }
+}
--- /dev/null
+/* The function 'setup_arrays sets the cell_type[i][j] to be DIELECTRIC
+if the material is non-metal. This function expands on that, checking if
+the adjactent cells are dielectrics, or metals, and if dielectric,
+whether or nor there is a boundary vertically, or horizontally between
+two different dielectrics. Doing this once, is much faster than doing it
+inside a loop, checking for all possibilities each time one needs to
+know. */
+
+#include "definitions.h"
+
+extern int width, height;
+extern unsigned char **oddity, **cell_type;
+extern double **Er;
+
+void check_for_boundaries(void)
+{
+}
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* This routines checkes for short circuits in the image. Clearly, it is
+should not possible to have a 1V conductor touching a -1 V conductor.
+
+Although currently the software does not support the use of a floating
+conductor (an anea of fixed, but undefined) voltage, error messages
+to take this into account have been included, but commentted out.*/
+
+
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int width, height;
+extern unsigned char **oddity;
+
+/* This checks for shorts. We only check to the right (increasing w) and below (increasing h)
+since its pointless checking all directions when one moves to an adjacent pixel later */
+void check_for_shorts(void)
+{
+ int w, h;
+
+ for(h=1;h<height-1;h++)
+ {
+ for(w=1; w<width-1;w++)
+ {
+ if( oddity[w][h]==CONDUCTOR_ZERO_V )
+ {
+ /* Check to see if the pixel below is shorted */
+ if((oddity[w][h+1]==CONDUCTOR_PLUS_ONE_V) || (oddity[w][h+1]==CONDUCTOR_MINUS_ONE_V) || (oddity[w][h+1]==CONDUCTOR_FLOATING))
+ {
+ fprintf(stderr,"\n**************ERROR******************\n");
+ fprintf(stderr,"Pixel (%d,%d) is set to 0V, but pixel\n",w,h);
+ fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
+ fprintf(stderr,"creating a short. Please correct this.\n");
+ exit_with_msg_and_exit_code("",CONDUCTOR_ZERO_V);
+ }
+ /* Check to see if the pixel to the right is shorted */
+ else if((oddity[w+1][h]==CONDUCTOR_PLUS_ONE_V) || (oddity[w+1][h]==CONDUCTOR_MINUS_ONE_V) || (oddity[w+1][h]==CONDUCTOR_FLOATING))
+ {
+ fprintf(stderr,"\n**************ERROR******************\n");
+ fprintf(stderr,"Pixel (%d,%d) is set to 0V, but pixel\n",w,h);
+ fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w+1,h);
+ fprintf(stderr,"creating a short. Please correct this.\n");
+ exit_with_msg_and_exit_code("",CONDUCTOR_ZERO_V);
+ }
+
+ } /* end of if(oddity==CONDUCTOR_ZERO_V) */
+
+ else if( oddity[w][h]==CONDUCTOR_PLUS_ONE_V )
+ {
+ /* Check for a short of the pixel below */
+ if((oddity[w][h+1]==CONDUCTOR_ZERO_V) || \
+ (oddity[w][h+1]==CONDUCTOR_MINUS_ONE_V) \
+ || (oddity[w][h+1]==CONDUCTOR_FLOATING))
+ {
+ fprintf(stderr,"\n**************ERROR******************\n");
+ fprintf(stderr,"Pixel (%d,%d) is set to 1 V, but pixel\n",w,h);
+ fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
+ fprintf(stderr,"creating a short. Please correct this.\n");
+ exit_with_msg_and_exit_code("",CONDUCTOR_PLUS_ONE_V);
+ }
+ /* Check to see if the pixel to the right is shorted */
+ else if((oddity[w+1][h]==CONDUCTOR_ZERO_V) || \
+ (oddity[w+1][h]==CONDUCTOR_MINUS_ONE_V) \
+ || (oddity[w+1][h]==CONDUCTOR_FLOATING))
+ {
+ fprintf(stderr,"\n**************ERROR******************\n");
+ fprintf(stderr,"Pixel (%d,%d) is set to 1 V, but pixel\n",w,h);
+ fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w+1,h);
+ fprintf(stderr,"creating a short. Please correct this.\n");
+ exit_with_msg_and_exit_code("",CONDUCTOR_PLUS_ONE_V);
+ }
+ } /* end of if(oddity==CONDUCTOR_PLUS_ONE_V) */
+
+ else if( oddity[w][h]==CONDUCTOR_MINUS_ONE_V )
+ {
+ /* Check for a short of the pixel below */
+ if((oddity[w][h+1]==CONDUCTOR_ZERO_V) || \
+ (oddity[w][h+1]==CONDUCTOR_PLUS_ONE_V) \
+ || (oddity[w][h+1]==CONDUCTOR_FLOATING))
+ {
+ fprintf(stderr,"\n**************ERROR******************\n");
+ fprintf(stderr,"Pixel (%d,%d) is set to -1 V, but pixel\n",w,h);
+ fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
+ fprintf(stderr,"creating a short. Please correct this.\n");
+ exit_with_msg_and_exit_code("",CONDUCTOR_MINUS_ONE_V);
+ }
+ /* Check to see if the pixel to the right is shorted */
+ if((oddity[w][h+1]==CONDUCTOR_ZERO_V) || \
+ (oddity[w][h+1]==CONDUCTOR_PLUS_ONE_V) \
+ || (oddity[w][h+1]==CONDUCTOR_FLOATING))
+ {
+ fprintf(stderr,"\n**************ERROR******************\n");
+ fprintf(stderr,"Pixel (%d,%d) is set to -1 V, but pixel\n",w,h);
+ fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
+ fprintf(stderr,"creating a short. Please correct this.\n");
+ exit_with_msg_and_exit_code("",CONDUCTOR_MINUS_ONE_V);
+ }
+ } /* end of if(oddity==CONDUCTOR_PLUS_ONE_V) */
+ } /* end of for w.. loop */
+ } /* end of for h .. loop */
+} /* end of function check_for_shorts */
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void check_parameters_for_find_optimal_dimensions_for_microstrip_coupler\
+(double h,double t,double Er1,double Er2,double ideal_Zodd,double ideal_Zeven)
+{
+ if(h <= 0)
+ exit_with_msg_and_exit_code("h <= 0",ARGUMENT_h_OUT_OF_RANGE);
+ if (t <= 0)
+ exit_with_msg_and_exit_code("t <= 0",ARGUMENT_t_OUT_OF_RANGE);
+ if ( Er1 < 1.00)
+ exit_with_msg_and_exit_code("Er1 < 1",ARGUMENT_Er1_OUT_OF_RANGE);
+ if ( Er2 < 1.00)
+ exit_with_msg_and_exit_code("Er2 < 1",ARGUMENT_Er2_OUT_OF_RANGE);
+ if ( ideal_Zodd < 0)
+ exit_with_msg_and_exit_code("Ideal_zodd",ARGUMENT_ideal_Zodd_OUT_OF_RANGE);
+ if ( ideal_Zeven < 0)
+ exit_with_msg_and_exit_code("Ideal_zodd",ARGUMENT_ideal_Zodd_OUT_OF_RANGE);
+ if ( ideal_Zeven <= ideal_Zodd )
+ exit_with_msg_and_exit_code("Zodd must be less than Zeven",IDEAL_Zodd_NOT_LESS_THAN_IDEAL_Zeven);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+
+/* These items are supplied on the command line */
+
+extern double DD, dd, hh, Er1;
+extern int D, d, h;
+extern int verbose;
+
+void check_parameters_of_create_bmp_for_circ_in_circ(void)
+{
+ if( Er1<1.0)
+ exit_with_msg_and_exit_code("Error #9. The relative permittivity (Er) must be >= 1.0",9);
+ if (dd/2.0+hh >= DD)
+ exit_with_msg_and_exit_code("Error #10 The inner will be touching the outer !!!",10);
+}
+
+void check_create_bmp_for_circ_in_circ_int(void)
+{
+ if(verbose==TRUE)
+ fprintf(stderr,"d_outer = %d d_inner=%d offset=%x \n",D, d, h);
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+
+/* These items are supplied on the command line */
+
+extern double dd, WW, HH, xx, yy, Er1;
+extern int d, W, H, x, y;
+
+void check_parameters_of_create_bmp_for_circ_in_rect(void)
+{
+ if( Er1<1.0)
+ exit_with_msg_and_exit_code("The relative permittivity (Er) must be >= 1.0",100);
+ if (dd/2.0-yy >= HH/2)
+ exit_with_msg_and_exit_code("The circular inner will be touching the bottom of the outer !!! ",100);
+ if (dd/2.0+yy >= HH/2)
+ exit_with_msg_and_exit_code("The circular inner will be touching the top of the outer !!! ",100);
+ if (dd/2.0+xx >= WW/2)
+ exit_with_msg_and_exit_code("The circular inner will be touching the right side of the outer !!! ",100);
+ if (dd/2.0-xx >= WW/2)
+ exit_with_msg_and_exit_code("The circular inner will be touching the left side of the outer !!! ",100);
+
+}
+
+void check_circ_in_rect_int(void)
+{
+/*
+ if(verbose==TRUE)
+ fprintf(stderr,"d_outer = %d d_inner=%d offset=%h \n",D, d, h);
+ */
+}
--- /dev/null
+
+
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+#ifdef ENABLE_POSIX_THREADS
+#include <pthread.h>
+#endif
+
+#include "exit_codes.h"
+
+void check_parameters_of_create_bmp_for_microstrip_coupler(struct transmission_line_properties pcb)
+{
+ if ( pcb.ww <= 0)
+ exit_with_msg_and_exit_code("w <= 0",ARGUMENT_w_OUT_OF_RANGE);
+ if ( pcb.ss <= 0)
+ exit_with_msg_and_exit_code("s <= 0",ARGUMENT_s_OUT_OF_RANGE);
+ if ( pcb.gg <= 0)
+ exit_with_msg_and_exit_code("g <= 0",ARGUMENT_g_OUT_OF_RANGE);
+ if ( pcb.hh <= 0)
+ exit_with_msg_and_exit_code("h <= 0",ARGUMENT_h_OUT_OF_RANGE);
+ if ( pcb.tt <= 0)
+ exit_with_msg_and_exit_code("0 <= 0",ARGUMENT_t_OUT_OF_RANGE);
+ if ( pcb.Er1 < 1)
+ exit_with_msg_and_exit_code("0 <= 0",ARGUMENT_Er1_OUT_OF_RANGE);
+ if ( pcb.Er2 < 1)
+ exit_with_msg_and_exit_code("0 <= 0",ARGUMENT_Er2_OUT_OF_RANGE);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+
+/* These items are supplied on the command line */
+
+void check_parameters_of_create_bmp_for_rect_in_circ(void)
+{
+}
+
+void check_create_bmp_for_rect_in_circ_int(void)
+{
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+
+/* These items are supplied on the command line */
+
+extern double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2;
+extern int W, H, a, b, c, d, w, h;
+extern int verbose;
+
+void check_parameters_of_create_bmp_for_rect_in_rect(void)
+{
+ if( (Er1<1.0) || (Er2 <1.0))
+ exit_with_msg_and_exit_code((char *) "Both Er1 and Er2 must be >= 1.0",100);
+ if(aa+dd>WW)
+ exit_with_msg_and_exit_code((char *) "the dielectric extends horizontally outside the box (a+d>W)",100);
+ if(bb+ww>=WW)
+ exit_with_msg_and_exit_code((char *) "the inner conductor extends horizontally beyond the outer conductor(b+w>=W)",101);
+ if(cc<=0.0)
+ exit_with_msg_and_exit_code((char *) "The inner conductors's thickness (c) must be greater than zero ",12);
+ if(hh<=0.0)
+ exit_with_msg_and_exit_code((char *) "The thickness of dielectric Er2 (h) must be greater than zero ",12);
+ if(hh+cc>=HH)
+ exit_with_msg_and_exit_code((char *) "the inner conductor extends verticaly beyond the outer conductor(c+h>=H)",101);
+ if((WW<=0.0) || (HH<=0.0) || (aa<0.0) || (bb<0.0) || (cc<=0.0) || (dd<=0.0)
+ ||(ww<=0.0) || (hh<=0.0))
+ exit_with_msg_and_exit_code((char *) "W,H,c,d,w, & h must be positive numbers. Non-integers are okay, but they must be >0 \n",102);
+
+}
+
+void check_create_bmp_for_rect_in_circ_int(void)
+{
+ if(verbose==TRUE)
+ fprintf(stderr,"W=%d H=%d a=%d b=%d c=%d d=%d w=%d h=%d\n",W,H,a,b,c,d,w,h);
+ if(a < 1)
+ exit_with_msg_and_exit_code("internal paramter 'a' is less that 1. This indicates the LHS of the dielectric",102);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include "definitions.h"
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+extern double DD, dd, hh, Er1;
+extern int D, d, h, W, H;
+extern int lowest;
+extern int highest;
+extern int verbose;
+
+void convert_create_bmp_for_circ_in_circ_dimensions_to_integers(int accuracy_level)
+{
+ int best_D=-1, best_d=-1, best_h=-1;
+ int min, max;
+ int i;
+ double max_gridsize, min_gridsize;
+ double error, error_min=VERY_LARGE, gridsize, best_grid_size=-1;
+
+ /* scale grid size, according to a command line option */
+ lowest*=(int) 0.5+sqrt(pow(2.0,(double)accuracy_level));
+ highest*=(int) 0.5+sqrt(pow(2.0,(double)accuracy_level));
+
+ max_gridsize=DD/lowest; /* minimum dimension in m */
+ min_gridsize=DD/highest;
+ min=DD/max_gridsize;
+ max=DD/min_gridsize;
+ for(i=min;i<=max;++i)
+ {
+ /* Try various combinations for D,d,o */
+ gridsize=DD/i;
+ D=(int)(DD/gridsize + 0.5);
+ d=(int)(dd/gridsize + 0.5);
+ h=(int)(hh/gridsize + 0.5);
+ error=0.0;
+ error+=pow((DD-D*gridsize)/DD,2.0);
+ error+=pow((dd-d*gridsize)/dd,2.0);
+ if(h>0)
+ error+=pow((hh-h*gridsize)/hh,2.0);
+ if(error < (error_min-TINY))
+ {
+ error_min=error;
+ best_D=D;
+ best_d=d;
+ best_h=h;
+ best_grid_size=gridsize;
+ }
+ }
+ D=W=H=best_D;
+ d=best_d;
+ h=best_h;
+ if(verbose==TRUE)
+ {
+ fprintf(stderr,"error_min=%.16f\n",error_min);
+ fprintf(stderr,"User requested: DD=%f dd=%f hh=%f Er1=%f\n\n",DD,dd,hh,Er1);
+ fprintf(stderr,"Internally the program is using the following grid:\n");
+ fprintf(stderr,"D=%d d=%d h=%d \nThe grid size is %f mm, inches or whatever\n\n", D,d,h,best_grid_size);
+ if(error_min > TINY)
+ {
+ fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
+ fprintf(stderr,"D=%f d=%f h=%f (mm, inches or whatever)\n",D*best_grid_size,d*best_grid_size,h*best_grid_size);
+ fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
+ fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
+ }
+ }
+ check_error(DD,D,best_grid_size,"D");
+ check_error(dd,d,best_grid_size,"d");
+ if(h > 0.0)
+ check_error(hh,h,best_grid_size,"h");
+}
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include "definitions.h"
+#include "exit_codes.h"
+
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+extern double dd, WW, HH, xx, yy, Er1;
+extern int d, W, H, x, y;
+extern int lowest;
+extern int highest;
+extern int verbose;
+
+void convert_create_bmp_for_circ_in_rect_dimensions_to_integers(int accuracy_level)
+{
+ int best_d=-1, best_W=-1, best_H=-1, best_x=-1, best_y=-1;
+ int min, max;
+ int i;
+ double max_gridsize, min_gridsize;
+ double error, error_min=VERY_LARGE, gridsize, best_grid_size=-1;
+
+ /* scale grid size, according to a command line option */
+ lowest*=1<<accuracy_level;
+ highest*=1<<accuracy_level;
+
+ max_gridsize=sqrt(WW*HH/(double )lowest); /* minimum dimension in m */
+ min_gridsize=sqrt(WW*HH/(double )highest);
+ if(WW>=HH)
+ {
+ min=WW/max_gridsize;
+ max=WW/min_gridsize;
+ }
+ else
+ {
+ min=HH/max_gridsize;
+ max=HH/min_gridsize;
+ }
+ for(i=min;i<=max;++i)
+ {
+ /* Try various combinations for d, W, H, etc */
+ if(W>H)
+ gridsize=WW/i;
+ else
+ gridsize=HH/i;
+ d=(int)(dd/gridsize + 0.5);
+ W=(int)(WW/gridsize + 0.5);
+ H=(int)(HH/gridsize + 0.5);
+ x=(int)(xx/gridsize + 0.5);
+ y=(int)(yy/gridsize + 0.5);
+ error=0.0;
+ error+=pow((WW-W*gridsize)/WW,2.0); /* relative error in W */
+ error+=pow((HH-H*gridsize)/HH,2.0);
+ error+=pow((dd-d*gridsize)/dd,2.0);
+ if(x>0)
+ error+=pow((xx-x*gridsize)/xx,2.0);
+ if(y>0)
+ error+=pow((yy-y*gridsize)/yy,2.0);
+ if(error < (error_min-TINY))
+ {
+ error_min=error;
+ best_d=d;
+ best_W=W;
+ best_H=H;
+ best_x=x;
+ best_y=y;
+ best_grid_size=gridsize;
+ }
+ }
+ if(best_d==-1) /* it has not been initialised */
+ exit_with_msg_and_exit_code("d has not been initialised",VARIABLE_NOT_INITIALISED);
+ else
+ d=best_d;
+ if(best_W==-1) /* it has not been initialised */
+ exit_with_msg_and_exit_code("W has not been initialised",VARIABLE_NOT_INITIALISED);
+ else
+ W=best_W;
+ if(best_H==-1) /* it has not been initialised */
+ exit_with_msg_and_exit_code("H has not been initialised",VARIABLE_NOT_INITIALISED);
+ else
+ H=best_H;
+ if(best_x==-1) /* it has not been initialised */
+ exit_with_msg_and_exit_code("x has not been initialised",VARIABLE_NOT_INITIALISED);
+ else
+ x=best_x;
+ if(best_y==-1) /* it has not been initialised */
+ exit_with_msg_and_exit_code("y has not been initialised",VARIABLE_NOT_INITIALISED);
+ else
+ y=best_y;
+ if(verbose==TRUE)
+ {
+ fprintf(stderr,"error_min=%.16f\n",error_min);
+ fprintf(stderr,"User requested: dd=%f WW=%f HH=%f xx=%f yy=%f Er=%f\n\n",dd,WW,HH,xx,yy,Er1);
+ fprintf(stderr,"Internally the program is using the following grid:\n");
+ fprintf(stderr,"d=%d W=%d H=%d x=%d y=%d \n", d, W, H, x, y);
+ fprintf(stderr,"The grid size is %f mm, inches or whatever\n\n", best_grid_size);
+ if(error_min > TINY)
+ {
+ fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
+ fprintf(stderr,"d=%f W=%f H=%f x=%f y=%f (mm, inches or whatever)\n",d*best_grid_size,W*best_grid_size,H*best_grid_size,x*best_grid_size,y*best_grid_size);
+ fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
+ fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
+ }
+ }
+ if( (d/2+x >= W) || (d/2+y >=H))
+ {
+ exit_with_msg_and_exit_code("The gap between the two conductors is too small. Either increase the bitmap size (-b option), or change the dimensions of one the conductors",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ check_error(dd,d,best_grid_size,"d");
+ check_error(WW,W,best_grid_size,"W");
+ check_error(HH,H,best_grid_size,"H");
+ check_error(xx,x,best_grid_size,"x");
+ check_error(yy,y,best_grid_size,"y");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern double Er1, Er2;
+extern double Ers[];
+extern int colours[];
+
+void convert_create_create_bmp_for_coupled_microstrip_dimensions_to_integers(struct transmission_line_properties *pcb)
+{
+ /* A number of paramters are set to -1, as otherwise the compiler
+ complains they may be used unitialised. It is wise to check they
+ are not -1 before assining a variable to their contents,
+ but I can't be bothered. */
+ int best_W=-1, best_H=-1, best_w=-1, best_s=-1, best_g=-1;
+ int best_h=-1, best_t=-1;
+ int min, max, lowest = 2500, highest=10000;
+ int i;
+ double max_gridsize, min_gridsize;
+ double error, error_min=VERY_LARGE, gridsize=-1, best_grid_size=-1;
+
+
+ /* scale grid size, according to a command line option */
+ lowest*=(int) 0.5+pow(2.0,(double)pcb->bmp_size);
+ highest*=(int) 0.5+pow(2.0,(double)pcb->bmp_size);
+
+ max_gridsize=sqrt(pcb->WW*pcb->HH/(double )lowest); /* minimum dimension in m */
+ min_gridsize=sqrt(pcb->WW*pcb->HH/(double )highest);
+ if(pcb->WW>=pcb->HH)
+ {
+ min=pcb->WW/max_gridsize;
+ max=pcb->WW/min_gridsize;
+ }
+ else
+ {
+ min=pcb->HH/max_gridsize;
+ max=pcb->HH/min_gridsize;
+ }
+ if (pcb->verbose_level >= 2)
+ printf("WW=%f HH=%f lowest=%d higherst = %d min=%d max=%d\n",pcb->WW,pcb->HH,lowest, highest, min, max);
+ for(i=min;i<=max;++i)
+ {
+ /* Try various combinations for H,a,b,c, etc */
+ if(pcb->W>pcb->H)
+ gridsize=pcb->WW/i;
+ else
+ gridsize=pcb->HH/i;
+ pcb->W=(int)(pcb->WW/gridsize + 0.5);
+ pcb->H=(int)(pcb->HH/gridsize + 0.5);
+ pcb->w=(int)(pcb->ww/gridsize + 0.5);
+ pcb->s=(int)(pcb->ss/gridsize + 0.5);
+ pcb->g=(int)(pcb->gg/gridsize + 0.5);
+ pcb->h=(int)(pcb->hh/gridsize + 0.5);
+ pcb->t=(int)(pcb->tt/gridsize + 0.5);
+ error=0.0;
+ /*error+=pow((pcb->WW-pcb->W*gridsize)/pcb->WW,2.0); */ /* relative error in W */
+ /*error+=pow((pcb->HH-pcb->H*gridsize)/pcb->HH,2.0); */
+ if(pcb->w>0)
+ error+=pow((pcb->ww-pcb->w*gridsize)/pcb->ww,2.0);
+ if(pcb->s>0)
+ error+=pow((pcb->ss-pcb->s*gridsize)/pcb->ss,2.0);
+ if(pcb->g>0)
+ error+=pow((pcb->gg-pcb->g*gridsize)/pcb->gg,2.0);
+ if(pcb->h>0)
+ error+=pow((pcb->hh-pcb->h*gridsize)/pcb->hh,2.0);
+ if(pcb->t>0)
+ error+=pow((pcb->tt-pcb->t*gridsize)/pcb->tt,2.0);
+ if(error < (error_min-TINY))
+ {
+ error_min=error;
+ best_W=pcb->W;
+ best_H=pcb->H;
+ best_w=pcb->w;
+ best_s=pcb->s;
+ best_g=pcb->g;
+ best_h=pcb->h;
+ best_t=pcb->t;
+ best_grid_size=gridsize;
+ }
+ }
+ pcb->W=best_W;
+ pcb->H=best_H;
+ pcb->w=best_w;
+ pcb->s=best_s;
+ pcb->g=best_g;
+ pcb->h=best_h;
+ pcb->t=best_t;
+ if(pcb->verbose_level > 0)
+ {
+ fprintf(stderr,"error_min=%.16f\n",error_min);
+ fprintf(stderr,"User requested: W=%f H=%f w=%f s=%f g=%f h=%f t=%f Er1=%f Er2=%f\n\n",pcb->WW,pcb->HH,pcb->ww,pcb->ss,pcb->gg,pcb->hh,pcb->tt,Er1,Er2);
+ fprintf(stderr,"Internally the program is using the following grid:\n");
+ fprintf(stderr,"W=%d H=%d w=%d s=%d g=%d h=%d t=%d\nThe grid size is %f mm, inches or whatever\n\n", pcb->W, pcb->H, pcb->w, pcb->s, pcb->g,pcb->h, pcb->t,best_grid_size);
+ if(error_min > TINY)
+ {
+ fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
+ fprintf(stderr,"W=%f H=%f w=%f s=%f g=%f h=%f t=%f (mm, inches or whatever)\n",pcb->W*best_grid_size,pcb->H*best_grid_size,pcb->w*best_grid_size,pcb->s*best_grid_size,pcb->g*best_grid_size,pcb->h*best_grid_size,pcb->t*best_grid_size);
+ fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
+ fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
+ }
+ }
+ if(pcb->s == 0)
+ {
+ fprintf(stderr,"Error #12. The gap between the two conductors coupled lines (s) is too small. Either increase the bitmap size (-b option), or make s at least %f\n",gridsize);
+ exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ if(pcb->g == 0)
+ {
+ fprintf(stderr,"Error #13. The gap between the groundplane (g) and coupled lines is too small. Either increase the bitmap size (-b option), or make g at least %f\n",gridsize);
+ exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ if(pcb->h == 0)
+ {
+ fprintf(stderr,"Error #14. The thickness of the dielectric of Er2 (h) is too small. Either increase the bitmap size (-b option), or make h at least %f\n",gridsize);
+ exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ check_error(pcb->WW,pcb->W,best_grid_size,"W");
+ check_error(pcb->HH,pcb->H,best_grid_size,"H");
+ check_error(pcb->ww,pcb->w,best_grid_size,"w");
+ check_error(pcb->ss,pcb->s,best_grid_size,"s");
+ check_error(pcb->gg,pcb->g,best_grid_size,"g");
+ check_error(pcb->hh,pcb->h,best_grid_size,"h");
+ check_error(pcb->tt,pcb->t,best_grid_size,"t");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include "definitions.h"
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+extern double DD, ww, hh, xx, yy, Er1;
+extern int D, w, h, x, y;
+extern int lowest;
+extern int highest, verbose;
+
+void convert_create_bmp_for_rect_in_circ_dimensions_to_integers(int accuracy_level)
+{
+ int best_D=-1, best_w=-1, best_h=-1, best_x=-1, best_y=-1;
+ int min=-1, max=-1;
+ int i;
+ double error, error_min=VERY_LARGE, gridsize, best_grid_size=-1;
+
+ /* scale grid size, according to a command line option */
+ lowest*=(int) 0.5+pow(2.0,(double) accuracy_level);
+ highest*=(int) 0.5+pow(2.0,(double) accuracy_level);
+
+ for(i=min;i<=max;++i)
+ {
+ /* Try various combinations for D, w, h, x, & y etc */
+ gridsize=DD/i;
+ D=(int)(DD/gridsize + 0.5);
+ w=(int)(ww/gridsize + 0.5);
+ h=(int)(hh/gridsize + 0.5);
+ x=(int)(xx/gridsize + 0.5);
+ y=(int)(yy/gridsize + 0.5);
+ error=0.0;
+ error+=pow((DD-D*gridsize)/DD,2.0); /* relative error in D */
+ error+=pow((ww-w*gridsize)/ww,2.0);
+ error+=pow((hh-h*gridsize)/hh,2.0);
+ if(x>0)
+ error+=pow((xx-x*gridsize)/xx,2.0);
+ if(y>0)
+ error+=pow((yy-y*gridsize)/yy,2.0);
+ if(error < error_min-TINY)
+ {
+ error_min=error;
+ best_D=D;
+ best_w=w;
+ best_h=h;
+ best_x=x;
+ best_y=y;
+ best_grid_size=gridsize;
+ }
+ }
+ D=best_D;
+ w=best_w;
+ h=best_h;
+ x=best_x;
+ y=best_y;
+ if(verbose==TRUE)
+ {
+ fprintf(stderr,"error_min=%.16f\n",error_min);
+ fprintf(stderr,"User requested: D=%f w=%f h=%f x=%f y=%f Er1=%f\n\n",DD,ww,hh,xx,yy,Er1);
+ fprintf(stderr,"Internally the program is using the following grid:\n");
+ fprintf(stderr,"D=%d w=%d h=%d x=%d y=%d \n", D, w, h, x, y);
+ fprintf(stderr,"which equates to dimensions of D=%f w=%f h=%f x=%f y=%f\n", D*gridsize, w*gridsize, h*gridsize, x*gridsize,
+ y*gridsize);
+ if(error_min > TINY)
+ {
+ fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
+ fprintf(stderr,"W=%f w=%f h=%f x=%f y=%f (mm, inches or whatever)\n",D*best_grid_size,w*best_grid_size,h*best_grid_size,x*best_grid_size,y*best_grid_size);
+ fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
+ fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
+ }
+ }
+ check_error(DD,D,best_grid_size,"D");
+ check_error(ww,w,best_grid_size,"w");
+ check_error(hh,h,best_grid_size,"h");
+ check_error(xx,x,best_grid_size,"x");
+ check_error(yy,y,best_grid_size,"y");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+extern double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2;
+extern int W, H, a, b, c, d, w, h;
+extern int verbose;
+extern int lowest;
+extern int highest;
+
+void convert_create_bmp_for_rect_in_rect_dimensions_to_integers(int accuracy_level)
+{
+ /* A number of paramters are set to -1, as otherwise the compiler
+ complaings they may be used unitialised. It is wise to check they
+ are not -1 before assining a variable to their contents,
+ but I can't be bothered. */
+ int best_W=-1, best_H=-1, best_a=-1, best_b=-1, best_c=-1;
+ int best_d=-1, best_w=-1, best_h=-1;
+ int min, max;
+ int i;
+ double max_gridsize, min_gridsize;
+ double error, error_min=VERY_LARGE, gridsize=-1, best_grid_size=-1;
+
+ /* scale grid size, according to a command line option */
+ /*lowest*=(int) 0.5+pow(2,accuracy_level); */
+ /*highest*=(int) 0.5+pow(2,accuracy_level); */
+ lowest*=1<<accuracy_level;
+ highest*=1<<accuracy_level;
+
+ max_gridsize=sqrt(WW*HH/(double )lowest); /* minimum dimension in m */
+ min_gridsize=sqrt(WW*HH/(double )highest);
+ if(WW>=HH)
+ {
+ min=WW/max_gridsize;
+ max=WW/min_gridsize;
+ }
+ else
+ {
+ min=HH/max_gridsize;
+ max=HH/min_gridsize;
+ }
+ for(i=min;i<=max;++i)
+ {
+ /* Try various combinations for H,a,b,c, etc */
+ if(W>H)
+ gridsize=WW/i;
+ else
+ gridsize=HH/i;
+ W=(int)(WW/gridsize + 0.5);
+ H=(int)(HH/gridsize + 0.5);
+ a=(int)(aa/gridsize + 0.5);
+ b=(int)(bb/gridsize + 0.5);
+ c=(int)(cc/gridsize + 0.5);
+ d=(int)(dd/gridsize + 0.5);
+ w=(int)(ww/gridsize + 0.5);
+ h=(int)(hh/gridsize + 0.5);
+ error=0.0;
+ error+=pow((WW-W*gridsize)/WW,2.0); /* relative error in W */
+ error+=pow((HH-H*gridsize)/HH,2.0);
+ if(a>0)
+ error+=pow((aa-a*gridsize)/aa,2.0);
+ if(b>0)
+ error+=pow((bb-b*gridsize)/bb,2.0);
+ if(c>0)
+ error+=pow((cc-c*gridsize)/cc,2.0);
+ if(d>0)
+ error+=pow((dd-d*gridsize)/dd,2.0);
+ if(w>0)
+ error+=pow((ww-w*gridsize)/ww,2.0);
+ if(h>0)
+ error+=pow((hh-h*gridsize)/hh,2.0);
+ if(error < (error_min-TINY))
+ {
+ error_min=error;
+ best_W=W;
+ best_H=H;
+ best_a=a;
+ best_b=b;
+ best_c=c;
+ best_d=d;
+ best_w=w;
+ best_h=h;
+ best_grid_size=gridsize;
+ }
+ }
+ W=best_W;
+ H=best_H;
+ a=best_a;
+ b=best_b;
+ c=best_c;
+ d=best_d;
+ w=best_w;
+ h=best_h;
+ if(verbose==TRUE)
+ {
+ fprintf(stderr,"error_min=%.16f\n",error_min);
+ fprintf(stderr,"User requested: WW=%f HH=%f a=%f b=%f c=%f\nd=%f w=%f h=%fEr1=%f Er2=%f\n\n",WW,HH,aa,bb,cc,dd,ww,hh,Er1,Er2);
+ fprintf(stderr,"Internally the program is using the following grid:\n");
+ fprintf(stderr,"W=%d H=%d a=%d b=%d c=%d d=%d w=%d h=%d. \nThe grid size is %f mm, inches or whatever\n\n", W, H, a, b, c, d, w, h,best_grid_size);
+ if(error_min > TINY)
+ {
+ fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
+ fprintf(stderr,"W=%f H=%f a=%f b=%f c=%f d=%f\nw=%f h=%f (mm, inches or whatever)\n",W*best_grid_size,H*best_grid_size,a*best_grid_size,b*best_grid_size,c*best_grid_size,d*best_grid_size,w*best_grid_size,h*best_grid_size);
+ fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
+ fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
+ }
+ }
+ if(b == 0)
+ {
+ fprintf(stderr,"Error #12. The gap between the two conductors (b) is too small. Either increase the bitmap size (-b option), or make b at least %f\n",gridsize);
+ exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ if(c == 0)
+ {
+ fprintf(stderr,"Error #13. The thickness of the inner conductor (c) is too small. Either increase the bitmap size (-b option), or make c at least %f\n",gridsize);
+ exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ if(h == 0)
+ {
+ fprintf(stderr,"Error #14. The thickness of the dielectric of Er2 (h) is too small. Either increase the bitmap size (-b option), or make h at least %f\n",gridsize);
+ exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
+ }
+ check_error(WW,W,best_grid_size,"W");
+ check_error(HH,H,best_grid_size,"H");
+ check_error(aa,a,best_grid_size,"a");
+ check_error(bb,b,best_grid_size,"b");
+ check_error(cc,c,best_grid_size,"c");
+ check_error(dd,d,best_grid_size,"d");
+ check_error(ww,w,best_grid_size,"w");
+ check_error(hh,h,best_grid_size,"h");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program widestrip is a pre-processor for atlc. It produces bitmaps
+of a thin strip, between two wide plates */
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+int verbose=0;
+
+extern int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ fprintf(stderr,"Sorry, create_any_bitmap is under construction and not finished\n");
+ exit(1);
+ if(argc !=2){
+ usage_create_any_bitmap();
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+ }
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#include "exit_codes.h"
+#include "definitions.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+double aa, bb, cc, dd, hh, ww, DD, WW, HH, Er1, Er2;
+int a, b, c, d, h, w, D, W, H;
+
+int verbose=FALSE;
+int lowest=50, highest=100;
+
+/* The following are only needed so that I can link in both
+convert_create_bmp_for_circ_in_circ_dimensions_to_integers.c
+and convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
+*/
+
+
+int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ int bmp_size=DEFAULT_BMP_SIZE;
+ int q;
+ FILE *image_data_fp;
+ char *filename;
+ struct transmission_line_properties not_used;
+ double Zo, x;
+ filename=string(0,1010);
+
+ /* The following line just prevents a warning from the compiler (SGI's to
+ be precise). There is not reason to set W=1 */
+ not_used.W=1;
+
+ while((q=get_options(argc,argv,"Cb:v")) != -1)
+ switch (q)
+ {
+ case 'C':
+ print_copyright((char *) "2002");
+ exit_with_msg_and_exit_code("",OKAY);
+ break;
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'v':
+ verbose=TRUE;
+ break;
+ case '?':
+ break;
+ }
+ if(argc-my_optind == 5)
+ {
+ DD=atof(argv[my_optind]);
+ WW=HH=DD;
+ dd=atof(argv[my_optind+1]);
+ hh=atof(argv[my_optind+2]);
+ Er1=atof(argv[my_optind+3]);
+ if( dd > DD)
+ exit_with_msg_and_exit_code("Error: The Inner conductor is larger than the outer conductor!!!", 1);
+ else if (DD == dd)
+ exit_with_msg_and_exit_code("Error: The inner and outer conductors are of the same size!!!", 1);
+ else if (dd/2 + hh >= DD/2)
+ exit_with_msg_and_exit_code("Error: The inner and outer conductors will touch!!!", 1);
+ filename=strncpy(filename, argv[my_optind+4],1000);
+ if( (image_data_fp=fopen(filename,"wb")) == NULL)
+ exit_with_msg_and_exit_code("Can't open file in create_bmp_for_circ_in_circ.c", CANT_OPEN_FOR_WRITING);
+ check_parameters_of_create_bmp_for_circ_in_circ();
+ convert_create_bmp_for_circ_in_circ_dimensions_to_integers(bmp_size);
+ write_bitmap(image_data_fp, not_used);
+ x=(double) (d*d+D*D-4*h*h)/(2*D*d);
+ Zo=59.9585*log(x+sqrt(x*x-1))/sqrt(Er1);
+ Zo=log(x+sqrt(x*x-1))/(1000*sqrt(EPSILON_0)*sqrt(Er1)*sqrt(10*M_PI));
+
+ if(verbose == TRUE)
+ {
+ printf("DD=%f dd=%f hh=%f x=%f\n",DD, dd, hh, x);
+ printf("D=%d d=%d h=%d x=%f\n",D, d, h, x);
+ printf("Zo is theoretically %f Ohms\n",Zo);
+ }
+ }
+ else
+ usage_create_bmp_for_circ_in_circ();
+ free_string(filename,0,1010);
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
+inner and rectangular outer */
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+double dd, WW, HH, xx, yy, Er1;
+int d, W, H, x, y;
+
+/* The following are only needed, so I can link in two
+convert_circ_in_circ_dimensions_to_integers.c
+and
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
+*/
+
+double Er2;
+
+int verbose=FALSE;
+int lowest=2500, highest=10000;
+int fileflag=FALSE;
+
+
+extern int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ int bmp_size=DEFAULT_BMP_SIZE;
+ int q;
+ struct transmission_line_properties not_used;
+ FILE *image_data_fp=stdout;
+
+ /* The following just keeps the compiler happy, as not_used is
+ not used in this case */
+ not_used.W=1;
+
+ while((q=get_options(argc,argv,"b:v")) != -1)
+ switch (q)
+ {
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'v':
+ verbose=TRUE;
+ break;
+ case '?':
+ printf("read a ? exiting\n");
+ }
+ if(argc-my_optind ==7)
+ {
+ dd=atof(argv[my_optind]);
+ WW=atof(argv[my_optind+1]);
+ HH=atof(argv[my_optind+2]);
+ xx=atof(argv[my_optind+3]);
+ yy=atof(argv[my_optind+4]);
+ Er1=atof(argv[my_optind+5]);
+ if((image_data_fp=fopen(argv[my_optind+6],"wb"))==NULL)
+ exit_with_msg_and_exit_code("Can't open file in create_bmp_for_circ_in_rect.c",CANT_OPEN_FOR_WRITING);
+ check_parameters_of_create_bmp_for_circ_in_rect();
+ convert_create_bmp_for_circ_in_rect_dimensions_to_integers(bmp_size);
+ write_bitmap(image_data_fp, not_used);
+ }
+ else
+ usage_create_bmp_for_circ_in_rect();
+ return(0);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
+inner and rectangular outer */
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+int W, H;
+double Er1, Er2;
+int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ struct transmission_line_properties pcb;
+ FILE *image_data_fp;
+ int q;
+ pcb.verbose_level=0;
+
+ pcb.bmp_size=DEFAULT_BMP_SIZE;
+ pcb.WW=-1;
+ pcb.HH=-1;
+
+ while((q=get_options(argc,argv,"b:W:H:v")) != -1)
+ switch (q)
+ {
+ case 'b':
+ pcb.bmp_size=atol(my_optarg);
+ break;
+ case 'H':
+ pcb.HH=atof(my_optarg);
+ break;
+ case 'W':
+ pcb.WW=atof(my_optarg);
+ break;
+ case 'v':
+ pcb.verbose_level++;
+ break;
+ case '?':
+ printf("read a ? exiting\n");
+ }
+ if(argc-my_optind ==8)
+ {
+ pcb.ww=atof(argv[my_optind]);
+ pcb.ss=atof(argv[my_optind+1]);
+ pcb.gg=atof(argv[my_optind+2]);
+ pcb.hh=atof(argv[my_optind+3]);
+ pcb.tt=atof(argv[my_optind+4]);
+ pcb.Er1=atof(argv[my_optind+5]);
+ pcb.Er2=atof(argv[my_optind+6]);
+ Er1=pcb.Er1;
+ Er2=pcb.Er2;
+ if(pcb.WW<0)
+ pcb.WW=6*pcb.hh+6*pcb.gg+6*pcb.ww+4*pcb.ss;
+ if(pcb.HH<0)
+ pcb.HH=6*(pcb.hh+pcb.tt);
+ /* Do some sanaity checks */
+ check_parameters_of_create_bmp_for_microstrip_coupler(pcb);
+ convert_create_create_bmp_for_coupled_microstrip_dimensions_to_integers(&pcb);
+ W=pcb.W;
+ H=pcb.H;
+ image_data_fp=fopen(argv[my_optind+7],"wb");
+ /*fprintf(stderr,"ints W=%d H=%d w=%d s=%d g=%d h=%d t=%d\n",pcb.W,pcb.H,pcb.w,pcb.s,pcb.g,pcb.h,pcb.t);*/
+ write_bitmap(image_data_fp, pcb);
+ }
+ else
+ usage_create_bmp_for_microstrip_coupler();
+ return(0);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
+inner and rectangular outer */
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2;
+int W, H, a, b, c, d, w, h, D;
+/* The following are only needed, so I can link in two
+convert_circ_in_circ_dimensions_to_integers.c
+and
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
+*/
+
+int verbose=FALSE;
+int lowest=2500, highest=10000;
+int fileflag=FALSE;
+
+extern int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ int bmp_size=DEFAULT_BMP_SIZE;
+ int q;
+ FILE *image_data_fp;
+ struct transmission_line_properties not_used;
+
+ /* The following line is just to keep SGI's compiler happy. */
+ not_used.W=1;
+
+ while((q=get_options(argc,argv,"b:f:v")) != -1)
+ switch (q)
+ {
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'v':
+ verbose=TRUE;
+ break;
+ case '?':
+ printf("read a ? exiting\n");
+ }
+ if(argc-my_optind ==6)
+ {
+ WW=atof(argv[my_optind]);
+ HH=atof(argv[my_optind+1]);
+ ww=atof(argv[my_optind+2]);
+ cc=atof(argv[my_optind+3]);
+ Er1=atof(argv[my_optind+4]);
+ if((image_data_fp=fopen(argv[my_optind+5],"wb"))==NULL)
+ {
+ fprintf(stderr,"Can't write to %s. Exiting ...\n",my_optarg);
+ exit_with_msg_and_exit_code("",CANT_OPEN_FOR_WRITING);
+ }
+
+ /* To make the program easier to write, rect_cen_in_rect uses
+ the same variables as create_bmp_for_rect_in_rect. We just calculate the
+ values not given (a, b, d, h and Er1 from those given
+ (W, H, c and w) */
+
+ aa=(WW-ww)/2.0;
+ bb=(WW-ww)/2.0;
+ dd=ww;
+ hh=(HH-cc)/2.0;
+ Er2=Er1;
+ check_parameters_of_create_bmp_for_rect_in_rect();
+ convert_create_bmp_for_rect_in_rect_dimensions_to_integers(bmp_size);
+ write_bitmap(image_data_fp, not_used);
+ }
+ else
+ usage_create_bmp_for_rect_cen_in_rect();
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern int main(int argc, char **argv) /* Read parameters from command line here */
+{
+#ifdef GGG
+ int bmp_size=DEFAULT_BMP_SIZE;
+ int q;
+ FILE *image_data_fp=stdout;
+ struct transmission_line_properties not_used;
+
+ while((q=get_options(argc,argv,"b:f:v")) != -1)
+ switch (q)
+ {
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'v':
+ verbose=TRUE;
+ break;
+ case '?':
+ printf("read a ? exiting\n");
+ }
+ if(argc-my_optind ==6)
+ {
+
+ WW=atof(argv[my_optind]);
+ HH=atof(argv[my_optind+1]);
+ ww=atof(argv[my_optind+2]);
+ cc=atof(argv[my_optind+3]);
+ Er1=atof(argv[my_optind+4]);
+ if((image_data_fp=fopen(argv[my_optind+5],"wb"))==NULL)
+ exit_and_error("Can't open file for writing",CANT_OPEN_FOR_WRITING);
+
+ /* To make the program easier to write, rect_cen_in_rect uses
+ the same variables as create_bmp_for_rect_in_rect. We just calculate the
+ values not given (a, b, d, h and Er1 from those given
+ (W, H, c and w) */
+
+ aa=(WW-ww)/2.0;
+ bb=(WW-ww)/2.0;
+ dd=ww;
+ hh=(HH-cc)/2.0;
+ Er2=Er1;
+ check_parameters_of_create_bmp_for_rect_in_rect();
+ convert_create_bmp_for_rect_in_rect_dimensions_to_integers(bmp_size);
+ write_bitmap(image_data_fp, not_used);
+ }
+ else
+ usage_create_bmp_for_rect_cen_in_rect();
+ return(0);
+#endif
+ exit_with_msg_and_exit_code("This program is not implemented", PROGRAM_NOT_IMPLEMENTED);
+return(0);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
+inner and rectangular outer */
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+
+double DD, ww, hh, xx, yy, Er1, Er2;
+int D, w, h, x, y, W, H;
+
+int verbose=FALSE;
+int lowest=2500, highest=10000;
+int fileflag=FALSE;
+
+extern int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ int bmp_size=DEFAULT_BMP_SIZE;
+ int q;
+ struct transmission_line_properties not_used;
+ FILE *image_data_fp=stdout;
+
+ not_used.W=1; /* Keeps SGI's MipsPro compiler happy */
+
+ while((q=get_options(argc,argv,"b:f:v")) != -1)
+ switch (q)
+ {
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'f':
+ /* By default bitmap image goes to stdout, but we can send to a file
+ with the -f option. */
+ if((image_data_fp=fopen(my_optarg,"wb"))==NULL)
+ {
+ fprintf(stderr,"Can't write to %s. Exiting ...\n",my_optarg);
+ exit_with_msg_and_exit_code("",CANT_OPEN_FOR_WRITING);
+ }
+ fileflag=TRUE;
+ break;
+ case 'v':
+ verbose=TRUE;
+ break;
+ case '?':
+ printf("read a ? exiting\n");
+ }
+ /*usage_create_bmp_for_rect_in_circ();*/
+ fprintf(stderr,"SORRY create_bmp_for_rect_in_circ IS NOT YET WORKING, SO HAS BEEN DISABLED. IT\n");
+ exit_with_msg_and_exit_code("BE ENABLED ON A FORTHCOMING VERSION",PROGRAM_NOT_IMPLEMENTED);
+ if(argc-my_optind == 6)
+ {
+ DD=atof(argv[my_optind]);
+ ww=atof(argv[my_optind+1]);
+ hh=atof(argv[my_optind+2]);
+ xx=atof(argv[my_optind+3]);
+ yy=atof(argv[my_optind+4]);
+ Er1=atof(argv[my_optind+5]);
+ check_parameters_of_create_bmp_for_rect_in_circ();
+ convert_create_bmp_for_rect_in_circ_dimensions_to_integers(bmp_size);
+ write_bitmap(image_data_fp, not_used);
+ }
+ else
+ usage_create_bmp_for_rect_in_circ();
+ return(0);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
+inner and rectangular outer */
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2, DD;
+int W, H, a, b, c, d, w, h;
+int verbose;
+
+/* The following are only needed, so I can link in two
+convert_circ_in_circ_dimensions_to_integers.c
+and
+convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
+*/
+
+int lowest=2500, highest=10000;
+int fileflag=FALSE;
+
+int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ int bmp_size=DEFAULT_BMP_SIZE;
+ int q;
+ FILE *image_data_fp=stdout;
+ struct transmission_line_properties not_used_currently;
+ int verbose_level=0;
+
+ /* The following jut keeps compilers happy. SGI's is very fussy!! */
+
+ not_used_currently.W=1;
+
+ while((q=get_options(argc,argv,"b:v")) != -1)
+ switch (q)
+ {
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'v':
+ verbose_level=1;
+ break;
+ case '?':
+ printf("read a ? exiting\n");
+ }
+ if(argc-my_optind ==11)
+ {
+ WW=atof(argv[my_optind]);
+ HH=atof(argv[my_optind+1]);
+ aa=atof(argv[my_optind+2]);
+ bb=atof(argv[my_optind+3]);
+ cc=atof(argv[my_optind+4]);
+ dd=atof(argv[my_optind+5]);
+ ww=atof(argv[my_optind+6]);
+ hh=atof(argv[my_optind+7]);
+ Er1=atof(argv[my_optind+8]);
+ Er2=atof(argv[my_optind+9]);
+ if((image_data_fp=fopen(argv[my_optind+10],"wb"))==NULL)
+ exit_with_msg_and_exit_code("Cant't open file for writing in create_bmp_for_rect_in_rect.c",CANT_OPEN_FOR_WRITING);
+ if(verbose_level==1)
+ printf("WW=%f HH=%f aa=%f bb=%f cc=%f dd=%f ww=%f hh=%f Er1=%f Er2=%f\n",WW,HH,aa,bb,cc,dd,ww,hh,Er1,Er2);
+ check_parameters_of_create_bmp_for_rect_in_rect();
+ convert_create_bmp_for_rect_in_rect_dimensions_to_integers(bmp_size);
+ if(verbose_level==1)
+ printf("W=%d H=%d a=%d b=%d c=%d d=%d w=%d h=%d\n",W,H,a,b,c,d,w,h);
+ write_bitmap(image_data_fp, not_used_currently);
+ }
+ else
+ usage_create_bmp_for_rect_in_rect();
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The following calculates the odd and even mode impedances between two
+zero thickness strips of width w, spaced a distance s between two
+groundplanes of spacing h. */
+#include "config.h"
+
+
+#define RATIO 8
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+double WW, HH, ww, Er1, Er2;
+static double ss;
+int W, H, s, w, verbose=FALSE;
+
+int main(int argc, char **argv)
+{
+ double er, return_error;
+ double Zodd, Zeven, Zo;
+ int bmp_size=DEFAULT_COUPLER_BMP_SIZE, q;
+ FILE *image_data_fp;
+ struct transmission_line_properties optimise;
+ struct transmission_line_properties not_used;
+
+ not_used.W=1; /* keep MipsPro compiler happy on IRIX */
+
+ while((q=get_options(argc,argv,"Cb:v")) != -1)
+ switch (q)
+ {
+ case 'C':
+ print_copyright((char *) "2002");
+ exit_with_msg_and_exit_code("",OKAY);
+ break;
+ case 'b':
+ bmp_size=atol(my_optarg);
+ break;
+ case 'v':
+ verbose++;
+ break;
+ }
+ if( bmp_size < 6 || (argc-my_optind != 5) || bmp_size>28)
+ {
+ usage_create_bmp_for_stripline_coupler();
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+ }
+ HH=atof(argv[my_optind]);
+ ww=atof(argv[my_optind+1]);
+ ss=atof(argv[my_optind+2]);
+ if(HH<0 || ww <0 || ss<0)
+ {
+ fprintf(stderr,"Sorry, W, H and s must all be greater than 0\n");
+ exit_with_msg_and_exit_code("",DIMENSION_LESS_THAN_ZERO);
+ }
+ er=atof(argv[my_optind+3]);
+ Er1=er;
+ Er2=er;
+ if(er < 1.0)
+ {
+ fprintf(stderr,"Sorry, you can't have a dielectric constand Er of less than 1.0\n");
+ exit_with_msg_and_exit_code("Sorry, you can't have a dielectric constand Er of less than 1.0",PERMITTIVITY_LESS_THAN_1);
+ }
+ if( (image_data_fp=fopen(argv[my_optind+4],"wb")) ==NULL)
+ exit_with_msg_and_exit_code("Can't open binary file for writing",CANT_OPEN_FOR_WRITING);
+ WW=2.0*ww+ss+RATIO*HH;
+ optimise.float_values[0]=WW ; /* minimum width as a float*/
+ optimise.float_values[1]=HH; /* height in floats */
+ optimise.float_values[2]=ww; /* stripline width */
+ optimise.float_values[3]=ss; /* spacing between the strips */
+
+ optimise.importance[0]=NOT_IMPORTANT; /* W is non critical */
+ optimise.importance[1]=MOST_IMPORTANT; /* H is critical */
+ optimise.importance[2]=IMPORTANT; /* w is critical */
+ optimise.importance[3]=IMPORTANT; /* s is most critical */
+
+ optimise.odd_or_even[0]=DONT_CARE; /* W can be odd or even */
+ optimise.odd_or_even[1]=ODD; /* H must be even */
+ optimise.odd_or_even[2]=DONT_CARE; /* w can be odd or even */
+ optimise.odd_or_even[3]=DONT_CARE; /* s can be odd or even */
+
+ /* We will now optimise for the 4 parameters W, H, w and s, forcing H
+ to be odd, and not bothering what the width is, as long as its about
+ right. */
+
+ return_error=calculate_integer_values(&optimise, 4, bmp_size);
+ if(verbose >=2)
+ printf("error returned from calculate_integer_values=%g\n", return_error);
+ W=optimise.best[0];
+ H=optimise.best[1];
+ w=optimise.best[2];
+ s=optimise.best[3];
+ write_bitmap(image_data_fp, not_used);
+ if(verbose >= 1)
+ {
+ calculate_Zodd_and_Zeven(&Zodd, &Zeven, &Zo, ww, HH, ss, er);
+ printf("The actual dimensions you gave have theoretical imedances of:\n");
+ printf(" Zodd= %f Zeven= %f Zo= %f (Ohms) ww=%f HH=%f ss=%f er=%f\n\n", Zodd, Zeven, Zo,ww,HH,ss,er);
+ calculate_Zodd_and_Zeven(&Zodd, &Zeven, &Zo, (double) w, (double) H-10, (double) s, er);
+ printf("The bitmap produced (which approximates what you want) should have:\n");
+ printf(" Zodd= %f Zeven= %f Zo= %f (Ohms)\n", Zodd, Zeven, Zo);
+ }
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The program widestrip is a pre-processor for atlc. It produces bitmaps
+of a thin strip, between two wide plates */
+#include "config.h"
+
+#define RATIO 4 /* W = H*RATIO+w */
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+int verbose=0;
+
+extern int main(int argc, char **argv) /* Read parameters from command line here */
+{
+ int W, H, w, size_of_image, q;
+ int user_requires_effectively_infinite_width=FALSE;
+ double Zo;
+ unsigned char *unaligned_image_vector, *aligned_image_vector;
+ FILE *fp;
+#ifndef HAVE_MEMSET
+ int memory_location;
+#endif
+
+ while((q=get_options(argc,argv,"Cvi")) != -1)
+ switch (q)
+ {
+ case 'C':
+ print_copyright((char *) "2002");
+ exit_with_msg_and_exit_code("",OKAY);
+ break;
+ case 'i':
+ user_requires_effectively_infinite_width=TRUE;
+ break;
+ case 'v':
+ verbose++;
+ break;
+ case '?':
+ usage_create_bmp_for_symmetrical_stripline();
+ break;
+ } /* End of the switch statement */
+ if(argc-my_optind !=4)
+ {
+ usage_create_bmp_for_symmetrical_stripline();
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+ }
+ W=atoi(argv[my_optind]);
+ H=atoi(argv[my_optind+1])+2*BORDER;
+ if(H%2==0) /* make it odd, so that the inner can sit in the middle */
+ {
+ H++;
+ printf("H needs to be odd, so the inner conductor (1 pixel high) will fit\
+ centrally. Hence H has been increased to %d pixels\n",H);
+ }
+ w=atoi(argv[my_optind+2]);
+ if ((W < RATIO*H + w) && user_requires_effectively_infinite_width==TRUE)
+ {
+ fprintf(stderr,"For this to be a valid test of atlc, the width should be\n");
+ fprintf(stderr,"infinite. Since you used the -i option (indicationg you\n");
+ fprintf(stderr,"want the width W to effectively infinite, W must exceed w + %dxH.\n",RATIO);
+ fprintf(stderr,"Therefore W has been is set to %d\n",RATIO*H+w );
+ W=RATIO*H+w;
+ }
+ if(W <= 5 || H <= 5)
+ exit_with_msg_and_exit_code("W or H is under 6, which is stupid (remember these are pixels !! in this program)",W_OR_H_TOO_SMALL);
+ aligned_image_vector=ustring(0,(W+3)*3*H+100);
+ unaligned_image_vector=ustring(0,(W+3)*3*H+100);
+
+ if((fp=fopen(argv[my_optind+3],"wb")) == NULL)
+ {
+ exit_with_msg_and_exit_code("Error in opening file in create_bmp_for_symmetrical_stripline",CANT_OPEN_FOR_WRITING);
+ }
+ aligned_image_vector=ustring(0,(W+3)*3*H);
+ unaligned_image_vector=ustring(0,(W+3)*3*H);
+
+#ifdef HAVE_MEMSET
+ (void) memset((void *) (aligned_image_vector),0x00,(size_t) W*H*3);
+#else
+ for(memory_location=0; memory_location < W*H*3; memory_location++)
+ aligned_image_vector[memory_location]=0;
+#endif
+
+ /* Fill a vector with */
+ fill_image_vector_for_thin_strip(W,H,w,unaligned_image_vector);
+ size_of_image=align_bitmap_image(W, H, unaligned_image_vector,aligned_image_vector);
+
+ write_bitmap_out(aligned_image_vector, fp, size_of_image, W, H);
+ /* write_bitmap_out closes the file pointer */
+ Zo=calculate_symmetrical_stripline_impedance(H-2*BORDER,w);
+ if(verbose >=1 && W >= RATIO*H + w )
+ printf("Zo is theoretically %f Ohms (assuming W is infinite)\n",Zo);
+ else if (verbose >=1 && W < RATIO*H + w){
+ exit_with_msg_and_exit_code("A theoretical value for Zo can't be computed as the width W is too small",1);
+ }
+ return(OKAY); /* This does not get executed, but keeps the compiler
+ happier, as otherwise it gives a warning about control reaching the
+ end of a non-void function */
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#define EXIT_READ_FAILURE
+
+#define FREE_ARG char*
+#define NR_END 1
+
+#define CONDUCTOR_MINUS_ONE_V 5
+#define CONDUCTOR_ZERO_V 10
+#define CONDUCTOR_PLUS_ONE_V 15
+
+#define CONDUCTOR_FLOATING 20
+
+#define METAL_LEFT 25
+#define METAL_RIGHT 30
+#define METAL_ABOVE 35
+#define METAL_BELOW 40
+#define METAL_BELOW_AND_LEFT 45
+#define METAL_BELOW_AND_RIGHT 50
+#define METAL_ABOVE_AND_LEFT 55
+#define METAL_ABOVE_AND_RIGHT 60
+
+#define DIELECTRIC 65 /* not for oddity */
+#define ORDINARY_INTERIOR_POINT 70
+
+#define TOP_LEFT_CORNER 75
+#define BOTTOM_RIGHT_CORNER 80
+#define TOP_RIGHT_CORNER 85
+#define BOTTOM_LEFT_CORNER 90
+#define ORDINARY_POINT_BOTTOM_EDGE 95
+#define ORDINARY_POINT_TOP_EDGE 100
+#define ORDINARY_POINT_LEFT_EDGE 105
+#define ORDINARY_POINT_RIGHT_EDGE 110
+#define DIFFERENT_DIELECTRIC_LOCALLY 115
+
+#define DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT 120
+#define DIFFERENT_DIELECTRIC_BELOW_AND_LEFT 125
+#define DIFFERENT_DIELECTRIC_BELOW_AND_RIGHT 135
+#define DIFFERENT_DIELECTRIC_VERTICALLY 140
+#define DIFFERENT_DIELECTRIC_HORIZONTALLY 145
+#define DIFFERENT_DIELECTRIC_BELOW 150
+#define DIFFERENT_DIELECTRIC_LEFT 155
+#define DIFFERENT_DIELECTRIC_RIGHT 160
+#define DIFFERENT_DIELECTRIC_ABOVE_AND_LEFT 165
+
+#define UNDEFINED_ODDITY 255
+
+/* The following two determine what happens when a coupler is present
+and the voltages have to be swapped from negative to positive in the
+simulation. */
+#define ITERATIONS 100
+#define POS_TO_NEG 1
+#define NEG_TO_POS -1
+#define METAL_ER 1e9
+
+#define DONT_ZERO_ELEMENTS 0
+#define ZERO_ELEMENTS_FIRST 1
+
+#ifndef TRUE
+#define TRUE 1
+#define FALSE 0
+#endif
+
+#define DONT_CARE 0
+#define ODD 1
+#define EVEN 2
+
+#define Vij_TO_Vij 1
+#define VijB_TO_Vij 2
+#define Vij_TO_VijB 3
+
+#define MAXIMUM_PROCESSING_DEVICES 1024
+#define MAX_DIFFERENT_PERMITTIVITIES 10000
+#define MAX_ER 12.0
+
+#define COLOUR 0
+#define MONOCHROME 1
+#define MIXED 2
+#define Z0 1
+
+#define Z_ODD_SINGLE_DIELECTRIC 1
+#define Z_EVEN_SINGLE_DIELECTRIC 2
+#define Z_ODD_MULTIPLE_DIELECTRIC 3
+#define Z_EVEN_MULTIPLE_DIELECTRIC 4
+
+#define Z_ALL 5
+
+/* The value of EPSILON_0 is taken from the UK National Physical
+Laboratory's list of physical constants found on the web. */
+
+#define EPSILON_0 8.854187817e-12
+#define MU_0 M_PI*4e-7
+#define MAX_THREADS 4
+#define BORDER 5 /* The border to put around images. 1 is minimum, but 5 looks better */
+
+#define TINY 1e-12
+#define VERY_LARGE 1e15
+#define DEFAULT_BMP_SIZE 6
+#define DEFAULT_COUPLER_BMP_SIZE 18
+
+#define IMAGE_FIDDLE_FACTOR 2.0
+#define ACCEPTABLE_ERROR 0.02
+#define UNACCEPTABLE_ERROR 0.05
+
+#define RECT_IN_RECT 1
+#define CIRC_IN_CIRC 2
+#define CIRC_IN_RECT 3
+#define RECT_IN_CIRC 4
+
+#define DEFAULT_GMIN 0.5
+#define DEFAULT_GMAX 5.0
+#define DEFAULT_GSTEP 0.5
+
+#define DEFAULT_SMIN 0.5
+#define DEFAULT_SMAX 5.0
+#define DEFAULT_SSTEP 0.5
+
+#define DEFAULT_WMIN 0.5
+#define DEFAULT_WMAX 5.0
+#define DEFAULT_WSTEP 0.5
+
+
+#ifdef ENABLE_MPI
+#define MAX_PES 256
+#define MSG_TAG_WIDTH_HEIGHT 1
+#define MSG_TAG_STRIP_PARAMS 2
+#define MSG_TAG_NODE_TYPE 3
+#define MSG_TAG_ER 4
+#define MSG_TAG_CONTROL 5
+#define MSG_TAG_ITERATIONS 6
+#define MSG_TAG_VIJ 7
+#define MSG_TAG_VIJ_LBORDER 8
+#define MSG_TAG_VIJ_RBORDER 9
+#define MSG_TAG_ENERGY 10
+#define MSG_TAG_DIELECTRICS 11
+
+#define CONTROL_VALUE_RECEIVE_DATA 0
+#define CONTROL_VALUE_SEND_DATA 1
+#define CONTROL_VALUE_DO_ITERATIONS 2
+#define CONTROL_VALUE_EXIT 3
+#endif /* ENABLE_MPI */
+
+
+extern char *my_optarg;
+/* I needed to invent add my_ in front of the usual name for optind,
+opterr, optopt etc, since they are defined by the system, and I'm using
+a local package_version of getopts (get_options) so it exists with the PC too.
+Most systems do not seem to mind if these names exist or not, but a
+Power Machintosh powerpc running Darwin Kernel Package_version 5.3 gave this as
+a warning. Hence I'll avoid the problem by adding my_ */
+
+extern int my_optind, my_opterr, my_optopt;
+
+struct transmission_line_properties{
+double WW, HH, ww, ss, gg, hh, tt, Er1, Er2;
+int W, H, w, s, g, h, t, bmp_size;
+
+int verbose_level; /* 0, 1 or 2 */
+double Codd, Ceven, C;
+double velocity_odd, velocity_factor_odd, relative_permittivity_odd;
+double velocity_even, velocity_factor_even, relative_permittivity_even;
+double Lodd_vacuum, Leven_vacuum, L_vacuum;
+double Codd_vacuum, Ceven_vacuum, C_vacuum, C_non_vacuum;
+double Zo, Zo_vacuum, Zo_non_vacuum, Zodd, Zodd_vacuum, Zeven;
+double Zeven_vacuum, Zdiff, Zdiff_vacuum, Zcomm, Zcomm_vacuum;
+double Er, the_single_Er, Er_odd, Er_even;
+double velocity, velocity_factor, relative_permittivity;
+double r; /* rate multiplier */
+double image_fiddle_factor;
+double cutoff; /* How small the error in subsequent itterations must be */
+int compute, display; /* none, ZO, ZODD, ZEVEN. ZEVEN_VAC, ZODD_VAC; */
+int should_binary_data_be_written_tooQ;
+int dielectrics_to_consider_just_now;
+int non_vacuum_dielectric_found;
+double found_this_dielectric;
+int dielectrics_on_command_line;
+int dielectrics_in_bitmap;
+int avoid_use_of_fast_convergence_methodQ;
+int couplerQ;
+int write_binary_field_imagesQ;
+int write_bitmap_field_imagesQ;
+double float_values[10];
+int int_values[10];
+int importance[10];
+int odd_or_even[10];
+int best[10];
+int non_metallic_pixels;
+int tenth_of_estimated_iterations_needed;
+};
+
+#define NOT_IMPORTANT 0 /* The importance to attach to getting the */
+#define IMPORTANT 1 /* best value of integers for the grid */
+#define MOST_IMPORTANT 2
+
+struct pixels
+{
+ int red; /* +1 V */
+ int green; /* 0 V */
+ int blue; /* -1 V */
+ int white; /* Vacuum */
+ int other_colour; /* mix of red, green and blue */
+ double epsilon;
+};
+
+struct max_values
+{
+double Ex_or_Ey_max, E_max, V_max, U_max, permittivity_max;
+};
+
+
+struct fit_doubles_to_integers{
+int n_min, n_max, n;
+int m, in[100];
+double out[100], weight[100], good, acceptable;
+double largest_errror;
+double rms_errror;
+};
+
+#ifdef ENABLE_MPI
+struct strip {
+ int start_col;
+ int num_cols;
+};
+#endif /* ENABLE_MPI */
+
+/* Despite the fact the Bitmap_File_Head_Struct and Bitmap_Head_Struct
+all have int's for the types of data, in practice these must be 2 and 4
+byte varialbes. As such, they are written a character at a time, so the
+data size is unimportant. This was neeed on the Cray, due to the fact
+sizeof(short)=8 */
+
+struct Bitmap_File_Head_Struct
+{
+ unsigned char zzMagic[2]; /* 00 "BM" */
+ int bfSize; /* 02 */
+ int zzHotX; /* 06 */
+ int zzHotY; /* 08 */
+ int bfOffs; /* 0A */
+ int biSize; /* 0E */
+};
+
+struct Bitmap_Head_Struct
+{
+ int biWidth; /* 12 */
+ int biHeight; /* 16 */
+ int biPlanes; /* 1A */
+ int biBitCnt; /* 1C */
+ int biCompr; /* 1E */
+ int biSizeIm; /* 22 */
+ int biXPels; /* 26 */
+ int biYPels; /* 2A */
+ int biClrUsed; /* 2E */
+ int biClrImp; /* 32 */
+ /* 36 */
+};
+
+#ifndef M_PI
+#define M_PI 3.141592653589793238462643383279502884197169399375105820975
+#endif
+
+#define NUMBER_OF_DIELECTRICS_DEFINED 13
+
+int main(int argc, char **argv);
+void byteswap_doubles(double *a);
+void read_bitmap_file_headers(char *filename, int *offset, size_t *size, int *width, int *height);
+void help(char *filename);
+double **dmatrix(long nrl, long nrh, long ncl, long nch);
+void free_dmatrix(double **m, long nrl, long nrh, long ncl, long nch);
+void free_cmatrix(char **m, long nrl, long nrh, long ncl, long nch);
+char *string(long nl,long nh);
+void free_string(char *v, long nl, long nh);
+void swap_bytes2(unsigned char *buffer, int offset, short *answer);
+void swap_bytes4(unsigned char *buffer, int offset, int *answer);
+void free_ustring(unsigned char *v, long nl, long nh);
+void setup_arrays(struct transmission_line_properties *data);
+double finite_difference_single_threaded();
+double finite_difference_multi_threaded();
+void *do_columns(void *thread_arg);
+void usage_atlc(void);
+void write_fields_for_two_conductor_lines(char *filename, struct transmission_line_properties data, size_t size);
+void write_fields_for_directional_couplers(char *filename, struct transmission_line_properties data, size_t size, int odd_or_even);
+char **cmatrix(long nrl, long nrh, long ncl, long nch);
+unsigned char **ucmatrix(long nrl, long nrh, long ncl, long nch);
+signed char **scmatrix(long nrl, long nrh, long ncl, long nch);
+
+int *ivector(long nl, long nh);
+void get_Er1_and_Er2_colours(int *colour_Er1, int *colour_Er2);
+void convert_create_bmp_for_rect_in_rect_dimensions_to_integers(int bmp_size);
+void convert_create_bmp_for_circ_in_circ_dimensions_to_integers(int bmp_size);
+unsigned char *ustring(long nl,long nh);
+void write_bitmap(FILE *image_data_fp, struct transmission_line_properties foo);
+void usage_create_bmp_for_rect_in_rect(void);
+void usage_create_bmp_for_rect_cen_in_rect(void);
+void write_bitmap_out(unsigned char *image_data, FILE *image_data_fp,int image_size, int W, int H);
+int align_bitmap_image(int W, int H, unsigned char *unaligned_image, unsigned char *byte_aligned_image);
+void fill_create_bmp_for_rect_in_rect(char *image_vector, int colour_Er1, int colour_Er2);
+void check_create_bmp_for_rect_in_rect_ints(void);
+void exit_with_msg_and_exit_code(const char *error_text, int exitnumber);
+void check_error(double user, int create_bmp_for_rect_in_rect, double gridsize, const char *name);
+void check_parameters_for_create_bmp_for_circ_in_circ(void);
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties x);
+void usage_create_bmp_for_circ_in_circ(void);
+void convert_create_bmp_for_rect_in_circ_dimensions_to_integers(int accuracy_level);
+void usage_create_bmp_for_rect_in_circ(void);
+void convert_create_bmp_for_circ_in_rect_dimensions_to_integers(int accuracy_level);
+void usage_create_bmp_for_circ_in_rect(void);
+void check_for_shorts(void);
+void usage_symmetrical_strip(void);
+void fill_image_vector_for_thin_strip(int W,int H, int w, unsigned char *unaligned_image_vector);
+double K_over_Kdash(double k);
+double calculate_symmetrical_stripline_impedance(int H, int w);
+
+void free_ucmatrix(unsigned char **m, long nrl, long nrh, long ncl, long nch);
+void free_scmatrix(signed char **m, long nrl, long nrh, long ncl, long nch);
+
+int print_data(FILE *fp, char *filename, double Er, double C, double L, double Zo, double
+Zodd, double Zeven, int whichZ, double v, double vf);
+void set_oddity_value(void);
+double find_energy_per_metre(int i, int j);
+FILE *get_file_pointer_with_right_filename(char *filename, const char *ext);
+void find_maximum_values(struct max_values *maximum_values, int zero_elementsQ);
+void calculate_colour_data(double x, double xmax, int w, int h, int offset, unsigned char *image_dat, int image_type,
+unsigned char *red, unsigned char *green, unsigned char *blue, double image_fiddle_factor);
+double find_Ex(int w, int h) ;
+double find_Ey(int w, int h);
+double find_E(int w, int h);
+double voltage_ij(int i, int j);
+void usage_readbin(void);
+void ERR(const char *s, char c, char **argv);
+int get_options(int argc, char **argv, const char *opts);
+char *index2(const char *str, char c);
+void swap_conductor_voltages();
+void usage_create_bmp_for_stripline_coupler(void);
+double calculate_integer_values(struct transmission_line_properties *optimise, int n, int accuarcy_level);
+void calculate_Zodd_and_Zeven(double *Zodd, double *Zeven, double *Zo, double w, double H, double s, double er);
+void usage_design_coupler(void);
+void print_copyright(const char *s);
+void give_examples_of_using_design_coupler(void);
+void do_fd_calculation(struct transmission_line_properties *data, size_t size, FILE *where_to_print_fp, char *inputfile_filename);
+void print_data_for_directional_couplers(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name);
+void print_data_for_two_conductor_lines(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name);
+void set_data_to_sensible_starting_values(struct transmission_line_properties *data);
+void check_parameters_of_create_bmp_for_microstrip_coupler(struct transmission_line_properties pcb);
+void convert_create_create_bmp_for_coupled_microstrip_dimensions_to_integers(struct transmission_line_properties *pcb);
+void usage_create_bmp_for_microstrip_coupler(void);
+void usage_find_optimal_dimensions_for_microstrip_coupler(void);
+void check_parameters_of_create_bmp_for_circ_in_circ(void);
+void check_parameters_of_create_bmp_for_circ_in_rect(void);
+void check_parameters_of_create_bmp_for_rect_in_circ(void);
+void check_parameters_of_create_bmp_for_rect_in_rect(void);
+void usage_create_bmp_for_symmetrical_stripline(void);
+void check_parameters_for_find_optimal_dimensions_for_microstrip_coupler (double h,double t,double Er1,double Er2,double ideal_Zodd,double ideal_Zeven);
+double *dvector(long nl, long nh);
+void *worker(void *thread_arg);
+void free_ivector(int *v, long nl, long nh);
+double check_convergence(double **grid1, double **grid2, int w, int h);
+void error_check(char *s);
+void free_dvector(double *v, long nl, long nh);
+void usage_create_any_bitmap();
+void update_voltage_array(int n, int starti, int endi, int i_index, int j_index, double **from, double **to);
+void nrerror(char error_text[]);
+void check_for_boundaries(void);
+
+
+
+#define ONE
+#define TWO
+#define THREE
+#define FOUR
+#define FIVE
+#define SIX
+#define SEVEN
+#define EIGHT
+#define NINE
+#define HUNDRED
+
+#define I 58
+#define J 241
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+
+extern int errno;
+int verbose=2;
+
+/* desgin_coupler does two very different things in the one program
+1) Given a frequency range, the required coupling factor, it calcuates
+the odd and even mode impedances needed for a coupler. It does this
+assuming the length of the coupler is lambda/4, although you can vary
+that on the command line with the -l option.
+
+2) Once the optimal values for the even and odd mode impedances are
+found, it itteratively looks up the odd and even mode impedances for two
+think lines of various widths (w) and spacings (s), looking for the
+combination that gives the best rms error between the required
+impedances and those that will result with the coupler design as
+presented.
+
+It is assumed by default that the height of the box is of one unit (1
+mm, 1" etc, but this may be changed on the command line. This will scale
+the parameters w and s by the same multiple.
+
+*/
+
+int main(int argc, char **argv) /* Read parameters from command line */
+{
+ int q, Hflag=FALSE;
+ int calculate_physical_dimensions=FALSE;
+ int calculate_physical_dimensions_to_high_accuracy=FALSE;
+ double er;
+ double Zo=-1, length=-1, fmin, fmax, fmean, fstep=-1, cf, Zodd, Zeven;
+ double f, vcf, vcf_for_quarter_wave_line, w, s, error, error_max=1e30;
+ double wanted_coupling_factor_in_dB, step=0.02, fq;
+ double Zeven_x=-1, Zodd_x=-1, best_s=-1, best_w=-1;
+ double height_of_box=1.0;
+ double best_Zodd=-1, best_Zeven=-1, best_Zo=-1;
+
+ /* SGI's MipsPro compiler is very fussy. The following line, along
+ with one right at the end, forces Zo_x to be set and used,
+ alhtough it serves no other userful purpose but to keep the
+ compiler happy */
+ double Zo_x=1;
+ while((q=get_options(argc,argv,"DeQqdCL:s:Z:H:")) != -1)
+ switch (q)
+ {
+ case 'd':
+ calculate_physical_dimensions=TRUE;
+ break;
+ case 'D':
+ calculate_physical_dimensions=TRUE;
+ calculate_physical_dimensions_to_high_accuracy=TRUE;
+ break;
+ case 'e':
+ give_examples_of_using_design_coupler();
+ break;
+ case 'C':
+ print_copyright((char *) "2002");
+ Hflag=TRUE;
+ exit_with_msg_and_exit_code("",OKAY);
+ break;
+ case 'L':
+ length=atof(my_optarg); /* Sets the length of coupler */
+ break;
+ case 'H':
+ height_of_box=atof(my_optarg); /* Set height of coupler's enclosure */
+ Hflag=TRUE;
+ break;
+ case 's': /* Set frequncy steps in which coupling is computed */
+ fstep=atof(my_optarg);
+ break;
+ case 'Z': /* Set the characteristic impedance - default is 50 Ohms */
+ Zo=atof(my_optarg);
+ break;
+ case 'q': /* Run in quite mode, giving less output */
+ verbose--;
+ break;
+ case '?':
+ usage_design_coupler();
+ break;
+ } /* End of the switch statement */
+
+ if(argc-my_optind != 3) /* This should be so hopefully !! */
+ {
+ usage_design_coupler();
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+ }
+ wanted_coupling_factor_in_dB=atof(argv[my_optind]);
+ fmin=atof(argv[my_optind+1]);
+ fmax=atof(argv[my_optind+2]);
+ fmean=(fmin+fmax)/2.0;
+ if(fstep <0 )
+ fstep=(fmax-fmin)/4.0;
+
+ if (wanted_coupling_factor_in_dB <= 0.0 ) /* Only 0 can happen */
+ {
+ /* I don't think this can happen unless the user enter 0 as the
+ first parameter, as a negative number entered will be taken as a
+ command line option */
+ fprintf(stderr,"\nThe coupled power must be less than the input power.");
+ fprintf(stderr," But please enter a\n*positive* number in dB for the");
+ fprintf(stderr," first command line parameter. If you want a \ncoupler");
+ fprintf(stderr," with a coupled port that is 12 dB down on the input");
+ fprintf(stderr," power, covering\n144-146 MHz, enter this as:\n\n");
+ fprintf(stderr,"design_coupler 12 144 146\n\n");
+ fprintf(stderr,"If you want the physical dimensions of the coupler");
+ fprintf(stderr," designed for you, add the\n-d option on the command");
+ fprintf(stderr," line, like this:\n\ndesign_coupler -q -12 144 146\n\n");
+ fprintf(stderr,"If you run design_coupler with no command line");
+ fprintf(stderr," arguments, like this:\n\ndesign_coupler\n\n");
+ fprintf(stderr,"then design_coupler will print some information,");
+ fprintf(stderr," showing *all* the options. \nIf you run design_coupler");
+ fprintf(stderr," with the -e option like this:\n\n");
+ fprintf(stderr,"design_coupler -e\n\n");
+ fprintf(stderr,"lots of examples will be shown of the correct usage.\n");
+ exit_with_msg_and_exit_code("",IMPOSSIBLE_COUPLING_COEFFICIENT);
+ }
+ if (fmax <= fmin)
+ {
+ fprintf(stderr,"The second command line argumentent you gave, which");
+ fprintf(stderr," is for the *minimum*\noperating frequenncy in MHz,");
+ fprintf(stderr," is less than the third argument, which is the\n");
+ fprintf(stderr,"*maximum* operating frequency in MHz.\n\n");
+ fprintf(stderr,"If you want a coupler");
+ fprintf(stderr," with a coupled port that is 12 dB down on the input\n");
+ fprintf(stderr,"power, covering 144-146 MHz, enter this as:\n\n");
+ fprintf(stderr,"design_coupler 12 144 146\n\n");
+ fprintf(stderr,"If you want the physical dimensions of the coupler");
+ fprintf(stderr," designed for you, add the\n-d option on the command");
+ fprintf(stderr," line, like this:\n\ndesign_coupler -d 12 144 146\n\n");
+ fprintf(stderr,"If you run design_coupler with no command line arguments,");
+ fprintf(stderr," then design_coupler\nwill print some information,");
+ fprintf(stderr," showing *all* the options. If you run\ndesign_coupler");
+ fprintf(stderr," with the -e option like this:\n\n");
+ fprintf(stderr,"design_coupler -e\n\n");
+ fprintf(stderr,"lots of examples will be shown of the correct usage.\n");
+ fprintf(stderr,"Exiting ...\n");
+ exit_with_msg_and_exit_code("",FMAX_NOT_ABOVE_FMIN);
+ }
+ if (Zo < 0.0)
+ Zo=50.0;
+ if(length<0.0)
+ length=75.0/fmean; /* By default, make it a quarter wave long */
+ /* The following sent in an email by Paul AA1L, sums the theory up
+ You make Zo=50=sqrt(Zoo*Zoe) and
+ c=(Zoe-Zoo)/(Zoe+Zoo), c being the voltage coupling coefficient.
+ I.e., for a 20dB coupler c=0.1 is the midband
+ coupling.
+ Coupling varies as sin^2(f/fq), fq being frequency where the coupled
+ length is a quarter wave.
+
+ HOWEVER, the above is not quite the full story, as that says coupling
+ peaks at sin(1), when in fact its sin(Pi/2)
+ */
+
+ /* vfc stands for 'voltage coupling factor' */
+
+ /* I need to find values for Zodd and Zeven to use, but first convert
+ the coupling factor on the command line into the voltage coupling
+ factor c */
+
+ /* vfc stands for 'voltage coupling factor' */
+
+ /* When the line is a quarter wave, one can get any amount of coupling
+ you want, including a vfc of 1, in which case all the power transfers
+ to the coupled port. Normally, the vcf will be less than 1.0. for a 20
+ dB couplier is it 0.1 */
+
+ vcf_for_quarter_wave_line=1.0/pow(10.0,wanted_coupling_factor_in_dB/20.0);
+
+ fq=75/length; /* frequency at which line is a quarter wave long */
+
+ /* If the line is less than a quarter wave long, then less power is
+ coupled, so to compensate we need to increase the voltage coupling
+ factor 'vcf above that of the value for a quarter wave line.
+ Since the 'vcf' varies as sin(0.5 *PI * f/fq)^2, where
+ fq is the frequency at which the line is a quarter-wave long, we must
+ divide the vcf_for_quarter_wave_line by sin(0.5 *PI*f/fq)^2 to get
+ the required vcf. */
+ vcf=vcf_for_quarter_wave_line*(1.0/sin(0.5*M_PI*fmean/fq));
+ /* Check that the voltage coupling factor does not exceed one */
+ if ( vcf > 1.0 )
+ {
+ fprintf(stderr,"\n*****ERROR****\n");
+ fprintf(stderr,"Sorry, you can't make a %6.3f dB coupler with a coupled line of %7.4f m long.\n",wanted_coupling_factor_in_dB, length);
+ fprintf(stderr,"Either couple off a smaller fraction of the main power to the coupled port,\n");
+ fprintf(stderr,"or make the line closer to an odd multiple of a quarter wave.\n");
+ fprintf(stderr,"Odd mulitples of a quarter wave are: %.4f, %.4f, %.4f, %.4f .. m\n", 75/fmean, 3*75/fmean, 5*75/fmean, 7*75/fmean);
+ exit_with_msg_and_exit_code("",IMPOSSIBLE_TO_MAKE_COUPLER_THAT_LENGTH);
+ }
+
+ /* After mucking around with Mathematica a bit, I found it was
+ possible to invert the equations */
+
+ Zodd = sqrt(1-vcf)*Zo/sqrt(1+vcf);
+ Zeven=Zo*Zo/Zodd;
+
+ printf("\nFor a %.3f dB %.3f Ohm coupler with a length of %.4f m,\n",wanted_coupling_factor_in_dB, Zo, length);
+ printf("you need to have an odd-mode impedance Zodd of %.3f Ohms and\n",Zodd);
+ printf("an even mode impedance Zeven of %.3f Ohms\n\n",Zeven);
+ if(verbose >=1) /* Only print if user does not specifiy and -qq options */
+ {
+ printf("%.3f dB down <-- ************************** ---> %3.3f Ohm termination\n\n",wanted_coupling_factor_in_dB,Zo);
+ printf("Drive this port --> ************************** ---> %3.3f Ohm termination\n",Zo);
+ printf(" <------- %8.4f m ----->\n",length);
+ printf("\nDrive Port 1, coupler out of port 2 and terminate the other ports in Zo\n");
+ printf("Such a coupler will have the response indicated below.\n\n");
+ /*printf("length =%.4f mean=%.3f vcf=%.3f vcf_for_quarter_wave_line=%.3f \n",length, fmean, vcf, vcf_for_quarter_wave_line);*/
+ }
+ for(f=fmin; f<=fmax; f+=fstep)
+ {
+ cf=20*log10(vcf*sin(0.5*M_PI*f/fq)); /* This is what is now needed for some given length (and so fq) */
+ if(verbose == 2)
+ printf("f = %7.3f MHz coupling is %.3f dB down on the main arm\n",f,cf);
+ }
+ printf("\nYou may force the length to be any value you want using the -L option - it does\nnot have to be %.4f metres long\n",length);
+ if(calculate_physical_dimensions==FALSE)
+ {
+ printf("You may try to find a coupler with these dimensions using the -d option\n\n");
+ printf("Currently the -d option is not that fast, as it uses a brain-dead algorithm\n");
+ printf("Hopefully one day the algorithm will be speeded up.\n");
+ }
+ if(calculate_physical_dimensions==TRUE)
+ {
+ er=1.0;
+ printf("Please be patient - this will take a few minutes or so\n");
+ for(s = 0.02; s<=100; s+=step)
+ {
+ for(w = 0.02; w<= 11.0; w += step)
+ {
+ /* Results are calculated assuming the box is one unit (mm, inch
+ etc) high and later scaled */
+
+ calculate_Zodd_and_Zeven(&Zodd_x, &Zeven_x, &Zo_x, w, 1.0, s, er);
+ error=pow(Zodd-Zodd_x,2.0) + pow(Zeven-Zeven_x,2.0);
+ if( error < error_max )
+ {
+ best_s=s;
+ best_w=w;
+ best_Zo=sqrt(best_Zo * best_Zeven);
+ best_Zodd=Zodd;
+ best_Zeven=Zeven;
+ error_max=error;
+ }
+ }
+ }
+ printf("w = %.4f s = %.4f which gives Zo = %.4f Zodd = %.4f Zeven = %.4f\n",best_w, best_s, best_Zo, best_Zodd, best_Zeven);
+ /* Now try to get closer, if -D option given */
+ if (calculate_physical_dimensions_to_high_accuracy == TRUE)
+ {
+ for(s = best_s-step; s<=best_s+step; s+=step/1000)
+ {
+ for(w = best_w-step; w<= best_w+step; w += step/1000)
+ {
+ calculate_Zodd_and_Zeven(&Zodd_x, &Zeven_x, &Zo_x, w, 1.0, s, er);
+ error=fabs(Zodd-Zodd_x) + fabs(Zeven-Zeven_x);
+ if( error < error_max )
+ {
+ best_s=s;
+ best_w=w;
+ best_Zodd=Zodd;
+ best_Zeven=Zeven;
+ error_max=error;
+ }
+ }
+ }
+ }
+ best_Zo=sqrt(best_Zodd * best_Zeven);
+ if(verbose <= 0)
+ {
+ printf("|-----------^------------------------------------------------------------------|\n");
+ printf("| | |\n");
+ printf("| | <---w---><-----s----><---w--> |\n");
+ printf("| H --------- -------- |\n");
+ printf("| | |\n");
+ printf("| | Er=1.0 (air) |\n");
+ printf("------------v------------------------------------------------------------------\n");
+ printf("<-----------------------------------------W----------------------------------->\n");
+ }
+ printf("H =%.4f w = %.4f s = %.4f\n",height_of_box, height_of_box*best_w, height_of_box*best_s);
+ printf("W must be *at least* %.4f, but larger does not matter.\n",5*height_of_box+ 2*best_w*height_of_box + height_of_box*best_s);
+ printf("These dimensions give Zo = %.4f Zodd = %.4f Zeven = %.4f Ohms\n", best_Zo, best_Zodd, best_Zeven);
+ if(Hflag==FALSE)
+ {
+ printf("****NOTE ****\n");
+ printf("Although H is shown as 1.0, it can be 1 mm, 1 cm or even 1 m. It is important\n");
+ printf("that w is %.4f times whatever H is, and that s is %.4f times whatever H is, but the absolute numbers are irrelavant.\n",best_w, best_s);
+ printf("If you know the height H of your enclosure, use the -H option to indicate\n");
+ printf("its value. This will ensure all the dimensions are scaled automatically for you.\n");
+ }
+ printf("****NOTE 2****\n");
+ printf("The length *must* be %.4f m if you use these dimensions for W, H, w and s.\n",length);
+ printf("If %.4f m is inconvenient, change it with the -L option and recalculate\n to get new values of W, H, w and s\n",length);
+ printf("See: http://atlc.sourceforge.net\n");
+ printf("See: http://atlc.sourceforge.net/couplers.html\n");
+ }
+ return(OKAY);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+extern int number_of_workers;
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int append_flag;
+extern int dielectrics_to_consider_just_now, coupler;
+extern int num_pes;
+extern double **Vij;
+extern int height;
+extern int number_of_workers;
+
+void do_fd_calculation(struct transmission_line_properties *data, size_t size, FILE *where_to_print_fp, char *inputfile_filename)
+{
+ double capacitance_old, capacitance;
+ double velocity_of_light_in_vacuum;
+ int count=0;
+ /*
+ if (data->dielectrics_in_bitmap > 1) {
+ fprintf(stderr,"\nSorry, but on the 15th October 2003 I was advised there is an\n");
+ fprintf(stderr,"error in atlc when computing systems with multiple dielectrics.\n");
+ fprintf(stderr,"So until this problem is fixed, the facility has been disabled.\n\n");
+ fprintf(stderr,"I hope to release a new version shortly without this problem.\n");
+ exit(1);
+ }
+ */
+ /* The line of best fit of non_metalic_pixels vs iterations required
+ is y=0.0011 * non_metallic_pixels + 283.
+
+ I'll ensure finite_difference is called about 10x by using
+ 0.00011 * the number of non-metallic elements +28 as the number
+ of times finite_difference is called each time */
+
+
+
+ /* The following 10 lines are for a single dielectric 2 conductor line */
+ if (data->couplerQ==FALSE)
+ {
+ if(data->verbose_level >= 2)
+ printf("Solving assuming a vacuum dielectric\n");
+ capacitance=VERY_LARGE; /* Can be anything large */
+ dielectrics_to_consider_just_now=1;
+ data->dielectrics_to_consider_just_now=1;
+
+ do /* Start a finite calculation */
+ {
+ capacitance_old=capacitance;
+
+#ifdef ENABLE_POSIX_THREADS
+ if (number_of_workers == 0)
+ capacitance=finite_difference_single_threaded();
+ else
+ capacitance=finite_difference_multi_threaded();
+#else
+ capacitance=finite_difference_single_threaded();
+#endif
+
+ data->C_vacuum=capacitance;
+ data->C=capacitance;
+ data->L_vacuum=MU_0*EPSILON_0/capacitance; /* Same as L in *ALL* cases */
+ data->Zo_vacuum=sqrt(data->L_vacuum/data->C_vacuum); /* Standard formaul for Zo */
+ data->C=capacitance;
+ if (data->dielectrics_in_bitmap == 1) /* Just get C by simple scaling of Er */
+ {
+ data->C=capacitance*data->found_this_dielectric; /* Scaled by the single dielectric constant */
+ data->Er=data->found_this_dielectric;
+ }
+ else
+ data->Er=1.0;
+ data->Zo=sqrt(data->L_vacuum/data->C); /* Standard formula for Zo */
+ data->Zodd=sqrt(data->L_vacuum/data->C); /* Standard formula for Zo */
+ velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
+ data->velocity=1.0/pow(data->L_vacuum*data->C,0.5);
+ data->velocity_factor=data->velocity/velocity_of_light_in_vacuum;
+ data->relative_permittivity=sqrt(data->velocity_factor); /* ??? XXXXXX */
+ if(data->verbose_level > 0 ) /* Only needed if intermediate results wanted. */
+ print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
+ count++;
+ } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
+ if(data->verbose_level >=4)
+ printf("Total of %d iterations ( %d calls to finite_difference() )\n",ITERATIONS*count,count);
+
+ if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap==1 )
+ write_fields_for_two_conductor_lines(inputfile_filename, *data, size);
+ if(data->verbose_level == 0 && data->dielectrics_in_bitmap==1 )
+ print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
+
+ if ( data->dielectrics_in_bitmap >1)
+ {
+ /* We know the capacitance and inductance for the air spaced line
+ as we calculated it above. Howerver, whilst the inductance
+ is independant of the dielectric, the capacitance is not, so this
+ has to be recalculated, taking care not to alter the inductance
+ at all */
+ if(data->verbose_level >= 2)
+ printf("Now taking into account the permittivities of the different dielectrics for 2 conductors.\n");
+
+ dielectrics_to_consider_just_now=3; /* Any number > 1 */
+ data->dielectrics_to_consider_just_now=2; /* Any number > 1 */
+
+ capacitance=VERY_LARGE; /* Can be anything large */
+
+ do /* Start a finite calculation */
+ {
+ capacitance_old=capacitance;
+#ifdef ENABLE_POSIX_THREADS
+ if (number_of_workers == 0)
+ capacitance=finite_difference_single_threaded();
+ else
+ capacitance=finite_difference_multi_threaded();
+#else
+ capacitance=finite_difference_single_threaded();
+#endif
+ data->C=capacitance;
+ data->C_non_vacuum=capacitance;
+ data->Zo=sqrt(data->L_vacuum/data->C_non_vacuum); /* Standard formula for Zo */
+ data->velocity=1.0/pow(data->L_vacuum*data->C_non_vacuum,0.5);
+ data->velocity_factor=data->velocity/velocity_of_light_in_vacuum;
+ data->relative_permittivity=sqrt(data->velocity_factor); /* ??? XXXXXX */
+ data->Er=data->C/data->C_vacuum;
+ if(data->verbose_level > 0 ) /* Only needed if intermediate results wanted. */
+ print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
+ } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
+
+ /* We must print the results now, but only bother if the verbose level was
+ not not incremented on the command line, otherwide there will be two duplicate
+ lines */
+
+ if (data->verbose_level == 0)
+ print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
+ if(data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE)
+ write_fields_for_two_conductor_lines(inputfile_filename, *data, size);
+ }
+ }
+ else if (data->couplerQ==TRUE)
+ {
+ /* The properties of a couplers will be computed in 2 or 4 stages
+ 1) Compute the odd-mode impedance, assuming a vacuum dielectric, or
+ if there is just one dielectric, that one.
+
+ 2) Compute the odd-mode impedance, taking into account the effect of
+ multiple dielectrics, IF NECESSARY
+
+ at this point, the negative voltages will be turned into positive ones.
+
+ 3) Compute the even-mode impedance, assuming a vacuum dielectric, or
+ if there is just one dielectric, that one.
+
+ 4) Compute the even-mode impedance, taking into account the effect of
+ multiple dielectrics, IF NECESSARY */
+
+ /* Stage 1 - compute the odd mode impedance assuming single dielectric */
+ data->display = Z_ODD_SINGLE_DIELECTRIC;
+ dielectrics_to_consider_just_now=1;
+ data->dielectrics_to_consider_just_now=1;
+
+ capacitance=VERY_LARGE; /* Can be anything large */
+ if(data->verbose_level >= 2)
+ printf("Solving assuming a vacuum dielectric to compute the odd-mode impedance\n");
+
+ do /* Start a finite difference calculation */
+ {
+ capacitance_old=capacitance;
+#ifdef ENABLE_POSIX_THREADS
+ if (number_of_workers == 0)
+ capacitance=finite_difference_single_threaded();
+ else
+ capacitance=finite_difference_multi_threaded();
+#else
+ capacitance=finite_difference_single_threaded();
+#endif
+ data->Codd_vacuum=capacitance;
+ data->Codd=capacitance;
+ data->Lodd_vacuum=MU_0*EPSILON_0/capacitance; /* Same as L in *ALL* cases */
+
+ data->Zodd_vacuum=sqrt(data->Lodd_vacuum/data->Codd_vacuum); /* Standard formaul for Zodd */
+
+ if (data->dielectrics_in_bitmap == 1) /* Just get C by simple scaling of Er */
+ data->Codd*=data->found_this_dielectric; /* Scaled by the single dielectric constant */
+ else
+ data->Er=1.0;
+ data->Zodd=sqrt(data->Lodd_vacuum/data->Codd); /* Standard formula for Zo */
+ velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
+ /* FPE trapdata->velocity_odd=1.0/pow(data->L_vacuum*data->Codd,0.5); */
+ data->velocity_odd=1.0/pow(data->Lodd_vacuum*data->Codd,0.5);
+ data->velocity_factor_odd=data->velocity_odd/velocity_of_light_in_vacuum;
+ data->relative_permittivity_odd=sqrt(data->velocity_factor_odd); /* ??? XXXXXX */
+ data->Er_odd=data->Codd/data->Codd_vacuum;
+ data->Zdiff=2.0*data->Zodd;
+ /* Print text if uses wants it */
+ if(data->verbose_level>=1)
+ print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
+ } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
+
+#ifdef ENABLE_MPI
+ mpi_receive_updated_vij_strips();
+#endif /* ENABLE_MPI */
+
+ /* display bitpamps/binary files if this is the last odd-mode computation */
+ if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap==1 )
+ write_fields_for_directional_couplers(inputfile_filename, *data, size, ODD);
+
+ /* Stage 2 - compute the odd-mode impedance taking into account other dielectrics IF NECESSARY */
+
+ if ( data->dielectrics_in_bitmap >1)
+ {
+ if(data->verbose_level >= 2)
+ printf("Now taking into account the permittivities of the different dielectrics to compute Zodd.\n");
+ data->display = Z_ODD_SINGLE_DIELECTRIC;
+ capacitance=VERY_LARGE; /* Can be anything large */
+
+ dielectrics_to_consider_just_now=2;
+ data->dielectrics_to_consider_just_now=2;
+
+#ifdef ENABLE_MPI
+ mpi_send_current_data();
+#endif /* ENABLE_MPI */
+
+ do /* Start a finite calculation */
+ {
+ capacitance_old=capacitance;
+#ifdef ENABLE_POSIX_THREADS
+ if (number_of_workers == 0)
+ capacitance=finite_difference_single_threaded();
+ else
+ capacitance=finite_difference_multi_threaded();
+#else
+ capacitance=finite_difference_single_threaded();
+#endif
+ data->Codd=capacitance;
+ data->Zodd=sqrt(data->Lodd_vacuum/data->Codd); /* Standard formula for Zo */
+ velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
+ data->velocity_odd=1.0/pow(data->L_vacuum*data->C,0.5);
+ data->velocity_factor_odd=data->velocity/velocity_of_light_in_vacuum;
+ data->relative_permittivity_odd=sqrt(data->velocity_factor); /* ??? XXXXXX */
+ data->Er_odd=data->Codd/data->Codd_vacuum;
+ data->Zdiff=2.0*data->Zodd;
+ if(data->verbose_level>=1)
+ print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
+ } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
+
+#ifdef ENABLE_MPI
+ mpi_receive_updated_vij_strips();
+#endif /* ENABLE_MPI */
+
+ if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap!=1 )
+ write_fields_for_directional_couplers(inputfile_filename, *data, size, ODD);
+ } /* end of stage 2 for couplers */
+
+ /* Stage 3 - compute the even-mode impedance assuming single dielectric */
+
+ /* Since we want the even mode impedance now, we swap all the -1V
+ metallic conductors for +1V */
+
+ swap_conductor_voltages();
+
+ data->display = Z_EVEN_SINGLE_DIELECTRIC;
+ dielectrics_to_consider_just_now=1;
+ data->dielectrics_to_consider_just_now=1;
+ if(data->verbose_level >= 2)
+ printf("Now assuming a vacuum dielectric to compute Zeven\n");
+
+ capacitance=VERY_LARGE; /* Can be anything large */
+
+#ifdef ENABLE_MPI
+ mpi_send_current_data();
+#endif /* ENABLE_MPI */
+
+ do /* Start a finite difference calculation */
+ {
+ capacitance_old=capacitance;
+#ifdef ENABLE_POSIX_THREADS
+ if (number_of_workers == 0)
+ capacitance=finite_difference_single_threaded();
+ else
+ capacitance=finite_difference_multi_threaded();
+#else
+ capacitance=finite_difference_single_threaded();
+#endif
+
+ data->Ceven_vacuum=capacitance;
+ data->Ceven=capacitance;
+ data->Leven_vacuum=MU_0*EPSILON_0/capacitance; /* Same as L in *ALL* cases */
+
+ data->Zeven_vacuum=sqrt(data->Leven_vacuum/data->Ceven_vacuum); /* Standard formaul for Zodd */
+
+ if (data->dielectrics_in_bitmap == 1) /* Just get C by simple scaling of Er */
+ data->Ceven*=data->found_this_dielectric; /* Scaled by the single dielectric constant */
+ else
+ data->Er_even=1.0;
+ data->Zeven=sqrt(data->Leven_vacuum/data->Ceven); /* Standard formula for Zo */
+ velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
+ data->velocity_even=1.0/pow(data->Leven_vacuum*data->Ceven,0.5);
+ data->velocity_factor_even=data->velocity_even/velocity_of_light_in_vacuum;
+ data->relative_permittivity_even=sqrt(data->velocity_factor_even); /* ??? XXXXXX */
+ data->Er_even=data->Ceven/data->Ceven_vacuum;
+ data->Zcomm=data->Zeven/2.0;
+ data->Zo=sqrt(data->Zodd * data->Zeven);
+ if(data->verbose_level>=1)
+ print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
+ /* display bitpamps/binary files if this is the last even-mode computation */
+ } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
+
+ if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap==1)
+ write_fields_for_directional_couplers(inputfile_filename, *data, size, EVEN);
+
+ capacitance=VERY_LARGE; /* Can be anything large */
+ /* Stage 4 - compute the even-mode impedance assuming multiple dielectrics IF NECESSARY */
+ if ( data->dielectrics_in_bitmap >1)
+ {
+ dielectrics_to_consider_just_now=2;
+ data->dielectrics_to_consider_just_now=2;
+ if(data->verbose_level >= 2)
+ printf("Now taking into account the permittivities of the different dielectrics to compute Zeven\n");
+
+#ifdef ENABLE_MPI
+ mpi_send_current_data();
+#endif /* ENABLE_MPI */
+
+ do /* Start a finite calculation */
+ {
+ capacitance_old=capacitance;
+#ifdef ENABLE_POSIX_THREADS
+ if (number_of_workers == 0)
+ capacitance=finite_difference_single_threaded();
+ else
+ capacitance=finite_difference_multi_threaded();
+#else
+ capacitance=finite_difference_single_threaded();
+#endif
+ data->Ceven=capacitance;
+ data->Zeven=sqrt(data->Leven_vacuum/data->Ceven); /* Standard formula for Zo */
+ velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
+ data->velocity_even=1.0/pow(data->L_vacuum*data->C,0.5);
+ data->velocity_factor_even=data->velocity/velocity_of_light_in_vacuum;
+ data->relative_permittivity_even=sqrt(data->velocity_factor); /* ??? XXXXXX */
+ data->Er_even=data->Ceven/data->Ceven_vacuum;
+ data->Zdiff=2.0*data->Zodd;
+ data->Zcomm=data->Zeven/2.0;
+ data->Zo=sqrt(data->Zeven*data->Zodd);
+ if(data->verbose_level>=1)
+ print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
+ } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
+
+ if(data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE)
+ write_fields_for_directional_couplers(inputfile_filename, *data, size, EVEN);
+ } /* end of stage 4 */
+ /* Print the results if the verbose level was 0 (no -v flag(s) ). */
+ if (data->verbose_level == 0)
+ {
+ /* We need to print the data. The next function will only print if
+ the verbose_level is 1 or more, so I'll fix it at one. Then we print
+ the final results and exit. */
+ data->verbose_level=1;
+ data->display = Z_EVEN_SINGLE_DIELECTRIC;
+ print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
+ }
+ } /* end of if couplers */
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#include "definitions.h"
+
+/* The following function computes:
+
+r=K(k)/K'(k) where
+K is the complete elliptic integral of the first kind,
+K' is the complementary complete elliptic integral of the first kind
+
+This simple routine was given to my by Dan - it is one hell
+of a lot simplier than the routine in the numerical recipes book
+
+*/
+
+double K_over_Kdash(double k)
+{
+ double kp, r, kf;
+ kp = sqrt(1.0-pow(k,2.0));
+ r = 1.0;
+ kf=(1.0+k)/(1.0+kp);
+ while(kf != 1.0)
+ {
+ r = r*kf;
+ k = 2.0*sqrt(k)/(1.0+k);
+ kp = 2.0*sqrt(kp)/(1.0+kp);
+ kf=(1.0+k)/(1.0+kp);
+ }
+ return(r);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#define OKAY 0
+#define CANT_OPEN_FILE_FOR_READING 1
+#define CANT_OPEN_FOR_WRITING 2
+#define CANT_OPEN_FILE_FOR_APPENDING 3
+#define CANT_CLOSE_FILE 4
+#define WRITE_FAILURE 5
+#define THE_WIDTH_w_DIVIDED_BY_THE_HEIGHT_H_IS_TOO_LARGE 6
+#define PROGRAM_NOT_IMPLEMENTED 7
+#define PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS 8
+#define UNACCEPTABLE_ERROR_WHEN_CONVERTING_TO_INTEGERS 9
+#define MEMORY_ALLOCATION_ERROR_IN_VECTOR 10
+#define MEMORY_ALLOCATION_ERROR_IN_IVECTOR 11
+#define MEMORY_ALLOCATION_ERROR_IN_CVECTOR 12
+#define MEMORY_ALLOCATION_ERROR_IN_DVECTOR 13
+#define MEMORY_ALLOCATION_ERROR_IN_CMATRIX 14
+#define MEMORY_ALLOCATION_ERROR_IN_UCMATRIX 15
+#define MEMORY_ALLOCATION_ERROR_IN_MATRIX 16
+#define MEMORY_ALLOCATION_ERROR_IN_DMATRIX 17
+#define MEMORY_ALLOCATION_ERROR_IN_IMATRIX 18
+#define MEMORY_ALLOCATION_ERROR_IN_STRING 19
+#define MEMORY_ALLOCATION_ERROR_IN_USTRING 20
+#define SILLY_ARGUMENTS_IN_FREE_VECTOR 21
+#define SILLY_ARGUMENTS_IN_FREE_IVECTOR 22
+#define SILLY_ARGUMENTS_IN_FREE_CVECTOR 23
+#define SILLY_ARGUMENTS_IN_FREE_DVECTOR 24
+#define SILLY_ARGUMENTS_IN_FREE_DMATRIX 25
+#define SILLY_ARGUMENTS_IN_FREE_CMATRIX 26
+#define SILLY_ARGUMENTS_IN_FREE_UCMATRIX 27
+#define SILLY_ARGUMENTS_IN_FREE_IMATRIX 28
+#define SILLY_ARGUMENTS_IN_FREE_STRING 29
+#define SILLY_ARGUMENTS_IN_FREE_USTRING 30
+#define VOLTAGE_OUT_OF_RANGE 31
+#define ARGUMENT_w_OUT_OF_RANGE 32
+#define ARGUMENT_h_OUT_OF_RANGE 33
+#define ARGUMENT_s_OUT_OF_RANGE 34
+#define ARGUMENT_g_OUT_OF_RANGE 35
+#define ARGUMENT_Er1_OUT_OF_RANGE 36
+#define ARGUMENT_Er2_OUT_OF_RANGE 37
+#define ARGUMENT_W_OUT_OF_RANGE 36
+#define ARGUMENT_H_OUT_OF_RANGE 38
+#define ARGUMENT_t_OUT_OF_RANGE 39
+#define ARGUMENT_ideal_Zodd_OUT_OF_RANGE 41
+#define ARGUMENT_ideal_Zeven_OUT_OF_RANGE 42
+#define IDEAL_Zodd_NOT_LESS_THAN_IDEAL_Zeven 43
+#define NOT_LINKED_WITH_GSL_LIBRARY 44
+#define NOT_LINKED_WITH_THREADS_LIBRARY 45
+#define NOT_LINKED_WITH_MPI_LIBRARY 46
+#define UNDEFINED_COLOUR_IN_BITMAP 47
+#define NOT_A_VALID_BITMAP_FILE 48
+#define OS2_FORMAT_BMP_FILE 49
+#define NOT_A_WINDOZE_FORMAT_BITMAP 50
+#define BITMAP_NOT_24_BIT 51
+#define WIDTH_OR_HEIGHT_ZERO_IN_BITMAP 52
+#define BITPLANES_NOT_1_IN_BITMAP 53
+#define COLOURMAP_GREATER_THAN_256 54
+#define MALLOC_FAILED 55
+#define IMPOSSIBLE_COUPLING_COEFFICIENT 56
+#define FMAX_NOT_ABOVE_FMIN 57
+#define IMPOSSIBLE_TO_MAKE_COUPLER_THAT_LENGTH 58
+#define W_OR_H_TOO_SMALL 59
+#define INVALID_SWITCH 60
+#define DIMENSION_LESS_THAN_ZERO 61
+#define PERMITTIVITY_LESS_THAN_1 62
+#define VARIABLE_NOT_INITIALISED 63
+#define GAP_BETWEEN_CONDUCTORS_TOO_SMALL 64
+#define VOLTAGE_NOT_MINUS_ONE_V_AS_EXPECTED 65
+#define VOLTAGE_NOT_PLUS_ONE_V_AS_EXPECTED 66
+#define VOLTAGE_NOT_ZERO_V_AS_EXPECTED 67
+#define THREAD_CREATION_FAILED 68
+#define MUTEX_INITIALISATION_FAILED 69
+#define MUTEX_ALLOCATION_FAILED 70
+#define USER_REQUESTED_TOO_MANY_THREADS 71
+#define THREAD_FAILED_TO_JOIN 71
+#define CANT_OBTAIN_SEMAPHORE 73
+#define SEM_INIT_FAILED 74
+#define SEM_POST_FAILED 75
+#define SEM_WAIT_FAILED 76
+#define PTHREAD_ATTR_SETINHERITSCHED_FAILED 77
+#define PTHREAD_ATTR_INIT_FAILED 78
+#define PTHREAD_ATTR_SETSCOPE_FAILED 79
+#define PTHREAD_MUTEX_LOCK_FAILED 80
+#define PTHREAD_MUTEX_UNLOCK_FAILED 81
+#define PTHREAD_COND_WAIT_FAILED 82
+#define PTHREAD_COND_BROADCAST_FAILED 83
+#define SILLY_ARGUMENTS_IN_FREE_SCMATRIX 84
+#define MEMORY_ALLOCATION_ERROR_IN_SCMATRIX 85
+#define CANT_READ_ALL_OF_FILE 86
+#define FSEEK_FAILURE 87
+#define FTELL_FAILURE 88
+#define DOMAIN_ERROR 89
+#define INTERNAL_ERROR 90
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef ENABLE_MPI
+#include <mpi.h>
+#endif
+
+#include "definitions.h"
+
+
+void exit_with_msg_and_exit_code(const char *s, int exitnumber)
+{
+ if ((NULL != s) && (s[0] != '\0')) {
+ fprintf(stderr,"%s\n",s);
+ }
+
+#ifdef ENABLE_MPI
+#ifdef NEED_MPI_CODE
+ MPI_Finalize();
+#endif
+#endif
+
+ exit(exitnumber);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int D, h, W, H, d;
+
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties foo)
+{
+ int i, j;
+ unsigned char red, green, blue;
+ int vector_original=0;
+ for(j=0;j<H;++j)
+ {
+ for(i=0;i<W; ++i)
+ {
+
+ /* Put a small border in green. Only one pixel is needed, but
+ I'll put a few more. */
+
+ if( pow((double)i-(double)D/2.0-(double)BORDER,2.0) + pow((double)j-(double)D/2.0-(double)BORDER,2.0)>=((double)D*(double)D)/4.)
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+ else if( pow((double)i-(double)D/2.0-(double)BORDER-(double) h,2.0) + pow((double)j-(double)D/2.0-(double)BORDER,2.0)<=((double)d*(double)d)/4.0)
+ {
+ red=0xff;
+ green=0x0;
+ blue=0x0;
+ }
+ else
+ {
+ red=colour_Er1/(256*256); /* Fill in areas with Er1 */
+ green=colour_Er1/256;
+ blue=colour_Er1%256;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int d, W, H, x, y;
+
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties not_used)
+{
+ int i, j, vector_original=0;
+ unsigned char red, green, blue;
+ for(j=0;j<H;++j)
+ {
+ for(i=0;i<W; ++i)
+ {
+ if( (i<BORDER) || (i>=W-BORDER) || (j<BORDER) || (j>=H-BORDER))
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+ else if( pow((double)i-(double)W/2.0-(double) x,2.0) + pow((double)j-(double)H/2.0-(double)y,2.0)<=((double)d*(double)d)/4.0)
+ {
+ red=0xff;
+ green=0x0;
+ blue=0x0;
+ }
+ else
+ {
+ red=colour_Er1/(256*256); /* Fill in areas with Er1 */
+ green=colour_Er1/256;
+ blue=colour_Er1%256;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties pcb)
+{
+ int i, j, red=0, green=0, blue=0, vector_original=0;
+ int right_edge_of_LH_GP;
+ for(j=0;j<pcb.H;++j)
+ {
+ for(i=0;i<pcb.W; ++i)
+ {
+
+ red=colour_Er1/(256*256); /* Fill whole region with Er1 (normally vacuum/air)*/
+ green=colour_Er1/256;
+ blue=colour_Er1%256;
+
+ /* Put a small border in green. Only one pixel is needed, but
+ I'll put a few more. */
+ if( (i<BORDER) || (i>pcb.W-BORDER-1) || (j<BORDER) || (j>pcb.H-BORDER-1))
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+
+ /* Put the dielectric for the PCB in */
+ if((i >= BORDER) && (i <pcb.W-BORDER ) && (j >= BORDER) && (j < pcb.h+BORDER))
+ {
+ red=colour_Er2/(256*256); /* Fill in areas with Er2 (normally PCB substrate)*/
+ green=colour_Er2/256;
+ blue=colour_Er2%256;
+ }
+
+ /* Put the metal top LH surface of the PCB groundplane */
+ right_edge_of_LH_GP=(pcb.W/2-pcb.s/2-pcb.w-pcb.g)-BORDER;
+ if((i >= BORDER) && (i <=right_edge_of_LH_GP ) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
+ {
+ red=0; /* Fill in left hand groundplane on top of pcb */
+ green=255;
+ blue=0;
+ }
+ /* Left hand coupler, could be +1 V or -1 V it does not matter, as long as right one is opposite */
+ if( (i > right_edge_of_LH_GP + pcb.g ) && (i <= right_edge_of_LH_GP + pcb.g+pcb.w) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
+ {
+ red=0xff; /* Left hand coupler made to be +1 V */
+ green=0;
+ blue=0;
+ }
+ /* Right and coupler, set to -1 V */
+ if( (i > right_edge_of_LH_GP + pcb.g +pcb.w+pcb.s) && (i <= right_edge_of_LH_GP + pcb.g+pcb.w+pcb.s+pcb.w) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
+ {
+ red=0; /* Right hand coupler made to be -1 V */
+ green=0;
+ blue=0xff;
+ }
+ if( (i > right_edge_of_LH_GP + pcb.g+pcb.w+pcb.s+pcb.w+pcb.g) && (i <= pcb.W-BORDER) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
+ {
+ red=0; /* Right hand ground plane in place */
+ green=0xff;
+ blue=0;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+void fill_image_vector_for_thin_strip(int W,int H, int w, unsigned char *image_vector)
+{
+ int i, j, vector_original=0;
+ unsigned char red, green, blue;
+ for(j=0;j<H;++j)
+ {
+ for(i=0;i<W; ++i)
+ {
+ /* Put a small border in green. Only one pixel is needed, but
+ I'll put a few more. */
+
+ if( (j<BORDER) || (j>=H-BORDER))
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+ /* Fill in the dielectric */
+ else if( (j==H/2) && (i > (W-w)/2) && (i < (W+w)/2))
+ {
+ red=0xff;
+ green=0x00;
+ blue=0x00;
+ }
+ else
+ {
+ red=0xff;
+ green=0xff;
+ blue=0xff;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int W, H, w, s, verbose;
+
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties data)
+{
+ int i, j, vector_original=0;
+ unsigned char red, green, blue;
+ int left_edge_blue;
+ int left_edge_red;
+ left_edge_red=W/2 - w -s/2;
+ left_edge_blue=(W+s)/2;
+ if(verbose >=2)
+ printf("\nw=%d s=%d W=%d H=%d Er1=%x Er2=%x in fill..data for couplers\n", w, s, W, H,colour_Er1, colour_Er2);
+ for(j=0;j<H;++j)
+ {
+ for(i=0;i<W; ++i)
+ {
+ red=colour_Er1/(256*256); /* Fill in areas with Er1 */
+ green=colour_Er1/256;
+ blue=colour_Er1%256;
+
+ /* Put a small border in green. Only one pixel is needed, but
+ I'll put a few more. */
+
+ if( (j<BORDER) || (j>=H-BORDER))
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+ if( (i>=left_edge_blue) && (i<left_edge_blue+w) && j==(H/2)) /* conductor */
+ {
+ red=0x00;
+ green=0x00;
+ blue=0xff;
+ }
+ if( (i>=left_edge_red) && (i<left_edge_red+w) && j==(H/2)) /* conductor */
+ {
+ red=0xff;
+ green=0x00;
+ blue=0x00;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int D, w, h, x, y;
+
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties foo)
+{
+ int i, j, vector_original=0;
+ unsigned char red, green, blue;
+ for(j=0;j<D;++j)
+ {
+ for(i=0;i<D; ++i)
+ {
+ red=colour_Er1/(256*256); /* Fill in areas with Er1 */
+ green=colour_Er1/256;
+ blue=colour_Er1%256;
+
+ /* Put a small border in green. Only one pixel is needed, but
+ I'll put a few more. */
+ if( pow((double)i-(double)D/2.0-(double)BORDER,2.0) +
+ pow((double)j-(double)D/2.0-(double)BORDER,2.0)>=((double)D*(double)D)/4.)
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+ /* Fill in the inner conductor */
+ else /* fill in areas of Er1 */
+ {
+ red=colour_Er2/(256*256); /* fill in areas with Er2 */
+ green=colour_Er2/256;
+ blue=colour_Er2%256;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern int W, H, a, b, c, d, w, h;
+
+void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties foo)
+{
+ unsigned char red, green, blue;
+ int i, j, vector_original=0;
+ for(j=0;j<H;++j)
+ {
+ for(i=0;i<W; ++i)
+ {
+ red=colour_Er1/(256*256); /* Fill in areas with Er1 */
+ green=colour_Er1/256;
+ blue=colour_Er1%256;
+
+ /* Put a small border in green. Only one pixel is needed, but
+ I'll put a few more. */
+
+ if( (i<BORDER) || (i>=W-BORDER) || (j<BORDER) || (j>=H-BORDER))
+ {
+ red=0x00;
+ green=0xff;
+ blue=0x00;
+ }
+ /* Fill in the dielectric */
+ if( (i>=a+BORDER) && (i<a+d+BORDER) && (j<h+BORDER) && (j>=BORDER))
+ {
+ red=colour_Er2/(256*256); /* fill in areas with Er2 */
+ green=colour_Er2/256;
+ blue=colour_Er2%256;
+ }
+ if( (i>=b+BORDER) && (i<b+w+BORDER) && (j<h+c+BORDER) && (j>=h+BORDER)) /* conductor */
+ {
+ red=0xff;
+ green=0x00;
+ blue=0x00;
+ }
+ image_vector[vector_original]=blue;
+ image_vector[vector_original+1]=green;
+ image_vector[vector_original+2]=red;
+ vector_original+=3;
+ }
+ }
+}
--- /dev/null
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern double **Vij;
+extern unsigned char **oddity;
+extern double **Er;
+extern int width, height;
+
+double find_Ex(int i, int j)
+{
+ double Ex=0.0;
+ unsigned char odd;
+ odd = oddity[i][j];
+ if(odd > CONDUCTOR_FLOATING) {
+
+ if (odd == TOP_LEFT_CORNER || odd == BOTTOM_LEFT_CORNER)
+ Ex=Vij[0][j]-Vij[1][j];
+
+ else if (odd == TOP_RIGHT_CORNER || odd == BOTTOM_RIGHT_CORNER)
+ Ex=Vij[width-2][0]-Vij[width-1][0];
+
+ else if (odd == ORDINARY_POINT_TOP_EDGE || odd == ORDINARY_POINT_BOTTOM_EDGE)
+ Ex=0.5*(Vij[i-1][j]-Vij[i+1][j]);
+
+ else if (odd == ORDINARY_POINT_LEFT_EDGE)
+ Ex=(Vij[i][j]-Vij[i+1][j]);
+
+ else if (odd == ORDINARY_POINT_RIGHT_EDGE)
+ Ex=(Vij[width-2][j]-Vij[width-1][j]);
+
+ else if(odd == METAL_LEFT || odd == METAL_BELOW_AND_LEFT || odd == METAL_ABOVE_AND_LEFT)
+ Ex=Vij[i][j]-Vij[i+1][j];
+
+ else if(odd == METAL_RIGHT || odd == METAL_ABOVE_AND_RIGHT || odd ==METAL_BELOW_AND_RIGHT)
+ Ex=Vij[i-1][j]-Vij[i][j];
+
+ else if (odd == ORDINARY_INTERIOR_POINT || odd == METAL_ABOVE || odd == METAL_BELOW)
+ Ex=0.5*(Vij[i-1][j]-Vij[i+1][j]);
+
+ else if (odd >= DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT && odd < UNDEFINED_ODDITY )
+ Ex=0.5*(Vij[i-1][j]-Vij[i+1][j]);
+
+ else{
+ fprintf(stderr,"oddity[%d][%d]=%d\n",i,j,odd);
+ exit_with_msg_and_exit_code("Internal error in find_Ex",INTERNAL_ERROR);
+ }
+ }
+ return(Ex);
+}
+
+double find_Ey(int i, int j)
+{
+ double Ey=0.0;
+ unsigned char odd;
+ odd = oddity[i][j];
+
+ if(odd > CONDUCTOR_FLOATING) {
+
+ if (odd == TOP_LEFT_CORNER || odd == TOP_RIGHT_CORNER)
+ Ey=Vij[i][1]-Vij[i][0];
+
+ else if (odd == BOTTOM_LEFT_CORNER || odd == BOTTOM_RIGHT_CORNER)
+ Ey=Vij[i][height-1]-Vij[i][height-2];
+
+ else if (odd == ORDINARY_POINT_LEFT_EDGE || odd == ORDINARY_POINT_RIGHT_EDGE)
+ Ey=0.5*(Vij[i][j+1]-Vij[i][j-1]);
+
+ else if (odd == ORDINARY_POINT_BOTTOM_EDGE)
+ Ey=Vij[i][j+1]-Vij[i][j];
+
+ else if (odd == ORDINARY_POINT_TOP_EDGE)
+ Ey=Vij[i][j]-Vij[i][j-1];
+
+ else if (odd == METAL_ABOVE || odd == METAL_ABOVE_AND_LEFT || odd == METAL_ABOVE_AND_RIGHT)
+ Ey=Vij[i][j+1]-Vij[i][j];
+
+ else if (odd == METAL_BELOW || odd == METAL_BELOW_AND_LEFT || odd == METAL_BELOW_AND_RIGHT)
+ Ey=Vij[i][j]-Vij[i][j-1];
+
+ else if(odd >= DIFFERENT_DIELECTRIC_LOCALLY || odd == ORDINARY_INTERIOR_POINT || odd == METAL_RIGHT || odd == METAL_LEFT)
+ Ey=0.5*(Vij[i][j+1]-Vij[i][j-1]);
+
+ else{
+ fprintf(stderr,"oddity[%d][%d]=%d\n",i,j,odd);
+ exit_with_msg_and_exit_code("Internal error in find_Ey",INTERNAL_ERROR);
+ }
+ }
+ return(Ey);
+}
+
+double find_E(int w, int h)
+{
+ double Ex, Ey, E;
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=sqrt(Ex*Ex+Ey*Ey);
+ return(E);
+}
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+#include "definitions.h"
+
+extern double **Vij, **Er;
+extern unsigned char **oddity;
+extern int dielectrics_to_consider_just_now;
+extern double r;
+extern int width, height;
+
+double find_energy_per_metre(int w, int h)
+{
+ double energy_per_metre=0;
+ double Ex, Ey;
+
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ energy_per_metre+=0.5*EPSILON_0*(Ex*Ex+Ey*Ey);
+ if(dielectrics_to_consider_just_now>1)
+ energy_per_metre*=Er[w][h]; /* second run, energy proportional to Er */
+ return(energy_per_metre);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+#include "definitions.h"
+
+extern int width, height;
+extern unsigned char **oddity;
+extern double **Er, **Vij;
+
+void find_maximum_values(struct max_values *maximum_values, int zero_elementsQ)
+{
+ double U, V, Ex, Ey, E, permittivity;
+ int i, j;
+
+ /* It makes sense to draw the even and odd mode images on the same
+ scale, so if its a coupler, they elements are not zeroed if the
+ function is called when doing the even mode, which is done
+ after the odd mode */
+
+ if(zero_elementsQ==ZERO_ELEMENTS_FIRST)
+ {
+ maximum_values->E_max=0.0;
+ maximum_values->Ex_or_Ey_max=0.0;
+ maximum_values->V_max=0.0;
+ maximum_values->U_max=0.0;
+ maximum_values->permittivity_max=0.0;
+ }
+ for(i=0;i<width;++i)
+ {
+ for(j=0;j<height;++j)
+ {
+ V=Vij[i][j];
+ U=find_energy_per_metre(i,j);
+ if(1)
+ {
+ if(i==0)
+ Ex=2*Er[i+1][j]*(Vij[i][j]-Vij[i+1][j])/(Er[i+1][j]+Er[i][j]);
+ else if (i==width-1)
+ Ex=2*Er[i-1][j]*(Vij[i-1][j]-Vij[i][j])/(Er[i-1][j]+Er[i][j]);
+ else /* This is the best estimate, but can't be done on boundary */
+ {
+ Ex=Er[i-1][j]*(Vij[i-1][j]-Vij[i][j])/(Er[i-1][j]+Er[i][j]);
+ Ex+=Er[i+1][j]*(Vij[i][j]-Vij[i+1][j])/(Er[i+1][j]+Er[i][j]);
+ }
+ if(j==0)
+ Ey=2*Er[i][j+1]*(Vij[i][j]-Vij[i][j+1])/(Er[i][j+1]+Er[i][j]);
+ else if (j==height-1)
+ Ey=2*Er[i][j-1]*(Vij[i][j-1]-Vij[i][j])/(Er[i][j-1]+Er[i][j]);
+ else
+ {
+ Ey=Er[i][j-1]*(Vij[i][j-1]-Vij[i][j])/(Er[i][j-1]+Er[i][j]);
+ Ey+=Er[i][j+1]*(Vij[i][j]-Vij[i][j+1])/(Er[i][j+1]+Er[i][j]);
+ }
+ E=sqrt(Ex*Ex+Ey*Ey);
+ permittivity=Er[i][j];
+ }
+ else
+ {
+ Ex=0.0;
+ Ey=0.0;
+ E=0.0;
+ permittivity=0.0;
+ }
+ if(U> 1.0)
+ printf("U=%f v=%f Er=%f at %d %d\n",U,V,Er[i][j],i, j);
+
+ if(E>maximum_values->E_max)
+ maximum_values->E_max=E;
+
+
+ if(fabs(Ex)>maximum_values->Ex_or_Ey_max)
+ maximum_values->Ex_or_Ey_max=fabs(Ex);
+
+ if(fabs(Ey)>maximum_values->Ex_or_Ey_max)
+ maximum_values->Ex_or_Ey_max=fabs(Ey);
+
+ if(fabs(E)>maximum_values->E_max)
+ maximum_values->E_max=fabs(E);
+
+ if(fabs(V) > maximum_values->V_max)
+ maximum_values->V_max=fabs(V);
+
+ if(U > maximum_values->U_max)
+ maximum_values->U_max=U;
+
+ if(permittivity >maximum_values->permittivity_max )
+ maximum_values->permittivity_max=permittivity;
+ /* printf("Ex_or_Ey_max=%g E_max=%g V_max=%g U_max=%g Er_max=%g\n",maximum_values->Ex_or_Ey_max, maximum_values->E_max, maximum_values->V_max, maximum_values->U_max, maximum_values->permittivity_max); */
+ }
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern char *my_optarg;
+int main(int argc, char **argv)
+{
+ double g, gmin=0.5, gmax=5, gstep=0.5;
+ double s, smin=0.5, smax=5, sstep=0.5;
+ double w, wmin=0.5, wmax=5, wstep=0.5;
+ double Er1=1, Er2=1, h=1, t=1; /* keep the compiler from issuing warnings */
+ double Zcomm, Zdiff, Zodd, Zeven;
+ double Er_odd, Er_even, Zo;
+ double error_min=1e100, error;
+ double ideal_Zodd=0, ideal_Zeven=0;
+ char *outfile_name, *temporary_bmp_file, *temporary_txt_file;
+ int x, q, exit_code;
+ char *cmd, *null;
+ FILE *fp, *fp_best;
+ outfile_name = string(0,4000);
+ cmd = string(0,4000);
+ null = string(0,4000);
+ temporary_bmp_file = string(0,4000);
+ temporary_txt_file = string(0,4000);
+ while((q=get_options(argc,argv,"g:b:G:w:W:s:S:")) != -1)
+ switch (q)
+ {
+ case 'C':
+ print_copyright( (char *) "1996-2002");
+ exit_with_msg_and_exit_code("",OKAY);
+ break;
+ case 'g':
+ gmin=atof(my_optarg);
+ break;
+ /*
+ case 'b':
+ bmp_size=atoi(my_optarg);
+ break;
+ */
+ case 'G':
+ gmax=atof(my_optarg);
+ break;
+ case 'h':
+ gstep=atof(my_optarg);
+ break;
+ case 's':
+ smin=atof(my_optarg);
+ break;
+ case 'S':
+ smax=atof(my_optarg);
+ break;
+ case 't':
+ sstep=atof(my_optarg);
+ break;
+ case 'w':
+ wmin=atof(my_optarg);
+ break;
+ case 'W':
+ wmax=atof(my_optarg);
+ break;
+ case 'x':
+ wstep=atof(my_optarg);
+ break;
+ case '?':
+ usage_find_optimal_dimensions_for_microstrip_coupler();
+ break;
+ }
+ if(argc-my_optind == 7)
+ {
+ h=atof(argv[my_optind]);
+ t=atof(argv[my_optind+1]);
+ Er1=atof(argv[my_optind+2]);
+ Er2=atof(argv[my_optind+3]);
+ ideal_Zodd=atof(argv[my_optind+4]);
+ ideal_Zeven=atof(argv[my_optind+5]);
+ check_parameters_for_find_optimal_dimensions_for_microstrip_coupler(h,t,Er1,Er2,ideal_Zodd,ideal_Zeven);
+ (void) strcpy(outfile_name, argv[my_optind+6]);
+ }
+ else
+ usage_find_optimal_dimensions_for_microstrip_coupler();
+ (void) strcpy(temporary_bmp_file,"1.bmp");
+ (void) strcpy(temporary_txt_file,"1.txt");
+ if( (exit_code=pclose(popen("rm 1.txt 1.bmp","w"))) != 0)
+ {
+ fprintf(stderr,"rm 1.txt 1.bmp did not returned an exit code of %d\n",exit_code);
+ exit(exit_code);
+ }
+ for(g=gmin; g <=gmax; g+=gstep)
+ {
+ for(w=wmin; w<=wmax; w+=wstep)
+ {
+ for(s=smin; s<=smax; s+=sstep)
+ {
+ sprintf(cmd,"create_bmp_for_microstrip_coupler %f %f %f %f %f %f %f %s\n",w, s, g, h, t, Er1, Er2,temporary_bmp_file);
+ if( (exit_code=pclose(popen(cmd,"w"))) != 0)
+ {
+ fprintf(stderr,"pclose(popen(%s,\"w\"))) returned with an exit code of %d\n",cmd, exit_code);
+ exit(exit_code);
+ }
+ sprintf(cmd,"atlc -S -s %s > %s\n", temporary_bmp_file, temporary_txt_file);
+ exit_code=pclose(popen(cmd,"w"));
+ if( (exit_code=pclose(popen(cmd,"w"))) != 0)
+ {
+ fprintf(stderr,"pclose(popen(%s,\"w\"))) returned with an exit code of %d\n",cmd,exit_code);
+ exit(exit_code);
+ }
+ if ((fp=fopen(temporary_txt_file,"r")) ==NULL)
+ exit_with_msg_and_exit_code("Error #1 cant't open file in find_optimal_dimensions_for_microstrip_coupler.c", CANT_OPEN_FILE_FOR_READING);
+ fscanf(fp,"%s %d %s %lf %s %lf %s %lf %s %lf %s %lf %s %lf %s %lf",null,&x,null,&Er_odd,null,&Er_even, null, &Zodd,null,&Zeven,null,&Zo, null, &Zdiff,null,&Zcomm);
+ if (fclose(fp) !=0)
+ exit_with_msg_and_exit_code("Error #2 Unable to close file in ind_optimal_dimensions_for_microstrip_coupler.c",CANT_CLOSE_FILE);
+ printf("x=%d Er_odd=%f Er_even=%f Zodd=%f Zeven=%f Zo=%f Zdiff=%f Zcomm=%f\n",x, Er_odd,Er_even,Zodd, Zeven,Zo, Zdiff, Zcomm);
+ error=fabs(Zodd-ideal_Zodd)/ideal_Zodd+fabs(Zeven-ideal_Zeven)/ideal_Zeven;
+ /* By forcing the error to be a be not just bettter, but better by at
+ least TINY, it means the results will be the same on differerent computers,
+ with no difference due to rouunding errors */
+ if(error< error_min+TINY)
+ {
+ error_min=error;
+ printf("best so far = s=%f w=%f g=%f Zodd=%f Zeven=%f Zdiff=%f Zcomm=%f error=%f\n",s,w,g, Zodd, Zeven,Zdiff, Zcomm,error);
+ if ((fp_best=fopen(outfile_name,"a")) == NULL)
+ exit_with_msg_and_exit_code("Error #3 Can't open file output file update",CANT_OPEN_FILE_FOR_APPENDING);
+ fprintf(fp_best,"best so far = s=%f w=%f g=%f Zodd=%f Zeven=%f Zdiff=%f Zcomm=%f\n",s,w,g, Zdiff, Zcomm,Zodd, Zeven);
+ if (fclose(fp_best) != 0)
+ exit_with_msg_and_exit_code("Error #4 Unable to close file in optimal_dimensions_for_microstrip_coupler.c",CANT_CLOSE_FILE);
+ } /* end of if */
+ } /* end of for s */
+ } /* end of for w */
+ } /* end of for g */
+ return(0);
+}
+
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef ENABLE_MPI /* file only needed on MPI systems. */
+
+#include <mpi.h>
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+
+extern int coupler;
+extern int width, height;
+extern double **Vij, **Er;
+extern signed char **oddity;
+extern int num_pes;
+extern int dielectrics_to_consider_just_now;
+extern struct strip strip_map[MAX_PES+1];
+
+/* these variables are only needed on PE 0,
+ but are declared here for all for convenience.
+ by switching to a dynamic allocation scheme,
+ we could make them local to finite_difference,
+ and only allocate them on PE 0.
+*/
+MPI_Request energy_rcv_requests[MAX_PES];
+double energies[MAX_PES];
+
+/*
+ the job of a worker PE is to work on a columnar strip
+ of the voltage array for a given number of iterations,
+ then send off the results to PE 0.
+
+ in order for a worker PE to calculate the edges of
+ its strip, it needs two additional columns of data
+ to the left and two additional columns of data to
+ the right of its strip. initially, PE 0 supplies
+ the extra columns. after the first iteration, the
+ the PE needs to update the columns adjacent to its
+ strip edges, and to do that, it needs the columns
+ that are adjacent to those (hence each worker PE
+ maintains 4 columns of data in addtion to its strip).
+ the outermost columns are sent from the neighbor PEs
+ after they are done computing them for the current
+ iteration. after they are received, the columns
+ adjacent to the strip edges are updated, and the PE
+ moves on to the next iteration.
+
+ after the prescribed number of iterations are completed,
+ each worker PE sends its strip of the voltage matrix
+ to PE 0, so that PE 0 has a complete up-to-date copy
+ of the voltage array after each call to finite_difference.
+ while that data is being sent, the worker PE computes
+ the energy_per_metre ot its strip and then sends that
+ off to PE 0, so that PE 0 can compute the overall
+ capacitance_per_metre.
+
+*/
+
+
+/*
+ this routine is only run on the worker PEs
+*/
+
+void mpi_worker(int rank) {
+
+ int width_height[2];
+ int strip_params[2];
+ int start_col, num_cols;
+ MPI_Status status;
+ int control, done;
+ int i,j,iterations;
+ MPI_Request send_requests[2];
+ MPI_Status send_statuses[2];
+ MPI_Request rcv_requests[2];
+ double energy_per_metre;
+ int index;
+
+ /* get the total width and height of the voltage
+ matrix. the worker PE needs to know the column
+ height in order to run its calculations. the
+ width is also currently needed for the electric
+ field subroutines.
+ */
+ MPI_Recv(&width_height,
+ 2,
+ MPI_INT,
+ 0,
+ MSG_TAG_WIDTH_HEIGHT,
+ MPI_COMM_WORLD,
+ &status);
+
+ width = width_height[0];
+ height = width_height[1];
+
+ /* get the location and size of the strip of the
+ voltage matrix that has been assigned to this
+ PE. strictly speaking, the PE does not need
+ to know the starting column number since it
+ uses its own local indexing scheme, but it
+ is sent anyway as a debugging aid if needed.
+ */
+ MPI_Recv(&strip_params,
+ sizeof(strip_params)/sizeof(int),
+ MPI_INT,
+ 0,
+ MSG_TAG_STRIP_PARAMS,
+ MPI_COMM_WORLD,
+ &status);
+
+ /* this is the starting column in the global voltage matrix
+ of the columnar strip this PE has been assigned*/
+ start_col = strip_params[0];
+
+ /* this is the width of the columnar strip that this PE
+ has been assigned from the global voltage matrix */
+ num_cols = strip_params[1];
+
+ /* allocate matrixes big enough to contain the
+ assigned strip and supporting data */
+ oddity=cmatrix(0,num_cols+4,0,height);
+ Vij=dmatrix(0,num_cols+4,0,height);
+ Er=dmatrix(0,num_cols+4,0,height);
+
+ /* get the oddity data to use in computing
+ the assigned strip */
+ MPI_Recv(oddity[0],
+ (num_cols+4)*height,
+ MPI_DOUBLE,
+ 0,
+ MSG_TAG_NODE_TYPE,
+ MPI_COMM_WORLD,
+ &status);
+
+ /* get the Er data to use in computing
+ the assigned strip */
+ MPI_Recv(Er[0],
+ (num_cols+4)*height,
+ MPI_DOUBLE,
+ 0,
+ MSG_TAG_ER,
+ MPI_COMM_WORLD,
+ &status);
+
+ /*************************************************
+ * all of the data received above this point is *
+ * sent only once in the lifetime of the program *
+ *************************************************/
+
+ done = 0;
+ do {
+
+ /* recieve a control word that tells
+ the PE whether to set off on another
+ set of iterations, or to exit */
+
+ MPI_Recv(&control,
+ 1,
+ MPI_INT,
+ 0,
+ MSG_TAG_CONTROL,
+ MPI_COMM_WORLD,
+ &status);
+
+ switch (control) {
+ case CONTROL_VALUE_RECEIVE_DATA:
+ /* receive the strip of the voltage matrix
+ that we are to update. this is sent by PE 0. */
+ MPI_Recv(Vij[1],
+ (num_cols+2)*height,
+ MPI_DOUBLE,
+ 0,
+ MSG_TAG_VIJ,
+ MPI_COMM_WORLD,
+ &status);
+
+ /* receive the current value of
+ dielectrics_to_consider_just_now.
+ this is sent by PE 0. */
+ MPI_Recv(&dielectrics_to_consider_just_now,
+ 1,
+ MPI_INT,
+ 0,
+ MSG_TAG_ORDINARY_INTERIOR_POINTS,
+ MPI_COMM_WORLD,
+ &status);
+
+ break;
+ case CONTROL_VALUE_SEND_DATA:
+ /* send our strip to PE 0 */
+ MPI_Send(Vij[2],
+ num_cols*height,
+ MPI_DOUBLE,
+ 0,
+ MSG_TAG_VIJ,
+ MPI_COMM_WORLD);
+ break;
+ case CONTROL_VALUE_DO_ITERATIONS:
+ /* receive the number of iterations we are
+ to compute for. this is sent by PE 0 at
+ the beginning of finite_difference. */
+ MPI_Recv(&iterations,
+ 1,
+ MPI_INT,
+ 0,
+ MSG_TAG_ITERATIONS,
+ MPI_COMM_WORLD,
+ &status);
+
+ i=0;
+ do {
+
+ /* update our strip of the voltage matrix */
+ do_columns(2, num_cols, 0);
+
+ /* send the columns that the neighbor PEs
+ require to the nieghbor PEs */
+ MPI_Isend(Vij[num_cols+1],
+ height,
+ MPI_DOUBLE,
+ (rank+1)%num_pes,
+ MSG_TAG_VIJ_RBORDER,
+ MPI_COMM_WORLD,
+ &send_requests[1]);
+
+ MPI_Isend(Vij[2],
+ height,
+ MPI_DOUBLE,
+ rank-1,
+ MSG_TAG_VIJ_LBORDER,
+ MPI_COMM_WORLD,
+ &send_requests[0]);
+
+ /* receive the columns that we need
+ to update the columns adjacent
+ to our strip edges from the neighbor
+ PEs */
+ MPI_Irecv(Vij[num_cols + 3],
+ height,
+ MPI_DOUBLE,
+ (rank+1)%num_pes,
+ MSG_TAG_VIJ_LBORDER,
+ MPI_COMM_WORLD,
+ &rcv_requests[0]);
+
+ MPI_Irecv(Vij[0],
+ height,
+ MPI_DOUBLE,
+ rank-1,
+ MSG_TAG_VIJ_RBORDER,
+ MPI_COMM_WORLD,
+ &rcv_requests[1]);
+
+ /* update the columns adjacent to our strip
+ edges */
+ MPI_Waitany(2,
+ rcv_requests,
+ &index,
+ &status);
+
+ if (0 == index) {
+ update_voltage_array(num_cols + 2,0,Vij_TO_Vij);
+ } else {
+ update_voltage_array(1,0,Vij_TO_Vij);
+ }
+
+ MPI_Waitany(2,
+ rcv_requests,
+ &index,
+ &status);
+
+ if (0 == index) {
+ update_voltage_array(num_cols + 2,0,Vij_TO_Vij);
+ } else {
+ update_voltage_array(1,0,Vij_TO_Vij);
+ }
+
+
+ MPI_Waitall(2, send_requests, send_statuses);
+
+ i++;
+ } while(i < iterations);
+
+
+ energy_per_metre=0.0;
+ for(i=2;i<2+num_cols;++i)
+ for(j=0;j<height;++j) {
+ energy_per_metre+=find_energy_per_metre(i,j);
+ }
+
+ MPI_Send(&energy_per_metre,
+ 1,
+ MPI_DOUBLE,
+ 0,
+ MSG_TAG_ENERGY,
+ MPI_COMM_WORLD);
+ break;
+ case CONTROL_VALUE_EXIT:
+ done = 1;
+ break;
+ }
+
+ } while (0 == done);
+
+}
+
+
+
+void do_columns(int start_col, int num_cols, int calculate_edges)
+{
+ int i;
+ int end_col;
+
+ end_col = start_col + num_cols - 1;
+
+ for(i=start_col; i<=end_col; ++i)
+ {
+ update_voltage_array(i, calculate_edges,Vij_TO_Vij);
+ }
+}
+
+
+
+/* There are three versions of finite_difference. They all take the same
+arguments and return the same data. One is single threaded, one is
+multi-threaded, and this one uses MPI. */
+
+double finite_difference(int accuracy)
+{
+ int i, j, a;
+ double capacitance_per_metre=0.0, energy_per_metre;
+ int left_start_col, left_num_cols;
+ int right_start_col, right_num_cols;
+ MPI_Status status;
+ int control;
+ MPI_Request send_requests[2];
+ MPI_Status send_statuses[2];
+ MPI_Request rcv_requests[2];
+ MPI_Status rcv_statuses[2];
+ int index;
+
+ for(i=1; i<num_pes; i++) {
+
+ /* arm worker */
+ control = CONTROL_VALUE_DO_ITERATIONS;
+ MPI_Send(&control,
+ 1,
+ MPI_INT,
+ i,
+ MSG_TAG_CONTROL,
+ MPI_COMM_WORLD);
+
+ /* send the iteration count */
+ MPI_Send(&accuracy,
+ 1,
+ MPI_INT,
+ i,
+ MSG_TAG_ITERATIONS,
+ MPI_COMM_WORLD);
+ }
+
+ /* these are the parameters of the left and right
+ half-strips that PE 0 is responsible for */
+ left_start_col = strip_map[0].start_col;
+ left_num_cols = strip_map[0].num_cols;
+
+ right_start_col = strip_map[num_pes].start_col;
+ right_num_cols = strip_map[num_pes].num_cols;
+
+ for(a=1; a<=accuracy; ++a) {
+
+ /* update the left and right half-strips */
+ do_columns(left_start_col+1, left_num_cols-1, 1);
+ do_columns(right_start_col, right_num_cols-1, 1);
+
+ /* send the columns that PE 1 and PE N-1
+ need to those PEs */
+ MPI_Isend(Vij[left_num_cols - 2],
+ height,
+ MPI_DOUBLE,
+ 1,
+ MSG_TAG_VIJ_RBORDER,
+ MPI_COMM_WORLD,
+ &send_requests[0]);
+
+ MPI_Isend(Vij[right_start_col+1],
+ height,
+ MPI_DOUBLE,
+ num_pes-1,
+ MSG_TAG_VIJ_LBORDER,
+ MPI_COMM_WORLD,
+ &send_requests[1]);
+
+ /* receive the columns that we need
+ to update the columns adjacent
+ to our strip edges from PE 1 and
+ PE N-1 */
+ MPI_Irecv(Vij[right_start_col-2],
+ height,
+ MPI_DOUBLE,
+ num_pes-1,
+ MSG_TAG_VIJ_RBORDER,
+ MPI_COMM_WORLD,
+ &rcv_requests[0]);
+
+ MPI_Irecv(Vij[left_num_cols+1],
+ height,
+ MPI_DOUBLE,
+ 1,
+ MSG_TAG_VIJ_LBORDER,
+ MPI_COMM_WORLD,
+ &rcv_requests[1]);
+
+ MPI_Waitall(2, rcv_requests, rcv_statuses);
+
+ /* update the columns adjacent to our strip
+ edges */
+ update_voltage_array(left_num_cols, 1,Vij_TO_Vij);
+ update_voltage_array(right_start_col - 1, 1,Vij_TO_Vij);
+
+ MPI_Waitall(2, send_requests, send_statuses);
+
+ } /* end of accuracy loop */
+
+ /* set up receives for the energies from the worker PEs */
+ for(i=1; i<num_pes; i++) {
+ MPI_Irecv(&energies[i-1],
+ 1,
+ MPI_DOUBLE,
+ i,
+ MSG_TAG_ENERGY,
+ MPI_COMM_WORLD,
+ &energy_rcv_requests[i-1]);
+ }
+
+
+ /* The energy in the matrix has now been minimised a number
+ (accuracy) times, so we now calcuate the capacitance to see if it is
+ converging */
+
+ energy_per_metre=0.0;
+
+ /* sum up all of the PE energies.
+ they can arrive in any order. */
+ for(i=1; i<num_pes; i++) {
+ MPI_Waitany(num_pes-1,
+ energy_rcv_requests,
+ &index,
+ &status);
+ energy_per_metre += energies[index];
+ }
+
+ /* add in the left half-strip energy */
+ for(i=left_start_col;i<left_start_col+left_num_cols;++i)
+ for(j=0;j<height;++j)
+ {
+ energy_per_metre+=find_energy_per_metre(i,j);
+ }
+
+ /* add in the right half-strip energy */
+ for(i=right_start_col;i<right_start_col+right_num_cols;++i)
+ for(j=0;j<height;++j)
+ {
+ energy_per_metre+=find_energy_per_metre(i,j);
+ }
+
+ if(coupler==FALSE)
+ capacitance_per_metre=2*energy_per_metre;
+ else if (coupler==TRUE)
+ capacitance_per_metre=energy_per_metre;
+
+ return(capacitance_per_metre);
+}
+#endif
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#define SLOW
+
+#ifndef ENABLE_POSIX_THREADS
+
+/* If we are not comiling for multi-threaded use, a function
+is defined, but it is not used. This keeps the linker happy */
+
+double finite_difference_multi_threaded()
+{
+ return(0.0);
+}
+#endif
+
+
+#ifdef ENABLE_POSIX_THREADS
+
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include <pthread.h>
+
+#ifdef HAVE_SCHED_H
+#include <sched.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern int coupler;
+extern int width, height;
+extern double **Vij, **Er;
+extern signed char **oddity;
+extern int number_of_workers;
+
+
+/* The algorithm for this is based on one in the book 'Foundations of Multithraded,
+Parallel and Distributed Programming' by G. A. Andrews, (2000). Especially
+chapter 11, Fig 11.6, "Red/Black Gauss-Seidel using shared vairables'.
+
+Basically the array is a considered a chess board. Since we only use in the computation the
+values above, below, to the left and the right of the current pixel, these will all be the
+same colour on the chess board (black or white). So we compute all the white squares, which
+can all be done in parallel, since they don't depend on each other. Once the white squares
+are done, the black ones can be done. Again, these don't depend on the white squares, but
+only the black ones. So the algorithm does
+
+1) Covers the array with a large chess board with black and white squares.
+
+
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+
+
+2) Split the array into a number of columns, one for each CPU.
+
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+B W B W B W B W B W B W B W B W B W B W B W B W B W B W
+W B W B W B W B W B W B W B W B W B W B W B W B W B W B
+
+3) Do all columns in parallel on the black squares.
+
+B B B B B B B B B B B B B B
+ B B B B B B B B B B B B B B
+B B B B B B B B B B B B B B
+ B B B B B B B B B B B B B B
+B B B B B B B B B B B B B B
+ B B B B B B B B B B B B B B
+B B B B B B B B B B B B B B
+ B B B B B B B B B B B B B B
+B B B B B B B B B B B B B B
+ B B B B B B B B B B B B B B
+B B B B B B B B B B B B B B
+ B B B B B B B B B B B B B B
+
+Thread 0 Thread 1 Thread 2 Thread 3
+
+4) Wait until all the black squares are done.
+
+5) Compute all the white squares in parallel.
+
+ W W W W W W W W W W W W W W
+W W W W W W W W W W W W W W
+ W W W W W W W W W W W W W W
+W W W W W W W W W W W W W W
+ W W W W W W W W W W W W W W
+W W W W W W W W W W W W W W
+ W W W W W W W W W W W W W W
+W W W W W W W W W W W W W W
+ W W W W W W W W W W W W W W
+W W W W W W W W W W W W W W
+ W W W W W W W W W W W W W W
+W W W W W W W W W W W W W W
+Thread 0 Thread 1 Thread 2 Thread 3
+
+
+6) Repeat a large number (typically 100) times.
+
+7) Check for convergence.
+
+8) Stop if the solution has converged.
+*/
+
+extern double r;
+
+pthread_mutex_t barrier; /* mutex semaphore for the barrier */
+pthread_cond_t go; /* condition variable for leaving */
+int numArrived = 0; /* count of the number who have arrived */
+
+#define BARRIER2
+
+#ifdef BARRIER1
+void Barrier() {
+#ifndef DEBUG
+ pthread_mutex_lock(&barrier);
+#else
+ if( pthread_mutex_lock(&barrier) != 0 )
+ exit_with_msg_and_exit_code("pthread_mutex_lock failed",PTHREAD_MUTEX_LOCK_FAILED);
+#endif
+
+ numArrived++;
+ if (numArrived == number_of_workers) {
+ numArrived = 0;
+ pthread_cond_broadcast(&go);
+ } else
+ pthread_cond_wait(&go, &barrier);
+#ifndef DEBUG
+ pthread_mutex_unlock(&barrier);
+#else
+ if( pthread_mutex_unlock(&barrier) != 0 )
+ exit_with_msg_and_exit_code("pthread_mutex_unlock failed",PTHREAD_MUTEX_UNLOCK_FAILED);
+#endif
+}
+#endif
+
+#ifdef BARRIER2
+int numArrived2[2] = {0, 0};
+int barrierNdx = 0;
+
+void Barrier() {
+ int localNdx;
+#ifndef DEBUG
+ pthread_mutex_lock(&barrier);
+#else
+ if( pthread_mutex_lock(&barrier) != 0 )
+ exit_with_msg_and_exit_code("pthread_mutex_lock failed in finite_difference_multi_threaded.c",PTHREAD_MUTEX_LOCK_FAILED);
+#endif
+
+ numArrived2[barrierNdx]++;
+ if (numArrived2[barrierNdx] == number_of_workers) {
+ barrierNdx = (barrierNdx + 1)%2; /* toggle */
+ numArrived2[barrierNdx] = 0; /* reset other count */
+
+#ifndef DEBUG
+ pthread_cond_broadcast(&go);
+#else
+ if( pthread_cond_broadcast(&go) != 0)
+ exit_with_msg_and_exit_code("pthread_cond_broadcast failed in finite_difference_multi_threaded.c",PTHREAD_COND_BROADCAST_FAILED);
+#endif
+ }
+ else
+ {
+ localNdx = barrierNdx; /* wait on "current" numArrived. */
+ while (numArrived2[localNdx] != number_of_workers)
+#ifndef DEBUG
+ pthread_cond_wait(&go, &barrier);
+#else
+ if( pthread_cond_wait(&go, &barrier) != 0)
+ exit_with_msg_and_exit_code("pthread_cond_wait failed finite_difference_multi_threaded.c",PTHREAD_COND_WAIT_FAILED);
+#endif
+ }
+#ifndef DEBUG
+ pthread_mutex_unlock(&barrier);
+#else
+ if( pthread_mutex_unlock(&barrier) != 0 )
+ exit_with_msg_and_exit_code("pthread_mutex_unlock failed finite_difference_multi_threaded.c",PTHREAD_MUTEX_UNLOCK_FAILED);
+#endif
+}
+#endif
+
+
+
+/* Each Worker computes values in one strip of the grids.
+ The main worker loop does two computations to avoid copying from
+ one grid to the other. */
+
+void *worker(void *arg) {
+ int myid = (int) arg;
+ double r_over_4,a,b,c,d,e,f,g,h;
+ double one_minus_r;
+ int i, j, iters, jstart;
+ int firstcol, lastcol;
+ int strip_width=width/number_of_workers;
+
+ firstcol = myid*strip_width+1;
+ lastcol = firstcol + strip_width - 1;
+ r_over_4=r/4.0;
+ one_minus_r=1-r;
+ if(myid == number_of_workers -1)
+ lastcol=width-2;
+ Barrier();
+ for (iters = 1; iters <= ITERATIONS; iters++)
+ {
+ for(i= firstcol ; i <= lastcol; ++i){
+ if(i%2 ==1 )
+ jstart=1;
+ else
+ jstart=2;
+ for(j=jstart ; j < height-1 ; j+=2){
+ if(oddity[i][j] == ORDINARY_INTERIOR_POINT) /* Same dielectric all around */
+ Vij[i][j]=r_over_4*(Vij[i][j+1]+Vij[i+1][j]+Vij[i][j-1]+Vij[i-1][j])+one_minus_r*Vij[i][j];
+ else if(oddity[i][j] > ORDINARY_INTERIOR_POINT) /* only update dielectrics, not conductors */
+ {
+ a=(Er[i][j] * Er[i][j-1] * Vij[i][j-1])/(Er[i][j] + Er[i][j-1]);
+ b=(Er[i][j] * Er[i][j+1] * Vij[i][j+1])/(Er[i][j] + Er[i][j+1]);
+ c=(Er[i][j] * Er[i-1][j] * Vij[i-1][j])/(Er[i][j] + Er[i-1][j]);
+ d=(Er[i][j] * Er[i+1][j] * Vij[i+1][j])/(Er[i][j] + Er[i+1][j]);
+
+ e=(Er[i][j] * Er[i][j-1])/(Er[i][j]+Er[i][j-1]);
+ f=(Er[i][j] * Er[i][j+1])/(Er[i][j]+Er[i][j+1]);
+ g=(Er[i][j] * Er[i-1][j])/(Er[i][j]+Er[i-1][j]);
+ h=(Er[i][j] * Er[i+1][j])/(Er[i][j]+Er[i+1][j]);
+
+ Vij[i][j]=r*(a+b+c+d)/(e+f+g+h) + (1-r)*Vij[i][j];
+ }
+ }
+ }
+ Barrier();
+ for(i= firstcol ; i <= lastcol; ++i){
+ if(i%2 ==1 )
+ jstart=2;
+ else
+ jstart=1;
+ for(j=jstart ; j < height -1; j+=2){
+ if(oddity[i][j] == ORDINARY_INTERIOR_POINT) /* Same dielectric all around */
+ Vij[i][j]=r_over_4*(Vij[i][j+1]+Vij[i+1][j]+Vij[i][j-1]+Vij[i-1][j])+one_minus_r*Vij[i][j];
+ else if(oddity[i][j] > ORDINARY_INTERIOR_POINT) /* only update dielectrics, not conductors */
+ {
+ a=(Er[i][j] * Er[i][j-1] * Vij[i][j-1])/(Er[i][j] + Er[i][j-1]);
+ b=(Er[i][j] * Er[i][j+1] * Vij[i][j+1])/(Er[i][j] + Er[i][j+1]);
+ c=(Er[i][j] * Er[i-1][j] * Vij[i-1][j])/(Er[i][j] + Er[i-1][j]);
+ d=(Er[i][j] * Er[i+1][j] * Vij[i+1][j])/(Er[i][j] + Er[i+1][j]);
+
+ e=(Er[i][j] * Er[i][j-1])/(Er[i][j]+Er[i][j-1]);
+ f=(Er[i][j] * Er[i][j+1])/(Er[i][j]+Er[i][j+1]);
+ g=(Er[i][j] * Er[i-1][j])/(Er[i][j]+Er[i-1][j]);
+ h=(Er[i][j] * Er[i+1][j])/(Er[i][j]+Er[i+1][j]);
+
+ Vij[i][j]=r*(a+b+c+d)/(e+f+g+h) + (1-r)*Vij[i][j];
+ }
+ }
+ }
+ Barrier();
+ }
+ Barrier();
+ return(0);
+}
+
+double finite_difference_multi_threaded()
+{
+ int i, j, ret, thread_number;
+ pthread_t thread_id[MAXIMUM_PROCESSING_DEVICES];
+
+
+ double capacitance_per_metre, energy_per_metre;
+
+
+ /* initialize mutex and condition variable */
+ pthread_mutex_init(&barrier, NULL);
+ pthread_cond_init(&go, NULL);
+ for(thread_number=0;thread_number<number_of_workers;thread_number++){
+ ret=pthread_create(&thread_id[thread_number],NULL, worker,(void *)thread_number);
+ if(ret != 0)
+ exit_with_msg_and_exit_code("failed to create thread in finite_difference_multi_threaded.c",THREAD_CREATION_FAILED);
+ }
+ /* Wait for each thread to join - i.e. once they are all finished. */
+ for(thread_number=0;thread_number<number_of_workers;thread_number++)
+ {
+ ret=pthread_join(thread_id[thread_number], NULL);
+ if(ret != 0)
+ exit_with_msg_and_exit_code("failed to join thread in finite_difference_multi_threaded.c",THREAD_FAILED_TO_JOIN);
+ }
+ energy_per_metre=0.0;
+ /*
+ The following code is wrong, but worked on all systems apart from AIX !!
+
+ for(i=0;i<width;++i)
+ for(j=0;j<height;++j)
+ energy_per_metre+=find_energy_per_metre(i,j);
+ */
+
+ for(i=1;i<width-1;++i)
+ for(j=1;j<height-1;++j)
+ energy_per_metre+=find_energy_per_metre(i,j);
+
+ if(coupler==FALSE)
+ capacitance_per_metre=2*energy_per_metre;
+ else
+ capacitance_per_metre=energy_per_metre;
+ return(capacitance_per_metre);
+}
+#endif
--- /dev/null
+#ifndef ENABLE_MP
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#include "definitions.h"
+
+
+extern int width, height;
+extern double **Vij, **Er;
+extern unsigned char **oddity;
+extern int dielectrics_to_consider_just_now;
+extern double r;
+extern int coupler;
+
+#include "exit_codes.h"
+
+double finite_difference_single_threaded()
+{
+ int i, j;
+ int number_of_iterations=25;
+ double capacitance_per_metre, energy_per_metre;
+
+ /* The following might not look very neat, with a whole load of code being
+ written twice, when it would be posible to make it easier to read if the
+ 'if(dielectrics_in_bitmap > 1)' was in an inner loop. However, the
+ following is almost certainly more efficient. It is not a good idea to
+ have any more than necessary in the inner loop.
+
+ The option to avoid the faster convergence algorithm has been didtched
+ too, as this was in an inner loop. The faster covergence method seems
+ to work fine, so there is no need to avoid using it */
+
+
+ /* Note, that while the number of intterations requested is set in the first
+ parameter to update_voltage_array, the actual number done is 4x higher, as
+ each computation id done in 4 directions */
+
+ update_voltage_array(number_of_iterations, 0, width-1, 0, height-1, Vij, Vij);
+
+ /* Once the voltage distribution is found, the energy in the field may be
+ found. This can be shown to be Energy = 0.5 * integral(E.D) dV, when
+ integrated over a volume V, and D.E is the vector dot product of E and
+ D.
+
+ Energy per metre is 0.5 * D.E or (0.5*Epsilon)* E.E. Now E.E is given
+ by Ex^2 + Ey^2 (by definition of a dot product. */
+
+ energy_per_metre=0.0;
+ for(i=0;i<width;++i)
+ for(j=0;j<height;++j)
+ {
+ energy_per_metre+=find_energy_per_metre(i,j);
+ }
+ if(coupler==FALSE)
+ capacitance_per_metre=2*energy_per_metre;
+ else
+ capacitance_per_metre=energy_per_metre;
+ return(capacitance_per_metre);
+}
+#endif /* #endif to #ifndef ENABLE_MP */
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+extern double Er1, Er2, Ers[];
+extern int colours[];
+
+void get_Er1_and_Er2_colours(int *colour_Er1, int *colour_Er2)
+{
+ int i;
+ *colour_Er2=-1; /* set them to a silly value, so we can check for it */
+ for(i=0; i<NUMBER_OF_DIELECTRICS_DEFINED; ++i)
+ {
+ if ( (Er1 < Ers[i] + TINY) && (Er1 > Ers[i] - TINY) )
+ *colour_Er1=colours[i];
+ if ( (Er2 < Ers[i] + TINY) && (Er2 > Ers[i] - TINY) )
+ *colour_Er2=colours[i];
+ }
+ if (*colour_Er2 == -1) /* ie its not one defined in Erdata.h */
+ *colour_Er2 =0xac82ac; /* report it is a silly value */
+ if (*colour_Er1 == -1) /* ie its not one defined in Erdata.h */
+ *colour_Er1 =0xcaff00; /* report it is a silly value */
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* This function take a filename with the extension .bmp (eg coax.bmp)
+and will produce files such as coax.V.bmp, coax.E.bmp, coax.E.bin etc */
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+FILE *get_file_pointer_with_right_filename(char *filename, const char *extension)
+{
+ char *basename, *temp;
+ FILE *fp;
+ basename=string(0,1024);
+ temp=string(0,1024);
+ (void) memset((void *)temp,0,(size_t) 1024);
+ (void) memset((void *)basename,0,(size_t) 1024);
+
+ basename=strncpy(basename,filename,strlen(filename)-4);
+ (void) strcpy(temp,basename);
+ (void) strcat(temp,extension);
+ if((fp=fopen(temp,"w+b"))==NULL)
+ {
+ fprintf(stderr,"Sorry, cant open %s for writing\n", temp);
+ exit_with_msg_and_exit_code("",CANT_OPEN_FOR_WRITING);
+ }
+ free_string(basename,0,1024);
+ free_string(temp,0,1024);
+ return(fp);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+
+/*
+ * Here's something you've all been waiting for: the AT&T public domain
+ * source for getopt(3). It is the code which was given out at the 1985
+ * UNIFORUM conference in Dallas. I obtained it by electronic mail
+ * directly from AT&T. The people there assure me that it is indeed
+ * in the public domain.
+ *
+ * There is no manual page. That is because the one they gave out at
+ * UNIFORUM was slightly different from the current System V Release 2
+ * manual page. The difference apparently involved a note about the
+ * famous rules 5 and 6, recommending using white space between an option
+ * and its first argument, and not grouping options that have arguments.
+ * Getopt itself is currently lenient about both of these things White
+ * space is allowed, but not mandatory, and the last option in a group can
+ * have an argument. That particular package_version of the man page evidently
+ * has no official existence, and my source at AT&T did not send a copy.
+ * The current SVR2 man page reflects the actual behavor of this getopt.
+ * However, I am not about to post a copy of anything licensed by AT&T.
+ */
+
+#include "config.h"
+
+#include "definitions.h"
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+/*LINTLIBRARY*/
+#ifndef NULL
+#define NULL 0
+#endif
+#define EOF (-1)
+
+
+int my_opterr = 1;
+int my_optind = 1;
+int my_optopt;
+char *my_optarg;
+
+void ERR(const char *s, char c, char **argv)
+{
+ if(my_opterr)
+ {
+ char errbuf[2];
+ errbuf[0] = c;
+ errbuf[1] = '\n';
+ /* (void) write(2, argv[0], (unsigned)strlen(argv[0]));
+ (void) write(2, s, (unsigned)strlen(s));
+ (void) write(2, errbuf, 2); */
+ (void) fwrite(argv[0], (unsigned)strlen(argv[0]),1,stderr);
+ (void) fwrite(s, (unsigned)strlen(s),1,stderr);
+ (void) fwrite(errbuf, 2, 1,stderr);
+ }
+}
+
+char *index2(const char *str, char c)
+{
+ char *ret;
+ ret=strchr((char *) str,c);
+ return(ret);
+}
+
+
+int get_options(int argc, char **argv, const char *opts)
+{
+ static int sp = 1;
+ /* register int c;
+ register char *cp; */
+ int c;
+ char tmp;
+ char *cp;
+ cp=&tmp;
+
+ if(sp == 1)
+ {
+ if(my_optind >= argc ||
+ argv[my_optind][0] != '-' || argv[my_optind][1] == '\0')
+ return(EOF);
+ else if(strcmp(argv[my_optind], "--") == 0) {
+ my_optind++;
+ return(EOF);
+ }
+ }
+ my_optopt = c = argv[my_optind][sp];
+ if(c == ':' || (cp=index2((char *) opts, c)) == NULL) {
+ ERR(": illegal option -- ", c,argv);
+ if(argv[my_optind][++sp] == '\0') {
+ my_optind++;
+ sp = 1;
+ }
+ return('?');
+ }
+ if(*++cp == ':') {
+ if(argv[my_optind][sp+1] != '\0')
+ my_optarg = &argv[my_optind++][sp+1];
+ else if(++my_optind >= argc) {
+ ERR(": option requires an argument -- ", c,argv);
+ sp = 1;
+ return('?');
+ } else
+ my_optarg = argv[my_optind++];
+ sp = 1;
+ } else {
+ if(argv[my_optind][++sp] == '\0') {
+ sp = 1;
+ my_optind++;
+ }
+ my_optarg = NULL;
+ }
+ return(c);
+}
--- /dev/null
+#include "config.h"
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void give_examples_of_using_design_coupler(void)
+{
+ printf("Here are a examples of how to use 'design_coupler'\n");
+ printf("In the examples, the %c sign is used in front of anything you must type\n",'%');
+ printf("which is what you will probably see when using the csh or tcsh as a shell. It\n");
+ printf("would probably be a $ sign if using the sh or bash shell. \n\n");
+ printf("To find the odd and even mode impedances and frequency response of a 50 Ohm\n");
+ printf("coupler, covering 130 to 170 MHz, with a coupling coefficient of 30 dB:\n\n");
+ printf("%c design_coupler 30 130 170\n\n",'%');
+ printf("Note the frequency response is symmetrical about the centre frequency at 0.192 dB\n");
+ printf("below that wanted. You may wish to redesign this for a coupling coefficient of \n");
+ printf("about 29.9 dB, so the maximum deviation from the ideal 30.0 dB never exceeds 0.1 dB\n");
+ printf("Note the length suggested is 0.5 m (nearly 20\") is a quarter wave at\n");
+ printf("the centre frequency of 150 MHz. You might find this a bit too long, so\n");
+ printf("let's specify a length of 0.25 m.\n\n");
+ printf("%c design_coupler -L 0.25 30 130 170\n\n",'%');
+ printf("What you may notice is that while the coupling to the coupled port is exactly\n");
+ printf("30 dB below the input power at the centre frequency (150 MHz) it is \n");
+ printf("no longer symmetrical about the centre frequency. Also, deviations from the\n");
+ printf("ideal 30 dB are now much larger, with a maximum error of 1.012 dB\n");
+ printf("Unlike the case when the length is the default quarter wave, there is not much\n");
+ printf("you can do about this, since the deviations occur in both directions.\n\n");
+ printf("Now assume you are reasonably happy with the response when the length is 250 mm\n");
+ printf("but would like to see the response at every 2.5 MHz. This can be done using the\n");
+ printf("-s option to design_coupler.\n\n");
+ printf("%c design_coupler -L 0.25 -s 2.5 30 130 170\n\n",'%');
+ printf("Assuming the performance is acceptable, the dimensions of the coupler can\n");
+ printf("be determined by adding the -d option. This will design a coupler that must look\n");
+ printf("like the structure below. The two inner conductors, which are spaced equally\n");
+ printf("between the top and bottom edges of the outer conductor, must be very thin.\n");
+ printf("These are placed along the length of a box of width W, height H and of\n");
+ printf("a length L determined by the user, which in this case is 250 mm.\n");
+ printf("|-----------^------------------------------------------------------------------|\n");
+ printf("| | |\n");
+ printf("| | <---w---><-----s----><---w--> |\n");
+ printf("| H --------- -------- |\n");
+ printf("| | |\n");
+ printf("| | Er=1.0 (air) |\n");
+ printf("------------v------------------------------------------------------------------\n");
+ printf("<-----------------------------------------W----------------------------------->\n");
+ printf("The program reports: H = 1.0, ; w = 1.44 ; s = 0.44\n");
+
+ printf("The height of the box H must be small compared to the length L, (perhaps no\n");
+ printf("more than 7%c of the length), or 17.5 mm in this case, with a length of 250 mm,\n",'%');
+ printf("otherwise fringing effects will be significant. The width of the structure W\n");
+ printf("should be as large as possible. The program suggests making this 5*H+2*w+s. The\n");
+ printf("7%c and 5*H+2*w+s are educated guesses, rather than exact figures. There is\n",'%');
+ printf("no problem in making the width larger than 5*H+2*w+s. The length L must be\n");
+ printf("kept at 250 mm. The RATIO of the dimensions H, w and s (but not L or W\n");
+ printf("must be kept constant. W just needs to be sufficiently large - it is\n");
+ printf("uncritical. \n\n");
+ printf("If you happened to have some 15 mm square brass available, then using that\n");
+ printf("for the side-walls would require that H becomes 15*1.0 = 15 mm,\n");
+ printf("w = 15*1.44 = 21.6 mm and s = 15*0.44 = 6.6 mm\n\n");
+ printf("There is no need to compute the above scaling with a calculator, as using\n");
+ printf("The -H option allows one to specify the height H. The program then reports the\n");
+ printf("exact dimensions for the length L, height H, w, s and suggests a minimum width\n");
+ printf("for W.\n\n");
+ printf("In summary we have:\n");
+ printf(" 30 dB coupler +1.02 dB / -0.78 dB for 130 to 170 MHz\n");
+ printf(" Length L = 250 mm, height H = 15 mm, stripline spacing s\n");
+ printf(" = 6.6 mm, stripline width w = 21.6 mm, width W >= 124 mm\n");
+ printf("By default, design_coupler prints a lot of information to the screen.\n");
+ printf("This can be reduced by the -q option or reduced to only one line with -Q\n");
+ printf("Other options include -Z to change the impedance from the default 50 Ohms\n");
+ printf("and -C to see the fully copyright, Licensing and distribution information\n");
+ exit_with_msg_and_exit_code("",OKAY);
+}
--- /dev/null
+/*
+atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/*
+The following code is taken from the GNU Scientifi Library, gsl,
+which is also issued under the GPL.
+
+*/
+#define GSL_PREC_DOUBLE 0
+#define GSL_SUCCESS 0
+/*
+These values suita IEEE machines but might be too large
+for non-IEEE machines. Since I don't think its that
+important, I've changed the values a bit to be sure
+double will work out okay.
+
+#define GSL_DBL_EPSILON 2.2204460492503131e-16
+#define GSL_SQRT_DBL_EPSILON 1.4901161193847656e-08
+#define GSL_DBL_MIN 2.2250738585072014e-308
+#define GSL_DBL_MAX 1.7976931348623157e+308
+*/
+
+#define GSL_DBL_EPSILON 1e-14
+#define GSL_SQRT_DBL_EPSILON 1e-7
+#define GSL_DBL_MIN 1e-100
+#define GSL_DBL_MAX 1e+100
+
+#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
+#define GSL_MAX(a,b) ((a) > (b) ? (a) : (b))
+/* GSL_VAR const double gsl_prec_eps[]; */
+
+typedef unsigned int gsl_mode_t;
+typedef unsigned int gsl_prec_t;
+
+typedef struct
+{
+ double val;
+ double err;
+} gsl_sf_result;
+
+double gsl_sf_ellint_Kcomp(double k, gsl_mode_t mode);
+int gsl_sf_ellint_Kcomp_e(double k, gsl_mode_t mode, gsl_sf_result * result);
+int gsl_sf_ellint_RF_e(double x, double y, double z, gsl_mode_t mode, gsl_sf_result * result);
+double locMAX3(double x, double y, double z);
+
+
+/* End of things taken from gsl library */
--- /dev/null
+
+
+#include "config.h"
+
+#ifdef HAVE_MATH_H
+#include <math.h>
+#endif
+
+#include "definitions.h"
+#include "gsl_types.h"
+#include "gsl_definitions.h"
+#include "exit_codes.h"
+
+/* This part of atlc is a copy from the code in the GPL'ed
+GNU Scientific Library, gsl. By including this code, it saves
+the user having to like with gsl. */
+
+const double gsl_prec_eps[3];
+
+
+
+double gsl_sf_ellint_Kcomp(double k, gsl_mode_t mode)
+{
+ gsl_sf_result result;
+ gsl_sf_ellint_Kcomp_e(k, mode, &result);
+ return result.val;
+}
+
+
+/* [Carlson, Numer. Math. 33 (1979) 1, (4.5)] */
+int gsl_sf_ellint_Kcomp_e(double k, gsl_mode_t mode, gsl_sf_result * result)
+{
+ int return_val=0;
+ if(k*k >= 1.0) {
+ exit_with_msg_and_exit_code("domain error in gsl_sf_Kcomp_e", DOMAIN_ERROR);
+ }
+ else if(k*k >= 1.0 - GSL_SQRT_DBL_EPSILON) {
+ /* [Abramowitz+Stegun, 17.3.33] */
+ const double y = 1.0 - k*k;
+ const double a[] = { 1.38629436112, 0.09666344259, 0.03590092383 };
+ const double b[] = { 0.5, 0.12498593597, 0.06880248576 };
+ const double ta = a[0] + y*(a[1] + y*a[2]);
+ const double tb = -log(y) * (b[0] * y*(b[1] + y*b[2]));
+ result->val = ta + tb;
+ result->err = 2.0 * GSL_DBL_EPSILON * result->val;
+ return_val=GSL_SUCCESS;
+ }
+ else {
+ /* This was previously computed as,
+
+ return gsl_sf_ellint_RF_e(0.0, 1.0 - k*k, 1.0, mode, result);
+
+ but this underestimated the total error for small k, since the
+ argument y=1-k^2 is not exact (there is an absolute error of
+ GSL_DBL_EPSILON near y=0 due to cancellation in the subtraction).
+ Taking the singular behavior of -log(y) above gives an error
+ of 0.5*epsilon/y near y=0. (BJG) */
+
+ double y = 1.0 - k*k;
+ int status = gsl_sf_ellint_RF_e(0.0, y, 1.0, mode, result);
+ result->err += 0.5 * GSL_DBL_EPSILON / y;
+ return_val=status ;
+ }
+ return(return_val);
+}
+
+int gsl_sf_ellint_RF_e(double x, double y, double z, gsl_mode_t mode, gsl_sf_result * result)
+{
+ int return_val=0;
+ const double lolim = 5.0 * GSL_DBL_MIN;
+ const double uplim = 0.2 * GSL_DBL_MAX;
+ const gsl_prec_t goal = GSL_MODE_PREC(mode);
+ const double errtol = ( goal == GSL_PREC_DOUBLE ? 0.001 : 0.03 );
+ const double prec = gsl_prec_eps[goal];
+
+ if(x < 0.0 || y < 0.0 || z < 0.0) {
+ exit_with_msg_and_exit_code("domain error in gsl_sf_ellint_RF_e", DOMAIN_ERROR);
+ }
+ else if(x+y < lolim || x+z < lolim || y+z < lolim) {
+ exit_with_msg_and_exit_code("domain error in gsl_sf_ellint_RF_e", DOMAIN_ERROR);
+ }
+ else if(locMAX3(x,y,z) < uplim) {
+ const double c1 = 1.0 / 24.0;
+ const double c2 = 3.0 / 44.0;
+ const double c3 = 1.0 / 14.0;
+ double xn = x;
+ double yn = y;
+ double zn = z;
+ double mu, xndev, yndev, zndev, e2, e3, s;
+ while(1) {
+ double epslon, lamda;
+ double xnroot, ynroot, znroot;
+ mu = (xn + yn + zn) / 3.0;
+ xndev = 2.0 - (mu + xn) / mu;
+ yndev = 2.0 - (mu + yn) / mu;
+ zndev = 2.0 - (mu + zn) / mu;
+ epslon = locMAX3(fabs(xndev), fabs(yndev), fabs(zndev));
+ if (epslon < errtol) break;
+ xnroot = sqrt(xn);
+ ynroot = sqrt(yn);
+ znroot = sqrt(zn);
+ lamda = xnroot * (ynroot + znroot) + ynroot * znroot;
+ xn = (xn + lamda) * 0.25;
+ yn = (yn + lamda) * 0.25;
+ zn = (zn + lamda) * 0.25;
+ }
+ e2 = xndev * yndev - zndev * zndev;
+ e3 = xndev * yndev * zndev;
+ s = 1.0 + (c1 * e2 - 0.1 - c2 * e3) * e2 + c3 * e3;
+ result->val = s / sqrt(mu);
+ result->err = prec * fabs(result->val);
+ return_val= GSL_SUCCESS;
+ }
+ else {
+ exit_with_msg_and_exit_code("domain error in gsl_sf_ellint_RF_e", DOMAIN_ERROR);
+ }
+ return(return_val);
+}
+
+
+/* static double locMAX3(double x, double y, double z) */
+double locMAX3(double x, double y, double z)
+{
+ double xy = GSL_MAX(x, y);
+ return GSL_MAX(xy, z);
+}
+
+
+#define EVAL_RESULT(fn) \
+ gsl_sf_result result; \
+ int status = fn; \
+ if (status != GSL_SUCCESS) { \
+ GSL_ERROR_VAL(#fn, status, result.val); \
+ } ; \
+return result.val;
+
--- /dev/null
+/*
+atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby@gmail.com
+
+This is haevily hacked from the gsl_types.h file which is copyright
+
+* Copyright (C) 2001 Brian Gough
+and for part of the GNU Scientific library (gsl).
+
+It is not identical and only contrains a subset of the information
+from that file and is hacked somewhat.
+
+*/
+
+
+#ifndef __GSL_TYPES_H__
+#define __GSL_TYPES_H__
+
+#ifndef GSL_VAR
+
+#ifdef WIN32
+# ifdef _DLL
+# ifdef DLL_EXPORT
+# define GSL_VAR __declspec(dllexport)
+# else
+# define GSL_VAR __declspec(dllimport)
+# endif
+# else
+# define GSL_VAR extern
+# endif
+#else
+# define GSL_VAR extern
+#endif
+
+#endif
+
+#endif /* __GSL_TYPES_H__ */
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+Some of these memory allocation routies are hacked versions of those
+from the book 'Numerical Recipes in C' by Press et al. */
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_SYS_TYPES
+#include <sys/types.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#define NR_END 1
+
+char *string(long nl,long nh)
+{
+ char *v;
+
+ v=(char *)malloc((unsigned) (nh-nl+1));
+ if (!v)
+ exit_with_msg_and_exit_code("Memory allocation failure in string()",MEMORY_ALLOCATION_ERROR_IN_STRING);
+
+ return v-nl;
+}
+
+unsigned char *ustring(long nl,long nh)
+{
+ unsigned char *v;
+
+ v=(unsigned char *)malloc((size_t) (sizeof(unsigned char)* (nh-nl+1)));
+ if (!v) {
+ fprintf(stderr,"Can't allocate %ld bytes\n",nh-nl+1);
+ while(1)
+ {
+ }
+ exit_with_msg_and_exit_code("Memory allocation failure in ustring()",MEMORY_ALLOCATION_ERROR_IN_USTRING);
+ }
+ return v-nl;
+}
+
+void free_string(char *v, long nl, long nh)
+/* free a string allocated with string() */
+{
+ if(nh <= nl)
+ exit_with_msg_and_exit_code("nh <= nl in free_string()",SILLY_ARGUMENTS_IN_FREE_STRING);
+ free((FREE_ARG) (v+nl));
+}
+
+void free_ustring(unsigned char *v, long nl, long nh)
+/* free a string allocated with ustring() */
+{
+ if(nh <= nl)
+ exit_with_msg_and_exit_code("nh <= nl in free_ustring()",SILLY_ARGUMENTS_IN_FREE_USTRING);
+ free((FREE_ARG) (v+nl));
+}
+
+
+/* allocate a signed char matrix with subscript range m[nrl..nrh][ncl..nch] */
+signed char **scmatrix(long nrl, long nrh, long ncl, long nch)
+{
+ long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
+ signed char **m;
+ /* allocate pointers to rows */
+ m=(signed char **) malloc((size_t)((nrow+NR_END)*sizeof(signed char*)));
+ if (!m)
+ exit_with_msg_and_exit_code("Memory allocation failure #1 in scmatrix()",MEMORY_ALLOCATION_ERROR_IN_SCMATRIX);
+ m += NR_END;
+ m -= nrl;
+
+ /* allocate rows and set pointers to them */
+ m[nrl]=(signed char *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(signed char)));
+ if (!m[nrl])
+ exit_with_msg_and_exit_code("Memory allocation failure #2 in ucmatrix()",MEMORY_ALLOCATION_ERROR_IN_UCMATRIX);
+
+ m[nrl] += NR_END;
+ m[nrl] -= ncl;
+
+ for(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;
+
+ /* return pointer to array of pointers to rows */
+ return m;
+}
+
+
+/* allocate a unsigned char matrix with subscript range m[nrl..nrh][ncl..nch] */
+unsigned char **ucmatrix(long nrl, long nrh, long ncl, long nch)
+{
+ long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
+ unsigned char **m;
+ /* allocate pointers to rows */
+ m=(unsigned char **) malloc((size_t)((nrow+NR_END)*sizeof(unsigned char*)));
+ if (!m)
+ exit_with_msg_and_exit_code("Memory allocation failure #1 in scmatrix()",MEMORY_ALLOCATION_ERROR_IN_UCMATRIX);
+ m += NR_END;
+ m -= nrl;
+
+ /* allocate rows and set pointers to them */
+ m[nrl]=(unsigned char *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(unsigned char)));
+ if (!m[nrl])
+ exit_with_msg_and_exit_code("Memory allocation failure #2 in ucmatrix()",MEMORY_ALLOCATION_ERROR_IN_UCMATRIX);
+
+ m[nrl] += NR_END;
+ m[nrl] -= ncl;
+
+ for(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;
+
+ /* return pointer to array of pointers to rows */
+ return m;
+}
+
+
+/* free a signed char matrix allocated by cmatrix() */
+void free_scmatrix(signed char **m, long nrl, long nrh, long ncl, long nch)
+{
+ if(nrh <= nrl)
+ exit_with_msg_and_exit_code("nrh <= nrl in free_scmatrix()",SILLY_ARGUMENTS_IN_FREE_SCMATRIX);
+ if(nch <= ncl)
+ exit_with_msg_and_exit_code("nch <= ncl in free_scmatrix()",SILLY_ARGUMENTS_IN_FREE_SCMATRIX);
+ free((FREE_ARG) (m[nrl]+ncl-NR_END));
+ free((FREE_ARG) (m+nrl-NR_END));
+}
+
+
+/* free a unsigned char matrix allocated by ucmatrix() */
+void free_ucmatrix(unsigned char **m, long nrl, long nrh, long ncl, long nch)
+{
+ if(nrh <= nrl)
+ exit_with_msg_and_exit_code("nrh <= nrl in free_ucmatrix()",SILLY_ARGUMENTS_IN_FREE_UCMATRIX);
+ if(nch <= ncl)
+ exit_with_msg_and_exit_code("nch <= ncl in free_ucmatrix()",SILLY_ARGUMENTS_IN_FREE_UCMATRIX);
+ free((FREE_ARG) (m[nrl]+ncl-NR_END));
+ free((FREE_ARG) (m+nrl-NR_END));
+}
+
+double **dmatrix(long nrl, long nrh, long ncl, long nch)
+/* allocate a double matrix with subscript range m[nrl..nrh][ncl..nch] */
+{
+ long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
+ double **m;
+
+ /* allocate pointers to rows */
+ m=(double **) malloc((size_t)((nrow+NR_END)*sizeof(double*)));
+ if (!m)
+ exit_with_msg_and_exit_code("Memory allocation error #1 in dmatrix()",MEMORY_ALLOCATION_ERROR_IN_DMATRIX);
+ m += NR_END;
+ m -= nrl;
+
+ /* allocate rows and set pointers to them */
+ m[nrl]=(double *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(double)));
+ if (!m[nrl])
+ exit_with_msg_and_exit_code("Memory allocation error #2 in dmatrix()",MEMORY_ALLOCATION_ERROR_IN_DMATRIX);
+ m[nrl] += NR_END;
+ m[nrl] -= ncl;
+
+ for(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;
+
+ /* return pointer to array of pointers to rows */
+ return m;
+}
+
+
+void free_dvector(double *v, long nl, long nh)
+/* free a double vector allocated with dvector() */
+{
+ if(nh <= nl)
+ exit_with_msg_and_exit_code("nh is <= nl in call to free_dvector",SILLY_ARGUMENTS_IN_FREE_DVECTOR);
+ free((FREE_ARG) (v+nl-NR_END));
+}
+
+void free_dmatrix(double **m, long nrl, long nrh, long ncl, long nch)
+/* free a double matrix allocated by dmatrix() */
+{
+ if(nrh <= nrl)
+ exit_with_msg_and_exit_code("nhh is <= nl in call to free_dmatrix",SILLY_ARGUMENTS_IN_FREE_DMATRIX);
+ if(nch <= ncl)
+ exit_with_msg_and_exit_code("nch is <= nl in call to free_dmatrix",SILLY_ARGUMENTS_IN_FREE_DMATRIX);
+ free((FREE_ARG) (m[nrl]+ncl-NR_END));
+ free((FREE_ARG) (m+nrl-NR_END));
+}
+
+void free_cx(char **m, long nrl, long nrh, long ncl, long nch)
+/* free a char matrix allocated by cmatrix() */
+{
+ if(nrh <= nrl)
+ exit_with_msg_and_exit_code("nrh is <= nrl in call to free_charmatrix",SILLY_ARGUMENTS_IN_FREE_CMATRIX);
+ if(nch <= ncl)
+ exit_with_msg_and_exit_code("nch is <= ncl in call to free_charmatrix",SILLY_ARGUMENTS_IN_FREE_CMATRIX);
+ free((FREE_ARG) (m[nrl]+ncl-NR_END));
+ free((FREE_ARG) (m+nrl-NR_END));
+}
+
+double *dvector(long nl, long nh)
+/* allocate a double vector with subscript range v[nl..nh] */
+{
+ double *v;
+ v=(double *)malloc((size_t) ((nh-nl+1+NR_END)*sizeof(double)));
+ if (!v)
+ exit_with_msg_and_exit_code("Memory allocation error in dvector()",MEMORY_ALLOCATION_ERROR_IN_DVECTOR);
+ return v-nl+NR_END;
+}
+
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* Note, the number of dilectrics defined must be set by the parameter
-#define NUMBER_OF_ORDINARY_INTERIOR_POINTS_DEFINED ?? in definitions.h. There needs
-ot be a better way of setting this, but for now it will do */
-
-char *names[]={"Vacuum","Air","PTFE", "duroid_5880","Polyethelene", "Polystyrene", "PVC","Epoxy_resin", "FR4 PCB", "Fibreglass_PCB", "duroid_6006","duroid_6010","one_hundred"};
-double Ers[]={1.0,1.0006, 2.1,2.2,2.33,2.5,3.3,3.335,3.7,4.8,6.15,10.2,100.0};
-int colours[]={0xffffff,0xffcaca, 0x8235ef,0x8e8e8e,0xff00ff,0xffff00, 0xefcc1a,0xbc7f60,0xdff788,0x1aefb3,0x696969,0xdcdcdc, 0xd5a04d};
-
+++ /dev/null
-bin_PROGRAMS = atlc create_bmp_for_rect_in_rect \
-create_any_bitmap \
-create_bmp_for_circ_in_circ create_bmp_for_rect_cen_in_rect \
-create_bmp_for_circ_in_rect create_bmp_for_rect_in_circ \
-readbin create_bmp_for_symmetrical_stripline \
-design_coupler create_bmp_for_stripline_coupler \
-create_bmp_for_microstrip_coupler \
-find_optimal_dimensions_for_microstrip_coupler \
-create_bmp_for_rect_cen_in_rect_coupler
-
-atlc_SOURCES = atlc.c read_bitmap_file_headers.c \
-update_voltage_array.c \
-check_for_boundaries.c \
-memory.c setup_arrays.c \
-finite_difference_single_threaded.c \
-finite_difference_multi_threaded.c \
-usage_atlc.c \
-check_for_shorts.c bmp.h definitions.h Erdata.h \
-find_energy_per_metre.c \
-set_oddity_from_Greens_paper.c \
-get_file_pointer_with_right_filename.c \
-find_maximum_values.c calculate_colour_data.c find_electric_fields.c \
-get_options.c exit_with_msg_and_exit_code.c do_fd_calculation.c \
-swap_conductor_voltages.c print_copyright.c \
-print_data_for_directional_couplers.c \
-print_data_for_two_conductor_lines.c \
-set_data_to_sensible_starting_values.c \
-write_fields_for_two_conductor_lines.c \
-write_fields_for_directional_couplers.c \
-exit_codes.h definitions.h
-
-atlc_CPPFLAGS = -DNEED_MPI_CODE @PTHREAD_CFLAGS@
-atlc_LDADD = @PTHREAD_LIBS@ @LIBS@
-
-
-create_bmp_for_rect_in_rect_SOURCES = create_bmp_for_rect_in_rect.c \
-usage_create_bmp_for_rect_in_rect.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_rect_in_rect.c \
-check_parameters_of_create_bmp_for_rect_in_rect.c \
-check_error.c get_options.c definitions.h \
-exit_with_msg_and_exit_code.c print_copyright.c \
-exit_codes.h definitions.h
-
-create_bmp_for_rect_in_rect_LDADD = @LIBS@
-
-create_any_bitmap_SOURCES = \
-create_any_bitmap.c \
-exit_with_msg_and_exit_code.c \
-definitions.h \
-exit_codes.h \
-usage_create_any_bitmap.c
-
-create_bmp_for_rect_cen_in_rect_coupler_SOURCES = \
-create_bmp_for_rect_cen_in_rect_coupler.c \
-usage_create_bmp_for_rect_cen_in_rect_coupler.c \
-get_options.c definitions.h memory.c \
-write_bitmap_out.c \
-align_bitmap_image.c check_error.c exit_with_msg_and_exit_code.c \
-print_copyright.c \
-exit_codes.h definitions.h
-
-
-create_bmp_for_rect_cen_in_rect_SOURCES = create_bmp_for_rect_cen_in_rect.c \
-usage_create_bmp_for_rect_cen_in_rect.c \
-write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c \
-fill_rect_in_rect.c check_parameters_of_create_bmp_for_rect_in_rect.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h exit_codes.h
-create_bmp_for_rect_cen_in_rect_LDADD = @LIBS@
-
-create_bmp_for_microstrip_coupler_SOURCES = \
-usage_create_bmp_for_microstrip_coupler.c \
-create_bmp_for_microstrip_coupler.c get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.c \
-print_copyright.c \
-write_bitmap_out.c memory.c \
-get_options.c check_parameters_of_create_bmp_for_microstrip_coupler.c \
-write_bitmap.c align_bitmap_image.c \
-fill_image_vector_for_create_bmp_for_microstrip_coupler.c \
-check_error.c exit_with_msg_and_exit_code.c \
-Erdata.h definitions.h exit_codes.h
-create_bmp_for_microstrip_coupler_LDADD = @LIBS@
-
-create_bmp_for_circ_in_circ_SOURCES = create_bmp_for_circ_in_circ.c \
-usage_create_bmp_for_circ_in_circ.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_circ_in_circ_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_circ_in_circ.c \
-check_parameters_of_create_bmp_for_circ_in_circ.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h
-create_bmp_for_circ_in_circ_LDADD = @LIBS@
-
-create_bmp_for_circ_in_rect_SOURCES = create_bmp_for_circ_in_rect.c \
-convert_create_bmp_for_circ_in_rect_dimensions_to_integers.c \
-usage_create_bmp_for_circ_in_rect.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-check_parameters_of_create_bmp_for_circ_in_rect.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_circ_in_rect.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h exit_codes.h
-create_bmp_for_circ_in_rect_LDADD = @LIBS@
-
-create_bmp_for_rect_in_circ_SOURCES = create_bmp_for_rect_in_circ.c \
-usage_create_bmp_for_rect_in_circ.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_rect_in_circ_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_rect_in_circ.c check_parameters_of_create_bmp_for_rect_in_circ.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h
-
-readbin_SOURCES = \
-readbin.c \
-get_options.c exit_with_msg_and_exit_code.c print_copyright.c \
-usage_readbin.c byteswap.c \
-memory.c
-readbin_LDADD = @LIBS@
-
-create_bmp_for_symmetrical_stripline_SOURCES = \
-create_bmp_for_symmetrical_stripline.c \
-fill_image_vector_for_create_bmp_for_symmetrical_stripline.c \
-usage_create_bmp_for_symmetrical_stripline.c memory.c write_bitmap_out.c \
-align_bitmap_image.c \
-calculate_impedance_for_create_bmp_for_symmetrical_stripline.c \
-elliptic_integral.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c
-create_bmp_for_symmetrical_stripline_LDADD = @LIBS@
-
-create_bmp_for_stripline_coupler_SOURCES = \
-create_bmp_for_stripline_coupler.c usage_create_bmp_for_stripline_coupler.c \
-calculate_Zodd_and_Zeven.c get_options.c definitions.h \
-calculate_integer_values.c write_bitmap.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_make_coupler.c \
-check_error.c exit_with_msg_and_exit_code.c \
-get_Er1_and_Er2_colours.c print_copyright.c \
-gsl_types.h \
-gsl_definitions.h \
-gsl_sf_ellint_Kcomp.c
-create_bmp_for_stripline_coupler_LDADD = @LIBS@
-create_bmp_for_stripline_coupler_CFLAGS = @CFLAGS@
-
-design_coupler_SOURCES = design_coupler.c usage_design_coupler.c \
-get_options.c print_copyright.c calculate_Zodd_and_Zeven.c \
-give_examples_of_using_design_coupler.c exit_with_msg_and_exit_code.c \
-gsl_types.h \
-gsl_definitions.h \
-gsl_sf_ellint_Kcomp.c
-design_coupler_LDADD = @LIBS@
-design_coupler_CFLAGS = @CFLAGS@
-
-find_optimal_dimensions_for_microstrip_coupler_SOURCES = \
-find_optimal_dimensions_for_microstrip_coupler.c \
-exit_with_msg_and_exit_code.c \
-usage_find_optimal_dimensions_for_microstrip_coupler.c \
-print_copyright.c get_options.c \
-memory.c \
-check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.c
-find_optimal_dimensions_for_microstrip_coupler_LDADD = @LIBS@
-
-EXTRA_DIST = finite_difference_mpi.c
-
+++ /dev/null
-# Makefile.in generated by automake 1.7 from Makefile.am.
-# @configure_input@
-
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# 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 = :
-host_triplet = @host@
-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@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-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@
-POW_LIB = @POW_LIB@
-PTHREAD_CC = @PTHREAD_CC@
-PTHREAD_CFLAGS = @PTHREAD_CFLAGS@
-PTHREAD_LIBS = @PTHREAD_LIBS@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__include = @am__include@
-am__quote = @am__quote@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-built_with_posix_threads = @built_with_posix_threads@
-compiled_with_cflags = @compiled_with_cflags@
-compiled_with_compiler = @compiled_with_compiler@
-datadir = @datadir@
-exec_prefix = @exec_prefix@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-oldincludedir = @oldincludedir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-bin_PROGRAMS = atlc create_bmp_for_rect_in_rect \
-create_any_bitmap \
-create_bmp_for_circ_in_circ create_bmp_for_rect_cen_in_rect \
-create_bmp_for_circ_in_rect create_bmp_for_rect_in_circ \
-readbin create_bmp_for_symmetrical_stripline \
-design_coupler create_bmp_for_stripline_coupler \
-create_bmp_for_microstrip_coupler \
-find_optimal_dimensions_for_microstrip_coupler \
-create_bmp_for_rect_cen_in_rect_coupler
-
-
-atlc_SOURCES = atlc.c read_bitmap_file_headers.c \
-update_voltage_array.c \
-check_for_boundaries.c \
-memory.c setup_arrays.c \
-finite_difference_single_threaded.c \
-finite_difference_multi_threaded.c \
-usage_atlc.c \
-check_for_shorts.c bmp.h definitions.h Erdata.h \
-find_energy_per_metre.c \
-set_oddity_from_Greens_paper.c \
-get_file_pointer_with_right_filename.c \
-find_maximum_values.c calculate_colour_data.c find_electric_fields.c \
-get_options.c exit_with_msg_and_exit_code.c do_fd_calculation.c \
-swap_conductor_voltages.c print_copyright.c \
-print_data_for_directional_couplers.c \
-print_data_for_two_conductor_lines.c \
-set_data_to_sensible_starting_values.c \
-write_fields_for_two_conductor_lines.c \
-write_fields_for_directional_couplers.c \
-exit_codes.h definitions.h
-
-
-atlc_CPPFLAGS = -DNEED_MPI_CODE @PTHREAD_CFLAGS@
-atlc_LDADD = @PTHREAD_LIBS@ @LIBS@
-
-create_bmp_for_rect_in_rect_SOURCES = create_bmp_for_rect_in_rect.c \
-usage_create_bmp_for_rect_in_rect.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_rect_in_rect.c \
-check_parameters_of_create_bmp_for_rect_in_rect.c \
-check_error.c get_options.c definitions.h \
-exit_with_msg_and_exit_code.c print_copyright.c \
-exit_codes.h definitions.h
-
-
-create_bmp_for_rect_in_rect_LDADD = @LIBS@
-
-create_any_bitmap_SOURCES = \
-create_any_bitmap.c \
-exit_with_msg_and_exit_code.c \
-definitions.h \
-exit_codes.h \
-usage_create_any_bitmap.c
-
-
-create_bmp_for_rect_cen_in_rect_coupler_SOURCES = \
-create_bmp_for_rect_cen_in_rect_coupler.c \
-usage_create_bmp_for_rect_cen_in_rect_coupler.c \
-get_options.c definitions.h memory.c \
-write_bitmap_out.c \
-align_bitmap_image.c check_error.c exit_with_msg_and_exit_code.c \
-print_copyright.c \
-exit_codes.h definitions.h
-
-
-create_bmp_for_rect_cen_in_rect_SOURCES = create_bmp_for_rect_cen_in_rect.c \
-usage_create_bmp_for_rect_cen_in_rect.c \
-write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c \
-fill_rect_in_rect.c check_parameters_of_create_bmp_for_rect_in_rect.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h exit_codes.h
-
-create_bmp_for_rect_cen_in_rect_LDADD = @LIBS@
-
-create_bmp_for_microstrip_coupler_SOURCES = \
-usage_create_bmp_for_microstrip_coupler.c \
-create_bmp_for_microstrip_coupler.c get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.c \
-print_copyright.c \
-write_bitmap_out.c memory.c \
-get_options.c check_parameters_of_create_bmp_for_microstrip_coupler.c \
-write_bitmap.c align_bitmap_image.c \
-fill_image_vector_for_create_bmp_for_microstrip_coupler.c \
-check_error.c exit_with_msg_and_exit_code.c \
-Erdata.h definitions.h exit_codes.h
-
-create_bmp_for_microstrip_coupler_LDADD = @LIBS@
-
-create_bmp_for_circ_in_circ_SOURCES = create_bmp_for_circ_in_circ.c \
-usage_create_bmp_for_circ_in_circ.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_circ_in_circ_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_circ_in_circ.c \
-check_parameters_of_create_bmp_for_circ_in_circ.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h
-
-create_bmp_for_circ_in_circ_LDADD = @LIBS@
-
-create_bmp_for_circ_in_rect_SOURCES = create_bmp_for_circ_in_rect.c \
-convert_create_bmp_for_circ_in_rect_dimensions_to_integers.c \
-usage_create_bmp_for_circ_in_rect.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-check_parameters_of_create_bmp_for_circ_in_rect.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_circ_in_rect.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h exit_codes.h
-
-create_bmp_for_circ_in_rect_LDADD = @LIBS@
-
-create_bmp_for_rect_in_circ_SOURCES = create_bmp_for_rect_in_circ.c \
-usage_create_bmp_for_rect_in_circ.c write_bitmap.c \
-get_Er1_and_Er2_colours.c \
-convert_create_bmp_for_rect_in_circ_dimensions_to_integers.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_rect_in_circ.c check_parameters_of_create_bmp_for_rect_in_circ.c \
-check_error.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c Erdata.h
-
-
-readbin_SOURCES = \
-readbin.c \
-get_options.c exit_with_msg_and_exit_code.c print_copyright.c \
-usage_readbin.c byteswap.c \
-memory.c
-
-readbin_LDADD = @LIBS@
-
-create_bmp_for_symmetrical_stripline_SOURCES = \
-create_bmp_for_symmetrical_stripline.c \
-fill_image_vector_for_create_bmp_for_symmetrical_stripline.c \
-usage_create_bmp_for_symmetrical_stripline.c memory.c write_bitmap_out.c \
-align_bitmap_image.c \
-calculate_impedance_for_create_bmp_for_symmetrical_stripline.c \
-elliptic_integral.c get_options.c definitions.h exit_with_msg_and_exit_code.c \
-print_copyright.c
-
-create_bmp_for_symmetrical_stripline_LDADD = @LIBS@
-
-create_bmp_for_stripline_coupler_SOURCES = \
-create_bmp_for_stripline_coupler.c usage_create_bmp_for_stripline_coupler.c \
-calculate_Zodd_and_Zeven.c get_options.c definitions.h \
-calculate_integer_values.c write_bitmap.c \
-memory.c write_bitmap_out.c \
-align_bitmap_image.c fill_make_coupler.c \
-check_error.c exit_with_msg_and_exit_code.c \
-get_Er1_and_Er2_colours.c print_copyright.c \
-gsl_types.h \
-gsl_definitions.h \
-gsl_sf_ellint_Kcomp.c
-
-create_bmp_for_stripline_coupler_LDADD = @LIBS@
-create_bmp_for_stripline_coupler_CFLAGS = @CFLAGS@
-
-design_coupler_SOURCES = design_coupler.c usage_design_coupler.c \
-get_options.c print_copyright.c calculate_Zodd_and_Zeven.c \
-give_examples_of_using_design_coupler.c exit_with_msg_and_exit_code.c \
-gsl_types.h \
-gsl_definitions.h \
-gsl_sf_ellint_Kcomp.c
-
-design_coupler_LDADD = @LIBS@
-design_coupler_CFLAGS = @CFLAGS@
-
-find_optimal_dimensions_for_microstrip_coupler_SOURCES = \
-find_optimal_dimensions_for_microstrip_coupler.c \
-exit_with_msg_and_exit_code.c \
-usage_find_optimal_dimensions_for_microstrip_coupler.c \
-print_copyright.c get_options.c \
-memory.c \
-check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.c
-
-find_optimal_dimensions_for_microstrip_coupler_LDADD = @LIBS@
-
-EXTRA_DIST = finite_difference_mpi.c
-subdir = src/non_gui
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-bin_PROGRAMS = atlc$(EXEEXT) create_bmp_for_rect_in_rect$(EXEEXT) \
- create_any_bitmap$(EXEEXT) create_bmp_for_circ_in_circ$(EXEEXT) \
- create_bmp_for_rect_cen_in_rect$(EXEEXT) \
- create_bmp_for_circ_in_rect$(EXEEXT) \
- create_bmp_for_rect_in_circ$(EXEEXT) readbin$(EXEEXT) \
- create_bmp_for_symmetrical_stripline$(EXEEXT) \
- design_coupler$(EXEEXT) \
- create_bmp_for_stripline_coupler$(EXEEXT) \
- create_bmp_for_microstrip_coupler$(EXEEXT) \
- find_optimal_dimensions_for_microstrip_coupler$(EXEEXT) \
- create_bmp_for_rect_cen_in_rect_coupler$(EXEEXT)
-PROGRAMS = $(bin_PROGRAMS)
-
-am_atlc_OBJECTS = atlc-atlc.$(OBJEXT) \
- atlc-read_bitmap_file_headers.$(OBJEXT) \
- atlc-update_voltage_array.$(OBJEXT) \
- atlc-check_for_boundaries.$(OBJEXT) atlc-memory.$(OBJEXT) \
- atlc-setup_arrays.$(OBJEXT) \
- atlc-finite_difference_single_threaded.$(OBJEXT) \
- atlc-finite_difference_multi_threaded.$(OBJEXT) \
- atlc-usage_atlc.$(OBJEXT) atlc-check_for_shorts.$(OBJEXT) \
- atlc-find_energy_per_metre.$(OBJEXT) \
- atlc-set_oddity_from_Greens_paper.$(OBJEXT) \
- atlc-get_file_pointer_with_right_filename.$(OBJEXT) \
- atlc-find_maximum_values.$(OBJEXT) \
- atlc-calculate_colour_data.$(OBJEXT) \
- atlc-find_electric_fields.$(OBJEXT) atlc-get_options.$(OBJEXT) \
- atlc-exit_with_msg_and_exit_code.$(OBJEXT) \
- atlc-do_fd_calculation.$(OBJEXT) \
- atlc-swap_conductor_voltages.$(OBJEXT) \
- atlc-print_copyright.$(OBJEXT) \
- atlc-print_data_for_directional_couplers.$(OBJEXT) \
- atlc-print_data_for_two_conductor_lines.$(OBJEXT) \
- atlc-set_data_to_sensible_starting_values.$(OBJEXT) \
- atlc-write_fields_for_two_conductor_lines.$(OBJEXT) \
- atlc-write_fields_for_directional_couplers.$(OBJEXT)
-atlc_OBJECTS = $(am_atlc_OBJECTS)
-atlc_DEPENDENCIES =
-atlc_LDFLAGS =
-am_create_any_bitmap_OBJECTS = create_any_bitmap.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) \
- usage_create_any_bitmap.$(OBJEXT)
-create_any_bitmap_OBJECTS = $(am_create_any_bitmap_OBJECTS)
-create_any_bitmap_LDADD = $(LDADD)
-create_any_bitmap_DEPENDENCIES =
-create_any_bitmap_LDFLAGS =
-am_create_bmp_for_circ_in_circ_OBJECTS = \
- create_bmp_for_circ_in_circ.$(OBJEXT) \
- usage_create_bmp_for_circ_in_circ.$(OBJEXT) \
- write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
- convert_create_bmp_for_circ_in_circ_dimensions_to_integers.$(OBJEXT) \
- memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- align_bitmap_image.$(OBJEXT) fill_circ_in_circ.$(OBJEXT) \
- check_parameters_of_create_bmp_for_circ_in_circ.$(OBJEXT) \
- check_error.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT)
-create_bmp_for_circ_in_circ_OBJECTS = \
- $(am_create_bmp_for_circ_in_circ_OBJECTS)
-create_bmp_for_circ_in_circ_DEPENDENCIES =
-create_bmp_for_circ_in_circ_LDFLAGS =
-am_create_bmp_for_circ_in_rect_OBJECTS = \
- create_bmp_for_circ_in_rect.$(OBJEXT) \
- convert_create_bmp_for_circ_in_rect_dimensions_to_integers.$(OBJEXT) \
- usage_create_bmp_for_circ_in_rect.$(OBJEXT) \
- write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
- check_parameters_of_create_bmp_for_circ_in_rect.$(OBJEXT) \
- memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- align_bitmap_image.$(OBJEXT) fill_circ_in_rect.$(OBJEXT) \
- check_error.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT)
-create_bmp_for_circ_in_rect_OBJECTS = \
- $(am_create_bmp_for_circ_in_rect_OBJECTS)
-create_bmp_for_circ_in_rect_DEPENDENCIES =
-create_bmp_for_circ_in_rect_LDFLAGS =
-am_create_bmp_for_microstrip_coupler_OBJECTS = \
- usage_create_bmp_for_microstrip_coupler.$(OBJEXT) \
- create_bmp_for_microstrip_coupler.$(OBJEXT) \
- get_Er1_and_Er2_colours.$(OBJEXT) \
- convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.$(OBJEXT) \
- print_copyright.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- memory.$(OBJEXT) get_options.$(OBJEXT) \
- check_parameters_of_create_bmp_for_microstrip_coupler.$(OBJEXT) \
- write_bitmap.$(OBJEXT) align_bitmap_image.$(OBJEXT) \
- fill_image_vector_for_create_bmp_for_microstrip_coupler.$(OBJEXT) \
- check_error.$(OBJEXT) exit_with_msg_and_exit_code.$(OBJEXT)
-create_bmp_for_microstrip_coupler_OBJECTS = \
- $(am_create_bmp_for_microstrip_coupler_OBJECTS)
-create_bmp_for_microstrip_coupler_DEPENDENCIES =
-create_bmp_for_microstrip_coupler_LDFLAGS =
-am_create_bmp_for_rect_cen_in_rect_OBJECTS = \
- create_bmp_for_rect_cen_in_rect.$(OBJEXT) \
- usage_create_bmp_for_rect_cen_in_rect.$(OBJEXT) \
- write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
- convert_create_bmp_for_rect_in_rect_dimensions_to_integers.$(OBJEXT) \
- memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- align_bitmap_image.$(OBJEXT) fill_rect_in_rect.$(OBJEXT) \
- check_parameters_of_create_bmp_for_rect_in_rect.$(OBJEXT) \
- check_error.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT)
-create_bmp_for_rect_cen_in_rect_OBJECTS = \
- $(am_create_bmp_for_rect_cen_in_rect_OBJECTS)
-create_bmp_for_rect_cen_in_rect_DEPENDENCIES =
-create_bmp_for_rect_cen_in_rect_LDFLAGS =
-am_create_bmp_for_rect_cen_in_rect_coupler_OBJECTS = \
- create_bmp_for_rect_cen_in_rect_coupler.$(OBJEXT) \
- usage_create_bmp_for_rect_cen_in_rect_coupler.$(OBJEXT) \
- get_options.$(OBJEXT) memory.$(OBJEXT) \
- write_bitmap_out.$(OBJEXT) align_bitmap_image.$(OBJEXT) \
- check_error.$(OBJEXT) exit_with_msg_and_exit_code.$(OBJEXT) \
- print_copyright.$(OBJEXT)
-create_bmp_for_rect_cen_in_rect_coupler_OBJECTS = \
- $(am_create_bmp_for_rect_cen_in_rect_coupler_OBJECTS)
-create_bmp_for_rect_cen_in_rect_coupler_LDADD = $(LDADD)
-create_bmp_for_rect_cen_in_rect_coupler_DEPENDENCIES =
-create_bmp_for_rect_cen_in_rect_coupler_LDFLAGS =
-am_create_bmp_for_rect_in_circ_OBJECTS = \
- create_bmp_for_rect_in_circ.$(OBJEXT) \
- usage_create_bmp_for_rect_in_circ.$(OBJEXT) \
- write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
- convert_create_bmp_for_rect_in_circ_dimensions_to_integers.$(OBJEXT) \
- memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- align_bitmap_image.$(OBJEXT) fill_rect_in_circ.$(OBJEXT) \
- check_parameters_of_create_bmp_for_rect_in_circ.$(OBJEXT) \
- check_error.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT)
-create_bmp_for_rect_in_circ_OBJECTS = \
- $(am_create_bmp_for_rect_in_circ_OBJECTS)
-create_bmp_for_rect_in_circ_LDADD = $(LDADD)
-create_bmp_for_rect_in_circ_DEPENDENCIES =
-create_bmp_for_rect_in_circ_LDFLAGS =
-am_create_bmp_for_rect_in_rect_OBJECTS = \
- create_bmp_for_rect_in_rect.$(OBJEXT) \
- usage_create_bmp_for_rect_in_rect.$(OBJEXT) \
- write_bitmap.$(OBJEXT) get_Er1_and_Er2_colours.$(OBJEXT) \
- convert_create_bmp_for_rect_in_rect_dimensions_to_integers.$(OBJEXT) \
- memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- align_bitmap_image.$(OBJEXT) fill_rect_in_rect.$(OBJEXT) \
- check_parameters_of_create_bmp_for_rect_in_rect.$(OBJEXT) \
- check_error.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT)
-create_bmp_for_rect_in_rect_OBJECTS = \
- $(am_create_bmp_for_rect_in_rect_OBJECTS)
-create_bmp_for_rect_in_rect_DEPENDENCIES =
-create_bmp_for_rect_in_rect_LDFLAGS =
-am_create_bmp_for_stripline_coupler_OBJECTS = \
- create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.$(OBJEXT) \
- create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.$(OBJEXT) \
- create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.$(OBJEXT) \
- create_bmp_for_stripline_coupler-get_options.$(OBJEXT) \
- create_bmp_for_stripline_coupler-calculate_integer_values.$(OBJEXT) \
- create_bmp_for_stripline_coupler-write_bitmap.$(OBJEXT) \
- create_bmp_for_stripline_coupler-memory.$(OBJEXT) \
- create_bmp_for_stripline_coupler-write_bitmap_out.$(OBJEXT) \
- create_bmp_for_stripline_coupler-align_bitmap_image.$(OBJEXT) \
- create_bmp_for_stripline_coupler-fill_make_coupler.$(OBJEXT) \
- create_bmp_for_stripline_coupler-check_error.$(OBJEXT) \
- create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.$(OBJEXT) \
- create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.$(OBJEXT) \
- create_bmp_for_stripline_coupler-print_copyright.$(OBJEXT) \
- create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.$(OBJEXT)
-create_bmp_for_stripline_coupler_OBJECTS = \
- $(am_create_bmp_for_stripline_coupler_OBJECTS)
-create_bmp_for_stripline_coupler_DEPENDENCIES =
-create_bmp_for_stripline_coupler_LDFLAGS =
-am_create_bmp_for_symmetrical_stripline_OBJECTS = \
- create_bmp_for_symmetrical_stripline.$(OBJEXT) \
- fill_image_vector_for_create_bmp_for_symmetrical_stripline.$(OBJEXT) \
- usage_create_bmp_for_symmetrical_stripline.$(OBJEXT) \
- memory.$(OBJEXT) write_bitmap_out.$(OBJEXT) \
- align_bitmap_image.$(OBJEXT) \
- calculate_impedance_for_create_bmp_for_symmetrical_stripline.$(OBJEXT) \
- elliptic_integral.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT)
-create_bmp_for_symmetrical_stripline_OBJECTS = \
- $(am_create_bmp_for_symmetrical_stripline_OBJECTS)
-create_bmp_for_symmetrical_stripline_DEPENDENCIES =
-create_bmp_for_symmetrical_stripline_LDFLAGS =
-am_design_coupler_OBJECTS = design_coupler-design_coupler.$(OBJEXT) \
- design_coupler-usage_design_coupler.$(OBJEXT) \
- design_coupler-get_options.$(OBJEXT) \
- design_coupler-print_copyright.$(OBJEXT) \
- design_coupler-calculate_Zodd_and_Zeven.$(OBJEXT) \
- design_coupler-give_examples_of_using_design_coupler.$(OBJEXT) \
- design_coupler-exit_with_msg_and_exit_code.$(OBJEXT) \
- design_coupler-gsl_sf_ellint_Kcomp.$(OBJEXT)
-design_coupler_OBJECTS = $(am_design_coupler_OBJECTS)
-design_coupler_DEPENDENCIES =
-design_coupler_LDFLAGS =
-am_find_optimal_dimensions_for_microstrip_coupler_OBJECTS = \
- find_optimal_dimensions_for_microstrip_coupler.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) \
- usage_find_optimal_dimensions_for_microstrip_coupler.$(OBJEXT) \
- print_copyright.$(OBJEXT) get_options.$(OBJEXT) \
- memory.$(OBJEXT) \
- check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.$(OBJEXT)
-find_optimal_dimensions_for_microstrip_coupler_OBJECTS = \
- $(am_find_optimal_dimensions_for_microstrip_coupler_OBJECTS)
-find_optimal_dimensions_for_microstrip_coupler_DEPENDENCIES =
-find_optimal_dimensions_for_microstrip_coupler_LDFLAGS =
-am_readbin_OBJECTS = readbin.$(OBJEXT) get_options.$(OBJEXT) \
- exit_with_msg_and_exit_code.$(OBJEXT) print_copyright.$(OBJEXT) \
- usage_readbin.$(OBJEXT) byteswap.$(OBJEXT) memory.$(OBJEXT)
-readbin_OBJECTS = $(am_readbin_OBJECTS)
-readbin_DEPENDENCIES =
-readbin_LDFLAGS =
-
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/align_bitmap_image.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-atlc.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-calculate_colour_data.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-check_for_boundaries.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-check_for_shorts.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-do_fd_calculation.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-find_electric_fields.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-find_energy_per_metre.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-find_maximum_values.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-finite_difference_multi_threaded.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-finite_difference_single_threaded.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-get_options.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-memory.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-print_copyright.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-print_data_for_directional_couplers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-read_bitmap_file_headers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-setup_arrays.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-swap_conductor_voltages.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-update_voltage_array.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-usage_atlc.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/byteswap.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/calculate_impedance_for_create_bmp_for_symmetrical_stripline.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_error.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_parameters_of_create_bmp_for_circ_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_parameters_of_create_bmp_for_circ_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_parameters_of_create_bmp_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_parameters_of_create_bmp_for_rect_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/check_parameters_of_create_bmp_for_rect_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/convert_create_bmp_for_circ_in_circ_dimensions_to_integers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/convert_create_bmp_for_circ_in_rect_dimensions_to_integers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/convert_create_bmp_for_rect_in_circ_dimensions_to_integers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/convert_create_bmp_for_rect_in_rect_dimensions_to_integers.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_any_bitmap.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_circ_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_circ_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_rect_cen_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_rect_cen_in_rect_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_rect_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_rect_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/create_bmp_for_symmetrical_stripline.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-design_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-get_options.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-print_copyright.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/design_coupler-usage_design_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/elliptic_integral.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/exit_with_msg_and_exit_code.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/fill_circ_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/fill_circ_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/fill_image_vector_for_create_bmp_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/fill_image_vector_for_create_bmp_for_symmetrical_stripline.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/fill_rect_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/fill_rect_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/find_optimal_dimensions_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/get_Er1_and_Er2_colours.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/get_options.Po ./$(DEPDIR)/memory.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/print_copyright.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/readbin.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_any_bitmap.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_circ_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_circ_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_rect_cen_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_rect_cen_in_rect_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_rect_in_circ.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_rect_in_rect.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_create_bmp_for_symmetrical_stripline.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_find_optimal_dimensions_for_microstrip_coupler.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_readbin.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/write_bitmap.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/write_bitmap_out.Po
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-DIST_SOURCES = $(atlc_SOURCES) $(create_any_bitmap_SOURCES) \
- $(create_bmp_for_circ_in_circ_SOURCES) \
- $(create_bmp_for_circ_in_rect_SOURCES) \
- $(create_bmp_for_microstrip_coupler_SOURCES) \
- $(create_bmp_for_rect_cen_in_rect_SOURCES) \
- $(create_bmp_for_rect_cen_in_rect_coupler_SOURCES) \
- $(create_bmp_for_rect_in_circ_SOURCES) \
- $(create_bmp_for_rect_in_rect_SOURCES) \
- $(create_bmp_for_stripline_coupler_SOURCES) \
- $(create_bmp_for_symmetrical_stripline_SOURCES) \
- $(design_coupler_SOURCES) \
- $(find_optimal_dimensions_for_microstrip_coupler_SOURCES) \
- $(readbin_SOURCES)
-DIST_COMMON = README Makefile.am Makefile.in
-SOURCES = $(atlc_SOURCES) $(create_any_bitmap_SOURCES) $(create_bmp_for_circ_in_circ_SOURCES) $(create_bmp_for_circ_in_rect_SOURCES) $(create_bmp_for_microstrip_coupler_SOURCES) $(create_bmp_for_rect_cen_in_rect_SOURCES) $(create_bmp_for_rect_cen_in_rect_coupler_SOURCES) $(create_bmp_for_rect_in_circ_SOURCES) $(create_bmp_for_rect_in_rect_SOURCES) $(create_bmp_for_stripline_coupler_SOURCES) $(create_bmp_for_symmetrical_stripline_SOURCES) $(design_coupler_SOURCES) $(find_optimal_dimensions_for_microstrip_coupler_SOURCES) $(readbin_SOURCES)
-
-all: all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu src/non_gui/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-install-binPROGRAMS: $(bin_PROGRAMS)
- @$(NORMAL_INSTALL)
- $(mkinstalldirs) $(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)
-atlc-atlc.$(OBJEXT): atlc.c
-atlc-read_bitmap_file_headers.$(OBJEXT): read_bitmap_file_headers.c
-atlc-update_voltage_array.$(OBJEXT): update_voltage_array.c
-atlc-check_for_boundaries.$(OBJEXT): check_for_boundaries.c
-atlc-memory.$(OBJEXT): memory.c
-atlc-setup_arrays.$(OBJEXT): setup_arrays.c
-atlc-finite_difference_single_threaded.$(OBJEXT): \
- finite_difference_single_threaded.c
-atlc-finite_difference_multi_threaded.$(OBJEXT): \
- finite_difference_multi_threaded.c
-atlc-usage_atlc.$(OBJEXT): usage_atlc.c
-atlc-check_for_shorts.$(OBJEXT): check_for_shorts.c
-atlc-find_energy_per_metre.$(OBJEXT): find_energy_per_metre.c
-atlc-set_oddity_from_Greens_paper.$(OBJEXT): \
- set_oddity_from_Greens_paper.c
-atlc-get_file_pointer_with_right_filename.$(OBJEXT): \
- get_file_pointer_with_right_filename.c
-atlc-find_maximum_values.$(OBJEXT): find_maximum_values.c
-atlc-calculate_colour_data.$(OBJEXT): calculate_colour_data.c
-atlc-find_electric_fields.$(OBJEXT): find_electric_fields.c
-atlc-get_options.$(OBJEXT): get_options.c
-atlc-exit_with_msg_and_exit_code.$(OBJEXT): \
- exit_with_msg_and_exit_code.c
-atlc-do_fd_calculation.$(OBJEXT): do_fd_calculation.c
-atlc-swap_conductor_voltages.$(OBJEXT): swap_conductor_voltages.c
-atlc-print_copyright.$(OBJEXT): print_copyright.c
-atlc-print_data_for_directional_couplers.$(OBJEXT): \
- print_data_for_directional_couplers.c
-atlc-print_data_for_two_conductor_lines.$(OBJEXT): \
- print_data_for_two_conductor_lines.c
-atlc-set_data_to_sensible_starting_values.$(OBJEXT): \
- set_data_to_sensible_starting_values.c
-atlc-write_fields_for_two_conductor_lines.$(OBJEXT): \
- write_fields_for_two_conductor_lines.c
-atlc-write_fields_for_directional_couplers.$(OBJEXT): \
- write_fields_for_directional_couplers.c
-atlc$(EXEEXT): $(atlc_OBJECTS) $(atlc_DEPENDENCIES)
- @rm -f atlc$(EXEEXT)
- $(LINK) $(atlc_LDFLAGS) $(atlc_OBJECTS) $(atlc_LDADD) $(LIBS)
-create_any_bitmap$(EXEEXT): $(create_any_bitmap_OBJECTS) $(create_any_bitmap_DEPENDENCIES)
- @rm -f create_any_bitmap$(EXEEXT)
- $(LINK) $(create_any_bitmap_LDFLAGS) $(create_any_bitmap_OBJECTS) $(create_any_bitmap_LDADD) $(LIBS)
-create_bmp_for_circ_in_circ$(EXEEXT): $(create_bmp_for_circ_in_circ_OBJECTS) $(create_bmp_for_circ_in_circ_DEPENDENCIES)
- @rm -f create_bmp_for_circ_in_circ$(EXEEXT)
- $(LINK) $(create_bmp_for_circ_in_circ_LDFLAGS) $(create_bmp_for_circ_in_circ_OBJECTS) $(create_bmp_for_circ_in_circ_LDADD) $(LIBS)
-create_bmp_for_circ_in_rect$(EXEEXT): $(create_bmp_for_circ_in_rect_OBJECTS) $(create_bmp_for_circ_in_rect_DEPENDENCIES)
- @rm -f create_bmp_for_circ_in_rect$(EXEEXT)
- $(LINK) $(create_bmp_for_circ_in_rect_LDFLAGS) $(create_bmp_for_circ_in_rect_OBJECTS) $(create_bmp_for_circ_in_rect_LDADD) $(LIBS)
-create_bmp_for_microstrip_coupler$(EXEEXT): $(create_bmp_for_microstrip_coupler_OBJECTS) $(create_bmp_for_microstrip_coupler_DEPENDENCIES)
- @rm -f create_bmp_for_microstrip_coupler$(EXEEXT)
- $(LINK) $(create_bmp_for_microstrip_coupler_LDFLAGS) $(create_bmp_for_microstrip_coupler_OBJECTS) $(create_bmp_for_microstrip_coupler_LDADD) $(LIBS)
-create_bmp_for_rect_cen_in_rect$(EXEEXT): $(create_bmp_for_rect_cen_in_rect_OBJECTS) $(create_bmp_for_rect_cen_in_rect_DEPENDENCIES)
- @rm -f create_bmp_for_rect_cen_in_rect$(EXEEXT)
- $(LINK) $(create_bmp_for_rect_cen_in_rect_LDFLAGS) $(create_bmp_for_rect_cen_in_rect_OBJECTS) $(create_bmp_for_rect_cen_in_rect_LDADD) $(LIBS)
-create_bmp_for_rect_cen_in_rect_coupler$(EXEEXT): $(create_bmp_for_rect_cen_in_rect_coupler_OBJECTS) $(create_bmp_for_rect_cen_in_rect_coupler_DEPENDENCIES)
- @rm -f create_bmp_for_rect_cen_in_rect_coupler$(EXEEXT)
- $(LINK) $(create_bmp_for_rect_cen_in_rect_coupler_LDFLAGS) $(create_bmp_for_rect_cen_in_rect_coupler_OBJECTS) $(create_bmp_for_rect_cen_in_rect_coupler_LDADD) $(LIBS)
-create_bmp_for_rect_in_circ$(EXEEXT): $(create_bmp_for_rect_in_circ_OBJECTS) $(create_bmp_for_rect_in_circ_DEPENDENCIES)
- @rm -f create_bmp_for_rect_in_circ$(EXEEXT)
- $(LINK) $(create_bmp_for_rect_in_circ_LDFLAGS) $(create_bmp_for_rect_in_circ_OBJECTS) $(create_bmp_for_rect_in_circ_LDADD) $(LIBS)
-create_bmp_for_rect_in_rect$(EXEEXT): $(create_bmp_for_rect_in_rect_OBJECTS) $(create_bmp_for_rect_in_rect_DEPENDENCIES)
- @rm -f create_bmp_for_rect_in_rect$(EXEEXT)
- $(LINK) $(create_bmp_for_rect_in_rect_LDFLAGS) $(create_bmp_for_rect_in_rect_OBJECTS) $(create_bmp_for_rect_in_rect_LDADD) $(LIBS)
-create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.$(OBJEXT): \
- create_bmp_for_stripline_coupler.c
-create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.$(OBJEXT): \
- usage_create_bmp_for_stripline_coupler.c
-create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.$(OBJEXT): \
- calculate_Zodd_and_Zeven.c
-create_bmp_for_stripline_coupler-get_options.$(OBJEXT): get_options.c
-create_bmp_for_stripline_coupler-calculate_integer_values.$(OBJEXT): \
- calculate_integer_values.c
-create_bmp_for_stripline_coupler-write_bitmap.$(OBJEXT): write_bitmap.c
-create_bmp_for_stripline_coupler-memory.$(OBJEXT): memory.c
-create_bmp_for_stripline_coupler-write_bitmap_out.$(OBJEXT): \
- write_bitmap_out.c
-create_bmp_for_stripline_coupler-align_bitmap_image.$(OBJEXT): \
- align_bitmap_image.c
-create_bmp_for_stripline_coupler-fill_make_coupler.$(OBJEXT): \
- fill_make_coupler.c
-create_bmp_for_stripline_coupler-check_error.$(OBJEXT): check_error.c
-create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.$(OBJEXT): \
- exit_with_msg_and_exit_code.c
-create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.$(OBJEXT): \
- get_Er1_and_Er2_colours.c
-create_bmp_for_stripline_coupler-print_copyright.$(OBJEXT): \
- print_copyright.c
-create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.$(OBJEXT): \
- gsl_sf_ellint_Kcomp.c
-create_bmp_for_stripline_coupler$(EXEEXT): $(create_bmp_for_stripline_coupler_OBJECTS) $(create_bmp_for_stripline_coupler_DEPENDENCIES)
- @rm -f create_bmp_for_stripline_coupler$(EXEEXT)
- $(LINK) $(create_bmp_for_stripline_coupler_LDFLAGS) $(create_bmp_for_stripline_coupler_OBJECTS) $(create_bmp_for_stripline_coupler_LDADD) $(LIBS)
-create_bmp_for_symmetrical_stripline$(EXEEXT): $(create_bmp_for_symmetrical_stripline_OBJECTS) $(create_bmp_for_symmetrical_stripline_DEPENDENCIES)
- @rm -f create_bmp_for_symmetrical_stripline$(EXEEXT)
- $(LINK) $(create_bmp_for_symmetrical_stripline_LDFLAGS) $(create_bmp_for_symmetrical_stripline_OBJECTS) $(create_bmp_for_symmetrical_stripline_LDADD) $(LIBS)
-design_coupler-design_coupler.$(OBJEXT): design_coupler.c
-design_coupler-usage_design_coupler.$(OBJEXT): usage_design_coupler.c
-design_coupler-get_options.$(OBJEXT): get_options.c
-design_coupler-print_copyright.$(OBJEXT): print_copyright.c
-design_coupler-calculate_Zodd_and_Zeven.$(OBJEXT): \
- calculate_Zodd_and_Zeven.c
-design_coupler-give_examples_of_using_design_coupler.$(OBJEXT): \
- give_examples_of_using_design_coupler.c
-design_coupler-exit_with_msg_and_exit_code.$(OBJEXT): \
- exit_with_msg_and_exit_code.c
-design_coupler-gsl_sf_ellint_Kcomp.$(OBJEXT): gsl_sf_ellint_Kcomp.c
-design_coupler$(EXEEXT): $(design_coupler_OBJECTS) $(design_coupler_DEPENDENCIES)
- @rm -f design_coupler$(EXEEXT)
- $(LINK) $(design_coupler_LDFLAGS) $(design_coupler_OBJECTS) $(design_coupler_LDADD) $(LIBS)
-find_optimal_dimensions_for_microstrip_coupler$(EXEEXT): $(find_optimal_dimensions_for_microstrip_coupler_OBJECTS) $(find_optimal_dimensions_for_microstrip_coupler_DEPENDENCIES)
- @rm -f find_optimal_dimensions_for_microstrip_coupler$(EXEEXT)
- $(LINK) $(find_optimal_dimensions_for_microstrip_coupler_LDFLAGS) $(find_optimal_dimensions_for_microstrip_coupler_OBJECTS) $(find_optimal_dimensions_for_microstrip_coupler_LDADD) $(LIBS)
-readbin$(EXEEXT): $(readbin_OBJECTS) $(readbin_DEPENDENCIES)
- @rm -f readbin$(EXEEXT)
- $(LINK) $(readbin_LDFLAGS) $(readbin_OBJECTS) $(readbin_LDADD) $(LIBS)
-
-mostlyclean-compile:
- -rm -f *.$(OBJEXT) core *.core
-
-distclean-compile:
- -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/align_bitmap_image.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-atlc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-calculate_colour_data.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-check_for_boundaries.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-check_for_shorts.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-do_fd_calculation.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-find_electric_fields.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-find_energy_per_metre.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-find_maximum_values.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-finite_difference_multi_threaded.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-finite_difference_single_threaded.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-get_options.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-memory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-print_copyright.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-print_data_for_directional_couplers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-read_bitmap_file_headers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-setup_arrays.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-swap_conductor_voltages.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-update_voltage_array.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-usage_atlc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/byteswap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calculate_impedance_for_create_bmp_for_symmetrical_stripline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_for_find_optimal_dimensions_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_circ_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_circ_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_rect_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check_parameters_of_create_bmp_for_rect_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_circ_in_circ_dimensions_to_integers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_circ_in_rect_dimensions_to_integers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_coupled_microstrip_dimensions_to_integers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_rect_in_circ_dimensions_to_integers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/convert_create_bmp_for_rect_in_rect_dimensions_to_integers.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_any_bitmap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_circ_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_circ_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_cen_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_cen_in_rect_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_rect_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/create_bmp_for_symmetrical_stripline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-design_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-get_options.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-print_copyright.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/design_coupler-usage_design_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/elliptic_integral.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/exit_with_msg_and_exit_code.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_circ_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_circ_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_image_vector_for_create_bmp_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_image_vector_for_create_bmp_for_symmetrical_stripline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_rect_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/fill_rect_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/find_optimal_dimensions_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_Er1_and_Er2_colours.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get_options.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/print_copyright.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/readbin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_any_bitmap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_circ_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_circ_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_cen_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_cen_in_rect_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_in_circ.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_rect_in_rect.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_create_bmp_for_symmetrical_stripline.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_find_optimal_dimensions_for_microstrip_coupler.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_readbin.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write_bitmap.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/write_bitmap_out.Po@am__quote@
-
-distclean-depend:
- -rm -rf ./$(DEPDIR)
-
-.c.o:
-@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
-
-.c.obj:
-@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`
-
-atlc-atlc.o: atlc.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-atlc.o -MD -MP -MF "$(DEPDIR)/atlc-atlc.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-atlc.o `test -f 'atlc.c' || echo '$(srcdir)/'`atlc.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-atlc.Tpo" "$(DEPDIR)/atlc-atlc.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-atlc.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atlc.c' object='atlc-atlc.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-atlc.Po' tmpdepfile='$(DEPDIR)/atlc-atlc.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-atlc.o `test -f 'atlc.c' || echo '$(srcdir)/'`atlc.c
-
-atlc-atlc.obj: atlc.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-atlc.obj -MD -MP -MF "$(DEPDIR)/atlc-atlc.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-atlc.obj `if test -f 'atlc.c'; then $(CYGPATH_W) 'atlc.c'; else $(CYGPATH_W) '$(srcdir)/atlc.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-atlc.Tpo" "$(DEPDIR)/atlc-atlc.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-atlc.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='atlc.c' object='atlc-atlc.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-atlc.Po' tmpdepfile='$(DEPDIR)/atlc-atlc.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-atlc.obj `if test -f 'atlc.c'; then $(CYGPATH_W) 'atlc.c'; else $(CYGPATH_W) '$(srcdir)/atlc.c'`
-
-atlc-read_bitmap_file_headers.o: read_bitmap_file_headers.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-read_bitmap_file_headers.o -MD -MP -MF "$(DEPDIR)/atlc-read_bitmap_file_headers.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-read_bitmap_file_headers.o `test -f 'read_bitmap_file_headers.c' || echo '$(srcdir)/'`read_bitmap_file_headers.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-read_bitmap_file_headers.Tpo" "$(DEPDIR)/atlc-read_bitmap_file_headers.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-read_bitmap_file_headers.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='read_bitmap_file_headers.c' object='atlc-read_bitmap_file_headers.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-read_bitmap_file_headers.Po' tmpdepfile='$(DEPDIR)/atlc-read_bitmap_file_headers.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-read_bitmap_file_headers.o `test -f 'read_bitmap_file_headers.c' || echo '$(srcdir)/'`read_bitmap_file_headers.c
-
-atlc-read_bitmap_file_headers.obj: read_bitmap_file_headers.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-read_bitmap_file_headers.obj -MD -MP -MF "$(DEPDIR)/atlc-read_bitmap_file_headers.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-read_bitmap_file_headers.obj `if test -f 'read_bitmap_file_headers.c'; then $(CYGPATH_W) 'read_bitmap_file_headers.c'; else $(CYGPATH_W) '$(srcdir)/read_bitmap_file_headers.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-read_bitmap_file_headers.Tpo" "$(DEPDIR)/atlc-read_bitmap_file_headers.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-read_bitmap_file_headers.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='read_bitmap_file_headers.c' object='atlc-read_bitmap_file_headers.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-read_bitmap_file_headers.Po' tmpdepfile='$(DEPDIR)/atlc-read_bitmap_file_headers.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-read_bitmap_file_headers.obj `if test -f 'read_bitmap_file_headers.c'; then $(CYGPATH_W) 'read_bitmap_file_headers.c'; else $(CYGPATH_W) '$(srcdir)/read_bitmap_file_headers.c'`
-
-atlc-update_voltage_array.o: update_voltage_array.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-update_voltage_array.o -MD -MP -MF "$(DEPDIR)/atlc-update_voltage_array.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-update_voltage_array.o `test -f 'update_voltage_array.c' || echo '$(srcdir)/'`update_voltage_array.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-update_voltage_array.Tpo" "$(DEPDIR)/atlc-update_voltage_array.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-update_voltage_array.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='update_voltage_array.c' object='atlc-update_voltage_array.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-update_voltage_array.Po' tmpdepfile='$(DEPDIR)/atlc-update_voltage_array.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-update_voltage_array.o `test -f 'update_voltage_array.c' || echo '$(srcdir)/'`update_voltage_array.c
-
-atlc-update_voltage_array.obj: update_voltage_array.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-update_voltage_array.obj -MD -MP -MF "$(DEPDIR)/atlc-update_voltage_array.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-update_voltage_array.obj `if test -f 'update_voltage_array.c'; then $(CYGPATH_W) 'update_voltage_array.c'; else $(CYGPATH_W) '$(srcdir)/update_voltage_array.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-update_voltage_array.Tpo" "$(DEPDIR)/atlc-update_voltage_array.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-update_voltage_array.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='update_voltage_array.c' object='atlc-update_voltage_array.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-update_voltage_array.Po' tmpdepfile='$(DEPDIR)/atlc-update_voltage_array.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-update_voltage_array.obj `if test -f 'update_voltage_array.c'; then $(CYGPATH_W) 'update_voltage_array.c'; else $(CYGPATH_W) '$(srcdir)/update_voltage_array.c'`
-
-atlc-check_for_boundaries.o: check_for_boundaries.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_boundaries.o -MD -MP -MF "$(DEPDIR)/atlc-check_for_boundaries.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-check_for_boundaries.o `test -f 'check_for_boundaries.c' || echo '$(srcdir)/'`check_for_boundaries.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-check_for_boundaries.Tpo" "$(DEPDIR)/atlc-check_for_boundaries.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-check_for_boundaries.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_boundaries.c' object='atlc-check_for_boundaries.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-check_for_boundaries.Po' tmpdepfile='$(DEPDIR)/atlc-check_for_boundaries.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_boundaries.o `test -f 'check_for_boundaries.c' || echo '$(srcdir)/'`check_for_boundaries.c
-
-atlc-check_for_boundaries.obj: check_for_boundaries.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_boundaries.obj -MD -MP -MF "$(DEPDIR)/atlc-check_for_boundaries.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-check_for_boundaries.obj `if test -f 'check_for_boundaries.c'; then $(CYGPATH_W) 'check_for_boundaries.c'; else $(CYGPATH_W) '$(srcdir)/check_for_boundaries.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-check_for_boundaries.Tpo" "$(DEPDIR)/atlc-check_for_boundaries.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-check_for_boundaries.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_boundaries.c' object='atlc-check_for_boundaries.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-check_for_boundaries.Po' tmpdepfile='$(DEPDIR)/atlc-check_for_boundaries.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_boundaries.obj `if test -f 'check_for_boundaries.c'; then $(CYGPATH_W) 'check_for_boundaries.c'; else $(CYGPATH_W) '$(srcdir)/check_for_boundaries.c'`
-
-atlc-memory.o: memory.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-memory.o -MD -MP -MF "$(DEPDIR)/atlc-memory.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-memory.Tpo" "$(DEPDIR)/atlc-memory.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-memory.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='atlc-memory.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-memory.Po' tmpdepfile='$(DEPDIR)/atlc-memory.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
-
-atlc-memory.obj: memory.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-memory.obj -MD -MP -MF "$(DEPDIR)/atlc-memory.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-memory.Tpo" "$(DEPDIR)/atlc-memory.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-memory.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='atlc-memory.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-memory.Po' tmpdepfile='$(DEPDIR)/atlc-memory.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'`
-
-atlc-setup_arrays.o: setup_arrays.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-setup_arrays.o -MD -MP -MF "$(DEPDIR)/atlc-setup_arrays.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-setup_arrays.o `test -f 'setup_arrays.c' || echo '$(srcdir)/'`setup_arrays.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-setup_arrays.Tpo" "$(DEPDIR)/atlc-setup_arrays.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-setup_arrays.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup_arrays.c' object='atlc-setup_arrays.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-setup_arrays.Po' tmpdepfile='$(DEPDIR)/atlc-setup_arrays.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-setup_arrays.o `test -f 'setup_arrays.c' || echo '$(srcdir)/'`setup_arrays.c
-
-atlc-setup_arrays.obj: setup_arrays.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-setup_arrays.obj -MD -MP -MF "$(DEPDIR)/atlc-setup_arrays.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-setup_arrays.obj `if test -f 'setup_arrays.c'; then $(CYGPATH_W) 'setup_arrays.c'; else $(CYGPATH_W) '$(srcdir)/setup_arrays.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-setup_arrays.Tpo" "$(DEPDIR)/atlc-setup_arrays.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-setup_arrays.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='setup_arrays.c' object='atlc-setup_arrays.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-setup_arrays.Po' tmpdepfile='$(DEPDIR)/atlc-setup_arrays.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-setup_arrays.obj `if test -f 'setup_arrays.c'; then $(CYGPATH_W) 'setup_arrays.c'; else $(CYGPATH_W) '$(srcdir)/setup_arrays.c'`
-
-atlc-finite_difference_single_threaded.o: finite_difference_single_threaded.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_single_threaded.o -MD -MP -MF "$(DEPDIR)/atlc-finite_difference_single_threaded.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-finite_difference_single_threaded.o `test -f 'finite_difference_single_threaded.c' || echo '$(srcdir)/'`finite_difference_single_threaded.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-finite_difference_single_threaded.Tpo" "$(DEPDIR)/atlc-finite_difference_single_threaded.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-finite_difference_single_threaded.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_single_threaded.c' object='atlc-finite_difference_single_threaded.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-finite_difference_single_threaded.Po' tmpdepfile='$(DEPDIR)/atlc-finite_difference_single_threaded.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_single_threaded.o `test -f 'finite_difference_single_threaded.c' || echo '$(srcdir)/'`finite_difference_single_threaded.c
-
-atlc-finite_difference_single_threaded.obj: finite_difference_single_threaded.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_single_threaded.obj -MD -MP -MF "$(DEPDIR)/atlc-finite_difference_single_threaded.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-finite_difference_single_threaded.obj `if test -f 'finite_difference_single_threaded.c'; then $(CYGPATH_W) 'finite_difference_single_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_single_threaded.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-finite_difference_single_threaded.Tpo" "$(DEPDIR)/atlc-finite_difference_single_threaded.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-finite_difference_single_threaded.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_single_threaded.c' object='atlc-finite_difference_single_threaded.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-finite_difference_single_threaded.Po' tmpdepfile='$(DEPDIR)/atlc-finite_difference_single_threaded.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_single_threaded.obj `if test -f 'finite_difference_single_threaded.c'; then $(CYGPATH_W) 'finite_difference_single_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_single_threaded.c'`
-
-atlc-finite_difference_multi_threaded.o: finite_difference_multi_threaded.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_multi_threaded.o -MD -MP -MF "$(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-finite_difference_multi_threaded.o `test -f 'finite_difference_multi_threaded.c' || echo '$(srcdir)/'`finite_difference_multi_threaded.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo" "$(DEPDIR)/atlc-finite_difference_multi_threaded.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_multi_threaded.c' object='atlc-finite_difference_multi_threaded.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-finite_difference_multi_threaded.Po' tmpdepfile='$(DEPDIR)/atlc-finite_difference_multi_threaded.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_multi_threaded.o `test -f 'finite_difference_multi_threaded.c' || echo '$(srcdir)/'`finite_difference_multi_threaded.c
-
-atlc-finite_difference_multi_threaded.obj: finite_difference_multi_threaded.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-finite_difference_multi_threaded.obj -MD -MP -MF "$(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-finite_difference_multi_threaded.obj `if test -f 'finite_difference_multi_threaded.c'; then $(CYGPATH_W) 'finite_difference_multi_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_multi_threaded.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo" "$(DEPDIR)/atlc-finite_difference_multi_threaded.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-finite_difference_multi_threaded.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='finite_difference_multi_threaded.c' object='atlc-finite_difference_multi_threaded.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-finite_difference_multi_threaded.Po' tmpdepfile='$(DEPDIR)/atlc-finite_difference_multi_threaded.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-finite_difference_multi_threaded.obj `if test -f 'finite_difference_multi_threaded.c'; then $(CYGPATH_W) 'finite_difference_multi_threaded.c'; else $(CYGPATH_W) '$(srcdir)/finite_difference_multi_threaded.c'`
-
-atlc-usage_atlc.o: usage_atlc.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-usage_atlc.o -MD -MP -MF "$(DEPDIR)/atlc-usage_atlc.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-usage_atlc.o `test -f 'usage_atlc.c' || echo '$(srcdir)/'`usage_atlc.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-usage_atlc.Tpo" "$(DEPDIR)/atlc-usage_atlc.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-usage_atlc.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_atlc.c' object='atlc-usage_atlc.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-usage_atlc.Po' tmpdepfile='$(DEPDIR)/atlc-usage_atlc.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-usage_atlc.o `test -f 'usage_atlc.c' || echo '$(srcdir)/'`usage_atlc.c
-
-atlc-usage_atlc.obj: usage_atlc.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-usage_atlc.obj -MD -MP -MF "$(DEPDIR)/atlc-usage_atlc.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-usage_atlc.obj `if test -f 'usage_atlc.c'; then $(CYGPATH_W) 'usage_atlc.c'; else $(CYGPATH_W) '$(srcdir)/usage_atlc.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-usage_atlc.Tpo" "$(DEPDIR)/atlc-usage_atlc.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-usage_atlc.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_atlc.c' object='atlc-usage_atlc.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-usage_atlc.Po' tmpdepfile='$(DEPDIR)/atlc-usage_atlc.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-usage_atlc.obj `if test -f 'usage_atlc.c'; then $(CYGPATH_W) 'usage_atlc.c'; else $(CYGPATH_W) '$(srcdir)/usage_atlc.c'`
-
-atlc-check_for_shorts.o: check_for_shorts.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_shorts.o -MD -MP -MF "$(DEPDIR)/atlc-check_for_shorts.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-check_for_shorts.o `test -f 'check_for_shorts.c' || echo '$(srcdir)/'`check_for_shorts.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-check_for_shorts.Tpo" "$(DEPDIR)/atlc-check_for_shorts.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-check_for_shorts.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_shorts.c' object='atlc-check_for_shorts.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-check_for_shorts.Po' tmpdepfile='$(DEPDIR)/atlc-check_for_shorts.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_shorts.o `test -f 'check_for_shorts.c' || echo '$(srcdir)/'`check_for_shorts.c
-
-atlc-check_for_shorts.obj: check_for_shorts.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-check_for_shorts.obj -MD -MP -MF "$(DEPDIR)/atlc-check_for_shorts.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-check_for_shorts.obj `if test -f 'check_for_shorts.c'; then $(CYGPATH_W) 'check_for_shorts.c'; else $(CYGPATH_W) '$(srcdir)/check_for_shorts.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-check_for_shorts.Tpo" "$(DEPDIR)/atlc-check_for_shorts.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-check_for_shorts.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_for_shorts.c' object='atlc-check_for_shorts.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-check_for_shorts.Po' tmpdepfile='$(DEPDIR)/atlc-check_for_shorts.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-check_for_shorts.obj `if test -f 'check_for_shorts.c'; then $(CYGPATH_W) 'check_for_shorts.c'; else $(CYGPATH_W) '$(srcdir)/check_for_shorts.c'`
-
-atlc-find_energy_per_metre.o: find_energy_per_metre.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_energy_per_metre.o -MD -MP -MF "$(DEPDIR)/atlc-find_energy_per_metre.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-find_energy_per_metre.o `test -f 'find_energy_per_metre.c' || echo '$(srcdir)/'`find_energy_per_metre.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-find_energy_per_metre.Tpo" "$(DEPDIR)/atlc-find_energy_per_metre.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-find_energy_per_metre.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_energy_per_metre.c' object='atlc-find_energy_per_metre.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-find_energy_per_metre.Po' tmpdepfile='$(DEPDIR)/atlc-find_energy_per_metre.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_energy_per_metre.o `test -f 'find_energy_per_metre.c' || echo '$(srcdir)/'`find_energy_per_metre.c
-
-atlc-find_energy_per_metre.obj: find_energy_per_metre.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_energy_per_metre.obj -MD -MP -MF "$(DEPDIR)/atlc-find_energy_per_metre.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-find_energy_per_metre.obj `if test -f 'find_energy_per_metre.c'; then $(CYGPATH_W) 'find_energy_per_metre.c'; else $(CYGPATH_W) '$(srcdir)/find_energy_per_metre.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-find_energy_per_metre.Tpo" "$(DEPDIR)/atlc-find_energy_per_metre.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-find_energy_per_metre.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_energy_per_metre.c' object='atlc-find_energy_per_metre.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-find_energy_per_metre.Po' tmpdepfile='$(DEPDIR)/atlc-find_energy_per_metre.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_energy_per_metre.obj `if test -f 'find_energy_per_metre.c'; then $(CYGPATH_W) 'find_energy_per_metre.c'; else $(CYGPATH_W) '$(srcdir)/find_energy_per_metre.c'`
-
-atlc-set_oddity_from_Greens_paper.o: set_oddity_from_Greens_paper.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_oddity_from_Greens_paper.o -MD -MP -MF "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-set_oddity_from_Greens_paper.o `test -f 'set_oddity_from_Greens_paper.c' || echo '$(srcdir)/'`set_oddity_from_Greens_paper.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo" "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_oddity_from_Greens_paper.c' object='atlc-set_oddity_from_Greens_paper.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po' tmpdepfile='$(DEPDIR)/atlc-set_oddity_from_Greens_paper.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_oddity_from_Greens_paper.o `test -f 'set_oddity_from_Greens_paper.c' || echo '$(srcdir)/'`set_oddity_from_Greens_paper.c
-
-atlc-set_oddity_from_Greens_paper.obj: set_oddity_from_Greens_paper.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_oddity_from_Greens_paper.obj -MD -MP -MF "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-set_oddity_from_Greens_paper.obj `if test -f 'set_oddity_from_Greens_paper.c'; then $(CYGPATH_W) 'set_oddity_from_Greens_paper.c'; else $(CYGPATH_W) '$(srcdir)/set_oddity_from_Greens_paper.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo" "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_oddity_from_Greens_paper.c' object='atlc-set_oddity_from_Greens_paper.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-set_oddity_from_Greens_paper.Po' tmpdepfile='$(DEPDIR)/atlc-set_oddity_from_Greens_paper.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_oddity_from_Greens_paper.obj `if test -f 'set_oddity_from_Greens_paper.c'; then $(CYGPATH_W) 'set_oddity_from_Greens_paper.c'; else $(CYGPATH_W) '$(srcdir)/set_oddity_from_Greens_paper.c'`
-
-atlc-get_file_pointer_with_right_filename.o: get_file_pointer_with_right_filename.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_file_pointer_with_right_filename.o -MD -MP -MF "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-get_file_pointer_with_right_filename.o `test -f 'get_file_pointer_with_right_filename.c' || echo '$(srcdir)/'`get_file_pointer_with_right_filename.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo" "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_file_pointer_with_right_filename.c' object='atlc-get_file_pointer_with_right_filename.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po' tmpdepfile='$(DEPDIR)/atlc-get_file_pointer_with_right_filename.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_file_pointer_with_right_filename.o `test -f 'get_file_pointer_with_right_filename.c' || echo '$(srcdir)/'`get_file_pointer_with_right_filename.c
-
-atlc-get_file_pointer_with_right_filename.obj: get_file_pointer_with_right_filename.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_file_pointer_with_right_filename.obj -MD -MP -MF "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-get_file_pointer_with_right_filename.obj `if test -f 'get_file_pointer_with_right_filename.c'; then $(CYGPATH_W) 'get_file_pointer_with_right_filename.c'; else $(CYGPATH_W) '$(srcdir)/get_file_pointer_with_right_filename.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo" "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_file_pointer_with_right_filename.c' object='atlc-get_file_pointer_with_right_filename.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-get_file_pointer_with_right_filename.Po' tmpdepfile='$(DEPDIR)/atlc-get_file_pointer_with_right_filename.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_file_pointer_with_right_filename.obj `if test -f 'get_file_pointer_with_right_filename.c'; then $(CYGPATH_W) 'get_file_pointer_with_right_filename.c'; else $(CYGPATH_W) '$(srcdir)/get_file_pointer_with_right_filename.c'`
-
-atlc-find_maximum_values.o: find_maximum_values.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_maximum_values.o -MD -MP -MF "$(DEPDIR)/atlc-find_maximum_values.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-find_maximum_values.o `test -f 'find_maximum_values.c' || echo '$(srcdir)/'`find_maximum_values.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-find_maximum_values.Tpo" "$(DEPDIR)/atlc-find_maximum_values.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-find_maximum_values.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_maximum_values.c' object='atlc-find_maximum_values.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-find_maximum_values.Po' tmpdepfile='$(DEPDIR)/atlc-find_maximum_values.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_maximum_values.o `test -f 'find_maximum_values.c' || echo '$(srcdir)/'`find_maximum_values.c
-
-atlc-find_maximum_values.obj: find_maximum_values.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_maximum_values.obj -MD -MP -MF "$(DEPDIR)/atlc-find_maximum_values.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-find_maximum_values.obj `if test -f 'find_maximum_values.c'; then $(CYGPATH_W) 'find_maximum_values.c'; else $(CYGPATH_W) '$(srcdir)/find_maximum_values.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-find_maximum_values.Tpo" "$(DEPDIR)/atlc-find_maximum_values.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-find_maximum_values.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_maximum_values.c' object='atlc-find_maximum_values.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-find_maximum_values.Po' tmpdepfile='$(DEPDIR)/atlc-find_maximum_values.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_maximum_values.obj `if test -f 'find_maximum_values.c'; then $(CYGPATH_W) 'find_maximum_values.c'; else $(CYGPATH_W) '$(srcdir)/find_maximum_values.c'`
-
-atlc-calculate_colour_data.o: calculate_colour_data.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-calculate_colour_data.o -MD -MP -MF "$(DEPDIR)/atlc-calculate_colour_data.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-calculate_colour_data.o `test -f 'calculate_colour_data.c' || echo '$(srcdir)/'`calculate_colour_data.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-calculate_colour_data.Tpo" "$(DEPDIR)/atlc-calculate_colour_data.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-calculate_colour_data.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_colour_data.c' object='atlc-calculate_colour_data.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-calculate_colour_data.Po' tmpdepfile='$(DEPDIR)/atlc-calculate_colour_data.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-calculate_colour_data.o `test -f 'calculate_colour_data.c' || echo '$(srcdir)/'`calculate_colour_data.c
-
-atlc-calculate_colour_data.obj: calculate_colour_data.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-calculate_colour_data.obj -MD -MP -MF "$(DEPDIR)/atlc-calculate_colour_data.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-calculate_colour_data.obj `if test -f 'calculate_colour_data.c'; then $(CYGPATH_W) 'calculate_colour_data.c'; else $(CYGPATH_W) '$(srcdir)/calculate_colour_data.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-calculate_colour_data.Tpo" "$(DEPDIR)/atlc-calculate_colour_data.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-calculate_colour_data.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_colour_data.c' object='atlc-calculate_colour_data.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-calculate_colour_data.Po' tmpdepfile='$(DEPDIR)/atlc-calculate_colour_data.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-calculate_colour_data.obj `if test -f 'calculate_colour_data.c'; then $(CYGPATH_W) 'calculate_colour_data.c'; else $(CYGPATH_W) '$(srcdir)/calculate_colour_data.c'`
-
-atlc-find_electric_fields.o: find_electric_fields.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_electric_fields.o -MD -MP -MF "$(DEPDIR)/atlc-find_electric_fields.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-find_electric_fields.o `test -f 'find_electric_fields.c' || echo '$(srcdir)/'`find_electric_fields.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-find_electric_fields.Tpo" "$(DEPDIR)/atlc-find_electric_fields.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-find_electric_fields.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_electric_fields.c' object='atlc-find_electric_fields.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-find_electric_fields.Po' tmpdepfile='$(DEPDIR)/atlc-find_electric_fields.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_electric_fields.o `test -f 'find_electric_fields.c' || echo '$(srcdir)/'`find_electric_fields.c
-
-atlc-find_electric_fields.obj: find_electric_fields.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-find_electric_fields.obj -MD -MP -MF "$(DEPDIR)/atlc-find_electric_fields.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-find_electric_fields.obj `if test -f 'find_electric_fields.c'; then $(CYGPATH_W) 'find_electric_fields.c'; else $(CYGPATH_W) '$(srcdir)/find_electric_fields.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-find_electric_fields.Tpo" "$(DEPDIR)/atlc-find_electric_fields.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-find_electric_fields.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='find_electric_fields.c' object='atlc-find_electric_fields.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-find_electric_fields.Po' tmpdepfile='$(DEPDIR)/atlc-find_electric_fields.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-find_electric_fields.obj `if test -f 'find_electric_fields.c'; then $(CYGPATH_W) 'find_electric_fields.c'; else $(CYGPATH_W) '$(srcdir)/find_electric_fields.c'`
-
-atlc-get_options.o: get_options.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_options.o -MD -MP -MF "$(DEPDIR)/atlc-get_options.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-get_options.Tpo" "$(DEPDIR)/atlc-get_options.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-get_options.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='atlc-get_options.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-get_options.Po' tmpdepfile='$(DEPDIR)/atlc-get_options.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
-
-atlc-get_options.obj: get_options.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-get_options.obj -MD -MP -MF "$(DEPDIR)/atlc-get_options.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-get_options.Tpo" "$(DEPDIR)/atlc-get_options.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-get_options.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='atlc-get_options.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-get_options.Po' tmpdepfile='$(DEPDIR)/atlc-get_options.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'`
-
-atlc-exit_with_msg_and_exit_code.o: exit_with_msg_and_exit_code.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-exit_with_msg_and_exit_code.o -MD -MP -MF "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo" "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='atlc-exit_with_msg_and_exit_code.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po' tmpdepfile='$(DEPDIR)/atlc-exit_with_msg_and_exit_code.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
-
-atlc-exit_with_msg_and_exit_code.obj: exit_with_msg_and_exit_code.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-exit_with_msg_and_exit_code.obj -MD -MP -MF "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo" "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='atlc-exit_with_msg_and_exit_code.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-exit_with_msg_and_exit_code.Po' tmpdepfile='$(DEPDIR)/atlc-exit_with_msg_and_exit_code.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'`
-
-atlc-do_fd_calculation.o: do_fd_calculation.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-do_fd_calculation.o -MD -MP -MF "$(DEPDIR)/atlc-do_fd_calculation.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-do_fd_calculation.o `test -f 'do_fd_calculation.c' || echo '$(srcdir)/'`do_fd_calculation.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-do_fd_calculation.Tpo" "$(DEPDIR)/atlc-do_fd_calculation.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-do_fd_calculation.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='do_fd_calculation.c' object='atlc-do_fd_calculation.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-do_fd_calculation.Po' tmpdepfile='$(DEPDIR)/atlc-do_fd_calculation.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-do_fd_calculation.o `test -f 'do_fd_calculation.c' || echo '$(srcdir)/'`do_fd_calculation.c
-
-atlc-do_fd_calculation.obj: do_fd_calculation.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-do_fd_calculation.obj -MD -MP -MF "$(DEPDIR)/atlc-do_fd_calculation.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-do_fd_calculation.obj `if test -f 'do_fd_calculation.c'; then $(CYGPATH_W) 'do_fd_calculation.c'; else $(CYGPATH_W) '$(srcdir)/do_fd_calculation.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-do_fd_calculation.Tpo" "$(DEPDIR)/atlc-do_fd_calculation.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-do_fd_calculation.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='do_fd_calculation.c' object='atlc-do_fd_calculation.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-do_fd_calculation.Po' tmpdepfile='$(DEPDIR)/atlc-do_fd_calculation.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-do_fd_calculation.obj `if test -f 'do_fd_calculation.c'; then $(CYGPATH_W) 'do_fd_calculation.c'; else $(CYGPATH_W) '$(srcdir)/do_fd_calculation.c'`
-
-atlc-swap_conductor_voltages.o: swap_conductor_voltages.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-swap_conductor_voltages.o -MD -MP -MF "$(DEPDIR)/atlc-swap_conductor_voltages.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-swap_conductor_voltages.o `test -f 'swap_conductor_voltages.c' || echo '$(srcdir)/'`swap_conductor_voltages.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-swap_conductor_voltages.Tpo" "$(DEPDIR)/atlc-swap_conductor_voltages.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-swap_conductor_voltages.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='swap_conductor_voltages.c' object='atlc-swap_conductor_voltages.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-swap_conductor_voltages.Po' tmpdepfile='$(DEPDIR)/atlc-swap_conductor_voltages.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-swap_conductor_voltages.o `test -f 'swap_conductor_voltages.c' || echo '$(srcdir)/'`swap_conductor_voltages.c
-
-atlc-swap_conductor_voltages.obj: swap_conductor_voltages.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-swap_conductor_voltages.obj -MD -MP -MF "$(DEPDIR)/atlc-swap_conductor_voltages.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-swap_conductor_voltages.obj `if test -f 'swap_conductor_voltages.c'; then $(CYGPATH_W) 'swap_conductor_voltages.c'; else $(CYGPATH_W) '$(srcdir)/swap_conductor_voltages.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-swap_conductor_voltages.Tpo" "$(DEPDIR)/atlc-swap_conductor_voltages.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-swap_conductor_voltages.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='swap_conductor_voltages.c' object='atlc-swap_conductor_voltages.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-swap_conductor_voltages.Po' tmpdepfile='$(DEPDIR)/atlc-swap_conductor_voltages.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-swap_conductor_voltages.obj `if test -f 'swap_conductor_voltages.c'; then $(CYGPATH_W) 'swap_conductor_voltages.c'; else $(CYGPATH_W) '$(srcdir)/swap_conductor_voltages.c'`
-
-atlc-print_copyright.o: print_copyright.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_copyright.o -MD -MP -MF "$(DEPDIR)/atlc-print_copyright.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-print_copyright.Tpo" "$(DEPDIR)/atlc-print_copyright.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-print_copyright.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='atlc-print_copyright.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-print_copyright.Po' tmpdepfile='$(DEPDIR)/atlc-print_copyright.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
-
-atlc-print_copyright.obj: print_copyright.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_copyright.obj -MD -MP -MF "$(DEPDIR)/atlc-print_copyright.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-print_copyright.Tpo" "$(DEPDIR)/atlc-print_copyright.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-print_copyright.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='atlc-print_copyright.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-print_copyright.Po' tmpdepfile='$(DEPDIR)/atlc-print_copyright.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'`
-
-atlc-print_data_for_directional_couplers.o: print_data_for_directional_couplers.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_directional_couplers.o -MD -MP -MF "$(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-print_data_for_directional_couplers.o `test -f 'print_data_for_directional_couplers.c' || echo '$(srcdir)/'`print_data_for_directional_couplers.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo" "$(DEPDIR)/atlc-print_data_for_directional_couplers.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_directional_couplers.c' object='atlc-print_data_for_directional_couplers.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-print_data_for_directional_couplers.Po' tmpdepfile='$(DEPDIR)/atlc-print_data_for_directional_couplers.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_directional_couplers.o `test -f 'print_data_for_directional_couplers.c' || echo '$(srcdir)/'`print_data_for_directional_couplers.c
-
-atlc-print_data_for_directional_couplers.obj: print_data_for_directional_couplers.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_directional_couplers.obj -MD -MP -MF "$(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-print_data_for_directional_couplers.obj `if test -f 'print_data_for_directional_couplers.c'; then $(CYGPATH_W) 'print_data_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_directional_couplers.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo" "$(DEPDIR)/atlc-print_data_for_directional_couplers.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-print_data_for_directional_couplers.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_directional_couplers.c' object='atlc-print_data_for_directional_couplers.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-print_data_for_directional_couplers.Po' tmpdepfile='$(DEPDIR)/atlc-print_data_for_directional_couplers.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_directional_couplers.obj `if test -f 'print_data_for_directional_couplers.c'; then $(CYGPATH_W) 'print_data_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_directional_couplers.c'`
-
-atlc-print_data_for_two_conductor_lines.o: print_data_for_two_conductor_lines.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_two_conductor_lines.o -MD -MP -MF "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-print_data_for_two_conductor_lines.o `test -f 'print_data_for_two_conductor_lines.c' || echo '$(srcdir)/'`print_data_for_two_conductor_lines.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo" "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_two_conductor_lines.c' object='atlc-print_data_for_two_conductor_lines.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po' tmpdepfile='$(DEPDIR)/atlc-print_data_for_two_conductor_lines.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_two_conductor_lines.o `test -f 'print_data_for_two_conductor_lines.c' || echo '$(srcdir)/'`print_data_for_two_conductor_lines.c
-
-atlc-print_data_for_two_conductor_lines.obj: print_data_for_two_conductor_lines.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-print_data_for_two_conductor_lines.obj -MD -MP -MF "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-print_data_for_two_conductor_lines.obj `if test -f 'print_data_for_two_conductor_lines.c'; then $(CYGPATH_W) 'print_data_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_two_conductor_lines.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo" "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_data_for_two_conductor_lines.c' object='atlc-print_data_for_two_conductor_lines.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-print_data_for_two_conductor_lines.Po' tmpdepfile='$(DEPDIR)/atlc-print_data_for_two_conductor_lines.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-print_data_for_two_conductor_lines.obj `if test -f 'print_data_for_two_conductor_lines.c'; then $(CYGPATH_W) 'print_data_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/print_data_for_two_conductor_lines.c'`
-
-atlc-set_data_to_sensible_starting_values.o: set_data_to_sensible_starting_values.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_data_to_sensible_starting_values.o -MD -MP -MF "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-set_data_to_sensible_starting_values.o `test -f 'set_data_to_sensible_starting_values.c' || echo '$(srcdir)/'`set_data_to_sensible_starting_values.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo" "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_data_to_sensible_starting_values.c' object='atlc-set_data_to_sensible_starting_values.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po' tmpdepfile='$(DEPDIR)/atlc-set_data_to_sensible_starting_values.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_data_to_sensible_starting_values.o `test -f 'set_data_to_sensible_starting_values.c' || echo '$(srcdir)/'`set_data_to_sensible_starting_values.c
-
-atlc-set_data_to_sensible_starting_values.obj: set_data_to_sensible_starting_values.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-set_data_to_sensible_starting_values.obj -MD -MP -MF "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-set_data_to_sensible_starting_values.obj `if test -f 'set_data_to_sensible_starting_values.c'; then $(CYGPATH_W) 'set_data_to_sensible_starting_values.c'; else $(CYGPATH_W) '$(srcdir)/set_data_to_sensible_starting_values.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo" "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='set_data_to_sensible_starting_values.c' object='atlc-set_data_to_sensible_starting_values.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-set_data_to_sensible_starting_values.Po' tmpdepfile='$(DEPDIR)/atlc-set_data_to_sensible_starting_values.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-set_data_to_sensible_starting_values.obj `if test -f 'set_data_to_sensible_starting_values.c'; then $(CYGPATH_W) 'set_data_to_sensible_starting_values.c'; else $(CYGPATH_W) '$(srcdir)/set_data_to_sensible_starting_values.c'`
-
-atlc-write_fields_for_two_conductor_lines.o: write_fields_for_two_conductor_lines.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_two_conductor_lines.o -MD -MP -MF "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-write_fields_for_two_conductor_lines.o `test -f 'write_fields_for_two_conductor_lines.c' || echo '$(srcdir)/'`write_fields_for_two_conductor_lines.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo" "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_two_conductor_lines.c' object='atlc-write_fields_for_two_conductor_lines.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po' tmpdepfile='$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_two_conductor_lines.o `test -f 'write_fields_for_two_conductor_lines.c' || echo '$(srcdir)/'`write_fields_for_two_conductor_lines.c
-
-atlc-write_fields_for_two_conductor_lines.obj: write_fields_for_two_conductor_lines.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_two_conductor_lines.obj -MD -MP -MF "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-write_fields_for_two_conductor_lines.obj `if test -f 'write_fields_for_two_conductor_lines.c'; then $(CYGPATH_W) 'write_fields_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_two_conductor_lines.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo" "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_two_conductor_lines.c' object='atlc-write_fields_for_two_conductor_lines.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.Po' tmpdepfile='$(DEPDIR)/atlc-write_fields_for_two_conductor_lines.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_two_conductor_lines.obj `if test -f 'write_fields_for_two_conductor_lines.c'; then $(CYGPATH_W) 'write_fields_for_two_conductor_lines.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_two_conductor_lines.c'`
-
-atlc-write_fields_for_directional_couplers.o: write_fields_for_directional_couplers.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_directional_couplers.o -MD -MP -MF "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-write_fields_for_directional_couplers.o `test -f 'write_fields_for_directional_couplers.c' || echo '$(srcdir)/'`write_fields_for_directional_couplers.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo" "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_directional_couplers.c' object='atlc-write_fields_for_directional_couplers.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po' tmpdepfile='$(DEPDIR)/atlc-write_fields_for_directional_couplers.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_directional_couplers.o `test -f 'write_fields_for_directional_couplers.c' || echo '$(srcdir)/'`write_fields_for_directional_couplers.c
-
-atlc-write_fields_for_directional_couplers.obj: write_fields_for_directional_couplers.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT atlc-write_fields_for_directional_couplers.obj -MD -MP -MF "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo" \
-@am__fastdepCC_TRUE@ -c -o atlc-write_fields_for_directional_couplers.obj `if test -f 'write_fields_for_directional_couplers.c'; then $(CYGPATH_W) 'write_fields_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_directional_couplers.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo" "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/atlc-write_fields_for_directional_couplers.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_fields_for_directional_couplers.c' object='atlc-write_fields_for_directional_couplers.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/atlc-write_fields_for_directional_couplers.Po' tmpdepfile='$(DEPDIR)/atlc-write_fields_for_directional_couplers.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(atlc_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o atlc-write_fields_for_directional_couplers.obj `if test -f 'write_fields_for_directional_couplers.c'; then $(CYGPATH_W) 'write_fields_for_directional_couplers.c'; else $(CYGPATH_W) '$(srcdir)/write_fields_for_directional_couplers.c'`
-
-create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o: create_bmp_for_stripline_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o `test -f 'create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`create_bmp_for_stripline_coupler.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.o `test -f 'create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`create_bmp_for_stripline_coupler.c
-
-create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj: create_bmp_for_stripline_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj `if test -f 'create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/create_bmp_for_stripline_coupler.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-create_bmp_for_stripline_coupler.obj `if test -f 'create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/create_bmp_for_stripline_coupler.c'`
-
-create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o: usage_create_bmp_for_stripline_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o `test -f 'usage_create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`usage_create_bmp_for_stripline_coupler.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.o `test -f 'usage_create_bmp_for_stripline_coupler.c' || echo '$(srcdir)/'`usage_create_bmp_for_stripline_coupler.c
-
-create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj: usage_create_bmp_for_stripline_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj `if test -f 'usage_create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'usage_create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_create_bmp_for_stripline_coupler.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_create_bmp_for_stripline_coupler.c' object='create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-usage_create_bmp_for_stripline_coupler.obj `if test -f 'usage_create_bmp_for_stripline_coupler.c'; then $(CYGPATH_W) 'usage_create_bmp_for_stripline_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_create_bmp_for_stripline_coupler.c'`
-
-create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o: calculate_Zodd_and_Zeven.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c
-
-create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj: calculate_Zodd_and_Zeven.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'`
-
-create_bmp_for_stripline_coupler-get_options.o: get_options.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_options.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='create_bmp_for_stripline_coupler-get_options.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
-
-create_bmp_for_stripline_coupler-get_options.obj: get_options.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_options.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='create_bmp_for_stripline_coupler-get_options.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_options.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'`
-
-create_bmp_for_stripline_coupler-calculate_integer_values.o: calculate_integer_values.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_integer_values.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-calculate_integer_values.o `test -f 'calculate_integer_values.c' || echo '$(srcdir)/'`calculate_integer_values.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_integer_values.c' object='create_bmp_for_stripline_coupler-calculate_integer_values.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_integer_values.o `test -f 'calculate_integer_values.c' || echo '$(srcdir)/'`calculate_integer_values.c
-
-create_bmp_for_stripline_coupler-calculate_integer_values.obj: calculate_integer_values.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-calculate_integer_values.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-calculate_integer_values.obj `if test -f 'calculate_integer_values.c'; then $(CYGPATH_W) 'calculate_integer_values.c'; else $(CYGPATH_W) '$(srcdir)/calculate_integer_values.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_integer_values.c' object='create_bmp_for_stripline_coupler-calculate_integer_values.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-calculate_integer_values.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-calculate_integer_values.obj `if test -f 'calculate_integer_values.c'; then $(CYGPATH_W) 'calculate_integer_values.c'; else $(CYGPATH_W) '$(srcdir)/calculate_integer_values.c'`
-
-create_bmp_for_stripline_coupler-write_bitmap.o: write_bitmap.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-write_bitmap.o `test -f 'write_bitmap.c' || echo '$(srcdir)/'`write_bitmap.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap.c' object='create_bmp_for_stripline_coupler-write_bitmap.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap.o `test -f 'write_bitmap.c' || echo '$(srcdir)/'`write_bitmap.c
-
-create_bmp_for_stripline_coupler-write_bitmap.obj: write_bitmap.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-write_bitmap.obj `if test -f 'write_bitmap.c'; then $(CYGPATH_W) 'write_bitmap.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap.c' object='create_bmp_for_stripline_coupler-write_bitmap.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap.obj `if test -f 'write_bitmap.c'; then $(CYGPATH_W) 'write_bitmap.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap.c'`
-
-create_bmp_for_stripline_coupler-memory.o: memory.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-memory.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='create_bmp_for_stripline_coupler-memory.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-memory.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-memory.o `test -f 'memory.c' || echo '$(srcdir)/'`memory.c
-
-create_bmp_for_stripline_coupler-memory.obj: memory.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-memory.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='memory.c' object='create_bmp_for_stripline_coupler-memory.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-memory.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-memory.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-memory.obj `if test -f 'memory.c'; then $(CYGPATH_W) 'memory.c'; else $(CYGPATH_W) '$(srcdir)/memory.c'`
-
-create_bmp_for_stripline_coupler-write_bitmap_out.o: write_bitmap_out.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap_out.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-write_bitmap_out.o `test -f 'write_bitmap_out.c' || echo '$(srcdir)/'`write_bitmap_out.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap_out.c' object='create_bmp_for_stripline_coupler-write_bitmap_out.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap_out.o `test -f 'write_bitmap_out.c' || echo '$(srcdir)/'`write_bitmap_out.c
-
-create_bmp_for_stripline_coupler-write_bitmap_out.obj: write_bitmap_out.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-write_bitmap_out.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-write_bitmap_out.obj `if test -f 'write_bitmap_out.c'; then $(CYGPATH_W) 'write_bitmap_out.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap_out.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='write_bitmap_out.c' object='create_bmp_for_stripline_coupler-write_bitmap_out.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-write_bitmap_out.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-write_bitmap_out.obj `if test -f 'write_bitmap_out.c'; then $(CYGPATH_W) 'write_bitmap_out.c'; else $(CYGPATH_W) '$(srcdir)/write_bitmap_out.c'`
-
-create_bmp_for_stripline_coupler-align_bitmap_image.o: align_bitmap_image.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-align_bitmap_image.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-align_bitmap_image.o `test -f 'align_bitmap_image.c' || echo '$(srcdir)/'`align_bitmap_image.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='align_bitmap_image.c' object='create_bmp_for_stripline_coupler-align_bitmap_image.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-align_bitmap_image.o `test -f 'align_bitmap_image.c' || echo '$(srcdir)/'`align_bitmap_image.c
-
-create_bmp_for_stripline_coupler-align_bitmap_image.obj: align_bitmap_image.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-align_bitmap_image.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-align_bitmap_image.obj `if test -f 'align_bitmap_image.c'; then $(CYGPATH_W) 'align_bitmap_image.c'; else $(CYGPATH_W) '$(srcdir)/align_bitmap_image.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='align_bitmap_image.c' object='create_bmp_for_stripline_coupler-align_bitmap_image.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-align_bitmap_image.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-align_bitmap_image.obj `if test -f 'align_bitmap_image.c'; then $(CYGPATH_W) 'align_bitmap_image.c'; else $(CYGPATH_W) '$(srcdir)/align_bitmap_image.c'`
-
-create_bmp_for_stripline_coupler-fill_make_coupler.o: fill_make_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-fill_make_coupler.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-fill_make_coupler.o `test -f 'fill_make_coupler.c' || echo '$(srcdir)/'`fill_make_coupler.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fill_make_coupler.c' object='create_bmp_for_stripline_coupler-fill_make_coupler.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-fill_make_coupler.o `test -f 'fill_make_coupler.c' || echo '$(srcdir)/'`fill_make_coupler.c
-
-create_bmp_for_stripline_coupler-fill_make_coupler.obj: fill_make_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-fill_make_coupler.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-fill_make_coupler.obj `if test -f 'fill_make_coupler.c'; then $(CYGPATH_W) 'fill_make_coupler.c'; else $(CYGPATH_W) '$(srcdir)/fill_make_coupler.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='fill_make_coupler.c' object='create_bmp_for_stripline_coupler-fill_make_coupler.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-fill_make_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-fill_make_coupler.obj `if test -f 'fill_make_coupler.c'; then $(CYGPATH_W) 'fill_make_coupler.c'; else $(CYGPATH_W) '$(srcdir)/fill_make_coupler.c'`
-
-create_bmp_for_stripline_coupler-check_error.o: check_error.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-check_error.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-check_error.o `test -f 'check_error.c' || echo '$(srcdir)/'`check_error.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_error.c' object='create_bmp_for_stripline_coupler-check_error.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-check_error.o `test -f 'check_error.c' || echo '$(srcdir)/'`check_error.c
-
-create_bmp_for_stripline_coupler-check_error.obj: check_error.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-check_error.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-check_error.obj `if test -f 'check_error.c'; then $(CYGPATH_W) 'check_error.c'; else $(CYGPATH_W) '$(srcdir)/check_error.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='check_error.c' object='create_bmp_for_stripline_coupler-check_error.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-check_error.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-check_error.obj `if test -f 'check_error.c'; then $(CYGPATH_W) 'check_error.c'; else $(CYGPATH_W) '$(srcdir)/check_error.c'`
-
-create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o: exit_with_msg_and_exit_code.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
-
-create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj: exit_with_msg_and_exit_code.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'`
-
-create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o: get_Er1_and_Er2_colours.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o `test -f 'get_Er1_and_Er2_colours.c' || echo '$(srcdir)/'`get_Er1_and_Er2_colours.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_Er1_and_Er2_colours.c' object='create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.o `test -f 'get_Er1_and_Er2_colours.c' || echo '$(srcdir)/'`get_Er1_and_Er2_colours.c
-
-create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj: get_Er1_and_Er2_colours.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj `if test -f 'get_Er1_and_Er2_colours.c'; then $(CYGPATH_W) 'get_Er1_and_Er2_colours.c'; else $(CYGPATH_W) '$(srcdir)/get_Er1_and_Er2_colours.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_Er1_and_Er2_colours.c' object='create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-get_Er1_and_Er2_colours.obj `if test -f 'get_Er1_and_Er2_colours.c'; then $(CYGPATH_W) 'get_Er1_and_Er2_colours.c'; else $(CYGPATH_W) '$(srcdir)/get_Er1_and_Er2_colours.c'`
-
-create_bmp_for_stripline_coupler-print_copyright.o: print_copyright.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-print_copyright.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='create_bmp_for_stripline_coupler-print_copyright.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
-
-create_bmp_for_stripline_coupler-print_copyright.obj: print_copyright.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-print_copyright.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='create_bmp_for_stripline_coupler-print_copyright.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-print_copyright.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'`
-
-create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o: gsl_sf_ellint_Kcomp.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c
-
-create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj: gsl_sf_ellint_Kcomp.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -MT create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj -MD -MP -MF "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo" \
-@am__fastdepCC_TRUE@ -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo" "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.Po' tmpdepfile='$(DEPDIR)/create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(create_bmp_for_stripline_coupler_CFLAGS) $(CFLAGS) -c -o create_bmp_for_stripline_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'`
-
-design_coupler-design_coupler.o: design_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-design_coupler.o -MD -MP -MF "$(DEPDIR)/design_coupler-design_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-design_coupler.o `test -f 'design_coupler.c' || echo '$(srcdir)/'`design_coupler.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-design_coupler.Tpo" "$(DEPDIR)/design_coupler-design_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-design_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='design_coupler.c' object='design_coupler-design_coupler.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-design_coupler.Po' tmpdepfile='$(DEPDIR)/design_coupler-design_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-design_coupler.o `test -f 'design_coupler.c' || echo '$(srcdir)/'`design_coupler.c
-
-design_coupler-design_coupler.obj: design_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-design_coupler.obj -MD -MP -MF "$(DEPDIR)/design_coupler-design_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-design_coupler.obj `if test -f 'design_coupler.c'; then $(CYGPATH_W) 'design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/design_coupler.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-design_coupler.Tpo" "$(DEPDIR)/design_coupler-design_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-design_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='design_coupler.c' object='design_coupler-design_coupler.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-design_coupler.Po' tmpdepfile='$(DEPDIR)/design_coupler-design_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-design_coupler.obj `if test -f 'design_coupler.c'; then $(CYGPATH_W) 'design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/design_coupler.c'`
-
-design_coupler-usage_design_coupler.o: usage_design_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-usage_design_coupler.o -MD -MP -MF "$(DEPDIR)/design_coupler-usage_design_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-usage_design_coupler.o `test -f 'usage_design_coupler.c' || echo '$(srcdir)/'`usage_design_coupler.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-usage_design_coupler.Tpo" "$(DEPDIR)/design_coupler-usage_design_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-usage_design_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_design_coupler.c' object='design_coupler-usage_design_coupler.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-usage_design_coupler.Po' tmpdepfile='$(DEPDIR)/design_coupler-usage_design_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-usage_design_coupler.o `test -f 'usage_design_coupler.c' || echo '$(srcdir)/'`usage_design_coupler.c
-
-design_coupler-usage_design_coupler.obj: usage_design_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-usage_design_coupler.obj -MD -MP -MF "$(DEPDIR)/design_coupler-usage_design_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-usage_design_coupler.obj `if test -f 'usage_design_coupler.c'; then $(CYGPATH_W) 'usage_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_design_coupler.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-usage_design_coupler.Tpo" "$(DEPDIR)/design_coupler-usage_design_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-usage_design_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='usage_design_coupler.c' object='design_coupler-usage_design_coupler.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-usage_design_coupler.Po' tmpdepfile='$(DEPDIR)/design_coupler-usage_design_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-usage_design_coupler.obj `if test -f 'usage_design_coupler.c'; then $(CYGPATH_W) 'usage_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/usage_design_coupler.c'`
-
-design_coupler-get_options.o: get_options.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-get_options.o -MD -MP -MF "$(DEPDIR)/design_coupler-get_options.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-get_options.Tpo" "$(DEPDIR)/design_coupler-get_options.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-get_options.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='design_coupler-get_options.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-get_options.Po' tmpdepfile='$(DEPDIR)/design_coupler-get_options.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-get_options.o `test -f 'get_options.c' || echo '$(srcdir)/'`get_options.c
-
-design_coupler-get_options.obj: get_options.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-get_options.obj -MD -MP -MF "$(DEPDIR)/design_coupler-get_options.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-get_options.Tpo" "$(DEPDIR)/design_coupler-get_options.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-get_options.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='get_options.c' object='design_coupler-get_options.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-get_options.Po' tmpdepfile='$(DEPDIR)/design_coupler-get_options.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-get_options.obj `if test -f 'get_options.c'; then $(CYGPATH_W) 'get_options.c'; else $(CYGPATH_W) '$(srcdir)/get_options.c'`
-
-design_coupler-print_copyright.o: print_copyright.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-print_copyright.o -MD -MP -MF "$(DEPDIR)/design_coupler-print_copyright.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-print_copyright.Tpo" "$(DEPDIR)/design_coupler-print_copyright.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-print_copyright.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='design_coupler-print_copyright.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-print_copyright.Po' tmpdepfile='$(DEPDIR)/design_coupler-print_copyright.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-print_copyright.o `test -f 'print_copyright.c' || echo '$(srcdir)/'`print_copyright.c
-
-design_coupler-print_copyright.obj: print_copyright.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-print_copyright.obj -MD -MP -MF "$(DEPDIR)/design_coupler-print_copyright.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-print_copyright.Tpo" "$(DEPDIR)/design_coupler-print_copyright.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-print_copyright.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='print_copyright.c' object='design_coupler-print_copyright.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-print_copyright.Po' tmpdepfile='$(DEPDIR)/design_coupler-print_copyright.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-print_copyright.obj `if test -f 'print_copyright.c'; then $(CYGPATH_W) 'print_copyright.c'; else $(CYGPATH_W) '$(srcdir)/print_copyright.c'`
-
-design_coupler-calculate_Zodd_and_Zeven.o: calculate_Zodd_and_Zeven.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-calculate_Zodd_and_Zeven.o -MD -MP -MF "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo" "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='design_coupler-calculate_Zodd_and_Zeven.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po' tmpdepfile='$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-calculate_Zodd_and_Zeven.o `test -f 'calculate_Zodd_and_Zeven.c' || echo '$(srcdir)/'`calculate_Zodd_and_Zeven.c
-
-design_coupler-calculate_Zodd_and_Zeven.obj: calculate_Zodd_and_Zeven.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-calculate_Zodd_and_Zeven.obj -MD -MP -MF "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo" "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='calculate_Zodd_and_Zeven.c' object='design_coupler-calculate_Zodd_and_Zeven.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.Po' tmpdepfile='$(DEPDIR)/design_coupler-calculate_Zodd_and_Zeven.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-calculate_Zodd_and_Zeven.obj `if test -f 'calculate_Zodd_and_Zeven.c'; then $(CYGPATH_W) 'calculate_Zodd_and_Zeven.c'; else $(CYGPATH_W) '$(srcdir)/calculate_Zodd_and_Zeven.c'`
-
-design_coupler-give_examples_of_using_design_coupler.o: give_examples_of_using_design_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-give_examples_of_using_design_coupler.o -MD -MP -MF "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-give_examples_of_using_design_coupler.o `test -f 'give_examples_of_using_design_coupler.c' || echo '$(srcdir)/'`give_examples_of_using_design_coupler.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo" "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='give_examples_of_using_design_coupler.c' object='design_coupler-give_examples_of_using_design_coupler.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po' tmpdepfile='$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-give_examples_of_using_design_coupler.o `test -f 'give_examples_of_using_design_coupler.c' || echo '$(srcdir)/'`give_examples_of_using_design_coupler.c
-
-design_coupler-give_examples_of_using_design_coupler.obj: give_examples_of_using_design_coupler.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-give_examples_of_using_design_coupler.obj -MD -MP -MF "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-give_examples_of_using_design_coupler.obj `if test -f 'give_examples_of_using_design_coupler.c'; then $(CYGPATH_W) 'give_examples_of_using_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/give_examples_of_using_design_coupler.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo" "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='give_examples_of_using_design_coupler.c' object='design_coupler-give_examples_of_using_design_coupler.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.Po' tmpdepfile='$(DEPDIR)/design_coupler-give_examples_of_using_design_coupler.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-give_examples_of_using_design_coupler.obj `if test -f 'give_examples_of_using_design_coupler.c'; then $(CYGPATH_W) 'give_examples_of_using_design_coupler.c'; else $(CYGPATH_W) '$(srcdir)/give_examples_of_using_design_coupler.c'`
-
-design_coupler-exit_with_msg_and_exit_code.o: exit_with_msg_and_exit_code.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-exit_with_msg_and_exit_code.o -MD -MP -MF "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo" "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='design_coupler-exit_with_msg_and_exit_code.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po' tmpdepfile='$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-exit_with_msg_and_exit_code.o `test -f 'exit_with_msg_and_exit_code.c' || echo '$(srcdir)/'`exit_with_msg_and_exit_code.c
-
-design_coupler-exit_with_msg_and_exit_code.obj: exit_with_msg_and_exit_code.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-exit_with_msg_and_exit_code.obj -MD -MP -MF "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo" "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='exit_with_msg_and_exit_code.c' object='design_coupler-exit_with_msg_and_exit_code.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.Po' tmpdepfile='$(DEPDIR)/design_coupler-exit_with_msg_and_exit_code.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-exit_with_msg_and_exit_code.obj `if test -f 'exit_with_msg_and_exit_code.c'; then $(CYGPATH_W) 'exit_with_msg_and_exit_code.c'; else $(CYGPATH_W) '$(srcdir)/exit_with_msg_and_exit_code.c'`
-
-design_coupler-gsl_sf_ellint_Kcomp.o: gsl_sf_ellint_Kcomp.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-gsl_sf_ellint_Kcomp.o -MD -MP -MF "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo" "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='design_coupler-gsl_sf_ellint_Kcomp.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po' tmpdepfile='$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-gsl_sf_ellint_Kcomp.o `test -f 'gsl_sf_ellint_Kcomp.c' || echo '$(srcdir)/'`gsl_sf_ellint_Kcomp.c
-
-design_coupler-gsl_sf_ellint_Kcomp.obj: gsl_sf_ellint_Kcomp.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -MT design_coupler-gsl_sf_ellint_Kcomp.obj -MD -MP -MF "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo" \
-@am__fastdepCC_TRUE@ -c -o design_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo" "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='gsl_sf_ellint_Kcomp.c' object='design_coupler-gsl_sf_ellint_Kcomp.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.Po' tmpdepfile='$(DEPDIR)/design_coupler-gsl_sf_ellint_Kcomp.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(design_coupler_CFLAGS) $(CFLAGS) -c -o design_coupler-gsl_sf_ellint_Kcomp.obj `if test -f 'gsl_sf_ellint_Kcomp.c'; then $(CYGPATH_W) 'gsl_sf_ellint_Kcomp.c'; else $(CYGPATH_W) '$(srcdir)/gsl_sf_ellint_Kcomp.c'`
-uninstall-info-am:
-
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
-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: $(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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
-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
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- 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"; \
- $(mkinstalldirs) "$(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:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-
-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_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -rm -f Makefile $(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
-
-distclean-am: clean-am distclean-compile distclean-depend \
- distclean-generic distclean-tags
-
-dvi: dvi-am
-
-dvi-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
-
-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-depend distclean-generic distclean-tags distdir dvi \
- dvi-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:
+++ /dev/null
-Here are a number of example files, falling into 4 catabories:
-
-foo.bmp (a bitmap showing the cross section)
-foo.V.bmo, foo.E.bmp .. (showing the voltage, electric field etc)
-foo.bmp.txt (the result of running atlc on foo.bmp)
-foo.V.even.bmp, foo.E.odd.bmp (voltage, E-field etc for coupled lines).
-
-Formally a lot of examples were created during the 'make check' stage.
-However, users of the automake mailing list all thought this was not
-such a good idea and that the files should be distributed. Hence a lot
-more examples are now distrubted. Whilst this makes the package bigger,
-it solves a lot of problems with automake.
-
-Dr. David Kirkby
-29th March 2003.
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-/* a vector of length W*H called 'unaligned_image' contains the data.
-This is written to a vector 'byte_aligned_image', which in general is longer
-and is of length 'vector_aligned. This routine returns the lenght of the image,
-once it have been byte-aligned
-
-The image 'unaligned_image' is expected to have the top of the image at the top of the
-file. This routine puts the image, so the bottom of the image is at the beggining of the
-vector 'byte_aligned_image'
-*/
-
-int align_bitmap_image(int W,int H,unsigned char *unaligned_image,unsigned char *byte_aligned_image)
-{
- int i, j, vector_aligned=0, vector_original=0;
- /* put into the vector, in reverse order - i.e. from bottom to top */
- for(j=0;j<H;j++)
- {
- for(i=0;i <W; ++i)
- {
- /* vector_aligned is the offset into the image that's padded
- to allow 4-byte alignment */
- /* offset is not, and so will allways be <=vector_offset */
- if( (i==0) && (vector_aligned%4!=0) )
- vector_aligned++;
- if( (i==0) && (vector_aligned%4!=0) )
- vector_aligned++;
- if( (i==0) && (vector_aligned%4!=0) )
- vector_aligned++;
- byte_aligned_image[vector_aligned]=unaligned_image[vector_original];
- byte_aligned_image[vector_aligned+1]=unaligned_image[vector_original+1];
- byte_aligned_image[vector_aligned+2]=unaligned_image[vector_original+2];
- vector_original+=3;
- vector_aligned+=3;
- }
- }
- if( vector_aligned%4!=0 )
- vector_aligned++;
- if( vector_aligned%4!=0 )
- vector_aligned++;
- if( vector_aligned%4!=0 )
- vector_aligned++;
- return(vector_aligned);
-}
+++ /dev/null
-/*
-atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby@ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_ERRNO_H
-#include <errno.h>
-#endif
-
-#ifdef HAVE_LIMITS_H
-#include <limits.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef ENABLE_POSIX_THREADS
-#include <pthread.h>
-#endif
-
-#ifdef ENABLE_MPI
-#include <mpi.h>
-#endif
-
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-
-
-struct pixels Er_on_command_line[MAX_DIFFERENT_PERMITTIVITIES];
-struct pixels Er_in_bitmap[MAX_DIFFERENT_PERMITTIVITIES];
-
-double **Vij;
-double **Er;
-unsigned char **oddity;
-unsigned char **cell_type;
-unsigned char *image_data;
-int width=-1, height=-1;
-extern int errno;
-int number_of_workers=MAX_THREADS;
-int non_vacuum_found=FALSE;
-int dielectrics_to_consider_just_now;
-int coupler=FALSE;
-double r=1.90;
-
-char *inputfile_name;
-
-int main(int argc, char **argv) /* Read parameters from command line */
-{
- FILE *where_to_print_fp=stdout, *image_data_fp;
- char *outputfile_name, *appendfile_name, *output_prefix;
- long i;
- size_t size;
- int offset;
- int q;
- char *end;
- struct transmission_line_properties data;
- errno=0;
- set_data_to_sensible_starting_values(&data);
- inputfile_name=string(0,1024);
- outputfile_name=string(0,1024);
- appendfile_name=string(0,1024);
- output_prefix=string(0,1024);
- /* only use this if we have both a multi-threaded application and that
- with have the function */
- (void) strcpy(output_prefix,"");
- while((q=get_options(argc,argv,"Cr:vsSc:d:p:i:t:w:")) != -1)
- switch (q)
- {
- case 'C':
- print_copyright( (char *) "1996-2002");
- exit_with_msg_and_exit_code("",1);
- break;
- case 'b':
- data.should_binary_data_be_written_tooQ=TRUE;
- break;
- case 'd':
- /* Read a colour from the command line */
- Er_on_command_line[data.dielectrics_on_command_line].other_colour=\
- strtol(my_optarg, &end, 16);
- /* Sepparte it into the Red, Green and Blue components */
- Er_on_command_line[data.dielectrics_on_command_line].blue=\
- Er_on_command_line[data.dielectrics_on_command_line].other_colour%256;
- Er_on_command_line[data.dielectrics_on_command_line].green=\
- Er_on_command_line[data.dielectrics_on_command_line].other_colour/(256);
- Er_on_command_line[data.dielectrics_on_command_line].red=\
- Er_on_command_line[data.dielectrics_on_command_line].other_colour/(256*256);
- end++; /* Gets rid of '=' sign which we put on the command line */
- Er_on_command_line[data.dielectrics_on_command_line].epsilon=atof(end);
- if (data.verbose_level > 1)
- printf("r=%x g=%x b=%x col=%x Er=%f\n",\
- Er_on_command_line[data.dielectrics_on_command_line].red,\
- Er_on_command_line[data.dielectrics_on_command_line].green, \
- Er_on_command_line[data.dielectrics_on_command_line].blue, \
- Er_on_command_line[data.dielectrics_on_command_line].other_colour, \
- Er_on_command_line[data.dielectrics_on_command_line].epsilon);
- data.dielectrics_on_command_line++;
- break;
- case 'c':
- data.cutoff=atof(my_optarg);
- break;
- case 'p':
- (void) strcpy(output_prefix,my_optarg);
- break;
- case 'r':
- data.r=atof(my_optarg);
- r=data.r;
- break;
- case 's':
- data.write_bitmap_field_imagesQ=FALSE;
- break;
- case 'S':
- data.write_binary_field_imagesQ=FALSE;
- break;
- case 't':
- number_of_workers=atol(my_optarg);
- if(number_of_workers > MAXIMUM_PROCESSING_DEVICES)
- {
- fprintf(stderr,"You are exceeded the %d limit set in the file definitions.h\n",MAXIMUM_PROCESSING_DEVICES);
- fprintf(stderr,"If you really do want this many, you will need to recompile\n");
- exit_with_msg_and_exit_code("",USER_REQUESTED_TOO_MANY_THREADS);
- }
-#ifndef ENABLE_POSIX_THREADS
- if(number_of_workers != 0)
- exit_with_msg_and_exit_code("Error #1. The -t option can not be \
-used, (except to set t=0, which is an \nexception made to allow a \
-benchmark to run), on a version of atlc that was \nnot configured with the \
---with-threads option, and hence built without the \nthreads library.\n",1);
-#endif
- break;
- case 'w':
-#ifndef ENABLE_MPI
- exit_with_msg_and_exit_code("Error #1a. The -w option can not be used on \
-a version of atlc that was not\nconfigured with the --with-mpi option, \
-hence built without the mpi\nlibrary.\n",1);
-#endif
- break;
- case 'i': /* Lighten or darken images of E-field */
- data.image_fiddle_factor=atof(my_optarg);
- break;
- case 'v':
- data.verbose_level++;
- break;
- case '?':
- usage_atlc();
- } /* End of the switch statement */
-
- /* There should only be one argument to atlc, the bitmapfile name.
- There can be a few options though. We now check that there is only
- one argument */
-
- if(argc-my_optind == 1) /* This should be so hopefully !! */
- {
-#ifdef DEBUG
- if (errno != 0)
- fprintf(stderr,"errno=%d in atlc.c #2\n",errno);
-#endif
- (void) strcpy(inputfile_name, argv[my_optind]);
- (void) strcpy(outputfile_name, output_prefix);
- (void) strcat(output_prefix,inputfile_name);
- (void) strcpy(outputfile_name,output_prefix);
- free_string(output_prefix,0,1024);
- read_bitmap_file_headers(inputfile_name, &offset, &size, &width, &height);
-
- /* Allocate all ram now, so atlc is sure to have it. There is no point
- in getting some now, starting work then finding atlc can't get the
- rest of what is needed. */
- image_data=ustring(0L,(long)size);
- oddity=ucmatrix(0,width-1,0,height-1);
- cell_type=ucmatrix(0,width-1,0,height-1);
- Vij=dmatrix(0,width-1,0,height-1);
- Er=dmatrix(0,width-1,0,height-1);
- /* On Solaris systems, if the following is not executed, only one
- thread will run at any one time, which rather defeats the object of
- running multi-threaded. */
-
-#ifdef ENABLE_POSIX_THREADS
-#ifdef HAVE_PTHREAD_SETCONCURRENCY
- pthread_setconcurrency(number_of_workers);
-#endif
-#endif
-
- /* Each thread solves the equations for a part of the voltage
- matrix. If there were more threads than columms we would have a
- problem. I'm not sure exactly how many can be got away with, but
- one is unlikly to have more cpus that matrix columns */
-
- /* In theory, it would be sensible to get atlc to be able to read
- from stdin. This is a test, that checks if the filename is '-', and
- if so assumes its reading from stdin. So far, the program is
- unable to read from stdin, so this code is not really doing
- anything useful, but might be expanded at a later date. */
-#ifdef DEBUG
- if (errno != 0)
- fprintf(stderr,"errno=%d in atlc.c #3\n",errno);
-#endif
- if( strcmp(argv[my_optind],"-") != 0)
- {
- if( (image_data_fp=fopen(inputfile_name, "rb")) == NULL)
- {
- fprintf(stderr,"Error #3. Can't open %s!!!!!\n", argv[my_optind]);
- exit_with_msg_and_exit_code("",3);
- }
- if(fseek(image_data_fp, offset, SEEK_SET)!=0)
- {
- fprintf(stderr,"Error #4. Sorry, unable to seek to the correct part \
- (offset=%d) of the bmp image\n", offset);
- exit_with_msg_and_exit_code("",4);
- }
- } /* end of if( strcmp(argv[my_optind],"-") != 0) */
- else
- image_data_fp=stdin;
- /* For some unknown reason Microsoft's Visual C++ was unhappy to read
- the bitmap image using an fread() call. Instead, the following two
- stupid lines fixed that issue. This will only get compiled under
- Windoze, the more sensible fread call being used on other operating
- systems. */
-
-#ifdef WINDOWS
- for(i=0; (i < (long)size ) && (feof(image_data_fp)==0); i++)
- image_data[i]=(unsigned char)fgetc(image_data_fp);
-#else
- i = fread(image_data, size, 1, image_data_fp);
-#endif
- if((ferror(image_data_fp) || (i != 1 )))
- {
- fprintf(stderr,"Error #5. Unable to read all of the image data properly\n");
- exit_with_msg_and_exit_code("",5);
- }
- /* declare matrix's to indicate what pixels are fixed and variable */
- /* We now fill the following 3 arrays with the correct data, based on the
- contents of the bitmap image */
-
- setup_arrays(&data);
- set_oddity_value();
-
- /* If there are multiple dielectrics, the impedance calculations
- needs to be done twice. We start by doing them once, for an vacuum
- dielectric. If necessary, they will be done again */
- do_fd_calculation(&data, size, where_to_print_fp,outputfile_name);
- }
- else
- {
- usage_atlc();
- return(PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
- }
- free_string(inputfile_name,0,1024);
- free_string(outputfile_name,0,1024);
- free_string(appendfile_name,0,1024);
- free_ustring(image_data,0L,(long) size);
- free_ucmatrix(oddity,0,width-1,0,height-1);
- free_ucmatrix(cell_type,0,width-1,0,height-1);
- free_dmatrix(Vij, 0,width-1,0,height-1);
- free_dmatrix(Er,0,width-1,0,height-1);
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-struct Bitmap_File_Head_Struct
-{
- char zzMagic[2]; /* 00 "BM" */
- long bfSize; /* 02 */
- short zzHotX; /* 06 */
- short zzHotY; /* 08 */
- long bfOffs; /* 0A */
- long biSize; /* 0E */
-} Bitmap_File_Head;
-
-struct Bitmap_Head_Struct
-{
- long biWidth; /* 12 */
- long biHeight; /* 16 */
- short biPlanes; /* 1A */
- short biBitCnt; /* 1C */
- long biCompr; /* 1E */
- long biSizeIm; /* 22 */
- long biXPels; /* 26 */
- long biYPels; /* 2A */
- long biClrUsed; /* 2E */
- long biClrImp; /* 32 */
- /* 36 */
-} Bitmap_Head;
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#include "definitions.h"
-
-extern int errno;
-
-/* This routine swaps data from the little-endian format to the big-endian
-format or visa-versa. */
-
-void byteswap_doubles(double *a)
-{
- unsigned char b[8],c[8];
- (void) memcpy(b,a,8);
- c[0]=b[7]; /* swap data around */
- c[1]=b[6];
- c[2]=b[5];
- c[3]=b[4];
- c[4]=b[3];
- c[5]=b[2];
- c[6]=b[1];
- c[7]=b[0];
- (void) memcpy(a,c,8);
-#ifdef DEBUG
- error_check("byteswap");
-#endif
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The following calculates the odd and even mode impedances between two
-zero thickness strips of width w, spaced a distance s between two
-groundplanes of spacing h. */
-
-#include "config.h"
-
-#include "gsl_types.h"
-#include "gsl_definitions.h"
-#include "definitions.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#include "exit_codes.h"
-/* formuals taken from Matthaei, Young and Jones, Microwave Filters, Impedance Matching
-Networks and Coupling Structures, Artech House, Dedham, MA., 1980. , but I've substituted
-29.97924580105028, as its clear 30 is just a close approximation */
-
-void calculate_Zodd_and_Zeven(double *Zodd, double *Zeven, double *Zo, double w, double H, double s, double er)
-{
- double ke, ko, ko_dash, ke_dash;
- ke=(tanh((M_PI/2)*(w/H)))*tanh((M_PI/2)*(w+s)/H);
- ko=(tanh((M_PI/2)*(w/H)))/tanh((M_PI/2)*(w+s)/H);
-
- ke_dash=sqrt(1-ke*ke);
- ko_dash=sqrt(1-ko*ko);
-
- *Zeven=29.9792458010502837*M_PI*gsl_sf_ellint_Kcomp(ke_dash, GSL_PREC_DOUBLE)/(gsl_sf_ellint_Kcomp(ke,GSL_PREC_DOUBLE)*sqrt(er));
- *Zodd= 29.9792458010502837*M_PI*gsl_sf_ellint_Kcomp(ko_dash, GSL_PREC_DOUBLE)/(gsl_sf_ellint_Kcomp(ko,GSL_PREC_DOUBLE)*sqrt(er));
- *Zo=sqrt( (*Zodd)*(*Zeven));
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_h
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#include "definitions.h"
-
-extern double **Vij;
-extern double **Er;
-extern unsigned char **oddity;
-
-void calculate_colour_data(double x, double xmax, int w, int h, int offset, unsigned char *image_dat, int image_type,
-unsigned char *red, unsigned char *green, unsigned char *blue, double image_fiddle_factor)
-{
- if(image_type==COLOUR) /*Ex, Ey, V */
- {
- if(fabs(x) < 1e-9) /* This is a bit of a fiddle I admit, but */
- { /* Is needed to prevent problems at 'small' values */
- *red=0;
- *green=0;
- *blue=0;
- }
- else if(x > 0.0)
- {
- *red=255*pow(x/xmax,1.0/image_fiddle_factor);
- *green=0;
- *blue=0;
- }
- else
- {
- *red=0;
- *green=0;
- *blue=255*pow(-x/xmax,1.0/image_fiddle_factor);
- }
- }
- else if (image_type==MONOCHROME) /* E, energy, permittivity */
- {
- if(x > xmax)
- {
- *red=0; *green=0; *blue=0;
- }
- else
- {
- *red=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
- *green=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
- *blue=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
- }
- }
- else if (image_type==MIXED) /* Only for permittivity*/
- {
- if(oddity[w][h]==CONDUCTOR_ZERO_V)
- {
- *red=0; *green=255; *blue=0;
- }
- else if(oddity[w][h]==CONDUCTOR_PLUS_ONE_V)
- {
- *red=255; *green=0; *blue=0;
- }
- else if(oddity[w][h]==CONDUCTOR_MINUS_ONE_V)
- {
- *red=0; *green=0; *blue=255;
- }
- else
- {
- *red=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
- *green=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
- *blue=255*pow(fabs(x/xmax),1.0/image_fiddle_factor);
- }
- }
- image_dat[offset]=*blue;
- image_dat[offset+1]=*green;
- image_dat[offset+2]=*red;
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* This routine calaculates the impedance exaclty for the case of two
-infinity wide conductors sepparated a distance H, with between them
-placed centrally a conductor of width w and infinitely thin.
-
-i.e.
-******^***********************************************************************
- |
- |
- H ----------w----------
- |
- |
-******Vij***********************************************************************
-
-It uses the method given in "Filed Theory of Guided Waves, Colen R.E.,
-2nd edition, pp 259-273, IEEE Press, (1990). */
-
-#include "config.h"
-
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern int verbose;
-
-double calculate_symmetrical_stripline_impedance(int H, int w)
-{
- double Zo;
- double mu=4*M_PI*1e-7, x0, v0, c, l, k;
- x0=pow(cosh(M_PI*w/(2.0*H)),2.0);
- if (verbose >=2)
- printf("w=%d H=%d w/H=%f xo=%g\n",w,H,(double)w/H,x0);
- if((double) w / (double) H > 226.369458)
- exit_with_msg_and_exit_code("Bitmap is written fine, but can't compute impedance", THE_WIDTH_w_DIVIDED_BY_THE_HEIGHT_H_IS_TOO_LARGE);
- k=1.0/sqrt(x0);
- v0=K_over_Kdash(k);
- c=4*EPSILON_0/v0;
- l=mu*EPSILON_0/c;
- Zo=sqrt(l/c);
- return(Zo);
-}
-
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The following calculates the odd and even mode impedances between two
-zero thickness strips of width w, spaced a distance s between two
-groundplanes of spacing h. */
-
-#include "config.h"
-#include "definitions.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-double calculate_integer_values(struct transmission_line_properties *optimise,int nmax,int accuracy_level)
-{
- double grid_size, error, error_max=1e6;
- int i, min_pixels, max_pixels, n, min_critical_pixels, max_critical_pixels;
- int most_critical=0, step=1;
- double min_pixel_size, max_pixel_size;
- double W, H;
-
- for(i=0;i<9;++i)
- optimise->best[i]=-1; /* A silly value, indicating it is not acceptable */
-
- /* Let the number of pixel in the image be between 2^n and 2^(n+2) */
-
- min_pixels=(int) pow(2.0,(double)(accuracy_level-1));
- max_pixels=(int) pow(2.0,(double)(accuracy_level+1));
-
- /* Although the stucture W by H has an exact area of W*H, we will
- allocate some pixels to this, which will be much smaller than
- the W*H. Each pixel will have a variable area, which we don't
- know yet, but can put upper and lower limits on it.
- */
-
- W=optimise->float_values[0]; /* The calculated W and H */
- H=optimise->float_values[1];
- min_pixel_size=sqrt(W*H/max_pixels);
- max_pixel_size=sqrt(W*H/min_pixels);
-
- /* find the most critical dimension */
- for(n=0;n<nmax;n++)
- {
- if(optimise->importance[n]==MOST_IMPORTANT)
- most_critical=n;
- }
- /* we will allocate a number of pixels to this most critical
- dimension, set by */
-
- min_critical_pixels = optimise->float_values[most_critical]/max_pixel_size;
- max_critical_pixels = optimise->float_values[most_critical]/min_pixel_size;
-
-
- /* Normally we would try every combination of i, but it may be necessary to keep it even or odd */
- if(optimise->odd_or_even[most_critical] == ODD && min_critical_pixels%2==0)
- min_critical_pixels--;
- else if(optimise->odd_or_even[most_critical] == EVEN && min_critical_pixels%2==1)
- min_critical_pixels--;
- if(optimise->odd_or_even[most_critical] != DONT_CARE)
- step=2;
-
- for(i=min_critical_pixels; i<max_critical_pixels;i+=step)
- {
- /* set the most critical dimension to i pixels, trying every i
- between two set limits */
-
- optimise->int_values[most_critical]=i;
- grid_size=optimise->float_values[most_critical]/i;
-
- /* Now set all the others to the optimal, assuming i would be used
- for the most critical dimension */
- error=0.0;
- for(n=0; n<nmax;++n)
- {
- optimise->int_values[n]=(int) (0.5+optimise->float_values[n]/grid_size);
- if (optimise->importance[n] != NOT_IMPORTANT)
- {
- error+=fabs((double)optimise->int_values[n]*grid_size-optimise->float_values[n]);
- }
- }
- /* Since the numbers generated for the integers seeme to differ on different
- computers, I've suspected the problem might be that an error is very
- similar at two different sets of integer values. Hence I will only
- consider the error lower its lower by 1e-9. That should avoid silly
- rounding problems. */
-
- if(error<(error_max-TINY)) /* The 1e-9 avoids different results on different*/
- { /* machines due to rounding errors */
- error_max=error;
- for(n=0; n<nmax;++n)
- optimise->best[n]=optimise->int_values[n];
- }
- }
- return(error_max); /* return the error */
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include "definitions.h"
-#include "exit_codes.h"
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-
-
-/* This function checks to see if the errors on the grid are too large.
-A problem occurs if a number was zero, so this needs to be carefullly
-controlled. */
-
-void check_error(double user, int create_bmp_for_rect_in_rect, double gridsize, const char *name)
-{
- double fractional_error;
- fractional_error=fabs((user-(create_bmp_for_rect_in_rect*gridsize))/user);
- if(user > 0)
- {
- if(fractional_error > UNACCEPTABLE_ERROR)
- {
- fprintf(stderr,"Error #14. Unacceptable %f%% error in representing %s on the grid\n", fractional_error*100.0, name);
- fprintf(stderr,"Try increasing the bitmap size with the -b option\n");
- exit_with_msg_and_exit_code("exiting ...",UNACCEPTABLE_ERROR_WHEN_CONVERTING_TO_INTEGERS);
- }
- else if(fractional_error > ACCEPTABLE_ERROR)
- fprintf(stderr,"*WARNING* %f%% error in representing %s on the grid\n", fractional_error*100.0, name);
- }
-}
+++ /dev/null
-/* The function 'setup_arrays sets the cell_type[i][j] to be DIELECTRIC
-if the material is non-metal. This function expands on that, checking if
-the adjactent cells are dielectrics, or metals, and if dielectric,
-whether or nor there is a boundary vertically, or horizontally between
-two different dielectrics. Doing this once, is much faster than doing it
-inside a loop, checking for all possibilities each time one needs to
-know. */
-
-#include "definitions.h"
-
-extern int width, height;
-extern unsigned char **oddity, **cell_type;
-extern double **Er;
-
-void check_for_boundaries(void)
-{
-}
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* This routines checkes for short circuits in the image. Clearly, it is
-should not possible to have a 1V conductor touching a -1 V conductor.
-
-Although currently the software does not support the use of a floating
-conductor (an anea of fixed, but undefined) voltage, error messages
-to take this into account have been included, but commentted out.*/
-
-
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int width, height;
-extern unsigned char **oddity;
-
-/* This checks for shorts. We only check to the right (increasing w) and below (increasing h)
-since its pointless checking all directions when one moves to an adjacent pixel later */
-void check_for_shorts(void)
-{
- int w, h;
-
- for(h=1;h<height-1;h++)
- {
- for(w=1; w<width-1;w++)
- {
- if( oddity[w][h]==CONDUCTOR_ZERO_V )
- {
- /* Check to see if the pixel below is shorted */
- if((oddity[w][h+1]==CONDUCTOR_PLUS_ONE_V) || (oddity[w][h+1]==CONDUCTOR_MINUS_ONE_V) || (oddity[w][h+1]==CONDUCTOR_FLOATING))
- {
- fprintf(stderr,"\n**************ERROR******************\n");
- fprintf(stderr,"Pixel (%d,%d) is set to 0V, but pixel\n",w,h);
- fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
- fprintf(stderr,"creating a short. Please correct this.\n");
- exit_with_msg_and_exit_code("",CONDUCTOR_ZERO_V);
- }
- /* Check to see if the pixel to the right is shorted */
- else if((oddity[w+1][h]==CONDUCTOR_PLUS_ONE_V) || (oddity[w+1][h]==CONDUCTOR_MINUS_ONE_V) || (oddity[w+1][h]==CONDUCTOR_FLOATING))
- {
- fprintf(stderr,"\n**************ERROR******************\n");
- fprintf(stderr,"Pixel (%d,%d) is set to 0V, but pixel\n",w,h);
- fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w+1,h);
- fprintf(stderr,"creating a short. Please correct this.\n");
- exit_with_msg_and_exit_code("",CONDUCTOR_ZERO_V);
- }
-
- } /* end of if(oddity==CONDUCTOR_ZERO_V) */
-
- else if( oddity[w][h]==CONDUCTOR_PLUS_ONE_V )
- {
- /* Check for a short of the pixel below */
- if((oddity[w][h+1]==CONDUCTOR_ZERO_V) || \
- (oddity[w][h+1]==CONDUCTOR_MINUS_ONE_V) \
- || (oddity[w][h+1]==CONDUCTOR_FLOATING))
- {
- fprintf(stderr,"\n**************ERROR******************\n");
- fprintf(stderr,"Pixel (%d,%d) is set to 1 V, but pixel\n",w,h);
- fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
- fprintf(stderr,"creating a short. Please correct this.\n");
- exit_with_msg_and_exit_code("",CONDUCTOR_PLUS_ONE_V);
- }
- /* Check to see if the pixel to the right is shorted */
- else if((oddity[w+1][h]==CONDUCTOR_ZERO_V) || \
- (oddity[w+1][h]==CONDUCTOR_MINUS_ONE_V) \
- || (oddity[w+1][h]==CONDUCTOR_FLOATING))
- {
- fprintf(stderr,"\n**************ERROR******************\n");
- fprintf(stderr,"Pixel (%d,%d) is set to 1 V, but pixel\n",w,h);
- fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w+1,h);
- fprintf(stderr,"creating a short. Please correct this.\n");
- exit_with_msg_and_exit_code("",CONDUCTOR_PLUS_ONE_V);
- }
- } /* end of if(oddity==CONDUCTOR_PLUS_ONE_V) */
-
- else if( oddity[w][h]==CONDUCTOR_MINUS_ONE_V )
- {
- /* Check for a short of the pixel below */
- if((oddity[w][h+1]==CONDUCTOR_ZERO_V) || \
- (oddity[w][h+1]==CONDUCTOR_PLUS_ONE_V) \
- || (oddity[w][h+1]==CONDUCTOR_FLOATING))
- {
- fprintf(stderr,"\n**************ERROR******************\n");
- fprintf(stderr,"Pixel (%d,%d) is set to -1 V, but pixel\n",w,h);
- fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
- fprintf(stderr,"creating a short. Please correct this.\n");
- exit_with_msg_and_exit_code("",CONDUCTOR_MINUS_ONE_V);
- }
- /* Check to see if the pixel to the right is shorted */
- if((oddity[w][h+1]==CONDUCTOR_ZERO_V) || \
- (oddity[w][h+1]==CONDUCTOR_PLUS_ONE_V) \
- || (oddity[w][h+1]==CONDUCTOR_FLOATING))
- {
- fprintf(stderr,"\n**************ERROR******************\n");
- fprintf(stderr,"Pixel (%d,%d) is set to -1 V, but pixel\n",w,h);
- fprintf(stderr,"(%d,%d) is set to a different fixed voltage\n",w,h+1);
- fprintf(stderr,"creating a short. Please correct this.\n");
- exit_with_msg_and_exit_code("",CONDUCTOR_MINUS_ONE_V);
- }
- } /* end of if(oddity==CONDUCTOR_PLUS_ONE_V) */
- } /* end of for w.. loop */
- } /* end of for h .. loop */
-} /* end of function check_for_shorts */
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void check_parameters_for_find_optimal_dimensions_for_microstrip_coupler\
-(double h,double t,double Er1,double Er2,double ideal_Zodd,double ideal_Zeven)
-{
- if(h <= 0)
- exit_with_msg_and_exit_code("h <= 0",ARGUMENT_h_OUT_OF_RANGE);
- if (t <= 0)
- exit_with_msg_and_exit_code("t <= 0",ARGUMENT_t_OUT_OF_RANGE);
- if ( Er1 < 1.00)
- exit_with_msg_and_exit_code("Er1 < 1",ARGUMENT_Er1_OUT_OF_RANGE);
- if ( Er2 < 1.00)
- exit_with_msg_and_exit_code("Er2 < 1",ARGUMENT_Er2_OUT_OF_RANGE);
- if ( ideal_Zodd < 0)
- exit_with_msg_and_exit_code("Ideal_zodd",ARGUMENT_ideal_Zodd_OUT_OF_RANGE);
- if ( ideal_Zeven < 0)
- exit_with_msg_and_exit_code("Ideal_zodd",ARGUMENT_ideal_Zodd_OUT_OF_RANGE);
- if ( ideal_Zeven <= ideal_Zodd )
- exit_with_msg_and_exit_code("Zodd must be less than Zeven",IDEAL_Zodd_NOT_LESS_THAN_IDEAL_Zeven);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-
-/* These items are supplied on the command line */
-
-extern double DD, dd, hh, Er1;
-extern int D, d, h;
-extern int verbose;
-
-void check_parameters_of_create_bmp_for_circ_in_circ(void)
-{
- if( Er1<1.0)
- exit_with_msg_and_exit_code("Error #9. The relative permittivity (Er) must be >= 1.0",9);
- if (dd/2.0+hh >= DD)
- exit_with_msg_and_exit_code("Error #10 The inner will be touching the outer !!!",10);
-}
-
-void check_create_bmp_for_circ_in_circ_int(void)
-{
- if(verbose==TRUE)
- fprintf(stderr,"d_outer = %d d_inner=%d offset=%x \n",D, d, h);
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-
-/* These items are supplied on the command line */
-
-extern double dd, WW, HH, xx, yy, Er1;
-extern int d, W, H, x, y;
-
-void check_parameters_of_create_bmp_for_circ_in_rect(void)
-{
- if( Er1<1.0)
- exit_with_msg_and_exit_code("The relative permittivity (Er) must be >= 1.0",100);
- if (dd/2.0-yy >= HH/2)
- exit_with_msg_and_exit_code("The circular inner will be touching the bottom of the outer !!! ",100);
- if (dd/2.0+yy >= HH/2)
- exit_with_msg_and_exit_code("The circular inner will be touching the top of the outer !!! ",100);
- if (dd/2.0+xx >= WW/2)
- exit_with_msg_and_exit_code("The circular inner will be touching the right side of the outer !!! ",100);
- if (dd/2.0-xx >= WW/2)
- exit_with_msg_and_exit_code("The circular inner will be touching the left side of the outer !!! ",100);
-
-}
-
-void check_circ_in_rect_int(void)
-{
-/*
- if(verbose==TRUE)
- fprintf(stderr,"d_outer = %d d_inner=%d offset=%h \n",D, d, h);
- */
-}
+++ /dev/null
-
-
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-#ifdef ENABLE_POSIX_THREADS
-#include <pthread.h>
-#endif
-
-#include "exit_codes.h"
-
-void check_parameters_of_create_bmp_for_microstrip_coupler(struct transmission_line_properties pcb)
-{
- if ( pcb.ww <= 0)
- exit_with_msg_and_exit_code("w <= 0",ARGUMENT_w_OUT_OF_RANGE);
- if ( pcb.ss <= 0)
- exit_with_msg_and_exit_code("s <= 0",ARGUMENT_s_OUT_OF_RANGE);
- if ( pcb.gg <= 0)
- exit_with_msg_and_exit_code("g <= 0",ARGUMENT_g_OUT_OF_RANGE);
- if ( pcb.hh <= 0)
- exit_with_msg_and_exit_code("h <= 0",ARGUMENT_h_OUT_OF_RANGE);
- if ( pcb.tt <= 0)
- exit_with_msg_and_exit_code("0 <= 0",ARGUMENT_t_OUT_OF_RANGE);
- if ( pcb.Er1 < 1)
- exit_with_msg_and_exit_code("0 <= 0",ARGUMENT_Er1_OUT_OF_RANGE);
- if ( pcb.Er2 < 1)
- exit_with_msg_and_exit_code("0 <= 0",ARGUMENT_Er2_OUT_OF_RANGE);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-
-/* These items are supplied on the command line */
-
-void check_parameters_of_create_bmp_for_rect_in_circ(void)
-{
-}
-
-void check_create_bmp_for_rect_in_circ_int(void)
-{
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-
-/* These items are supplied on the command line */
-
-extern double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2;
-extern int W, H, a, b, c, d, w, h;
-extern int verbose;
-
-void check_parameters_of_create_bmp_for_rect_in_rect(void)
-{
- if( (Er1<1.0) || (Er2 <1.0))
- exit_with_msg_and_exit_code((char *) "Both Er1 and Er2 must be >= 1.0",100);
- if(aa+dd>WW)
- exit_with_msg_and_exit_code((char *) "the dielectric extends horizontally outside the box (a+d>W)",100);
- if(bb+ww>=WW)
- exit_with_msg_and_exit_code((char *) "the inner conductor extends horizontally beyond the outer conductor(b+w>=W)",101);
- if(cc<=0.0)
- exit_with_msg_and_exit_code((char *) "The inner conductors's thickness (c) must be greater than zero ",12);
- if(hh<=0.0)
- exit_with_msg_and_exit_code((char *) "The thickness of dielectric Er2 (h) must be greater than zero ",12);
- if(hh+cc>=HH)
- exit_with_msg_and_exit_code((char *) "the inner conductor extends verticaly beyond the outer conductor(c+h>=H)",101);
- if((WW<=0.0) || (HH<=0.0) || (aa<0.0) || (bb<0.0) || (cc<=0.0) || (dd<=0.0)
- ||(ww<=0.0) || (hh<=0.0))
- exit_with_msg_and_exit_code((char *) "W,H,c,d,w, & h must be positive numbers. Non-integers are okay, but they must be >0 \n",102);
-
-}
-
-void check_create_bmp_for_rect_in_circ_int(void)
-{
- if(verbose==TRUE)
- fprintf(stderr,"W=%d H=%d a=%d b=%d c=%d d=%d w=%d h=%d\n",W,H,a,b,c,d,w,h);
- if(a < 1)
- exit_with_msg_and_exit_code("internal paramter 'a' is less that 1. This indicates the LHS of the dielectric",102);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include "definitions.h"
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-extern double DD, dd, hh, Er1;
-extern int D, d, h, W, H;
-extern int lowest;
-extern int highest;
-extern int verbose;
-
-void convert_create_bmp_for_circ_in_circ_dimensions_to_integers(int accuracy_level)
-{
- int best_D=-1, best_d=-1, best_h=-1;
- int min, max;
- int i;
- double max_gridsize, min_gridsize;
- double error, error_min=VERY_LARGE, gridsize, best_grid_size=-1;
-
- /* scale grid size, according to a command line option */
- lowest*=(int) 0.5+sqrt(pow(2.0,(double)accuracy_level));
- highest*=(int) 0.5+sqrt(pow(2.0,(double)accuracy_level));
-
- max_gridsize=DD/lowest; /* minimum dimension in m */
- min_gridsize=DD/highest;
- min=DD/max_gridsize;
- max=DD/min_gridsize;
- for(i=min;i<=max;++i)
- {
- /* Try various combinations for D,d,o */
- gridsize=DD/i;
- D=(int)(DD/gridsize + 0.5);
- d=(int)(dd/gridsize + 0.5);
- h=(int)(hh/gridsize + 0.5);
- error=0.0;
- error+=pow((DD-D*gridsize)/DD,2.0);
- error+=pow((dd-d*gridsize)/dd,2.0);
- if(h>0)
- error+=pow((hh-h*gridsize)/hh,2.0);
- if(error < (error_min-TINY))
- {
- error_min=error;
- best_D=D;
- best_d=d;
- best_h=h;
- best_grid_size=gridsize;
- }
- }
- D=W=H=best_D;
- d=best_d;
- h=best_h;
- if(verbose==TRUE)
- {
- fprintf(stderr,"error_min=%.16f\n",error_min);
- fprintf(stderr,"User requested: DD=%f dd=%f hh=%f Er1=%f\n\n",DD,dd,hh,Er1);
- fprintf(stderr,"Internally the program is using the following grid:\n");
- fprintf(stderr,"D=%d d=%d h=%d \nThe grid size is %f mm, inches or whatever\n\n", D,d,h,best_grid_size);
- if(error_min > TINY)
- {
- fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
- fprintf(stderr,"D=%f d=%f h=%f (mm, inches or whatever)\n",D*best_grid_size,d*best_grid_size,h*best_grid_size);
- fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
- fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
- }
- }
- check_error(DD,D,best_grid_size,"D");
- check_error(dd,d,best_grid_size,"d");
- if(h > 0.0)
- check_error(hh,h,best_grid_size,"h");
-}
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include "definitions.h"
-#include "exit_codes.h"
-
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-extern double dd, WW, HH, xx, yy, Er1;
-extern int d, W, H, x, y;
-extern int lowest;
-extern int highest;
-extern int verbose;
-
-void convert_create_bmp_for_circ_in_rect_dimensions_to_integers(int accuracy_level)
-{
- int best_d=-1, best_W=-1, best_H=-1, best_x=-1, best_y=-1;
- int min, max;
- int i;
- double max_gridsize, min_gridsize;
- double error, error_min=VERY_LARGE, gridsize, best_grid_size=-1;
-
- /* scale grid size, according to a command line option */
- lowest*=1<<accuracy_level;
- highest*=1<<accuracy_level;
-
- max_gridsize=sqrt(WW*HH/(double )lowest); /* minimum dimension in m */
- min_gridsize=sqrt(WW*HH/(double )highest);
- if(W>=H)
- {
- min=WW/max_gridsize;
- max=WW/min_gridsize;
- }
- else
- {
- min=HH/max_gridsize;
- max=HH/min_gridsize;
- }
- for(i=min;i<=max;++i)
- {
- /* Try various combinations for d, W, H, etc */
- if(W>H)
- gridsize=WW/i;
- else
- gridsize=HH/i;
- d=(int)(dd/gridsize + 0.5);
- W=(int)(WW/gridsize + 0.5);
- H=(int)(HH/gridsize + 0.5);
- x=(int)(xx/gridsize + 0.5);
- y=(int)(yy/gridsize + 0.5);
- error=0.0;
- error+=pow((WW-W*gridsize)/WW,2.0); /* relative error in W */
- error+=pow((HH-H*gridsize)/HH,2.0);
- error+=pow((dd-d*gridsize)/dd,2.0);
- if(x>0)
- error+=pow((xx-x*gridsize)/xx,2.0);
- if(y>0)
- error+=pow((yy-y*gridsize)/yy,2.0);
- if(error < (error_min-TINY))
- {
- error_min=error;
- best_d=d;
- best_W=W;
- best_H=H;
- best_x=x;
- best_y=y;
- best_grid_size=gridsize;
- }
- }
- if(best_d==-1) /* it has not been initialised */
- exit_with_msg_and_exit_code("d has not been initialised",VARIABLE_NOT_INITIALISED);
- else
- d=best_d;
- if(best_W==-1) /* it has not been initialised */
- exit_with_msg_and_exit_code("W has not been initialised",VARIABLE_NOT_INITIALISED);
- else
- W=best_W;
- if(best_H==-1) /* it has not been initialised */
- exit_with_msg_and_exit_code("H has not been initialised",VARIABLE_NOT_INITIALISED);
- else
- H=best_H;
- if(best_x==-1) /* it has not been initialised */
- exit_with_msg_and_exit_code("x has not been initialised",VARIABLE_NOT_INITIALISED);
- else
- x=best_x;
- if(best_y==-1) /* it has not been initialised */
- exit_with_msg_and_exit_code("y has not been initialised",VARIABLE_NOT_INITIALISED);
- else
- y=best_y;
- if(verbose==TRUE)
- {
- fprintf(stderr,"error_min=%.16f\n",error_min);
- fprintf(stderr,"User requested: dd=%f WW=%f HH=%f xx=%f yy=%f Er=%f\n\n",dd,WW,HH,xx,yy,Er1);
- fprintf(stderr,"Internally the program is using the following grid:\n");
- fprintf(stderr,"d=%d W=%d H=%d x=%d y=%d \n", d, W, H, x, y);
- fprintf(stderr,"The grid size is %f mm, inches or whatever\n\n", best_grid_size);
- if(error_min > TINY)
- {
- fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
- fprintf(stderr,"d=%f W=%f H=%f x=%f y=%f (mm, inches or whatever)\n",d*best_grid_size,W*best_grid_size,H*best_grid_size,x*best_grid_size,y*best_grid_size);
- fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
- fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
- }
- }
- if( (d/2+x >= W) || (d/2+y >=H))
- {
- exit_with_msg_and_exit_code("The gap between the two conductors is too small. Either increase the bitmap size (-b option), or change the dimensions of one the conductors",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- check_error(dd,d,best_grid_size,"d");
- check_error(WW,W,best_grid_size,"W");
- check_error(HH,H,best_grid_size,"H");
- check_error(xx,x,best_grid_size,"x");
- check_error(yy,y,best_grid_size,"y");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern double Er1, Er2;
-extern double Ers[];
-extern int colours[];
-
-void convert_create_create_bmp_for_coupled_microstrip_dimensions_to_integers(struct transmission_line_properties *pcb)
-{
- /* A number of paramters are set to -1, as otherwise the compiler
- complains they may be used unitialised. It is wise to check they
- are not -1 before assining a variable to their contents,
- but I can't be bothered. */
- int best_W=-1, best_H=-1, best_w=-1, best_s=-1, best_g=-1;
- int best_h=-1, best_t=-1;
- int min, max, lowest = 2500, highest=10000;
- int i;
- double max_gridsize, min_gridsize;
- double error, error_min=VERY_LARGE, gridsize=-1, best_grid_size=-1;
-
-
- /* scale grid size, according to a command line option */
- lowest*=(int) 0.5+pow(2.0,(double)pcb->bmp_size);
- highest*=(int) 0.5+pow(2.0,(double)pcb->bmp_size);
-
- max_gridsize=sqrt(pcb->WW*pcb->HH/(double )lowest); /* minimum dimension in m */
- min_gridsize=sqrt(pcb->WW*pcb->HH/(double )highest);
- if(pcb->WW>=pcb->HH)
- {
- min=pcb->WW/max_gridsize;
- max=pcb->WW/min_gridsize;
- }
- else
- {
- min=pcb->HH/max_gridsize;
- max=pcb->HH/min_gridsize;
- }
- if (pcb->verbose_level >= 2)
- printf("WW=%f HH=%f lowest=%d higherst = %d min=%d max=%d\n",pcb->WW,pcb->HH,lowest, highest, min, max);
- for(i=min;i<=max;++i)
- {
- /* Try various combinations for H,a,b,c, etc */
- if(pcb->W>pcb->H)
- gridsize=pcb->WW/i;
- else
- gridsize=pcb->HH/i;
- pcb->W=(int)(pcb->WW/gridsize + 0.5);
- pcb->H=(int)(pcb->HH/gridsize + 0.5);
- pcb->w=(int)(pcb->ww/gridsize + 0.5);
- pcb->s=(int)(pcb->ss/gridsize + 0.5);
- pcb->g=(int)(pcb->gg/gridsize + 0.5);
- pcb->h=(int)(pcb->hh/gridsize + 0.5);
- pcb->t=(int)(pcb->tt/gridsize + 0.5);
- error=0.0;
- /*error+=pow((pcb->WW-pcb->W*gridsize)/pcb->WW,2.0); */ /* relative error in W */
- /*error+=pow((pcb->HH-pcb->H*gridsize)/pcb->HH,2.0); */
- if(pcb->w>0)
- error+=pow((pcb->ww-pcb->w*gridsize)/pcb->ww,2.0);
- if(pcb->s>0)
- error+=pow((pcb->ss-pcb->s*gridsize)/pcb->ss,2.0);
- if(pcb->g>0)
- error+=pow((pcb->gg-pcb->g*gridsize)/pcb->gg,2.0);
- if(pcb->h>0)
- error+=pow((pcb->hh-pcb->h*gridsize)/pcb->hh,2.0);
- if(pcb->t>0)
- error+=pow((pcb->tt-pcb->t*gridsize)/pcb->tt,2.0);
- if(error < (error_min-TINY))
- {
- error_min=error;
- best_W=pcb->W;
- best_H=pcb->H;
- best_w=pcb->w;
- best_s=pcb->s;
- best_g=pcb->g;
- best_h=pcb->h;
- best_t=pcb->t;
- best_grid_size=gridsize;
- }
- }
- pcb->W=best_W;
- pcb->H=best_H;
- pcb->w=best_w;
- pcb->s=best_s;
- pcb->g=best_g;
- pcb->h=best_h;
- pcb->t=best_t;
- if(pcb->verbose_level > 0)
- {
- fprintf(stderr,"error_min=%.16f\n",error_min);
- fprintf(stderr,"User requested: W=%f H=%f w=%f s=%f g=%f h=%f t=%f Er1=%f Er2=%f\n\n",pcb->WW,pcb->HH,pcb->ww,pcb->ss,pcb->gg,pcb->hh,pcb->tt,Er1,Er2);
- fprintf(stderr,"Internally the program is using the following grid:\n");
- fprintf(stderr,"W=%d H=%d w=%d s=%d g=%d h=%d t=%d\nThe grid size is %f mm, inches or whatever\n\n", pcb->W, pcb->H, pcb->w, pcb->s, pcb->g,pcb->h, pcb->t,best_grid_size);
- if(error_min > TINY)
- {
- fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
- fprintf(stderr,"W=%f H=%f w=%f s=%f g=%f h=%f t=%f (mm, inches or whatever)\n",pcb->W*best_grid_size,pcb->H*best_grid_size,pcb->w*best_grid_size,pcb->s*best_grid_size,pcb->g*best_grid_size,pcb->h*best_grid_size,pcb->t*best_grid_size);
- fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
- fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
- }
- }
- if(pcb->s == 0)
- {
- fprintf(stderr,"Error #12. The gap between the two conductors coupled lines (s) is too small. Either increase the bitmap size (-b option), or make s at least %f\n",gridsize);
- exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- if(pcb->g == 0)
- {
- fprintf(stderr,"Error #13. The gap between the groundplane (g) and coupled lines is too small. Either increase the bitmap size (-b option), or make g at least %f\n",gridsize);
- exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- if(pcb->h == 0)
- {
- fprintf(stderr,"Error #14. The thickness of the dielectric of Er2 (h) is too small. Either increase the bitmap size (-b option), or make h at least %f\n",gridsize);
- exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- check_error(pcb->WW,pcb->W,best_grid_size,"W");
- check_error(pcb->HH,pcb->H,best_grid_size,"H");
- check_error(pcb->ww,pcb->w,best_grid_size,"w");
- check_error(pcb->ss,pcb->s,best_grid_size,"s");
- check_error(pcb->gg,pcb->g,best_grid_size,"g");
- check_error(pcb->hh,pcb->h,best_grid_size,"h");
- check_error(pcb->tt,pcb->t,best_grid_size,"t");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-#include "definitions.h"
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-extern double DD, ww, hh, xx, yy, Er1;
-extern int D, w, h, x, y;
-extern int lowest;
-extern int highest, verbose;
-
-void convert_create_bmp_for_rect_in_circ_dimensions_to_integers(int accuracy_level)
-{
- int best_D=-1, best_w=-1, best_h=-1, best_x=-1, best_y=-1;
- int min=-1, max=-1;
- int i;
- double error, error_min=VERY_LARGE, gridsize, best_grid_size=-1;
-
- /* scale grid size, according to a command line option */
- lowest*=(int) 0.5+pow(2.0,(double) accuracy_level);
- highest*=(int) 0.5+pow(2.0,(double) accuracy_level);
-
- for(i=min;i<=max;++i)
- {
- /* Try various combinations for D, w, h, x, & y etc */
- gridsize=DD/i;
- D=(int)(DD/gridsize + 0.5);
- w=(int)(ww/gridsize + 0.5);
- h=(int)(hh/gridsize + 0.5);
- x=(int)(xx/gridsize + 0.5);
- y=(int)(yy/gridsize + 0.5);
- error=0.0;
- error+=pow((DD-D*gridsize)/DD,2.0); /* relative error in D */
- error+=pow((ww-w*gridsize)/ww,2.0);
- error+=pow((hh-h*gridsize)/hh,2.0);
- if(x>0)
- error+=pow((xx-x*gridsize)/xx,2.0);
- if(y>0)
- error+=pow((yy-y*gridsize)/yy,2.0);
- if(error < error_min-TINY)
- {
- error_min=error;
- best_D=D;
- best_w=w;
- best_h=h;
- best_x=x;
- best_y=y;
- best_grid_size=gridsize;
- }
- }
- D=best_D;
- w=best_w;
- h=best_h;
- x=best_x;
- y=best_y;
- if(verbose==TRUE)
- {
- fprintf(stderr,"error_min=%.16f\n",error_min);
- fprintf(stderr,"User requested: D=%f w=%f h=%f x=%f y=%f Er1=%f\n\n",DD,ww,hh,xx,yy,Er1);
- fprintf(stderr,"Internally the program is using the following grid:\n");
- fprintf(stderr,"D=%d w=%d h=%d x=%d y=%d \n", D, w, h, x, y);
- fprintf(stderr,"which equates to dimensions of D=%f w=%f h=%f x=%f y=%f\n", D*gridsize, w*gridsize, h*gridsize, x*gridsize,
- y*gridsize);
- if(error_min > TINY)
- {
- fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
- fprintf(stderr,"W=%f w=%f h=%f x=%f y=%f (mm, inches or whatever)\n",D*best_grid_size,w*best_grid_size,h*best_grid_size,x*best_grid_size,y*best_grid_size);
- fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
- fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
- }
- }
- check_error(DD,D,best_grid_size,"D");
- check_error(ww,w,best_grid_size,"w");
- check_error(hh,h,best_grid_size,"h");
- check_error(xx,x,best_grid_size,"x");
- check_error(yy,y,best_grid_size,"y");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-extern double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2;
-extern int W, H, a, b, c, d, w, h;
-extern int verbose;
-extern int lowest;
-extern int highest;
-
-void convert_create_bmp_for_rect_in_rect_dimensions_to_integers(int accuracy_level)
-{
- /* A number of paramters are set to -1, as otherwise the compiler
- complaings they may be used unitialised. It is wise to check they
- are not -1 before assining a variable to their contents,
- but I can't be bothered. */
- int best_W=-1, best_H=-1, best_a=-1, best_b=-1, best_c=-1;
- int best_d=-1, best_w=-1, best_h=-1;
- int min, max;
- int i;
- double max_gridsize, min_gridsize;
- double error, error_min=VERY_LARGE, gridsize=-1, best_grid_size=-1;
-
- /* scale grid size, according to a command line option */
- /*lowest*=(int) 0.5+pow(2,accuracy_level); */
- /*highest*=(int) 0.5+pow(2,accuracy_level); */
- lowest*=1<<accuracy_level;
- highest*=1<<accuracy_level;
-
- max_gridsize=sqrt(WW*HH/(double )lowest); /* minimum dimension in m */
- min_gridsize=sqrt(WW*HH/(double )highest);
- if(W>=H)
- {
- min=WW/max_gridsize;
- max=WW/min_gridsize;
- }
- else
- {
- min=HH/max_gridsize;
- max=HH/min_gridsize;
- }
- for(i=min;i<=max;++i)
- {
- /* Try various combinations for H,a,b,c, etc */
- if(W>H)
- gridsize=WW/i;
- else
- gridsize=HH/i;
- W=(int)(WW/gridsize + 0.5);
- H=(int)(HH/gridsize + 0.5);
- a=(int)(aa/gridsize + 0.5);
- b=(int)(bb/gridsize + 0.5);
- c=(int)(cc/gridsize + 0.5);
- d=(int)(dd/gridsize + 0.5);
- w=(int)(ww/gridsize + 0.5);
- h=(int)(hh/gridsize + 0.5);
- error=0.0;
- error+=pow((WW-W*gridsize)/WW,2.0); /* relative error in W */
- error+=pow((HH-H*gridsize)/HH,2.0);
- if(a>0)
- error+=pow((aa-a*gridsize)/aa,2.0);
- if(b>0)
- error+=pow((bb-b*gridsize)/bb,2.0);
- if(c>0)
- error+=pow((cc-c*gridsize)/cc,2.0);
- if(d>0)
- error+=pow((dd-d*gridsize)/dd,2.0);
- if(w>0)
- error+=pow((ww-w*gridsize)/ww,2.0);
- if(h>0)
- error+=pow((hh-h*gridsize)/hh,2.0);
- if(error < (error_min-TINY))
- {
- error_min=error;
- best_W=W;
- best_H=H;
- best_a=a;
- best_b=b;
- best_c=c;
- best_d=d;
- best_w=w;
- best_h=h;
- best_grid_size=gridsize;
- }
- }
- W=best_W;
- H=best_H;
- a=best_a;
- b=best_b;
- c=best_c;
- d=best_d;
- w=best_w;
- h=best_h;
- if(verbose==TRUE)
- {
- fprintf(stderr,"error_min=%.16f\n",error_min);
- fprintf(stderr,"User requested: WW=%f HH=%f a=%f b=%f c=%f\nd=%f w=%f h=%fEr1=%f Er2=%f\n\n",WW,HH,aa,bb,cc,dd,ww,hh,Er1,Er2);
- fprintf(stderr,"Internally the program is using the following grid:\n");
- fprintf(stderr,"W=%d H=%d a=%d b=%d c=%d d=%d w=%d h=%d. \nThe grid size is %f mm, inches or whatever\n\n", W, H, a, b, c, d, w, h,best_grid_size);
- if(error_min > TINY)
- {
- fprintf(stderr,"This means we are simulating a transmission line with these dimensions:\n");
- fprintf(stderr,"W=%f H=%f a=%f b=%f c=%f d=%f\nw=%f h=%f (mm, inches or whatever)\n",W*best_grid_size,H*best_grid_size,a*best_grid_size,b*best_grid_size,c*best_grid_size,d*best_grid_size,w*best_grid_size,h*best_grid_size);
- fprintf(stderr,"\nThese are slightly different to what you indicated on the command line,\n");
- fprintf(stderr,"but they are the best approximation possible, given the grid size\n");
- }
- }
- if(b == 0)
- {
- fprintf(stderr,"Error #12. The gap between the two conductors (b) is too small. Either increase the bitmap size (-b option), or make b at least %f\n",gridsize);
- exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- if(c == 0)
- {
- fprintf(stderr,"Error #13. The thickness of the inner conductor (c) is too small. Either increase the bitmap size (-b option), or make c at least %f\n",gridsize);
- exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- if(h == 0)
- {
- fprintf(stderr,"Error #14. The thickness of the dielectric of Er2 (h) is too small. Either increase the bitmap size (-b option), or make h at least %f\n",gridsize);
- exit_with_msg_and_exit_code("",GAP_BETWEEN_CONDUCTORS_TOO_SMALL);
- }
- check_error(WW,W,best_grid_size,"W");
- check_error(HH,H,best_grid_size,"H");
- check_error(aa,a,best_grid_size,"a");
- check_error(bb,b,best_grid_size,"b");
- check_error(cc,c,best_grid_size,"c");
- check_error(dd,d,best_grid_size,"d");
- check_error(ww,w,best_grid_size,"w");
- check_error(hh,h,best_grid_size,"h");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program widestrip is a pre-processor for atlc. It produces bitmaps
-of a thin strip, between two wide plates */
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-int verbose=0;
-
-extern int main(int argc, char **argv) /* Read parameters from command line here */
-{
- fprintf(stderr,"Sorry, create_any_bitmap is under construction and not finished\n");
- exit(1);
- if(argc !=2){
- usage_create_any_bitmap();
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
- }
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#include "exit_codes.h"
-#include "definitions.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-double aa, bb, cc, dd, hh, ww, DD, WW, HH, Er1, Er2;
-int a, b, c, d, h, w, D, W, H;
-
-int verbose=FALSE;
-int lowest=50, highest=100;
-
-/* The following are only needed so that I can link in both
-convert_create_bmp_for_circ_in_circ_dimensions_to_integers.c
-and convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
-*/
-
-
-int main(int argc, char **argv) /* Read parameters from command line here */
-{
- int bmp_size=DEFAULT_BMP_SIZE;
- int q;
- FILE *image_data_fp;
- char *filename;
- struct transmission_line_properties not_used;
- double Zo, x;
- filename=string(0,1010);
-
- /* The following line just prevents a warning from the compiler (SGI's to
- be precise). There is not reason to set W=1 */
- not_used.W=1;
-
- while((q=get_options(argc,argv,"Cb:v")) != -1)
- switch (q)
- {
- case 'C':
- print_copyright((char *) "2002");
- exit_with_msg_and_exit_code("",OKAY);
- break;
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'v':
- verbose=TRUE;
- break;
- case '?':
- break;
- }
- if(argc-my_optind == 5)
- {
- DD=atof(argv[my_optind]);
- WW=HH=DD;
- dd=atof(argv[my_optind+1]);
- hh=atof(argv[my_optind+2]);
- Er1=atof(argv[my_optind+3]);
- if( dd > DD)
- exit_with_msg_and_exit_code("Error: The Inner conductor is larger than the outer conductor!!!", 1);
- else if (DD == dd)
- exit_with_msg_and_exit_code("Error: The inner and outer conductors are of the same size!!!", 1);
- else if (dd/2 + hh >= DD/2)
- exit_with_msg_and_exit_code("Error: The inner and outer conductors will touch!!!", 1);
- filename=strncpy(filename, argv[my_optind+4],1000);
- if( (image_data_fp=fopen(filename,"wb")) == NULL)
- exit_with_msg_and_exit_code("Can't open file in create_bmp_for_circ_in_circ.c", CANT_OPEN_FOR_WRITING);
- check_parameters_of_create_bmp_for_circ_in_circ();
- convert_create_bmp_for_circ_in_circ_dimensions_to_integers(bmp_size);
- write_bitmap(image_data_fp, not_used);
- x=(double) (d*d+D*D-4*h*h)/(2*D*d);
- Zo=59.9585*log(x+sqrt(x*x-1))/sqrt(Er1);
- Zo=log(x+sqrt(x*x-1))/(1000*sqrt(EPSILON_0)*sqrt(Er1)*sqrt(10*M_PI));
-
- if(verbose == TRUE)
- {
- printf("DD=%f dd=%f hh=%f x=%f\n",DD, dd, hh, x);
- printf("D=%d d=%d h=%d x=%f\n",D, d, h, x);
- printf("Zo is theoretically %f Ohms\n",Zo);
- }
- }
- else
- usage_create_bmp_for_circ_in_circ();
- free_string(filename,0,1010);
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
-inner and rectangular outer */
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-double dd, WW, HH, xx, yy, Er1;
-int d, W, H, x, y;
-
-/* The following are only needed, so I can link in two
-convert_circ_in_circ_dimensions_to_integers.c
-and
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
-*/
-
-double Er2;
-
-int verbose=FALSE;
-int lowest=2500, highest=10000;
-int fileflag=FALSE;
-
-
-extern int main(int argc, char **argv) /* Read parameters from command line here */
-{
- int bmp_size=DEFAULT_BMP_SIZE;
- int q;
- struct transmission_line_properties not_used;
- FILE *image_data_fp=stdout;
-
- /* The following just keeps the compiler happy, as not_used is
- not used in this case */
- not_used.W=1;
-
- while((q=get_options(argc,argv,"b:v")) != -1)
- switch (q)
- {
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'v':
- verbose=TRUE;
- break;
- case '?':
- printf("read a ? exiting\n");
- }
- if(argc-my_optind ==7)
- {
- dd=atof(argv[my_optind]);
- WW=atof(argv[my_optind+1]);
- HH=atof(argv[my_optind+2]);
- xx=atof(argv[my_optind+3]);
- yy=atof(argv[my_optind+4]);
- Er1=atof(argv[my_optind+5]);
- if((image_data_fp=fopen(argv[my_optind+6],"wb"))==NULL)
- exit_with_msg_and_exit_code("Can't open file in create_bmp_for_circ_in_rect.c",CANT_OPEN_FOR_WRITING);
- check_parameters_of_create_bmp_for_circ_in_rect();
- convert_create_bmp_for_circ_in_rect_dimensions_to_integers(bmp_size);
- write_bitmap(image_data_fp, not_used);
- }
- else
- usage_create_bmp_for_circ_in_rect();
- return(0);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
-inner and rectangular outer */
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-int W, H;
-double Er1, Er2;
-int main(int argc, char **argv) /* Read parameters from command line here */
-{
- struct transmission_line_properties pcb;
- FILE *image_data_fp;
- int q;
- pcb.verbose_level=0;
-
- pcb.bmp_size=DEFAULT_BMP_SIZE;
- pcb.WW=-1;
- pcb.HH=-1;
-
- while((q=get_options(argc,argv,"b:W:H:v")) != -1)
- switch (q)
- {
- case 'b':
- pcb.bmp_size=atol(my_optarg);
- break;
- case 'H':
- pcb.HH=atof(my_optarg);
- break;
- case 'W':
- pcb.WW=atof(my_optarg);
- break;
- case 'v':
- pcb.verbose_level++;
- break;
- case '?':
- printf("read a ? exiting\n");
- }
- if(argc-my_optind ==8)
- {
- pcb.ww=atof(argv[my_optind]);
- pcb.ss=atof(argv[my_optind+1]);
- pcb.gg=atof(argv[my_optind+2]);
- pcb.hh=atof(argv[my_optind+3]);
- pcb.tt=atof(argv[my_optind+4]);
- pcb.Er1=atof(argv[my_optind+5]);
- pcb.Er2=atof(argv[my_optind+6]);
- Er1=pcb.Er1;
- Er2=pcb.Er2;
- if(pcb.WW<0)
- pcb.WW=6*pcb.hh+6*pcb.gg+6*pcb.ww+4*pcb.ss;
- if(pcb.HH<0)
- pcb.HH=6*(pcb.hh+pcb.tt);
- /* Do some sanaity checks */
- check_parameters_of_create_bmp_for_microstrip_coupler(pcb);
- convert_create_create_bmp_for_coupled_microstrip_dimensions_to_integers(&pcb);
- W=pcb.W;
- H=pcb.H;
- image_data_fp=fopen(argv[my_optind+7],"wb");
- /*fprintf(stderr,"ints W=%d H=%d w=%d s=%d g=%d h=%d t=%d\n",pcb.W,pcb.H,pcb.w,pcb.s,pcb.g,pcb.h,pcb.t);*/
- write_bitmap(image_data_fp, pcb);
- }
- else
- usage_create_bmp_for_microstrip_coupler();
- return(0);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
-inner and rectangular outer */
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2;
-int W, H, a, b, c, d, w, h, D;
-/* The following are only needed, so I can link in two
-convert_circ_in_circ_dimensions_to_integers.c
-and
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
-*/
-
-int verbose=FALSE;
-int lowest=2500, highest=10000;
-int fileflag=FALSE;
-
-extern int main(int argc, char **argv) /* Read parameters from command line here */
-{
- int bmp_size=DEFAULT_BMP_SIZE;
- int q;
- FILE *image_data_fp;
- struct transmission_line_properties not_used;
-
- /* The following line is just to keep SGI's compiler happy. */
- not_used.W=1;
-
- while((q=get_options(argc,argv,"b:f:v")) != -1)
- switch (q)
- {
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'v':
- verbose=TRUE;
- break;
- case '?':
- printf("read a ? exiting\n");
- }
- if(argc-my_optind ==6)
- {
- WW=atof(argv[my_optind]);
- HH=atof(argv[my_optind+1]);
- ww=atof(argv[my_optind+2]);
- cc=atof(argv[my_optind+3]);
- Er1=atof(argv[my_optind+4]);
- if((image_data_fp=fopen(argv[my_optind+5],"wb"))==NULL)
- {
- fprintf(stderr,"Can't write to %s. Exiting ...\n",my_optarg);
- exit_with_msg_and_exit_code("",CANT_OPEN_FOR_WRITING);
- }
-
- /* To make the program easier to write, rect_cen_in_rect uses
- the same variables as create_bmp_for_rect_in_rect. We just calculate the
- values not given (a, b, d, h and Er1 from those given
- (W, H, c and w) */
-
- aa=(WW-ww)/2.0;
- bb=(WW-ww)/2.0;
- dd=ww;
- hh=(HH-cc)/2.0;
- Er2=Er1;
- check_parameters_of_create_bmp_for_rect_in_rect();
- convert_create_bmp_for_rect_in_rect_dimensions_to_integers(bmp_size);
- write_bitmap(image_data_fp, not_used);
- }
- else
- usage_create_bmp_for_rect_cen_in_rect();
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern int main(int argc, char **argv) /* Read parameters from command line here */
-{
-#ifdef GGG
- int bmp_size=DEFAULT_BMP_SIZE;
- int q;
- FILE *image_data_fp=stdout;
- struct transmission_line_properties not_used;
-
- while((q=get_options(argc,argv,"b:f:v")) != -1)
- switch (q)
- {
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'v':
- verbose=TRUE;
- break;
- case '?':
- printf("read a ? exiting\n");
- }
- if(argc-my_optind ==6)
- {
-
- WW=atof(argv[my_optind]);
- HH=atof(argv[my_optind+1]);
- ww=atof(argv[my_optind+2]);
- cc=atof(argv[my_optind+3]);
- Er1=atof(argv[my_optind+4]);
- if((image_data_fp=fopen(argv[my_optind+5],"wb"))==NULL)
- exit_and_error("Can't open file for writing",CANT_OPEN_FOR_WRITING);
-
- /* To make the program easier to write, rect_cen_in_rect uses
- the same variables as create_bmp_for_rect_in_rect. We just calculate the
- values not given (a, b, d, h and Er1 from those given
- (W, H, c and w) */
-
- aa=(WW-ww)/2.0;
- bb=(WW-ww)/2.0;
- dd=ww;
- hh=(HH-cc)/2.0;
- Er2=Er1;
- check_parameters_of_create_bmp_for_rect_in_rect();
- convert_create_bmp_for_rect_in_rect_dimensions_to_integers(bmp_size);
- write_bitmap(image_data_fp, not_used);
- }
- else
- usage_create_bmp_for_rect_cen_in_rect();
- return(0);
-#endif
- exit_with_msg_and_exit_code("This program is not implemented", PROGRAM_NOT_IMPLEMENTED);
-return(0);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
-inner and rectangular outer */
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-
-double DD, ww, hh, xx, yy, Er1, Er2;
-int D, w, h, x, y, W, H;
-
-int verbose=FALSE;
-int lowest=2500, highest=10000;
-int fileflag=FALSE;
-
-extern int main(int argc, char **argv) /* Read parameters from command line here */
-{
- int bmp_size=DEFAULT_BMP_SIZE;
- int q;
- struct transmission_line_properties not_used;
- FILE *image_data_fp=stdout;
-
- not_used.W=1; /* Keeps SGI's MipsPro compiler happy */
-
- while((q=get_options(argc,argv,"b:f:v")) != -1)
- switch (q)
- {
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'f':
- /* By default bitmap image goes to stdout, but we can send to a file
- with the -f option. */
- if((image_data_fp=fopen(my_optarg,"wb"))==NULL)
- {
- fprintf(stderr,"Can't write to %s. Exiting ...\n",my_optarg);
- exit_with_msg_and_exit_code("",CANT_OPEN_FOR_WRITING);
- }
- fileflag=TRUE;
- break;
- case 'v':
- verbose=TRUE;
- break;
- case '?':
- printf("read a ? exiting\n");
- }
- /*usage_create_bmp_for_rect_in_circ();*/
- fprintf(stderr,"SORRY create_bmp_for_rect_in_circ IS NOT YET WORKING, SO HAS BEEN DISABLED. IT\n");
- exit_with_msg_and_exit_code("BE ENABLED ON A FORTHCOMING VERSION",PROGRAM_NOT_IMPLEMENTED);
- if(argc-my_optind == 6)
- {
- DD=atof(argv[my_optind]);
- ww=atof(argv[my_optind+1]);
- hh=atof(argv[my_optind+2]);
- xx=atof(argv[my_optind+3]);
- yy=atof(argv[my_optind+4]);
- Er1=atof(argv[my_optind+5]);
- check_parameters_of_create_bmp_for_rect_in_circ();
- convert_create_bmp_for_rect_in_circ_dimensions_to_integers(bmp_size);
- write_bitmap(image_data_fp, not_used);
- }
- else
- usage_create_bmp_for_rect_in_circ();
- return(0);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program create_bmp_for_rect_in_rect is a pre-processor for atlc. It produces bitmaps of rectangular
-inner and rectangular outer */
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-double WW, HH, aa, bb, cc, dd, ww, hh, Er1, Er2, DD;
-int W, H, a, b, c, d, w, h;
-int verbose;
-
-/* The following are only needed, so I can link in two
-convert_circ_in_circ_dimensions_to_integers.c
-and
-convert_create_bmp_for_rect_in_rect_dimensions_to_integers.c
-*/
-
-int lowest=2500, highest=10000;
-int fileflag=FALSE;
-
-int main(int argc, char **argv) /* Read parameters from command line here */
-{
- int bmp_size=DEFAULT_BMP_SIZE;
- int q;
- FILE *image_data_fp=stdout;
- struct transmission_line_properties not_used_currently;
- int verbose_level=0;
-
- /* The following jut keeps compilers happy. SGI's is very fussy!! */
-
- not_used_currently.W=1;
-
- while((q=get_options(argc,argv,"b:v")) != -1)
- switch (q)
- {
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'v':
- verbose_level=1;
- break;
- case '?':
- printf("read a ? exiting\n");
- }
- if(argc-my_optind ==11)
- {
- WW=atof(argv[my_optind]);
- HH=atof(argv[my_optind+1]);
- aa=atof(argv[my_optind+2]);
- bb=atof(argv[my_optind+3]);
- cc=atof(argv[my_optind+4]);
- dd=atof(argv[my_optind+5]);
- ww=atof(argv[my_optind+6]);
- hh=atof(argv[my_optind+7]);
- Er1=atof(argv[my_optind+8]);
- Er2=atof(argv[my_optind+9]);
- if((image_data_fp=fopen(argv[my_optind+10],"wb"))==NULL)
- exit_with_msg_and_exit_code("Cant't open file for writing in create_bmp_for_rect_in_rect.c",CANT_OPEN_FOR_WRITING);
- if(verbose_level==1)
- printf("WW=%f HH=%f aa=%f bb=%f cc=%f dd=%f ww=%f hh=%f Er1=%f Er2=%f\n",WW,HH,aa,bb,cc,dd,ww,hh,Er1,Er2);
- check_parameters_of_create_bmp_for_rect_in_rect();
- convert_create_bmp_for_rect_in_rect_dimensions_to_integers(bmp_size);
- if(verbose_level==1)
- printf("W=%d H=%d a=%d b=%d c=%d d=%d w=%d h=%d\n",W,H,a,b,c,d,w,h);
- write_bitmap(image_data_fp, not_used_currently);
- }
- else
- usage_create_bmp_for_rect_in_rect();
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The following calculates the odd and even mode impedances between two
-zero thickness strips of width w, spaced a distance s between two
-groundplanes of spacing h. */
-#include "config.h"
-
-
-#define RATIO 8
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-double WW, HH, ww, Er1, Er2;
-static double ss;
-int W, H, s, w, verbose=FALSE;
-
-int main(int argc, char **argv)
-{
- double er, return_error;
- double Zodd, Zeven, Zo;
- int bmp_size=DEFAULT_COUPLER_BMP_SIZE, q;
- FILE *image_data_fp;
- struct transmission_line_properties optimise;
- struct transmission_line_properties not_used;
-
- not_used.W=1; /* keep MipsPro compiler happy on IRIX */
-
- while((q=get_options(argc,argv,"Cb:v")) != -1)
- switch (q)
- {
- case 'C':
- print_copyright((char *) "2002");
- exit_with_msg_and_exit_code("",OKAY);
- break;
- case 'b':
- bmp_size=atol(my_optarg);
- break;
- case 'v':
- verbose++;
- break;
- }
- if( bmp_size < 6 || (argc-my_optind != 5) || bmp_size>28)
- {
- usage_create_bmp_for_stripline_coupler();
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
- }
- HH=atof(argv[my_optind]);
- ww=atof(argv[my_optind+1]);
- ss=atof(argv[my_optind+2]);
- if(HH<0 || ww <0 || ss<0)
- {
- fprintf(stderr,"Sorry, W, H and s must all be greater than 0\n");
- exit_with_msg_and_exit_code("",DIMENSION_LESS_THAN_ZERO);
- }
- er=atof(argv[my_optind+3]);
- Er1=er;
- Er2=er;
- if(er < 1.0)
- {
- fprintf(stderr,"Sorry, you can't have a dielectric constand Er of less than 1.0\n");
- exit_with_msg_and_exit_code("Sorry, you can't have a dielectric constand Er of less than 1.0",PERMITTIVITY_LESS_THAN_1);
- }
- if( (image_data_fp=fopen(argv[my_optind+4],"wb")) ==NULL)
- exit_with_msg_and_exit_code("Can't open binary file for writing",CANT_OPEN_FOR_WRITING);
- WW=2.0*ww+ss+RATIO*HH;
- optimise.float_values[0]=WW ; /* minimum width as a float*/
- optimise.float_values[1]=HH; /* height in floats */
- optimise.float_values[2]=ww; /* stripline width */
- optimise.float_values[3]=ss; /* spacing between the strips */
-
- optimise.importance[0]=NOT_IMPORTANT; /* W is non critical */
- optimise.importance[1]=MOST_IMPORTANT; /* H is critical */
- optimise.importance[2]=IMPORTANT; /* w is critical */
- optimise.importance[3]=IMPORTANT; /* s is most critical */
-
- optimise.odd_or_even[0]=DONT_CARE; /* W can be odd or even */
- optimise.odd_or_even[1]=ODD; /* H must be even */
- optimise.odd_or_even[2]=DONT_CARE; /* w can be odd or even */
- optimise.odd_or_even[3]=DONT_CARE; /* s can be odd or even */
-
- /* We will now optimise for the 4 parameters W, H, w and s, forcing H
- to be odd, and not bothering what the width is, as long as its about
- right. */
-
- return_error=calculate_integer_values(&optimise, 4, bmp_size);
- if(verbose >=2)
- printf("error returned from calculate_integer_values=%g\n", return_error);
- W=optimise.best[0];
- H=optimise.best[1];
- w=optimise.best[2];
- s=optimise.best[3];
- write_bitmap(image_data_fp, not_used);
- if(verbose >= 1)
- {
- calculate_Zodd_and_Zeven(&Zodd, &Zeven, &Zo, ww, HH, ss, er);
- printf("The actual dimensions you gave have theoretical imedances of:\n");
- printf(" Zodd= %f Zeven= %f Zo= %f (Ohms) ww=%f HH=%f ss=%f er=%f\n\n", Zodd, Zeven, Zo,ww,HH,ss,er);
- calculate_Zodd_and_Zeven(&Zodd, &Zeven, &Zo, (double) w, (double) H-10, (double) s, er);
- printf("The bitmap produced (which approximates what you want) should have:\n");
- printf(" Zodd= %f Zeven= %f Zo= %f (Ohms)\n", Zodd, Zeven, Zo);
- }
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The program widestrip is a pre-processor for atlc. It produces bitmaps
-of a thin strip, between two wide plates */
-#include "config.h"
-
-#define RATIO 4 /* W = H*RATIO+w */
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-int verbose=0;
-
-extern int main(int argc, char **argv) /* Read parameters from command line here */
-{
- int W, H, w, size_of_image, q;
- int user_requires_effectively_infinite_width=FALSE;
- double Zo;
- unsigned char *unaligned_image_vector, *aligned_image_vector;
- FILE *fp;
-#ifndef HAVE_MEMSET
- int memory_location;
-#endif
-
- while((q=get_options(argc,argv,"Cvi")) != -1)
- switch (q)
- {
- case 'C':
- print_copyright((char *) "2002");
- exit_with_msg_and_exit_code("",OKAY);
- break;
- case 'i':
- user_requires_effectively_infinite_width=TRUE;
- break;
- case 'v':
- verbose++;
- break;
- case '?':
- usage_create_bmp_for_symmetrical_stripline();
- break;
- } /* End of the switch statement */
- if(argc-my_optind !=4)
- {
- usage_create_bmp_for_symmetrical_stripline();
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
- }
- W=atoi(argv[my_optind]);
- H=atoi(argv[my_optind+1])+2*BORDER;
- if(H%2==0) /* make it odd, so that the inner can sit in the middle */
- {
- H++;
- printf("H needs to be odd, so the inner conductor (1 pixel high) will fit\
- centrally. Hence H has been increased to %d pixels\n",H);
- }
- w=atoi(argv[my_optind+2]);
- if ((W < RATIO*H + w) && user_requires_effectively_infinite_width==TRUE)
- {
- fprintf(stderr,"For this to be a valid test of atlc, the width should be\n");
- fprintf(stderr,"infinite. Since you used the -i option (indicationg you\n");
- fprintf(stderr,"want the width W to effectively infinite, W must exceed w + %dxH.\n",RATIO);
- fprintf(stderr,"Therefore W has been is set to %d\n",RATIO*H+w );
- W=RATIO*H+w;
- }
- if(W <= 5 || H <= 5)
- exit_with_msg_and_exit_code("W or H is under 6, which is stupid (remember these are pixels !! in this program)",W_OR_H_TOO_SMALL);
- aligned_image_vector=ustring(0,(W+3)*3*H+100);
- unaligned_image_vector=ustring(0,(W+3)*3*H+100);
-
- if((fp=fopen(argv[my_optind+3],"wb")) == NULL)
- {
- exit_with_msg_and_exit_code("Error in opening file in create_bmp_for_symmetrical_stripline",CANT_OPEN_FOR_WRITING);
- }
- aligned_image_vector=ustring(0,(W+3)*3*H);
- unaligned_image_vector=ustring(0,(W+3)*3*H);
-
-#ifdef HAVE_MEMSET
- (void) memset((void *) (aligned_image_vector),0x00,(size_t) W*H*3);
-#else
- for(memory_location=0; memory_location < W*H*3; memory_location++)
- aligned_image_vector[memory_location]=0;
-#endif
-
- /* Fill a vector with */
- fill_image_vector_for_thin_strip(W,H,w,unaligned_image_vector);
- size_of_image=align_bitmap_image(W, H, unaligned_image_vector,aligned_image_vector);
-
- write_bitmap_out(aligned_image_vector, fp, size_of_image, W, H);
- /* write_bitmap_out closes the file pointer */
- Zo=calculate_symmetrical_stripline_impedance(H-2*BORDER,w);
- if(verbose >=1 && W >= RATIO*H + w )
- printf("Zo is theoretically %f Ohms (assuming W is infinite)\n",Zo);
- else if (verbose >=1 && W < RATIO*H + w){
- exit_with_msg_and_exit_code("A theoretical value for Zo can't be computed as the width W is too small",1);
- }
- return(OKAY); /* This does not get executed, but keeps the compiler
- happier, as otherwise it gives a warning about control reaching the
- end of a non-void function */
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
-
-#define EXIT_READ_FAILURE
-
-#define FREE_ARG char*
-#define NR_END 1
-
-#define CONDUCTOR_MINUS_ONE_V 5
-#define CONDUCTOR_ZERO_V 10
-#define CONDUCTOR_PLUS_ONE_V 15
-
-#define CONDUCTOR_FLOATING 20
-
-#define METAL_LEFT 25
-#define METAL_RIGHT 30
-#define METAL_ABOVE 35
-#define METAL_BELOW 40
-#define METAL_BELOW_AND_LEFT 45
-#define METAL_BELOW_AND_RIGHT 50
-#define METAL_ABOVE_AND_LEFT 55
-#define METAL_ABOVE_AND_RIGHT 60
-
-#define DIELECTRIC 65 /* not for oddity */
-#define ORDINARY_INTERIOR_POINT 70
-
-#define TOP_LEFT_CORNER 75
-#define BOTTOM_RIGHT_CORNER 80
-#define TOP_RIGHT_CORNER 85
-#define BOTTOM_LEFT_CORNER 90
-#define ORDINARY_POINT_BOTTOM_EDGE 95
-#define ORDINARY_POINT_TOP_EDGE 100
-#define ORDINARY_POINT_LEFT_EDGE 105
-#define ORDINARY_POINT_RIGHT_EDGE 110
-#define DIFFERENT_DIELECTRIC_LOCALLY 115
-
-#define DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT 120
-#define DIFFERENT_DIELECTRIC_BELOW_AND_LEFT 125
-#define DIFFERENT_DIELECTRIC_BELOW_AND_RIGHT 135
-#define DIFFERENT_DIELECTRIC_VERTICALLY 140
-#define DIFFERENT_DIELECTRIC_HORIZONTALLY 145
-#define DIFFERENT_DIELECTRIC_BELOW 150
-#define DIFFERENT_DIELECTRIC_LEFT 155
-#define DIFFERENT_DIELECTRIC_RIGHT 160
-#define DIFFERENT_DIELECTRIC_ABOVE_AND_LEFT 165
-
-#define UNDEFINED_ODDITY 255
-
-/* The following two determine what happens when a coupler is present
-and the voltages have to be swapped from negative to positive in the
-simulation. */
-#define ITERATIONS 100
-#define POS_TO_NEG 1
-#define NEG_TO_POS -1
-#define METAL_ER 1e9
-
-#define DONT_ZERO_ELEMENTS 0
-#define ZERO_ELEMENTS_FIRST 1
-
-#ifndef TRUE
-#define TRUE 1
-#define FALSE 0
-#endif
-
-#define DONT_CARE 0
-#define ODD 1
-#define EVEN 2
-
-#define Vij_TO_Vij 1
-#define VijB_TO_Vij 2
-#define Vij_TO_VijB 3
-
-#define MAXIMUM_PROCESSING_DEVICES 1024
-#define MAX_DIFFERENT_PERMITTIVITIES 10000
-#define MAX_ER 12.0
-
-#define COLOUR 0
-#define MONOCHROME 1
-#define MIXED 2
-#define Z0 1
-
-#define Z_ODD_SINGLE_DIELECTRIC 1
-#define Z_EVEN_SINGLE_DIELECTRIC 2
-#define Z_ODD_MULTIPLE_DIELECTRIC 3
-#define Z_EVEN_MULTIPLE_DIELECTRIC 4
-
-#define Z_ALL 5
-
-/* The value of EPSILON_0 is taken from the UK National Physical
-Laboratory's list of physical constants found on the web. */
-
-#define EPSILON_0 8.854187817e-12
-#define MU_0 M_PI*4e-7
-#define MAX_THREADS 4
-#define BORDER 5 /* The border to put around images. 1 is minimum, but 5 looks better */
-
-#define TINY 1e-12
-#define VERY_LARGE 1e15
-#define DEFAULT_BMP_SIZE 6
-#define DEFAULT_COUPLER_BMP_SIZE 18
-
-#define IMAGE_FIDDLE_FACTOR 2.0
-#define ACCEPTABLE_ERROR 0.02
-#define UNACCEPTABLE_ERROR 0.05
-
-#define RECT_IN_RECT 1
-#define CIRC_IN_CIRC 2
-#define CIRC_IN_RECT 3
-#define RECT_IN_CIRC 4
-
-#define DEFAULT_GMIN 0.5
-#define DEFAULT_GMAX 5.0
-#define DEFAULT_GSTEP 0.5
-
-#define DEFAULT_SMIN 0.5
-#define DEFAULT_SMAX 5.0
-#define DEFAULT_SSTEP 0.5
-
-#define DEFAULT_WMIN 0.5
-#define DEFAULT_WMAX 5.0
-#define DEFAULT_WSTEP 0.5
-
-
-#ifdef ENABLE_MPI
-#define MAX_PES 256
-#define MSG_TAG_WIDTH_HEIGHT 1
-#define MSG_TAG_STRIP_PARAMS 2
-#define MSG_TAG_NODE_TYPE 3
-#define MSG_TAG_ER 4
-#define MSG_TAG_CONTROL 5
-#define MSG_TAG_ITERATIONS 6
-#define MSG_TAG_VIJ 7
-#define MSG_TAG_VIJ_LBORDER 8
-#define MSG_TAG_VIJ_RBORDER 9
-#define MSG_TAG_ENERGY 10
-#define MSG_TAG_DIELECTRICS 11
-
-#define CONTROL_VALUE_RECEIVE_DATA 0
-#define CONTROL_VALUE_SEND_DATA 1
-#define CONTROL_VALUE_DO_ITERATIONS 2
-#define CONTROL_VALUE_EXIT 3
-#endif /* ENABLE_MPI */
-
-
-extern char *my_optarg;
-/* I needed to invent add my_ in front of the usual name for optind,
-opterr, optopt etc, since they are defined by the system, and I'm using
-a local package_version of getopts (get_options) so it exists with the PC too.
-Most systems do not seem to mind if these names exist or not, but a
-Power Machintosh powerpc running Darwin Kernel Package_version 5.3 gave this as
-a warning. Hence I'll avoid the problem by adding my_ */
-
-extern int my_optind, my_opterr, my_optopt;
-
-struct transmission_line_properties{
-double WW, HH, ww, ss, gg, hh, tt, Er1, Er2;
-int W, H, w, s, g, h, t, bmp_size;
-
-int verbose_level; /* 0, 1 or 2 */
-double Codd, Ceven, C;
-double velocity_odd, velocity_factor_odd, relative_permittivity_odd;
-double velocity_even, velocity_factor_even, relative_permittivity_even;
-double Lodd_vacuum, Leven_vacuum, L_vacuum;
-double Codd_vacuum, Ceven_vacuum, C_vacuum, C_non_vacuum;
-double Zo, Zo_vacuum, Zo_non_vacuum, Zodd, Zodd_vacuum, Zeven;
-double Zeven_vacuum, Zdiff, Zdiff_vacuum, Zcomm, Zcomm_vacuum;
-double Er, the_single_Er, Er_odd, Er_even;
-double velocity, velocity_factor, relative_permittivity;
-double r; /* rate multiplier */
-double image_fiddle_factor;
-double cutoff; /* How small the error in subsequent itterations must be */
-int compute, display; /* none, ZO, ZODD, ZEVEN. ZEVEN_VAC, ZODD_VAC; */
-int should_binary_data_be_written_tooQ;
-int dielectrics_to_consider_just_now;
-int non_vacuum_dielectric_found;
-double found_this_dielectric;
-int dielectrics_on_command_line;
-int dielectrics_in_bitmap;
-int avoid_use_of_fast_convergence_methodQ;
-int couplerQ;
-int write_binary_field_imagesQ;
-int write_bitmap_field_imagesQ;
-double float_values[10];
-int int_values[10];
-int importance[10];
-int odd_or_even[10];
-int best[10];
-int non_metallic_pixels;
-int tenth_of_estimated_iterations_needed;
-};
-
-#define NOT_IMPORTANT 0 /* The importance to attach to getting the */
-#define IMPORTANT 1 /* best value of integers for the grid */
-#define MOST_IMPORTANT 2
-
-struct pixels
-{
- int red; /* +1 V */
- int green; /* 0 V */
- int blue; /* -1 V */
- int white; /* Vacuum */
- int other_colour; /* mix of red, green and blue */
- double epsilon;
-};
-
-struct max_values
-{
-double Ex_or_Ey_max, E_max, V_max, U_max, permittivity_max;
-};
-
-
-struct fit_doubles_to_integers{
-int n_min, n_max, n;
-int m, in[100];
-double out[100], weight[100], good, acceptable;
-double largest_errror;
-double rms_errror;
-};
-
-#ifdef ENABLE_MPI
-struct strip {
- int start_col;
- int num_cols;
-};
-#endif /* ENABLE_MPI */
-
-/* Despite the fact the Bitmap_File_Head_Struct and Bitmap_Head_Struct
-all have int's for the types of data, in practice these must be 2 and 4
-byte varialbes. As such, they are written a character at a time, so the
-data size is unimportant. This was neeed on the Cray, due to the fact
-sizeof(short)=8 */
-
-struct Bitmap_File_Head_Struct
-{
- unsigned char zzMagic[2]; /* 00 "BM" */
- int bfSize; /* 02 */
- int zzHotX; /* 06 */
- int zzHotY; /* 08 */
- int bfOffs; /* 0A */
- int biSize; /* 0E */
-};
-
-struct Bitmap_Head_Struct
-{
- int biWidth; /* 12 */
- int biHeight; /* 16 */
- int biPlanes; /* 1A */
- int biBitCnt; /* 1C */
- int biCompr; /* 1E */
- int biSizeIm; /* 22 */
- int biXPels; /* 26 */
- int biYPels; /* 2A */
- int biClrUsed; /* 2E */
- int biClrImp; /* 32 */
- /* 36 */
-};
-
-#ifndef M_PI
-#define M_PI 3.141592653589793238462643383279502884197169399375105820975
-#endif
-
-#define NUMBER_OF_DIELECTRICS_DEFINED 13
-
-int main(int argc, char **argv);
-void byteswap_doubles(double *a);
-void read_bitmap_file_headers(char *filename, int *offset, size_t *size, int *width, int *height);
-void help(char *filename);
-double **dmatrix(long nrl, long nrh, long ncl, long nch);
-void free_dmatrix(double **m, long nrl, long nrh, long ncl, long nch);
-void free_cmatrix(char **m, long nrl, long nrh, long ncl, long nch);
-char *string(long nl,long nh);
-void free_string(char *v, long nl, long nh);
-void swap_bytes2(unsigned char *buffer, int offset, short *answer);
-void swap_bytes4(unsigned char *buffer, int offset, int *answer);
-void free_ustring(unsigned char *v, long nl, long nh);
-void setup_arrays(struct transmission_line_properties *data);
-double finite_difference_single_threaded();
-double finite_difference_multi_threaded();
-void *do_columns(void *thread_arg);
-void usage_atlc(void);
-void write_fields_for_two_conductor_lines(char *filename, struct transmission_line_properties data, size_t size);
-void write_fields_for_directional_couplers(char *filename, struct transmission_line_properties data, size_t size, int odd_or_even);
-char **cmatrix(long nrl, long nrh, long ncl, long nch);
-unsigned char **ucmatrix(long nrl, long nrh, long ncl, long nch);
-signed char **scmatrix(long nrl, long nrh, long ncl, long nch);
-
-int *ivector(long nl, long nh);
-void get_Er1_and_Er2_colours(int *colour_Er1, int *colour_Er2);
-void convert_create_bmp_for_rect_in_rect_dimensions_to_integers(int bmp_size);
-void convert_create_bmp_for_circ_in_circ_dimensions_to_integers(int bmp_size);
-unsigned char *ustring(long nl,long nh);
-void write_bitmap(FILE *image_data_fp, struct transmission_line_properties foo);
-void usage_create_bmp_for_rect_in_rect(void);
-void usage_create_bmp_for_rect_cen_in_rect(void);
-void write_bitmap_out(unsigned char *image_data, FILE *image_data_fp,int image_size, int W, int H);
-int align_bitmap_image(int W, int H, unsigned char *unaligned_image, unsigned char *byte_aligned_image);
-void fill_create_bmp_for_rect_in_rect(char *image_vector, int colour_Er1, int colour_Er2);
-void check_create_bmp_for_rect_in_rect_ints(void);
-void exit_with_msg_and_exit_code(const char *error_text, int exitnumber);
-void check_error(double user, int create_bmp_for_rect_in_rect, double gridsize, const char *name);
-void check_parameters_for_create_bmp_for_circ_in_circ(void);
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties x);
-void usage_create_bmp_for_circ_in_circ(void);
-void convert_create_bmp_for_rect_in_circ_dimensions_to_integers(int accuracy_level);
-void usage_create_bmp_for_rect_in_circ(void);
-void convert_create_bmp_for_circ_in_rect_dimensions_to_integers(int accuracy_level);
-void usage_create_bmp_for_circ_in_rect(void);
-void check_for_shorts(void);
-void usage_symmetrical_strip(void);
-void fill_image_vector_for_thin_strip(int W,int H, int w, unsigned char *unaligned_image_vector);
-double K_over_Kdash(double k);
-double calculate_symmetrical_stripline_impedance(int H, int w);
-
-void free_ucmatrix(unsigned char **m, long nrl, long nrh, long ncl, long nch);
-void free_scmatrix(signed char **m, long nrl, long nrh, long ncl, long nch);
-
-int print_data(FILE *fp, char *filename, double Er, double C, double L, double Zo, double
-Zodd, double Zeven, int whichZ, double v, double vf);
-void set_oddity_value(void);
-double find_energy_per_metre(int i, int j);
-FILE *get_file_pointer_with_right_filename(char *filename, const char *ext);
-void find_maximum_values(struct max_values *maximum_values, int zero_elementsQ);
-void calculate_colour_data(double x, double xmax, int w, int h, int offset, unsigned char *image_dat, int image_type,
-unsigned char *red, unsigned char *green, unsigned char *blue, double image_fiddle_factor);
-double find_Ex(int w, int h) ;
-double find_Ey(int w, int h);
-double find_E(int w, int h);
-double voltage_ij(int i, int j);
-void usage_readbin(void);
-void ERR(const char *s, char c, char **argv);
-int get_options(int argc, char **argv, const char *opts);
-char *index2(const char *str, char c);
-void swap_conductor_voltages();
-void usage_create_bmp_for_stripline_coupler(void);
-double calculate_integer_values(struct transmission_line_properties *optimise, int n, int accuarcy_level);
-void calculate_Zodd_and_Zeven(double *Zodd, double *Zeven, double *Zo, double w, double H, double s, double er);
-void usage_design_coupler(void);
-void print_copyright(const char *s);
-void give_examples_of_using_design_coupler(void);
-void do_fd_calculation(struct transmission_line_properties *data, size_t size, FILE *where_to_print_fp, char *inputfile_filename);
-void print_data_for_directional_couplers(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name);
-void print_data_for_two_conductor_lines(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name);
-void set_data_to_sensible_starting_values(struct transmission_line_properties *data);
-void check_parameters_of_create_bmp_for_microstrip_coupler(struct transmission_line_properties pcb);
-void convert_create_create_bmp_for_coupled_microstrip_dimensions_to_integers(struct transmission_line_properties *pcb);
-void usage_create_bmp_for_microstrip_coupler(void);
-void usage_find_optimal_dimensions_for_microstrip_coupler(void);
-void check_parameters_of_create_bmp_for_circ_in_circ(void);
-void check_parameters_of_create_bmp_for_circ_in_rect(void);
-void check_parameters_of_create_bmp_for_rect_in_circ(void);
-void check_parameters_of_create_bmp_for_rect_in_rect(void);
-void usage_create_bmp_for_symmetrical_stripline(void);
-void check_parameters_for_find_optimal_dimensions_for_microstrip_coupler (double h,double t,double Er1,double Er2,double ideal_Zodd,double ideal_Zeven);
-double *dvector(long nl, long nh);
-void *worker(void *thread_arg);
-void free_ivector(int *v, long nl, long nh);
-double check_convergence(double **grid1, double **grid2, int w, int h);
-void error_check(char *s);
-void free_dvector(double *v, long nl, long nh);
-void usage_create_any_bitmap();
-void update_voltage_array(int n, int starti, int endi, int i_index, int j_index, double **from, double **to);
-void nrerror(char error_text[]);
-void check_for_boundaries(void);
-
-
-
-#define ONE
-#define TWO
-#define THREE
-#define FOUR
-#define FIVE
-#define SIX
-#define SEVEN
-#define EIGHT
-#define NINE
-#define HUNDRED
-
-#define I 58
-#define J 241
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-
-extern int errno;
-int verbose=2;
-
-/* desgin_coupler does two very different things in the one program
-1) Given a frequency range, the required coupling factor, it calcuates
-the odd and even mode impedances needed for a coupler. It does this
-assuming the length of the coupler is lambda/4, although you can vary
-that on the command line with the -l option.
-
-2) Once the optimal values for the even and odd mode impedances are
-found, it itteratively looks up the odd and even mode impedances for two
-think lines of various widths (w) and spacings (s), looking for the
-combination that gives the best rms error between the required
-impedances and those that will result with the coupler design as
-presented.
-
-It is assumed by default that the height of the box is of one unit (1
-mm, 1" etc, but this may be changed on the command line. This will scale
-the parameters w and s by the same multiple.
-
-*/
-
-int main(int argc, char **argv) /* Read parameters from command line */
-{
- int q, Hflag=FALSE;
- int calculate_physical_dimensions=FALSE;
- int calculate_physical_dimensions_to_high_accuracy=FALSE;
- double er;
- double Zo=-1, length=-1, fmin, fmax, fmean, fstep=-1, cf, Zodd, Zeven;
- double f, vcf, vcf_for_quarter_wave_line, w, s, error, error_max=1e30;
- double wanted_coupling_factor_in_dB, step=0.02, fq;
- double Zeven_x=-1, Zodd_x=-1, best_s=-1, best_w=-1;
- double height_of_box=1.0;
- double best_Zodd=-1, best_Zeven=-1, best_Zo=-1;
-
- /* SGI's MipsPro compiler is very fussy. The following line, along
- with one right at the end, forces Zo_x to be set and used,
- alhtough it serves no other userful purpose but to keep the
- compiler happy */
- double Zo_x=1;
- while((q=get_options(argc,argv,"DeQqdCL:s:Z:H:")) != -1)
- switch (q)
- {
- case 'd':
- calculate_physical_dimensions=TRUE;
- break;
- case 'D':
- calculate_physical_dimensions=TRUE;
- calculate_physical_dimensions_to_high_accuracy=TRUE;
- break;
- case 'e':
- give_examples_of_using_design_coupler();
- break;
- case 'C':
- print_copyright((char *) "2002");
- Hflag=TRUE;
- exit_with_msg_and_exit_code("",OKAY);
- break;
- case 'L':
- length=atof(my_optarg); /* Sets the length of coupler */
- break;
- case 'H':
- height_of_box=atof(my_optarg); /* Set height of coupler's enclosure */
- Hflag=TRUE;
- break;
- case 's': /* Set frequncy steps in which coupling is computed */
- fstep=atof(my_optarg);
- break;
- case 'Z': /* Set the characteristic impedance - default is 50 Ohms */
- Zo=atof(my_optarg);
- break;
- case 'q': /* Run in quite mode, giving less output */
- verbose--;
- break;
- case '?':
- usage_design_coupler();
- break;
- } /* End of the switch statement */
-
- if(argc-my_optind != 3) /* This should be so hopefully !! */
- {
- usage_design_coupler();
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
- }
- wanted_coupling_factor_in_dB=atof(argv[my_optind]);
- fmin=atof(argv[my_optind+1]);
- fmax=atof(argv[my_optind+2]);
- fmean=(fmin+fmax)/2.0;
- if(fstep <0 )
- fstep=(fmax-fmin)/4.0;
-
- if (wanted_coupling_factor_in_dB <= 0.0 ) /* Only 0 can happen */
- {
- /* I don't think this can happen unless the user enter 0 as the
- first parameter, as a negative number entered will be taken as a
- command line option */
- fprintf(stderr,"\nThe coupled power must be less than the input power.");
- fprintf(stderr," But please enter a\n*positive* number in dB for the");
- fprintf(stderr," first command line parameter. If you want a \ncoupler");
- fprintf(stderr," with a coupled port that is 12 dB down on the input");
- fprintf(stderr," power, covering\n144-146 MHz, enter this as:\n\n");
- fprintf(stderr,"design_coupler 12 144 146\n\n");
- fprintf(stderr,"If you want the physical dimensions of the coupler");
- fprintf(stderr," designed for you, add the\n-d option on the command");
- fprintf(stderr," line, like this:\n\ndesign_coupler -q -12 144 146\n\n");
- fprintf(stderr,"If you run design_coupler with no command line");
- fprintf(stderr," arguments, like this:\n\ndesign_coupler\n\n");
- fprintf(stderr,"then design_coupler will print some information,");
- fprintf(stderr," showing *all* the options. \nIf you run design_coupler");
- fprintf(stderr," with the -e option like this:\n\n");
- fprintf(stderr,"design_coupler -e\n\n");
- fprintf(stderr,"lots of examples will be shown of the correct usage.\n");
- exit_with_msg_and_exit_code("",IMPOSSIBLE_COUPLING_COEFFICIENT);
- }
- if (fmax <= fmin)
- {
- fprintf(stderr,"The second command line argumentent you gave, which");
- fprintf(stderr," is for the *minimum*\noperating frequenncy in MHz,");
- fprintf(stderr," is less than the third argument, which is the\n");
- fprintf(stderr,"*maximum* operating frequency in MHz.\n\n");
- fprintf(stderr,"If you want a coupler");
- fprintf(stderr," with a coupled port that is 12 dB down on the input\n");
- fprintf(stderr,"power, covering 144-146 MHz, enter this as:\n\n");
- fprintf(stderr,"design_coupler 12 144 146\n\n");
- fprintf(stderr,"If you want the physical dimensions of the coupler");
- fprintf(stderr," designed for you, add the\n-d option on the command");
- fprintf(stderr," line, like this:\n\ndesign_coupler -d 12 144 146\n\n");
- fprintf(stderr,"If you run design_coupler with no command line arguments,");
- fprintf(stderr," then design_coupler\nwill print some information,");
- fprintf(stderr," showing *all* the options. If you run\ndesign_coupler");
- fprintf(stderr," with the -e option like this:\n\n");
- fprintf(stderr,"design_coupler -e\n\n");
- fprintf(stderr,"lots of examples will be shown of the correct usage.\n");
- fprintf(stderr,"Exiting ...\n");
- exit_with_msg_and_exit_code("",FMAX_NOT_ABOVE_FMIN);
- }
- if (Zo < 0.0)
- Zo=50.0;
- if(length<0.0)
- length=75.0/fmean; /* By default, make it a quarter wave long */
- /* The following sent in an email by Paul AA1L, sums the theory up
- You make Zo=50=sqrt(Zoo*Zoe) and
- c=(Zoe-Zoo)/(Zoe+Zoo), c being the voltage coupling coefficient.
- I.e., for a 20dB coupler c=0.1 is the midband
- coupling.
- Coupling varies as sin^2(f/fq), fq being frequency where the coupled
- length is a quarter wave.
-
- HOWEVER, the above is not quite the full story, as that says coupling
- peaks at sin(1), when in fact its sin(Pi/2)
- */
-
- /* vfc stands for 'voltage coupling factor' */
-
- /* I need to find values for Zodd and Zeven to use, but first convert
- the coupling factor on the command line into the voltage coupling
- factor c */
-
- /* vfc stands for 'voltage coupling factor' */
-
- /* When the line is a quarter wave, one can get any amount of coupling
- you want, including a vfc of 1, in which case all the power transfers
- to the coupled port. Normally, the vcf will be less than 1.0. for a 20
- dB couplier is it 0.1 */
-
- vcf_for_quarter_wave_line=1.0/pow(10.0,wanted_coupling_factor_in_dB/20.0);
-
- fq=75/length; /* frequency at which line is a quarter wave long */
-
- /* If the line is less than a quarter wave long, then less power is
- coupled, so to compensate we need to increase the voltage coupling
- factor 'vcf above that of the value for a quarter wave line.
- Since the 'vcf' varies as sin(0.5 *PI * f/fq)^2, where
- fq is the frequency at which the line is a quarter-wave long, we must
- divide the vcf_for_quarter_wave_line by sin(0.5 *PI*f/fq)^2 to get
- the required vcf. */
- vcf=vcf_for_quarter_wave_line*(1.0/sin(0.5*M_PI*fmean/fq));
- /* Check that the voltage coupling factor does not exceed one */
- if ( vcf > 1.0 )
- {
- fprintf(stderr,"\n*****ERROR****\n");
- fprintf(stderr,"Sorry, you can't make a %6.3f dB coupler with a coupled line of %7.4f m long.\n",wanted_coupling_factor_in_dB, length);
- fprintf(stderr,"Either couple off a smaller fraction of the main power to the coupled port,\n");
- fprintf(stderr,"or make the line closer to an odd multiple of a quarter wave.\n");
- fprintf(stderr,"Odd mulitples of a quarter wave are: %.4f, %.4f, %.4f, %.4f .. m\n", 75/fmean, 3*75/fmean, 5*75/fmean, 7*75/fmean);
- exit_with_msg_and_exit_code("",IMPOSSIBLE_TO_MAKE_COUPLER_THAT_LENGTH);
- }
-
- /* After mucking around with Mathematica a bit, I found it was
- possible to invert the equations */
-
- Zodd = sqrt(1-vcf)*Zo/sqrt(1+vcf);
- Zeven=Zo*Zo/Zodd;
-
- printf("\nFor a %.3f dB %.3f Ohm coupler with a length of %.4f m,\n",wanted_coupling_factor_in_dB, Zo, length);
- printf("you need to have an odd-mode impedance Zodd of %.3f Ohms and\n",Zodd);
- printf("an even mode impedance Zeven of %.3f Ohms\n\n",Zeven);
- if(verbose >=1) /* Only print if user does not specifiy and -qq options */
- {
- printf("%.3f dB down <-- ************************** ---> %3.3f Ohm termination\n\n",wanted_coupling_factor_in_dB,Zo);
- printf("Drive this port --> ************************** ---> %3.3f Ohm termination\n",Zo);
- printf(" <------- %8.4f m ----->\n",length);
- printf("\nDrive Port 1, coupler out of port 2 and terminate the other ports in Zo\n");
- printf("Such a coupler will have the response indicated below.\n\n");
- /*printf("length =%.4f mean=%.3f vcf=%.3f vcf_for_quarter_wave_line=%.3f \n",length, fmean, vcf, vcf_for_quarter_wave_line);*/
- }
- for(f=fmin; f<=fmax; f+=fstep)
- {
- cf=20*log10(vcf*sin(0.5*M_PI*f/fq)); /* This is what is now needed for some given length (and so fq) */
- if(verbose == 2)
- printf("f = %7.3f MHz coupling is %.3f dB down on the main arm\n",f,cf);
- }
- printf("\nYou may force the length to be any value you want using the -L option - it does\nnot have to be %.4f metres long\n",length);
- if(calculate_physical_dimensions==FALSE)
- {
- printf("You may try to find a coupler with these dimensions using the -d option\n\n");
- printf("Currently the -d option is not that fast, as it uses a brain-dead algorithm\n");
- printf("Hopefully one day the algorithm will be speeded up.\n");
- }
- if(calculate_physical_dimensions==TRUE)
- {
- er=1.0;
- printf("Please be patient - this will take a few minutes or so\n");
- for(s = 0.02; s<=100; s+=step)
- {
- for(w = 0.02; w<= 11.0; w += step)
- {
- /* Results are calculated assuming the box is one unit (mm, inch
- etc) high and later scaled */
-
- calculate_Zodd_and_Zeven(&Zodd_x, &Zeven_x, &Zo_x, w, 1.0, s, er);
- error=pow(Zodd-Zodd_x,2.0) + pow(Zeven-Zeven_x,2.0);
- if( error < error_max )
- {
- best_s=s;
- best_w=w;
- best_Zo=sqrt(best_Zo * best_Zeven);
- best_Zodd=Zodd;
- best_Zeven=Zeven;
- error_max=error;
- }
- }
- }
- printf("w = %.4f s = %.4f which gives Zo = %.4f Zodd = %.4f Zeven = %.4f\n",best_w, best_s, best_Zo, best_Zodd, best_Zeven);
- /* Now try to get closer, if -D option given */
- if (calculate_physical_dimensions_to_high_accuracy == TRUE)
- {
- for(s = best_s-step; s<=best_s+step; s+=step/1000)
- {
- for(w = best_w-step; w<= best_w+step; w += step/1000)
- {
- calculate_Zodd_and_Zeven(&Zodd_x, &Zeven_x, &Zo_x, w, 1.0, s, er);
- error=fabs(Zodd-Zodd_x) + fabs(Zeven-Zeven_x);
- if( error < error_max )
- {
- best_s=s;
- best_w=w;
- best_Zodd=Zodd;
- best_Zeven=Zeven;
- error_max=error;
- }
- }
- }
- }
- best_Zo=sqrt(best_Zodd * best_Zeven);
- if(verbose <= 0)
- {
- printf("|-----------^------------------------------------------------------------------|\n");
- printf("| | |\n");
- printf("| | <---w---><-----s----><---w--> |\n");
- printf("| H --------- -------- |\n");
- printf("| | |\n");
- printf("| | Er=1.0 (air) |\n");
- printf("------------v------------------------------------------------------------------\n");
- printf("<-----------------------------------------W----------------------------------->\n");
- }
- printf("H =%.4f w = %.4f s = %.4f\n",height_of_box, height_of_box*best_w, height_of_box*best_s);
- printf("W must be *at least* %.4f, but larger does not matter.\n",5*height_of_box+ 2*best_w*height_of_box + height_of_box*best_s);
- printf("These dimensions give Zo = %.4f Zodd = %.4f Zeven = %.4f Ohms\n", best_Zo, best_Zodd, best_Zeven);
- if(Hflag==FALSE)
- {
- printf("****NOTE ****\n");
- printf("Although H is shown as 1.0, it can be 1 mm, 1 cm or even 1 m. It is important\n");
- printf("that w is %.4f times whatever H is, and that s is %.4f times whatever H is, but the absolute numbers are irrelavant.\n",best_w, best_s);
- printf("If you know the height H of your enclosure, use the -H option to indicate\n");
- printf("its value. This will ensure all the dimensions are scaled automatically for you.\n");
- }
- printf("****NOTE 2****\n");
- printf("The length *must* be %.4f m if you use these dimensions for W, H, w and s.\n",length);
- printf("If %.4f m is inconvenient, change it with the -L option and recalculate\n to get new values of W, H, w and s\n",length);
- printf("See: http://atlc.sourceforge.net\n");
- printf("See: http://atlc.sourceforge.net/couplers.html\n");
- }
- return(OKAY);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-extern int number_of_workers;
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int append_flag;
-extern int dielectrics_to_consider_just_now, coupler;
-extern int num_pes;
-extern double **Vij;
-extern int height;
-extern int number_of_workers;
-
-void do_fd_calculation(struct transmission_line_properties *data, size_t size, FILE *where_to_print_fp, char *inputfile_filename)
-{
- double capacitance_old, capacitance;
- double velocity_of_light_in_vacuum;
- int count=0;
- /*
- if (data->dielectrics_in_bitmap > 1) {
- fprintf(stderr,"\nSorry, but on the 15th October 2003 I was advised there is an\n");
- fprintf(stderr,"error in atlc when computing systems with multiple dielectrics.\n");
- fprintf(stderr,"So until this problem is fixed, the facility has been disabled.\n\n");
- fprintf(stderr,"I hope to release a new version shortly without this problem.\n");
- exit(1);
- }
- */
- /* The line of best fit of non_metalic_pixels vs iterations required
- is y=0.0011 * non_metallic_pixels + 283.
-
- I'll ensure finite_difference is called about 10x by using
- 0.00011 * the number of non-metallic elements +28 as the number
- of times finite_difference is called each time */
-
-
-
- /* The following 10 lines are for a single dielectric 2 conductor line */
- if (data->couplerQ==FALSE)
- {
- if(data->verbose_level >= 2)
- printf("Solving assuming a vacuum dielectric\n");
- capacitance=VERY_LARGE; /* Can be anything large */
- dielectrics_to_consider_just_now=1;
- data->dielectrics_to_consider_just_now=1;
-
- do /* Start a finite calculation */
- {
- capacitance_old=capacitance;
-
-#ifdef ENABLE_POSIX_THREADS
- if (number_of_workers == 0)
- capacitance=finite_difference_single_threaded();
- else
- capacitance=finite_difference_multi_threaded();
-#else
- capacitance=finite_difference_single_threaded();
-#endif
-
- data->C_vacuum=capacitance;
- data->C=capacitance;
- data->L_vacuum=MU_0*EPSILON_0/capacitance; /* Same as L in *ALL* cases */
- data->Zo_vacuum=sqrt(data->L_vacuum/data->C_vacuum); /* Standard formaul for Zo */
- data->C=capacitance;
- if (data->dielectrics_in_bitmap == 1) /* Just get C by simple scaling of Er */
- {
- data->C=capacitance*data->found_this_dielectric; /* Scaled by the single dielectric constant */
- data->Er=data->found_this_dielectric;
- }
- else
- data->Er=1.0;
- data->Zo=sqrt(data->L_vacuum/data->C); /* Standard formula for Zo */
- data->Zodd=sqrt(data->L_vacuum/data->C); /* Standard formula for Zo */
- velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
- data->velocity=1.0/pow(data->L_vacuum*data->C,0.5);
- data->velocity_factor=data->velocity/velocity_of_light_in_vacuum;
- data->relative_permittivity=sqrt(data->velocity_factor); /* ??? XXXXXX */
- if(data->verbose_level > 0 ) /* Only needed if intermediate results wanted. */
- print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
- count++;
- } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
- if(data->verbose_level >=4)
- printf("Total of %d iterations ( %d calls to finite_difference() )\n",ITERATIONS*count,count);
-
- if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap==1 )
- write_fields_for_two_conductor_lines(inputfile_filename, *data, size);
- if(data->verbose_level == 0 && data->dielectrics_in_bitmap==1 )
- print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
-
- if ( data->dielectrics_in_bitmap >1)
- {
- /* We know the capacitance and inductance for the air spaced line
- as we calculated it above. Howerver, whilst the inductance
- is independant of the dielectric, the capacitance is not, so this
- has to be recalculated, taking care not to alter the inductance
- at all */
- if(data->verbose_level >= 2)
- printf("Now taking into account the permittivities of the different dielectrics for 2 conductors.\n");
-
- dielectrics_to_consider_just_now=3; /* Any number > 1 */
- data->dielectrics_to_consider_just_now=2; /* Any number > 1 */
-
- capacitance=VERY_LARGE; /* Can be anything large */
-
- do /* Start a finite calculation */
- {
- capacitance_old=capacitance;
-#ifdef ENABLE_POSIX_THREADS
- if (number_of_workers == 0)
- capacitance=finite_difference_single_threaded();
- else
- capacitance=finite_difference_multi_threaded();
-#else
- capacitance=finite_difference_single_threaded();
-#endif
- data->C=capacitance;
- data->C_non_vacuum=capacitance;
- data->Zo=sqrt(data->L_vacuum/data->C_non_vacuum); /* Standard formula for Zo */
- data->velocity=1.0/pow(data->L_vacuum*data->C_non_vacuum,0.5);
- data->velocity_factor=data->velocity/velocity_of_light_in_vacuum;
- data->relative_permittivity=sqrt(data->velocity_factor); /* ??? XXXXXX */
- data->Er=data->C/data->C_vacuum;
- if(data->verbose_level > 0 ) /* Only needed if intermediate results wanted. */
- print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
- } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
-
- /* We must print the results now, but only bother if the verbose level was
- not not incremented on the command line, otherwide there will be two duplicate
- lines */
-
- if (data->verbose_level == 0)
- print_data_for_two_conductor_lines(*data, where_to_print_fp, inputfile_filename);
- if(data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE)
- write_fields_for_two_conductor_lines(inputfile_filename, *data, size);
- }
- }
- else if (data->couplerQ==TRUE)
- {
- /* The properties of a couplers will be computed in 2 or 4 stages
- 1) Compute the odd-mode impedance, assuming a vacuum dielectric, or
- if there is just one dielectric, that one.
-
- 2) Compute the odd-mode impedance, taking into account the effect of
- multiple dielectrics, IF NECESSARY
-
- at this point, the negative voltages will be turned into positive ones.
-
- 3) Compute the even-mode impedance, assuming a vacuum dielectric, or
- if there is just one dielectric, that one.
-
- 4) Compute the even-mode impedance, taking into account the effect of
- multiple dielectrics, IF NECESSARY */
-
- /* Stage 1 - compute the odd mode impedance assuming single dielectric */
- data->display = Z_ODD_SINGLE_DIELECTRIC;
- dielectrics_to_consider_just_now=1;
- data->dielectrics_to_consider_just_now=1;
-
- capacitance=VERY_LARGE; /* Can be anything large */
- if(data->verbose_level >= 2)
- printf("Solving assuming a vacuum dielectric to compute the odd-mode impedance\n");
-
- do /* Start a finite difference calculation */
- {
- capacitance_old=capacitance;
-#ifdef ENABLE_POSIX_THREADS
- if (number_of_workers == 0)
- capacitance=finite_difference_single_threaded();
- else
- capacitance=finite_difference_multi_threaded();
-#else
- capacitance=finite_difference_single_threaded();
-#endif
- data->Codd_vacuum=capacitance;
- data->Codd=capacitance;
- data->Lodd_vacuum=MU_0*EPSILON_0/capacitance; /* Same as L in *ALL* cases */
-
- data->Zodd_vacuum=sqrt(data->Lodd_vacuum/data->Codd_vacuum); /* Standard formaul for Zodd */
-
- if (data->dielectrics_in_bitmap == 1) /* Just get C by simple scaling of Er */
- data->Codd*=data->found_this_dielectric; /* Scaled by the single dielectric constant */
- else
- data->Er=1.0;
- data->Zodd=sqrt(data->Lodd_vacuum/data->Codd); /* Standard formula for Zo */
- velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
- /* FPE trapdata->velocity_odd=1.0/pow(data->L_vacuum*data->Codd,0.5); */
- data->velocity_odd=1.0/pow(data->Lodd_vacuum*data->Codd,0.5);
- data->velocity_factor_odd=data->velocity_odd/velocity_of_light_in_vacuum;
- data->relative_permittivity_odd=sqrt(data->velocity_factor_odd); /* ??? XXXXXX */
- data->Er_odd=data->Codd/data->Codd_vacuum;
- data->Zdiff=2.0*data->Zodd;
- /* Print text if uses wants it */
- if(data->verbose_level>=1)
- print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
- } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
-
-#ifdef ENABLE_MPI
- mpi_receive_updated_vij_strips();
-#endif /* ENABLE_MPI */
-
- /* display bitpamps/binary files if this is the last odd-mode computation */
- if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap==1 )
- write_fields_for_directional_couplers(inputfile_filename, *data, size, ODD);
-
- /* Stage 2 - compute the odd-mode impedance taking into account other dielectrics IF NECESSARY */
-
- if ( data->dielectrics_in_bitmap >1)
- {
- if(data->verbose_level >= 2)
- printf("Now taking into account the permittivities of the different dielectrics to compute Zodd.\n");
- data->display = Z_ODD_SINGLE_DIELECTRIC;
- capacitance=VERY_LARGE; /* Can be anything large */
-
- dielectrics_to_consider_just_now=2;
- data->dielectrics_to_consider_just_now=2;
-
-#ifdef ENABLE_MPI
- mpi_send_current_data();
-#endif /* ENABLE_MPI */
-
- do /* Start a finite calculation */
- {
- capacitance_old=capacitance;
-#ifdef ENABLE_POSIX_THREADS
- if (number_of_workers == 0)
- capacitance=finite_difference_single_threaded();
- else
- capacitance=finite_difference_multi_threaded();
-#else
- capacitance=finite_difference_single_threaded();
-#endif
- data->Codd=capacitance;
- data->Zodd=sqrt(data->Lodd_vacuum/data->Codd); /* Standard formula for Zo */
- velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
- data->velocity_odd=1.0/pow(data->L_vacuum*data->C,0.5);
- data->velocity_factor_odd=data->velocity/velocity_of_light_in_vacuum;
- data->relative_permittivity_odd=sqrt(data->velocity_factor); /* ??? XXXXXX */
- data->Er_odd=data->Codd/data->Codd_vacuum;
- data->Zdiff=2.0*data->Zodd;
- if(data->verbose_level>=1)
- print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
- } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
-
-#ifdef ENABLE_MPI
- mpi_receive_updated_vij_strips();
-#endif /* ENABLE_MPI */
-
- if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap!=1 )
- write_fields_for_directional_couplers(inputfile_filename, *data, size, ODD);
- } /* end of stage 2 for couplers */
-
- /* Stage 3 - compute the even-mode impedance assuming single dielectric */
-
- /* Since we want the even mode impedance now, we swap all the -1V
- metallic conductors for +1V */
-
- swap_conductor_voltages();
-
- data->display = Z_EVEN_SINGLE_DIELECTRIC;
- dielectrics_to_consider_just_now=1;
- data->dielectrics_to_consider_just_now=1;
- if(data->verbose_level >= 2)
- printf("Now assuming a vacuum dielectric to compute Zeven\n");
-
- capacitance=VERY_LARGE; /* Can be anything large */
-
-#ifdef ENABLE_MPI
- mpi_send_current_data();
-#endif /* ENABLE_MPI */
-
- do /* Start a finite difference calculation */
- {
- capacitance_old=capacitance;
-#ifdef ENABLE_POSIX_THREADS
- if (number_of_workers == 0)
- capacitance=finite_difference_single_threaded();
- else
- capacitance=finite_difference_multi_threaded();
-#else
- capacitance=finite_difference_single_threaded();
-#endif
-
- data->Ceven_vacuum=capacitance;
- data->Ceven=capacitance;
- data->Leven_vacuum=MU_0*EPSILON_0/capacitance; /* Same as L in *ALL* cases */
-
- data->Zeven_vacuum=sqrt(data->Leven_vacuum/data->Ceven_vacuum); /* Standard formaul for Zodd */
-
- if (data->dielectrics_in_bitmap == 1) /* Just get C by simple scaling of Er */
- data->Ceven*=data->found_this_dielectric; /* Scaled by the single dielectric constant */
- else
- data->Er_even=1.0;
- data->Zeven=sqrt(data->Leven_vacuum/data->Ceven); /* Standard formula for Zo */
- velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
- data->velocity_even=1.0/pow(data->Leven_vacuum*data->Ceven,0.5);
- data->velocity_factor_even=data->velocity_even/velocity_of_light_in_vacuum;
- data->relative_permittivity_even=sqrt(data->velocity_factor_even); /* ??? XXXXXX */
- data->Er_even=data->Ceven/data->Ceven_vacuum;
- data->Zcomm=data->Zeven/2.0;
- data->Zo=sqrt(data->Zodd * data->Zeven);
- if(data->verbose_level>=1)
- print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
- /* display bitpamps/binary files if this is the last even-mode computation */
- } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
-
- if((data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE) && data->dielectrics_in_bitmap==1)
- write_fields_for_directional_couplers(inputfile_filename, *data, size, EVEN);
-
- capacitance=VERY_LARGE; /* Can be anything large */
- /* Stage 4 - compute the even-mode impedance assuming multiple dielectrics IF NECESSARY */
- if ( data->dielectrics_in_bitmap >1)
- {
- dielectrics_to_consider_just_now=2;
- data->dielectrics_to_consider_just_now=2;
- if(data->verbose_level >= 2)
- printf("Now taking into account the permittivities of the different dielectrics to compute Zeven\n");
-
-#ifdef ENABLE_MPI
- mpi_send_current_data();
-#endif /* ENABLE_MPI */
-
- do /* Start a finite calculation */
- {
- capacitance_old=capacitance;
-#ifdef ENABLE_POSIX_THREADS
- if (number_of_workers == 0)
- capacitance=finite_difference_single_threaded();
- else
- capacitance=finite_difference_multi_threaded();
-#else
- capacitance=finite_difference_single_threaded();
-#endif
- data->Ceven=capacitance;
- data->Zeven=sqrt(data->Leven_vacuum/data->Ceven); /* Standard formula for Zo */
- velocity_of_light_in_vacuum=1.0/(sqrt(MU_0 * EPSILON_0)); /* around 3x10^8 m/s */
- data->velocity_even=1.0/pow(data->L_vacuum*data->C,0.5);
- data->velocity_factor_even=data->velocity/velocity_of_light_in_vacuum;
- data->relative_permittivity_even=sqrt(data->velocity_factor); /* ??? XXXXXX */
- data->Er_even=data->Ceven/data->Ceven_vacuum;
- data->Zdiff=2.0*data->Zodd;
- data->Zcomm=data->Zeven/2.0;
- data->Zo=sqrt(data->Zeven*data->Zodd);
- if(data->verbose_level>=1)
- print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
- } while (fabs((capacitance_old-capacitance)/capacitance_old) > data->cutoff); /* end of FD loop */
-
- if(data->write_binary_field_imagesQ == TRUE || data->write_bitmap_field_imagesQ == TRUE)
- write_fields_for_directional_couplers(inputfile_filename, *data, size, EVEN);
- } /* end of stage 4 */
- /* Print the results if the verbose level was 0 (no -v flag(s) ). */
- if (data->verbose_level == 0)
- {
- /* We need to print the data. The next function will only print if
- the verbose_level is 1 or more, so I'll fix it at one. Then we print
- the final results and exit. */
- data->verbose_level=1;
- data->display = Z_EVEN_SINGLE_DIELECTRIC;
- print_data_for_directional_couplers(*data, where_to_print_fp, inputfile_filename);
- }
- } /* end of if couplers */
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#include "definitions.h"
-
-/* The following function computes:
-
-r=K(k)/K'(k) where
-K is the complete elliptic integral of the first kind,
-K' is the complementary complete elliptic integral of the first kind
-
-This simple routine was given to my by Dan - it is one hell
-of a lot simplier than the routine in the numerical recipes book
-
-*/
-
-double K_over_Kdash(double k)
-{
- double kp, r, kf;
- kp = sqrt(1.0-pow(k,2.0));
- r = 1.0;
- kf=(1.0+k)/(1.0+kp);
- while(kf != 1.0)
- {
- r = r*kf;
- k = 2.0*sqrt(k)/(1.0+k);
- kp = 2.0*sqrt(kp)/(1.0+kp);
- kf=(1.0+k)/(1.0+kp);
- }
- return(r);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#define OKAY 0
-#define CANT_OPEN_FILE_FOR_READING 1
-#define CANT_OPEN_FOR_WRITING 2
-#define CANT_OPEN_FILE_FOR_APPENDING 3
-#define CANT_CLOSE_FILE 4
-#define WRITE_FAILURE 5
-#define THE_WIDTH_w_DIVIDED_BY_THE_HEIGHT_H_IS_TOO_LARGE 6
-#define PROGRAM_NOT_IMPLEMENTED 7
-#define PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS 8
-#define UNACCEPTABLE_ERROR_WHEN_CONVERTING_TO_INTEGERS 9
-#define MEMORY_ALLOCATION_ERROR_IN_VECTOR 10
-#define MEMORY_ALLOCATION_ERROR_IN_IVECTOR 11
-#define MEMORY_ALLOCATION_ERROR_IN_CVECTOR 12
-#define MEMORY_ALLOCATION_ERROR_IN_DVECTOR 13
-#define MEMORY_ALLOCATION_ERROR_IN_CMATRIX 14
-#define MEMORY_ALLOCATION_ERROR_IN_UCMATRIX 15
-#define MEMORY_ALLOCATION_ERROR_IN_MATRIX 16
-#define MEMORY_ALLOCATION_ERROR_IN_DMATRIX 17
-#define MEMORY_ALLOCATION_ERROR_IN_IMATRIX 18
-#define MEMORY_ALLOCATION_ERROR_IN_STRING 19
-#define MEMORY_ALLOCATION_ERROR_IN_USTRING 20
-#define SILLY_ARGUMENTS_IN_FREE_VECTOR 21
-#define SILLY_ARGUMENTS_IN_FREE_IVECTOR 22
-#define SILLY_ARGUMENTS_IN_FREE_CVECTOR 23
-#define SILLY_ARGUMENTS_IN_FREE_DVECTOR 24
-#define SILLY_ARGUMENTS_IN_FREE_DMATRIX 25
-#define SILLY_ARGUMENTS_IN_FREE_CMATRIX 26
-#define SILLY_ARGUMENTS_IN_FREE_UCMATRIX 27
-#define SILLY_ARGUMENTS_IN_FREE_IMATRIX 28
-#define SILLY_ARGUMENTS_IN_FREE_STRING 29
-#define SILLY_ARGUMENTS_IN_FREE_USTRING 30
-#define VOLTAGE_OUT_OF_RANGE 31
-#define ARGUMENT_w_OUT_OF_RANGE 32
-#define ARGUMENT_h_OUT_OF_RANGE 33
-#define ARGUMENT_s_OUT_OF_RANGE 34
-#define ARGUMENT_g_OUT_OF_RANGE 35
-#define ARGUMENT_Er1_OUT_OF_RANGE 36
-#define ARGUMENT_Er2_OUT_OF_RANGE 37
-#define ARGUMENT_W_OUT_OF_RANGE 36
-#define ARGUMENT_H_OUT_OF_RANGE 38
-#define ARGUMENT_t_OUT_OF_RANGE 39
-#define ARGUMENT_ideal_Zodd_OUT_OF_RANGE 41
-#define ARGUMENT_ideal_Zeven_OUT_OF_RANGE 42
-#define IDEAL_Zodd_NOT_LESS_THAN_IDEAL_Zeven 43
-#define NOT_LINKED_WITH_GSL_LIBRARY 44
-#define NOT_LINKED_WITH_THREADS_LIBRARY 45
-#define NOT_LINKED_WITH_MPI_LIBRARY 46
-#define UNDEFINED_COLOUR_IN_BITMAP 47
-#define NOT_A_VALID_BITMAP_FILE 48
-#define OS2_FORMAT_BMP_FILE 49
-#define NOT_A_WINDOZE_FORMAT_BITMAP 50
-#define BITMAP_NOT_24_BIT 51
-#define WIDTH_OR_HEIGHT_ZERO_IN_BITMAP 52
-#define BITPLANES_NOT_1_IN_BITMAP 53
-#define COLOURMAP_GREATER_THAN_256 54
-#define MALLOC_FAILED 55
-#define IMPOSSIBLE_COUPLING_COEFFICIENT 56
-#define FMAX_NOT_ABOVE_FMIN 57
-#define IMPOSSIBLE_TO_MAKE_COUPLER_THAT_LENGTH 58
-#define W_OR_H_TOO_SMALL 59
-#define INVALID_SWITCH 60
-#define DIMENSION_LESS_THAN_ZERO 61
-#define PERMITTIVITY_LESS_THAN_1 62
-#define VARIABLE_NOT_INITIALISED 63
-#define GAP_BETWEEN_CONDUCTORS_TOO_SMALL 64
-#define VOLTAGE_NOT_MINUS_ONE_V_AS_EXPECTED 65
-#define VOLTAGE_NOT_PLUS_ONE_V_AS_EXPECTED 66
-#define VOLTAGE_NOT_ZERO_V_AS_EXPECTED 67
-#define THREAD_CREATION_FAILED 68
-#define MUTEX_INITIALISATION_FAILED 69
-#define MUTEX_ALLOCATION_FAILED 70
-#define USER_REQUESTED_TOO_MANY_THREADS 71
-#define THREAD_FAILED_TO_JOIN 71
-#define CANT_OBTAIN_SEMAPHORE 73
-#define SEM_INIT_FAILED 74
-#define SEM_POST_FAILED 75
-#define SEM_WAIT_FAILED 76
-#define PTHREAD_ATTR_SETINHERITSCHED_FAILED 77
-#define PTHREAD_ATTR_INIT_FAILED 78
-#define PTHREAD_ATTR_SETSCOPE_FAILED 79
-#define PTHREAD_MUTEX_LOCK_FAILED 80
-#define PTHREAD_MUTEX_UNLOCK_FAILED 81
-#define PTHREAD_COND_WAIT_FAILED 82
-#define PTHREAD_COND_BROADCAST_FAILED 83
-#define SILLY_ARGUMENTS_IN_FREE_SCMATRIX 84
-#define MEMORY_ALLOCATION_ERROR_IN_SCMATRIX 85
-#define CANT_READ_ALL_OF_FILE 86
-#define FSEEK_FAILURE 87
-#define FTELL_FAILURE 88
-#define DOMAIN_ERROR 89
-#define INTERNAL_ERROR 90
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef ENABLE_MPI
-#include <mpi.h>
-#endif
-
-#include "definitions.h"
-
-
-void exit_with_msg_and_exit_code(const char *s, int exitnumber)
-{
- if ((NULL != s) && (s[0] != '\0')) {
- fprintf(stderr,"%s\n",s);
- }
-
-#ifdef ENABLE_MPI
-#ifdef NEED_MPI_CODE
- MPI_Finalize();
-#endif
-#endif
-
- exit(exitnumber);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int D, h, W, H, d;
-
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties foo)
-{
- int i, j;
- unsigned char red, green, blue;
- int vector_original=0;
- for(j=0;j<H;++j)
- {
- for(i=0;i<W; ++i)
- {
-
- /* Put a small border in green. Only one pixel is needed, but
- I'll put a few more. */
-
- if( pow((double)i-(double)D/2.0-(double)BORDER,2.0) + pow((double)j-(double)D/2.0-(double)BORDER,2.0)>=((double)D*(double)D)/4.)
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
- else if( pow((double)i-(double)D/2.0-(double)BORDER-(double) h,2.0) + pow((double)j-(double)D/2.0-(double)BORDER,2.0)<=((double)d*(double)d)/4.0)
- {
- red=0xff;
- green=0x0;
- blue=0x0;
- }
- else
- {
- red=colour_Er1/(256*256); /* Fill in areas with Er1 */
- green=colour_Er1/256;
- blue=colour_Er1%256;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int d, W, H, x, y;
-
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties not_used)
-{
- int i, j, vector_original=0;
- unsigned char red, green, blue;
- for(j=0;j<H;++j)
- {
- for(i=0;i<W; ++i)
- {
- if( (i<BORDER) || (i>=W-BORDER) || (j<BORDER) || (j>=H-BORDER))
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
- else if( pow((double)i-(double)W/2.0-(double) x,2.0) + pow((double)j-(double)H/2.0-(double)y,2.0)<=((double)d*(double)d)/4.0)
- {
- red=0xff;
- green=0x0;
- blue=0x0;
- }
- else
- {
- red=colour_Er1/(256*256); /* Fill in areas with Er1 */
- green=colour_Er1/256;
- blue=colour_Er1%256;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties pcb)
-{
- int i, j, red=0, green=0, blue=0, vector_original=0;
- int right_edge_of_LH_GP;
- for(j=0;j<pcb.H;++j)
- {
- for(i=0;i<pcb.W; ++i)
- {
-
- red=colour_Er1/(256*256); /* Fill whole region with Er1 (normally vacuum/air)*/
- green=colour_Er1/256;
- blue=colour_Er1%256;
-
- /* Put a small border in green. Only one pixel is needed, but
- I'll put a few more. */
- if( (i<BORDER) || (i>pcb.W-BORDER-1) || (j<BORDER) || (j>pcb.H-BORDER-1))
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
-
- /* Put the dielectric for the PCB in */
- if((i >= BORDER) && (i <pcb.W-BORDER ) && (j >= BORDER) && (j < pcb.h+BORDER))
- {
- red=colour_Er2/(256*256); /* Fill in areas with Er2 (normally PCB substrate)*/
- green=colour_Er2/256;
- blue=colour_Er2%256;
- }
-
- /* Put the metal top LH surface of the PCB groundplane */
- right_edge_of_LH_GP=(pcb.W/2-pcb.s/2-pcb.w-pcb.g)-BORDER;
- if((i >= BORDER) && (i <=right_edge_of_LH_GP ) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
- {
- red=0; /* Fill in left hand groundplane on top of pcb */
- green=255;
- blue=0;
- }
- /* Left hand coupler, could be +1 V or -1 V it does not matter, as long as right one is opposite */
- if( (i > right_edge_of_LH_GP + pcb.g ) && (i <= right_edge_of_LH_GP + pcb.g+pcb.w) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
- {
- red=0xff; /* Left hand coupler made to be +1 V */
- green=0;
- blue=0;
- }
- /* Right and coupler, set to -1 V */
- if( (i > right_edge_of_LH_GP + pcb.g +pcb.w+pcb.s) && (i <= right_edge_of_LH_GP + pcb.g+pcb.w+pcb.s+pcb.w) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
- {
- red=0; /* Right hand coupler made to be -1 V */
- green=0;
- blue=0xff;
- }
- if( (i > right_edge_of_LH_GP + pcb.g+pcb.w+pcb.s+pcb.w+pcb.g) && (i <= pcb.W-BORDER) && (j >= pcb.h+BORDER) && (j < pcb.h+pcb.t+BORDER))
- {
- red=0; /* Right hand ground plane in place */
- green=0xff;
- blue=0;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-void fill_image_vector_for_thin_strip(int W,int H, int w, unsigned char *image_vector)
-{
- int i, j, vector_original=0;
- unsigned char red, green, blue;
- for(j=0;j<H;++j)
- {
- for(i=0;i<W; ++i)
- {
- /* Put a small border in green. Only one pixel is needed, but
- I'll put a few more. */
-
- if( (j<BORDER) || (j>=H-BORDER))
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
- /* Fill in the dielectric */
- else if( (j==H/2) && (i > (W-w)/2) && (i < (W+w)/2))
- {
- red=0xff;
- green=0x00;
- blue=0x00;
- }
- else
- {
- red=0xff;
- green=0xff;
- blue=0xff;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int W, H, w, s, verbose;
-
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties data)
-{
- int i, j, vector_original=0;
- unsigned char red, green, blue;
- int left_edge_blue;
- int left_edge_red;
- left_edge_red=W/2 - w -s/2;
- left_edge_blue=(W+s)/2;
- if(verbose >=2)
- printf("\nw=%d s=%d W=%d H=%d Er1=%x Er2=%x in fill..data for couplers\n", w, s, W, H,colour_Er1, colour_Er2);
- for(j=0;j<H;++j)
- {
- for(i=0;i<W; ++i)
- {
- red=colour_Er1/(256*256); /* Fill in areas with Er1 */
- green=colour_Er1/256;
- blue=colour_Er1%256;
-
- /* Put a small border in green. Only one pixel is needed, but
- I'll put a few more. */
-
- if( (j<BORDER) || (j>=H-BORDER))
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
- if( (i>=left_edge_blue) && (i<left_edge_blue+w) && j==(H/2)) /* conductor */
- {
- red=0x00;
- green=0x00;
- blue=0xff;
- }
- if( (i>=left_edge_red) && (i<left_edge_red+w) && j==(H/2)) /* conductor */
- {
- red=0xff;
- green=0x00;
- blue=0x00;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int D, w, h, x, y;
-
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties foo)
-{
- int i, j, vector_original=0;
- unsigned char red, green, blue;
- for(j=0;j<D;++j)
- {
- for(i=0;i<D; ++i)
- {
- red=colour_Er1/(256*256); /* Fill in areas with Er1 */
- green=colour_Er1/256;
- blue=colour_Er1%256;
-
- /* Put a small border in green. Only one pixel is needed, but
- I'll put a few more. */
- if( pow((double)i-(double)D/2.0-(double)BORDER,2.0) +
- pow((double)j-(double)D/2.0-(double)BORDER,2.0)>=((double)D*(double)D)/4.)
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
- /* Fill in the inner conductor */
- else /* fill in areas of Er1 */
- {
- red=colour_Er2/(256*256); /* fill in areas with Er2 */
- green=colour_Er2/256;
- blue=colour_Er2%256;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern int W, H, a, b, c, d, w, h;
-
-void fill_image_vector_with_data(unsigned char *image_vector, int colour_Er1, int colour_Er2, struct transmission_line_properties foo)
-{
- unsigned char red, green, blue;
- int i, j, vector_original=0;
- for(j=0;j<H;++j)
- {
- for(i=0;i<W; ++i)
- {
- red=colour_Er1/(256*256); /* Fill in areas with Er1 */
- green=colour_Er1/256;
- blue=colour_Er1%256;
-
- /* Put a small border in green. Only one pixel is needed, but
- I'll put a few more. */
-
- if( (i<BORDER) || (i>=W-BORDER) || (j<BORDER) || (j>=H-BORDER))
- {
- red=0x00;
- green=0xff;
- blue=0x00;
- }
- /* Fill in the dielectric */
- if( (i>=a+BORDER) && (i<a+d+BORDER) && (j<h+BORDER) && (j>=BORDER))
- {
- red=colour_Er2/(256*256); /* fill in areas with Er2 */
- green=colour_Er2/256;
- blue=colour_Er2%256;
- }
- if( (i>=b+BORDER) && (i<b+w+BORDER) && (j<h+c+BORDER) && (j>=h+BORDER)) /* conductor */
- {
- red=0xff;
- green=0x00;
- blue=0x00;
- }
- image_vector[vector_original]=blue;
- image_vector[vector_original+1]=green;
- image_vector[vector_original+2]=red;
- vector_original+=3;
- }
- }
-}
+++ /dev/null
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern double **Vij;
-extern unsigned char **oddity;
-extern double **Er;
-extern int width, height;
-
-double find_Ex(int i, int j)
-{
- double Ex=0.0;
- unsigned char odd;
- odd = oddity[i][j];
- if(odd > CONDUCTOR_FLOATING) {
-
- if (odd == TOP_LEFT_CORNER || odd == BOTTOM_LEFT_CORNER)
- Ex=Vij[0][j]-Vij[1][j];
-
- else if (odd == TOP_RIGHT_CORNER || odd == BOTTOM_RIGHT_CORNER)
- Ex=Vij[width-2][0]-Vij[width-1][0];
-
- else if (odd == ORDINARY_POINT_TOP_EDGE || odd == ORDINARY_POINT_BOTTOM_EDGE)
- Ex=0.5*(Vij[i-1][j]-Vij[i+1][j]);
-
- else if (odd == ORDINARY_POINT_LEFT_EDGE)
- Ex=(Vij[i][j]-Vij[i+1][j]);
-
- else if (odd == ORDINARY_POINT_RIGHT_EDGE)
- Ex=(Vij[width-2][j]-Vij[width-1][j]);
-
- else if(odd == METAL_LEFT || odd == METAL_BELOW_AND_LEFT || odd == METAL_ABOVE_AND_LEFT)
- Ex=Vij[i][j]-Vij[i+1][j];
-
- else if(odd == METAL_RIGHT || odd == METAL_ABOVE_AND_RIGHT || odd ==METAL_BELOW_AND_RIGHT)
- Ex=Vij[i-1][j]-Vij[i][j];
-
- else if (odd == ORDINARY_INTERIOR_POINT || odd == METAL_ABOVE || odd == METAL_BELOW)
- Ex=0.5*(Vij[i-1][j]-Vij[i+1][j]);
-
- else if (odd >= DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT && odd < UNDEFINED_ODDITY )
- Ex=0.5*(Vij[i-1][j]-Vij[i+1][j]);
-
- else{
- fprintf(stderr,"oddity[%d][%d]=%d\n",i,j,odd);
- exit_with_msg_and_exit_code("Internal error in find_Ex",INTERNAL_ERROR);
- }
- }
- return(Ex);
-}
-
-double find_Ey(int i, int j)
-{
- double Ey=0.0;
- unsigned char odd;
- odd = oddity[i][j];
-
- if(odd > CONDUCTOR_FLOATING) {
-
- if (odd == TOP_LEFT_CORNER || odd == TOP_RIGHT_CORNER)
- Ey=Vij[i][1]-Vij[i][0];
-
- else if (odd == BOTTOM_LEFT_CORNER || odd == BOTTOM_RIGHT_CORNER)
- Ey=Vij[i][height-1]-Vij[i][height-2];
-
- else if (odd == ORDINARY_POINT_LEFT_EDGE || odd == ORDINARY_POINT_RIGHT_EDGE)
- Ey=0.5*(Vij[i][j+1]-Vij[i][j-1]);
-
- else if (odd == ORDINARY_POINT_BOTTOM_EDGE)
- Ey=Vij[i][j+1]-Vij[i][j];
-
- else if (odd == ORDINARY_POINT_TOP_EDGE)
- Ey=Vij[i][j]-Vij[i][j-1];
-
- else if (odd == METAL_ABOVE || odd == METAL_ABOVE_AND_LEFT || odd == METAL_ABOVE_AND_RIGHT)
- Ey=Vij[i][j+1]-Vij[i][j];
-
- else if (odd == METAL_BELOW || odd == METAL_BELOW_AND_LEFT || odd == METAL_BELOW_AND_RIGHT)
- Ey=Vij[i][j]-Vij[i][j-1];
-
- else if(odd >= DIFFERENT_DIELECTRIC_LOCALLY || odd == ORDINARY_INTERIOR_POINT || odd == METAL_RIGHT || odd == METAL_LEFT)
- Ey=0.5*(Vij[i][j+1]-Vij[i][j-1]);
-
- else{
- fprintf(stderr,"oddity[%d][%d]=%d\n",i,j,odd);
- exit_with_msg_and_exit_code("Internal error in find_Ey",INTERNAL_ERROR);
- }
- }
- return(Ey);
-}
-
-double find_E(int w, int h)
-{
- double Ex, Ey, E;
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=sqrt(Ex*Ex+Ey*Ey);
- return(E);
-}
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-#include "definitions.h"
-
-extern double **Vij, **Er;
-extern unsigned char **oddity;
-extern int dielectrics_to_consider_just_now;
-extern double r;
-extern int width, height;
-
-double find_energy_per_metre(int w, int h)
-{
- double energy_per_metre=0;
- double Ex, Ey;
-
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- energy_per_metre+=0.5*EPSILON_0*(Ex*Ex+Ey*Ey);
- if(dielectrics_to_consider_just_now>1)
- energy_per_metre*=Er[w][h]; /* second run, energy proportional to Er */
- return(energy_per_metre);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-#include "definitions.h"
-
-extern int width, height;
-extern unsigned char **oddity;
-extern double **Er, **Vij;
-
-void find_maximum_values(struct max_values *maximum_values, int zero_elementsQ)
-{
- double U, V, Ex, Ey, E, permittivity;
- int i, j;
-
- /* It makes sense to draw the even and odd mode images on the same
- scale, so if its a coupler, they elements are not zeroed if the
- function is called when doing the even mode, which is done
- after the odd mode */
-
- if(zero_elementsQ==ZERO_ELEMENTS_FIRST)
- {
- maximum_values->E_max=0.0;
- maximum_values->Ex_or_Ey_max=0.0;
- maximum_values->V_max=0.0;
- maximum_values->U_max=0.0;
- maximum_values->permittivity_max=0.0;
- }
- for(i=0;i<width;++i)
- {
- for(j=0;j<height;++j)
- {
- V=Vij[i][j];
- U=find_energy_per_metre(i,j);
- if(1)
- {
- if(i==0)
- Ex=2*Er[i+1][j]*(Vij[i][j]-Vij[i+1][j])/(Er[i+1][j]+Er[i][j]);
- else if (i==width-1)
- Ex=2*Er[i-1][j]*(Vij[i-1][j]-Vij[i][j])/(Er[i-1][j]+Er[i][j]);
- else /* This is the best estimate, but can't be done on boundary */
- {
- Ex=Er[i-1][j]*(Vij[i-1][j]-Vij[i][j])/(Er[i-1][j]+Er[i][j]);
- Ex+=Er[i+1][j]*(Vij[i][j]-Vij[i+1][j])/(Er[i+1][j]+Er[i][j]);
- }
- if(j==0)
- Ey=2*Er[i][j+1]*(Vij[i][j]-Vij[i][j+1])/(Er[i][j+1]+Er[i][j]);
- else if (j==height-1)
- Ey=2*Er[i][j-1]*(Vij[i][j-1]-Vij[i][j])/(Er[i][j-1]+Er[i][j]);
- else
- {
- Ey=Er[i][j-1]*(Vij[i][j-1]-Vij[i][j])/(Er[i][j-1]+Er[i][j]);
- Ey+=Er[i][j+1]*(Vij[i][j]-Vij[i][j+1])/(Er[i][j+1]+Er[i][j]);
- }
- E=sqrt(Ex*Ex+Ey*Ey);
- permittivity=Er[i][j];
- }
- else
- {
- Ex=0.0;
- Ey=0.0;
- E=0.0;
- permittivity=0.0;
- }
- if(U> 1.0)
- printf("U=%f v=%f Er=%f at %d %d\n",U,V,Er[i][j],i, j);
-
- if(E>maximum_values->E_max)
- maximum_values->E_max=E;
-
-
- if(fabs(Ex)>maximum_values->Ex_or_Ey_max)
- maximum_values->Ex_or_Ey_max=fabs(Ex);
-
- if(fabs(Ey)>maximum_values->Ex_or_Ey_max)
- maximum_values->Ex_or_Ey_max=fabs(Ey);
-
- if(fabs(E)>maximum_values->E_max)
- maximum_values->E_max=fabs(E);
-
- if(fabs(V) > maximum_values->V_max)
- maximum_values->V_max=fabs(V);
-
- if(U > maximum_values->U_max)
- maximum_values->U_max=U;
-
- if(permittivity >maximum_values->permittivity_max )
- maximum_values->permittivity_max=permittivity;
- /* printf("Ex_or_Ey_max=%g E_max=%g V_max=%g U_max=%g Er_max=%g\n",maximum_values->Ex_or_Ey_max, maximum_values->E_max, maximum_values->V_max, maximum_values->U_max, maximum_values->permittivity_max); */
- }
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern char *my_optarg;
-int main(int argc, char **argv)
-{
- double g, gmin=0.5, gmax=5, gstep=0.5;
- double s, smin=0.5, smax=5, sstep=0.5;
- double w, wmin=0.5, wmax=5, wstep=0.5;
- double Er1=1, Er2=1, h=1, t=1; /* keep the compiler from issuing warnings */
- double Zcomm, Zdiff, Zodd, Zeven;
- double Er_odd, Er_even, Zo;
- double error_min=1e100, error;
- double ideal_Zodd=0, ideal_Zeven=0;
- char *outfile_name, *temporary_bmp_file, *temporary_txt_file;
- int x, q, exit_code;
- char *cmd, *null;
- FILE *fp, *fp_best;
- outfile_name = string(0,4000);
- cmd = string(0,4000);
- null = string(0,4000);
- temporary_bmp_file = string(0,4000);
- temporary_txt_file = string(0,4000);
- while((q=get_options(argc,argv,"g:b:G:w:W:s:S:")) != -1)
- switch (q)
- {
- case 'C':
- print_copyright( (char *) "1996-2002");
- exit_with_msg_and_exit_code("",OKAY);
- break;
- case 'g':
- gmin=atof(my_optarg);
- break;
- /*
- case 'b':
- bmp_size=atoi(my_optarg);
- break;
- */
- case 'G':
- gmax=atof(my_optarg);
- break;
- case 'h':
- gstep=atof(my_optarg);
- break;
- case 's':
- smin=atof(my_optarg);
- break;
- case 'S':
- smax=atof(my_optarg);
- break;
- case 't':
- sstep=atof(my_optarg);
- break;
- case 'w':
- wmin=atof(my_optarg);
- break;
- case 'W':
- wmax=atof(my_optarg);
- break;
- case 'x':
- wstep=atof(my_optarg);
- break;
- case '?':
- usage_find_optimal_dimensions_for_microstrip_coupler();
- break;
- }
- if(argc-my_optind == 7)
- {
- h=atof(argv[my_optind]);
- t=atof(argv[my_optind+1]);
- Er1=atof(argv[my_optind+2]);
- Er2=atof(argv[my_optind+3]);
- ideal_Zodd=atof(argv[my_optind+4]);
- ideal_Zeven=atof(argv[my_optind+5]);
- check_parameters_for_find_optimal_dimensions_for_microstrip_coupler(h,t,Er1,Er2,ideal_Zodd,ideal_Zeven);
- (void) strcpy(outfile_name, argv[my_optind+6]);
- }
- else
- usage_find_optimal_dimensions_for_microstrip_coupler();
- (void) strcpy(temporary_bmp_file,"1.bmp");
- (void) strcpy(temporary_txt_file,"1.txt");
- if( (exit_code=pclose(popen("rm 1.txt 1.bmp","w"))) != 0)
- {
- fprintf(stderr,"rm 1.txt 1.bmp did not returned an exit code of %d\n",exit_code);
- exit(exit_code);
- }
- for(g=gmin; g <=gmax; g+=gstep)
- {
- for(w=wmin; w<=wmax; w+=wstep)
- {
- for(s=smin; s<=smax; s+=sstep)
- {
- sprintf(cmd,"create_bmp_for_microstrip_coupler %f %f %f %f %f %f %f %s\n",w, s, g, h, t, Er1, Er2,temporary_bmp_file);
- if( (exit_code=pclose(popen(cmd,"w"))) != 0)
- {
- fprintf(stderr,"pclose(popen(%s,\"w\"))) returned with an exit code of %d\n",cmd, exit_code);
- exit(exit_code);
- }
- sprintf(cmd,"atlc -S -s %s > %s\n", temporary_bmp_file, temporary_txt_file);
- exit_code=pclose(popen(cmd,"w"));
- if( (exit_code=pclose(popen(cmd,"w"))) != 0)
- {
- fprintf(stderr,"pclose(popen(%s,\"w\"))) returned with an exit code of %d\n",cmd,exit_code);
- exit(exit_code);
- }
- if ((fp=fopen(temporary_txt_file,"r")) ==NULL)
- exit_with_msg_and_exit_code("Error #1 cant't open file in find_optimal_dimensions_for_microstrip_coupler.c", CANT_OPEN_FILE_FOR_READING);
- fscanf(fp,"%s %d %s %lf %s %lf %s %lf %s %lf %s %lf %s %lf %s %lf",null,&x,null,&Er_odd,null,&Er_even, null, &Zodd,null,&Zeven,null,&Zo, null, &Zdiff,null,&Zcomm);
- if (fclose(fp) !=0)
- exit_with_msg_and_exit_code("Error #2 Unable to close file in ind_optimal_dimensions_for_microstrip_coupler.c",CANT_CLOSE_FILE);
- printf("x=%d Er_odd=%f Er_even=%f Zodd=%f Zeven=%f Zo=%f Zdiff=%f Zcomm=%f\n",x, Er_odd,Er_even,Zodd, Zeven,Zo, Zdiff, Zcomm);
- error=fabs(Zodd-ideal_Zodd)/ideal_Zodd+fabs(Zeven-ideal_Zeven)/ideal_Zeven;
- /* By forcing the error to be a be not just bettter, but better by at
- least TINY, it means the results will be the same on differerent computers,
- with no difference due to rouunding errors */
- if(error< error_min+TINY)
- {
- error_min=error;
- printf("best so far = s=%f w=%f g=%f Zodd=%f Zeven=%f Zdiff=%f Zcomm=%f error=%f\n",s,w,g, Zodd, Zeven,Zdiff, Zcomm,error);
- if ((fp_best=fopen(outfile_name,"a")) == NULL)
- exit_with_msg_and_exit_code("Error #3 Can't open file output file update",CANT_OPEN_FILE_FOR_APPENDING);
- fprintf(fp_best,"best so far = s=%f w=%f g=%f Zodd=%f Zeven=%f Zdiff=%f Zcomm=%f\n",s,w,g, Zdiff, Zcomm,Zodd, Zeven);
- if (fclose(fp_best) != 0)
- exit_with_msg_and_exit_code("Error #4 Unable to close file in optimal_dimensions_for_microstrip_coupler.c",CANT_CLOSE_FILE);
- } /* end of if */
- } /* end of for s */
- } /* end of for w */
- } /* end of for g */
- return(0);
-}
-
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef ENABLE_MPI /* file only needed on MPI systems. */
-
-#include <mpi.h>
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-
-extern int coupler;
-extern int width, height;
-extern double **Vij, **Er;
-extern signed char **oddity;
-extern int num_pes;
-extern int dielectrics_to_consider_just_now;
-extern struct strip strip_map[MAX_PES+1];
-
-/* these variables are only needed on PE 0,
- but are declared here for all for convenience.
- by switching to a dynamic allocation scheme,
- we could make them local to finite_difference,
- and only allocate them on PE 0.
-*/
-MPI_Request energy_rcv_requests[MAX_PES];
-double energies[MAX_PES];
-
-/*
- the job of a worker PE is to work on a columnar strip
- of the voltage array for a given number of iterations,
- then send off the results to PE 0.
-
- in order for a worker PE to calculate the edges of
- its strip, it needs two additional columns of data
- to the left and two additional columns of data to
- the right of its strip. initially, PE 0 supplies
- the extra columns. after the first iteration, the
- the PE needs to update the columns adjacent to its
- strip edges, and to do that, it needs the columns
- that are adjacent to those (hence each worker PE
- maintains 4 columns of data in addtion to its strip).
- the outermost columns are sent from the neighbor PEs
- after they are done computing them for the current
- iteration. after they are received, the columns
- adjacent to the strip edges are updated, and the PE
- moves on to the next iteration.
-
- after the prescribed number of iterations are completed,
- each worker PE sends its strip of the voltage matrix
- to PE 0, so that PE 0 has a complete up-to-date copy
- of the voltage array after each call to finite_difference.
- while that data is being sent, the worker PE computes
- the energy_per_metre ot its strip and then sends that
- off to PE 0, so that PE 0 can compute the overall
- capacitance_per_metre.
-
-*/
-
-
-/*
- this routine is only run on the worker PEs
-*/
-
-void mpi_worker(int rank) {
-
- int width_height[2];
- int strip_params[2];
- int start_col, num_cols;
- MPI_Status status;
- int control, done;
- int i,j,iterations;
- MPI_Request send_requests[2];
- MPI_Status send_statuses[2];
- MPI_Request rcv_requests[2];
- double energy_per_metre;
- int index;
-
- /* get the total width and height of the voltage
- matrix. the worker PE needs to know the column
- height in order to run its calculations. the
- width is also currently needed for the electric
- field subroutines.
- */
- MPI_Recv(&width_height,
- 2,
- MPI_INT,
- 0,
- MSG_TAG_WIDTH_HEIGHT,
- MPI_COMM_WORLD,
- &status);
-
- width = width_height[0];
- height = width_height[1];
-
- /* get the location and size of the strip of the
- voltage matrix that has been assigned to this
- PE. strictly speaking, the PE does not need
- to know the starting column number since it
- uses its own local indexing scheme, but it
- is sent anyway as a debugging aid if needed.
- */
- MPI_Recv(&strip_params,
- sizeof(strip_params)/sizeof(int),
- MPI_INT,
- 0,
- MSG_TAG_STRIP_PARAMS,
- MPI_COMM_WORLD,
- &status);
-
- /* this is the starting column in the global voltage matrix
- of the columnar strip this PE has been assigned*/
- start_col = strip_params[0];
-
- /* this is the width of the columnar strip that this PE
- has been assigned from the global voltage matrix */
- num_cols = strip_params[1];
-
- /* allocate matrixes big enough to contain the
- assigned strip and supporting data */
- oddity=cmatrix(0,num_cols+4,0,height);
- Vij=dmatrix(0,num_cols+4,0,height);
- Er=dmatrix(0,num_cols+4,0,height);
-
- /* get the oddity data to use in computing
- the assigned strip */
- MPI_Recv(oddity[0],
- (num_cols+4)*height,
- MPI_DOUBLE,
- 0,
- MSG_TAG_NODE_TYPE,
- MPI_COMM_WORLD,
- &status);
-
- /* get the Er data to use in computing
- the assigned strip */
- MPI_Recv(Er[0],
- (num_cols+4)*height,
- MPI_DOUBLE,
- 0,
- MSG_TAG_ER,
- MPI_COMM_WORLD,
- &status);
-
- /*************************************************
- * all of the data received above this point is *
- * sent only once in the lifetime of the program *
- *************************************************/
-
- done = 0;
- do {
-
- /* recieve a control word that tells
- the PE whether to set off on another
- set of iterations, or to exit */
-
- MPI_Recv(&control,
- 1,
- MPI_INT,
- 0,
- MSG_TAG_CONTROL,
- MPI_COMM_WORLD,
- &status);
-
- switch (control) {
- case CONTROL_VALUE_RECEIVE_DATA:
- /* receive the strip of the voltage matrix
- that we are to update. this is sent by PE 0. */
- MPI_Recv(Vij[1],
- (num_cols+2)*height,
- MPI_DOUBLE,
- 0,
- MSG_TAG_VIJ,
- MPI_COMM_WORLD,
- &status);
-
- /* receive the current value of
- dielectrics_to_consider_just_now.
- this is sent by PE 0. */
- MPI_Recv(&dielectrics_to_consider_just_now,
- 1,
- MPI_INT,
- 0,
- MSG_TAG_ORDINARY_INTERIOR_POINTS,
- MPI_COMM_WORLD,
- &status);
-
- break;
- case CONTROL_VALUE_SEND_DATA:
- /* send our strip to PE 0 */
- MPI_Send(Vij[2],
- num_cols*height,
- MPI_DOUBLE,
- 0,
- MSG_TAG_VIJ,
- MPI_COMM_WORLD);
- break;
- case CONTROL_VALUE_DO_ITERATIONS:
- /* receive the number of iterations we are
- to compute for. this is sent by PE 0 at
- the beginning of finite_difference. */
- MPI_Recv(&iterations,
- 1,
- MPI_INT,
- 0,
- MSG_TAG_ITERATIONS,
- MPI_COMM_WORLD,
- &status);
-
- i=0;
- do {
-
- /* update our strip of the voltage matrix */
- do_columns(2, num_cols, 0);
-
- /* send the columns that the neighbor PEs
- require to the nieghbor PEs */
- MPI_Isend(Vij[num_cols+1],
- height,
- MPI_DOUBLE,
- (rank+1)%num_pes,
- MSG_TAG_VIJ_RBORDER,
- MPI_COMM_WORLD,
- &send_requests[1]);
-
- MPI_Isend(Vij[2],
- height,
- MPI_DOUBLE,
- rank-1,
- MSG_TAG_VIJ_LBORDER,
- MPI_COMM_WORLD,
- &send_requests[0]);
-
- /* receive the columns that we need
- to update the columns adjacent
- to our strip edges from the neighbor
- PEs */
- MPI_Irecv(Vij[num_cols + 3],
- height,
- MPI_DOUBLE,
- (rank+1)%num_pes,
- MSG_TAG_VIJ_LBORDER,
- MPI_COMM_WORLD,
- &rcv_requests[0]);
-
- MPI_Irecv(Vij[0],
- height,
- MPI_DOUBLE,
- rank-1,
- MSG_TAG_VIJ_RBORDER,
- MPI_COMM_WORLD,
- &rcv_requests[1]);
-
- /* update the columns adjacent to our strip
- edges */
- MPI_Waitany(2,
- rcv_requests,
- &index,
- &status);
-
- if (0 == index) {
- update_voltage_array(num_cols + 2,0,Vij_TO_Vij);
- } else {
- update_voltage_array(1,0,Vij_TO_Vij);
- }
-
- MPI_Waitany(2,
- rcv_requests,
- &index,
- &status);
-
- if (0 == index) {
- update_voltage_array(num_cols + 2,0,Vij_TO_Vij);
- } else {
- update_voltage_array(1,0,Vij_TO_Vij);
- }
-
-
- MPI_Waitall(2, send_requests, send_statuses);
-
- i++;
- } while(i < iterations);
-
-
- energy_per_metre=0.0;
- for(i=2;i<2+num_cols;++i)
- for(j=0;j<height;++j) {
- energy_per_metre+=find_energy_per_metre(i,j);
- }
-
- MPI_Send(&energy_per_metre,
- 1,
- MPI_DOUBLE,
- 0,
- MSG_TAG_ENERGY,
- MPI_COMM_WORLD);
- break;
- case CONTROL_VALUE_EXIT:
- done = 1;
- break;
- }
-
- } while (0 == done);
-
-}
-
-
-
-void do_columns(int start_col, int num_cols, int calculate_edges)
-{
- int i;
- int end_col;
-
- end_col = start_col + num_cols - 1;
-
- for(i=start_col; i<=end_col; ++i)
- {
- update_voltage_array(i, calculate_edges,Vij_TO_Vij);
- }
-}
-
-
-
-/* There are three versions of finite_difference. They all take the same
-arguments and return the same data. One is single threaded, one is
-multi-threaded, and this one uses MPI. */
-
-double finite_difference(int accuracy)
-{
- int i, j, a;
- double capacitance_per_metre=0.0, energy_per_metre;
- int left_start_col, left_num_cols;
- int right_start_col, right_num_cols;
- MPI_Status status;
- int control;
- MPI_Request send_requests[2];
- MPI_Status send_statuses[2];
- MPI_Request rcv_requests[2];
- MPI_Status rcv_statuses[2];
- int index;
-
- for(i=1; i<num_pes; i++) {
-
- /* arm worker */
- control = CONTROL_VALUE_DO_ITERATIONS;
- MPI_Send(&control,
- 1,
- MPI_INT,
- i,
- MSG_TAG_CONTROL,
- MPI_COMM_WORLD);
-
- /* send the iteration count */
- MPI_Send(&accuracy,
- 1,
- MPI_INT,
- i,
- MSG_TAG_ITERATIONS,
- MPI_COMM_WORLD);
- }
-
- /* these are the parameters of the left and right
- half-strips that PE 0 is responsible for */
- left_start_col = strip_map[0].start_col;
- left_num_cols = strip_map[0].num_cols;
-
- right_start_col = strip_map[num_pes].start_col;
- right_num_cols = strip_map[num_pes].num_cols;
-
- for(a=1; a<=accuracy; ++a) {
-
- /* update the left and right half-strips */
- do_columns(left_start_col+1, left_num_cols-1, 1);
- do_columns(right_start_col, right_num_cols-1, 1);
-
- /* send the columns that PE 1 and PE N-1
- need to those PEs */
- MPI_Isend(Vij[left_num_cols - 2],
- height,
- MPI_DOUBLE,
- 1,
- MSG_TAG_VIJ_RBORDER,
- MPI_COMM_WORLD,
- &send_requests[0]);
-
- MPI_Isend(Vij[right_start_col+1],
- height,
- MPI_DOUBLE,
- num_pes-1,
- MSG_TAG_VIJ_LBORDER,
- MPI_COMM_WORLD,
- &send_requests[1]);
-
- /* receive the columns that we need
- to update the columns adjacent
- to our strip edges from PE 1 and
- PE N-1 */
- MPI_Irecv(Vij[right_start_col-2],
- height,
- MPI_DOUBLE,
- num_pes-1,
- MSG_TAG_VIJ_RBORDER,
- MPI_COMM_WORLD,
- &rcv_requests[0]);
-
- MPI_Irecv(Vij[left_num_cols+1],
- height,
- MPI_DOUBLE,
- 1,
- MSG_TAG_VIJ_LBORDER,
- MPI_COMM_WORLD,
- &rcv_requests[1]);
-
- MPI_Waitall(2, rcv_requests, rcv_statuses);
-
- /* update the columns adjacent to our strip
- edges */
- update_voltage_array(left_num_cols, 1,Vij_TO_Vij);
- update_voltage_array(right_start_col - 1, 1,Vij_TO_Vij);
-
- MPI_Waitall(2, send_requests, send_statuses);
-
- } /* end of accuracy loop */
-
- /* set up receives for the energies from the worker PEs */
- for(i=1; i<num_pes; i++) {
- MPI_Irecv(&energies[i-1],
- 1,
- MPI_DOUBLE,
- i,
- MSG_TAG_ENERGY,
- MPI_COMM_WORLD,
- &energy_rcv_requests[i-1]);
- }
-
-
- /* The energy in the matrix has now been minimised a number
- (accuracy) times, so we now calcuate the capacitance to see if it is
- converging */
-
- energy_per_metre=0.0;
-
- /* sum up all of the PE energies.
- they can arrive in any order. */
- for(i=1; i<num_pes; i++) {
- MPI_Waitany(num_pes-1,
- energy_rcv_requests,
- &index,
- &status);
- energy_per_metre += energies[index];
- }
-
- /* add in the left half-strip energy */
- for(i=left_start_col;i<left_start_col+left_num_cols;++i)
- for(j=0;j<height;++j)
- {
- energy_per_metre+=find_energy_per_metre(i,j);
- }
-
- /* add in the right half-strip energy */
- for(i=right_start_col;i<right_start_col+right_num_cols;++i)
- for(j=0;j<height;++j)
- {
- energy_per_metre+=find_energy_per_metre(i,j);
- }
-
- if(coupler==FALSE)
- capacitance_per_metre=2*energy_per_metre;
- else if (coupler==TRUE)
- capacitance_per_metre=energy_per_metre;
-
- return(capacitance_per_metre);
-}
-#endif
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#define SLOW
-
-#ifndef ENABLE_POSIX_THREADS
-
-/* If we are not comiling for multi-threaded use, a function
-is defined, but it is not used. This keeps the linker happy */
-
-double finite_difference_multi_threaded()
-{
- return(0.0);
-}
-#endif
-
-
-#ifdef ENABLE_POSIX_THREADS
-
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include <pthread.h>
-
-#ifdef HAVE_SCHED_H
-#include <sched.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern int coupler;
-extern int width, height;
-extern double **Vij, **Er;
-extern signed char **oddity;
-extern int number_of_workers;
-
-
-/* The algorithm for this is based on one in the book 'Foundations of Multithraded,
-Parallel and Distributed Programming' by G. A. Andrews, (2000). Especially
-chapter 11, Fig 11.6, "Red/Black Gauss-Seidel using shared vairables'.
-
-Basically the array is a considered a chess board. Since we only use in the computation the
-values above, below, to the left and the right of the current pixel, these will all be the
-same colour on the chess board (black or white). So we compute all the white squares, which
-can all be done in parallel, since they don't depend on each other. Once the white squares
-are done, the black ones can be done. Again, these don't depend on the white squares, but
-only the black ones. So the algorithm does
-
-1) Covers the array with a large chess board with black and white squares.
-
-
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-
-
-2) Split the array into a number of columns, one for each CPU.
-
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-B W B W B W B W B W B W B W B W B W B W B W B W B W B W
-W B W B W B W B W B W B W B W B W B W B W B W B W B W B
-
-3) Do all columns in parallel on the black squares.
-
-B B B B B B B B B B B B B B
- B B B B B B B B B B B B B B
-B B B B B B B B B B B B B B
- B B B B B B B B B B B B B B
-B B B B B B B B B B B B B B
- B B B B B B B B B B B B B B
-B B B B B B B B B B B B B B
- B B B B B B B B B B B B B B
-B B B B B B B B B B B B B B
- B B B B B B B B B B B B B B
-B B B B B B B B B B B B B B
- B B B B B B B B B B B B B B
-
-Thread 0 Thread 1 Thread 2 Thread 3
-
-4) Wait until all the black squares are done.
-
-5) Compute all the white squares in parallel.
-
- W W W W W W W W W W W W W W
-W W W W W W W W W W W W W W
- W W W W W W W W W W W W W W
-W W W W W W W W W W W W W W
- W W W W W W W W W W W W W W
-W W W W W W W W W W W W W W
- W W W W W W W W W W W W W W
-W W W W W W W W W W W W W W
- W W W W W W W W W W W W W W
-W W W W W W W W W W W W W W
- W W W W W W W W W W W W W W
-W W W W W W W W W W W W W W
-Thread 0 Thread 1 Thread 2 Thread 3
-
-
-6) Repeat a large number (typically 100) times.
-
-7) Check for convergence.
-
-8) Stop if the solution has converged.
-*/
-
-extern double r;
-
-pthread_mutex_t barrier; /* mutex semaphore for the barrier */
-pthread_cond_t go; /* condition variable for leaving */
-int numArrived = 0; /* count of the number who have arrived */
-
-#define BARRIER2
-
-#ifdef BARRIER1
-void Barrier() {
-#ifndef DEBUG
- pthread_mutex_lock(&barrier);
-#else
- if( pthread_mutex_lock(&barrier) != 0 )
- exit_with_msg_and_exit_code("pthread_mutex_lock failed",PTHREAD_MUTEX_LOCK_FAILED);
-#endif
-
- numArrived++;
- if (numArrived == number_of_workers) {
- numArrived = 0;
- pthread_cond_broadcast(&go);
- } else
- pthread_cond_wait(&go, &barrier);
-#ifndef DEBUG
- pthread_mutex_unlock(&barrier);
-#else
- if( pthread_mutex_unlock(&barrier) != 0 )
- exit_with_msg_and_exit_code("pthread_mutex_unlock failed",PTHREAD_MUTEX_UNLOCK_FAILED);
-#endif
-}
-#endif
-
-#ifdef BARRIER2
-int numArrived2[2] = {0, 0};
-int barrierNdx = 0;
-
-void Barrier() {
- int localNdx;
-#ifndef DEBUG
- pthread_mutex_lock(&barrier);
-#else
- if( pthread_mutex_lock(&barrier) != 0 )
- exit_with_msg_and_exit_code("pthread_mutex_lock failed in finite_difference_multi_threaded.c",PTHREAD_MUTEX_LOCK_FAILED);
-#endif
-
- numArrived2[barrierNdx]++;
- if (numArrived2[barrierNdx] == number_of_workers) {
- barrierNdx = (barrierNdx + 1)%2; /* toggle */
- numArrived2[barrierNdx] = 0; /* reset other count */
-
-#ifndef DEBUG
- pthread_cond_broadcast(&go);
-#else
- if( pthread_cond_broadcast(&go) != 0)
- exit_with_msg_and_exit_code("pthread_cond_broadcast failed in finite_difference_multi_threaded.c",PTHREAD_COND_BROADCAST_FAILED);
-#endif
- }
- else
- {
- localNdx = barrierNdx; /* wait on "current" numArrived. */
- while (numArrived2[localNdx] != number_of_workers)
-#ifndef DEBUG
- pthread_cond_wait(&go, &barrier);
-#else
- if( pthread_cond_wait(&go, &barrier) != 0)
- exit_with_msg_and_exit_code("pthread_cond_wait failed finite_difference_multi_threaded.c",PTHREAD_COND_WAIT_FAILED);
-#endif
- }
-#ifndef DEBUG
- pthread_mutex_unlock(&barrier);
-#else
- if( pthread_mutex_unlock(&barrier) != 0 )
- exit_with_msg_and_exit_code("pthread_mutex_unlock failed finite_difference_multi_threaded.c",PTHREAD_MUTEX_UNLOCK_FAILED);
-#endif
-}
-#endif
-
-
-
-/* Each Worker computes values in one strip of the grids.
- The main worker loop does two computations to avoid copying from
- one grid to the other. */
-
-void *worker(void *arg) {
- int myid = (int) arg;
- double r_over_4,a,b,c,d,e,f,g,h;
- double one_minus_r;
- int i, j, iters, jstart;
- int firstcol, lastcol;
- int strip_width=width/number_of_workers;
-
- firstcol = myid*strip_width+1;
- lastcol = firstcol + strip_width - 1;
- r_over_4=r/4.0;
- one_minus_r=1-r;
- if(myid == number_of_workers -1)
- lastcol=width-2;
- Barrier();
- for (iters = 1; iters <= ITERATIONS; iters++)
- {
- for(i= firstcol ; i <= lastcol; ++i){
- if(i%2 ==1 )
- jstart=1;
- else
- jstart=2;
- for(j=jstart ; j < height-1 ; j+=2){
- if(oddity[i][j] == ORDINARY_INTERIOR_POINT) /* Same dielectric all around */
- Vij[i][j]=r_over_4*(Vij[i][j+1]+Vij[i+1][j]+Vij[i][j-1]+Vij[i-1][j])+one_minus_r*Vij[i][j];
- else if(oddity[i][j] > ORDINARY_INTERIOR_POINT) /* only update dielectrics, not conductors */
- {
- a=(Er[i][j] * Er[i][j-1] * Vij[i][j-1])/(Er[i][j] + Er[i][j-1]);
- b=(Er[i][j] * Er[i][j+1] * Vij[i][j+1])/(Er[i][j] + Er[i][j+1]);
- c=(Er[i][j] * Er[i-1][j] * Vij[i-1][j])/(Er[i][j] + Er[i-1][j]);
- d=(Er[i][j] * Er[i+1][j] * Vij[i+1][j])/(Er[i][j] + Er[i+1][j]);
-
- e=(Er[i][j] * Er[i][j-1])/(Er[i][j]+Er[i][j-1]);
- f=(Er[i][j] * Er[i][j+1])/(Er[i][j]+Er[i][j+1]);
- g=(Er[i][j] * Er[i-1][j])/(Er[i][j]+Er[i-1][j]);
- h=(Er[i][j] * Er[i+1][j])/(Er[i][j]+Er[i+1][j]);
-
- Vij[i][j]=r*(a+b+c+d)/(e+f+g+h) + (1-r)*Vij[i][j];
- }
- }
- }
- Barrier();
- for(i= firstcol ; i <= lastcol; ++i){
- if(i%2 ==1 )
- jstart=2;
- else
- jstart=1;
- for(j=jstart ; j < height -1; j+=2){
- if(oddity[i][j] == ORDINARY_INTERIOR_POINT) /* Same dielectric all around */
- Vij[i][j]=r_over_4*(Vij[i][j+1]+Vij[i+1][j]+Vij[i][j-1]+Vij[i-1][j])+one_minus_r*Vij[i][j];
- else if(oddity[i][j] > ORDINARY_INTERIOR_POINT) /* only update dielectrics, not conductors */
- {
- a=(Er[i][j] * Er[i][j-1] * Vij[i][j-1])/(Er[i][j] + Er[i][j-1]);
- b=(Er[i][j] * Er[i][j+1] * Vij[i][j+1])/(Er[i][j] + Er[i][j+1]);
- c=(Er[i][j] * Er[i-1][j] * Vij[i-1][j])/(Er[i][j] + Er[i-1][j]);
- d=(Er[i][j] * Er[i+1][j] * Vij[i+1][j])/(Er[i][j] + Er[i+1][j]);
-
- e=(Er[i][j] * Er[i][j-1])/(Er[i][j]+Er[i][j-1]);
- f=(Er[i][j] * Er[i][j+1])/(Er[i][j]+Er[i][j+1]);
- g=(Er[i][j] * Er[i-1][j])/(Er[i][j]+Er[i-1][j]);
- h=(Er[i][j] * Er[i+1][j])/(Er[i][j]+Er[i+1][j]);
-
- Vij[i][j]=r*(a+b+c+d)/(e+f+g+h) + (1-r)*Vij[i][j];
- }
- }
- }
- Barrier();
- }
- Barrier();
- return(0);
-}
-
-double finite_difference_multi_threaded()
-{
- int i, j, ret, thread_number;
- pthread_t thread_id[MAXIMUM_PROCESSING_DEVICES];
-
-
- double capacitance_per_metre, energy_per_metre;
-
-
- /* initialize mutex and condition variable */
- pthread_mutex_init(&barrier, NULL);
- pthread_cond_init(&go, NULL);
- for(thread_number=0;thread_number<number_of_workers;thread_number++){
- ret=pthread_create(&thread_id[thread_number],NULL, worker,(void *)thread_number);
- if(ret != 0)
- exit_with_msg_and_exit_code("failed to create thread in finite_difference_multi_threaded.c",THREAD_CREATION_FAILED);
- }
- /* Wait for each thread to join - i.e. once they are all finished. */
- for(thread_number=0;thread_number<number_of_workers;thread_number++)
- {
- ret=pthread_join(thread_id[thread_number], NULL);
- if(ret != 0)
- exit_with_msg_and_exit_code("failed to join thread in finite_difference_multi_threaded.c",THREAD_FAILED_TO_JOIN);
- }
- energy_per_metre=0.0;
- /*
- The following code is wrong, but worked on all systems apart from AIX !!
-
- for(i=0;i<width;++i)
- for(j=0;j<height;++j)
- energy_per_metre+=find_energy_per_metre(i,j);
- */
-
- for(i=1;i<width-1;++i)
- for(j=1;j<height-1;++j)
- energy_per_metre+=find_energy_per_metre(i,j);
-
- if(coupler==FALSE)
- capacitance_per_metre=2*energy_per_metre;
- else
- capacitance_per_metre=energy_per_metre;
- return(capacitance_per_metre);
-}
-#endif
+++ /dev/null
-#ifndef ENABLE_MP
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
-
-#include "definitions.h"
-
-
-extern int width, height;
-extern double **Vij, **Er;
-extern unsigned char **oddity;
-extern int dielectrics_to_consider_just_now;
-extern double r;
-extern int coupler;
-
-#include "exit_codes.h"
-
-double finite_difference_single_threaded()
-{
- int i, j;
- int number_of_iterations=25;
- double capacitance_per_metre, energy_per_metre;
-
- /* The following might not look very neat, with a whole load of code being
- written twice, when it would be posible to make it easier to read if the
- 'if(dielectrics_in_bitmap > 1)' was in an inner loop. However, the
- following is almost certainly more efficient. It is not a good idea to
- have any more than necessary in the inner loop.
-
- The option to avoid the faster convergence algorithm has been didtched
- too, as this was in an inner loop. The faster covergence method seems
- to work fine, so there is no need to avoid using it */
-
-
- /* Note, that while the number of intterations requested is set in the first
- parameter to update_voltage_array, the actual number done is 4x higher, as
- each computation id done in 4 directions */
-
- update_voltage_array(number_of_iterations, 0, width-1, 0, height-1, Vij, Vij);
-
- /* Once the voltage distribution is found, the energy in the field may be
- found. This can be shown to be Energy = 0.5 * integral(E.D) dV, when
- integrated over a volume V, and D.E is the vector dot product of E and
- D.
-
- Energy per metre is 0.5 * D.E or (0.5*Epsilon)* E.E. Now E.E is given
- by Ex^2 + Ey^2 (by definition of a dot product. */
-
- energy_per_metre=0.0;
- for(i=0;i<width;++i)
- for(j=0;j<height;++j)
- {
- energy_per_metre+=find_energy_per_metre(i,j);
- }
- if(coupler==FALSE)
- capacitance_per_metre=2*energy_per_metre;
- else
- capacitance_per_metre=energy_per_metre;
- return(capacitance_per_metre);
-}
-#endif /* #endif to #ifndef ENABLE_MP */
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-extern double Er1, Er2, Ers[];
-extern int colours[];
-
-void get_Er1_and_Er2_colours(int *colour_Er1, int *colour_Er2)
-{
- int i;
- *colour_Er2=-1; /* set them to a silly value, so we can check for it */
- for(i=0; i<NUMBER_OF_DIELECTRICS_DEFINED; ++i)
- {
- if ( (Er1 < Ers[i] + TINY) && (Er1 > Ers[i] - TINY) )
- *colour_Er1=colours[i];
- if ( (Er2 < Ers[i] + TINY) && (Er2 > Ers[i] - TINY) )
- *colour_Er2=colours[i];
- }
- if (*colour_Er2 == -1) /* ie its not one defined in Erdata.h */
- *colour_Er2 =0xac82ac; /* report it is a silly value */
- if (*colour_Er1 == -1) /* ie its not one defined in Erdata.h */
- *colour_Er1 =0xcaff00; /* report it is a silly value */
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* This function take a filename with the extension .bmp (eg coax.bmp)
-and will produce files such as coax.V.bmp, coax.E.bmp, coax.E.bin etc */
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-FILE *get_file_pointer_with_right_filename(char *filename, const char *extension)
-{
- char *basename, *temp;
- FILE *fp;
- basename=string(0,1024);
- temp=string(0,1024);
- (void) memset((void *)temp,0,(size_t) 1024);
- (void) memset((void *)basename,0,(size_t) 1024);
-
- basename=strncpy(basename,filename,strlen(filename)-4);
- (void) strcpy(temp,basename);
- (void) strcat(temp,extension);
- if((fp=fopen(temp,"w+b"))==NULL)
- {
- fprintf(stderr,"Sorry, cant open %s for writing\n", temp);
- exit_with_msg_and_exit_code("",CANT_OPEN_FOR_WRITING);
- }
- free_string(basename,0,1024);
- free_string(temp,0,1024);
- return(fp);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-
-/*
- * Here's something you've all been waiting for: the AT&T public domain
- * source for getopt(3). It is the code which was given out at the 1985
- * UNIFORUM conference in Dallas. I obtained it by electronic mail
- * directly from AT&T. The people there assure me that it is indeed
- * in the public domain.
- *
- * There is no manual page. That is because the one they gave out at
- * UNIFORUM was slightly different from the current System V Release 2
- * manual page. The difference apparently involved a note about the
- * famous rules 5 and 6, recommending using white space between an option
- * and its first argument, and not grouping options that have arguments.
- * Getopt itself is currently lenient about both of these things White
- * space is allowed, but not mandatory, and the last option in a group can
- * have an argument. That particular package_version of the man page evidently
- * has no official existence, and my source at AT&T did not send a copy.
- * The current SVR2 man page reflects the actual behavor of this getopt.
- * However, I am not about to post a copy of anything licensed by AT&T.
- */
-
-#include "config.h"
-
-#include "definitions.h"
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-/*LINTLIBRARY*/
-#ifndef NULL
-#define NULL 0
-#endif
-#define EOF (-1)
-
-
-int my_opterr = 1;
-int my_optind = 1;
-int my_optopt;
-char *my_optarg;
-
-void ERR(const char *s, char c, char **argv)
-{
- if(my_opterr)
- {
- char errbuf[2];
- errbuf[0] = c;
- errbuf[1] = '\n';
- /* (void) write(2, argv[0], (unsigned)strlen(argv[0]));
- (void) write(2, s, (unsigned)strlen(s));
- (void) write(2, errbuf, 2); */
- (void) fwrite(argv[0], (unsigned)strlen(argv[0]),1,stderr);
- (void) fwrite(s, (unsigned)strlen(s),1,stderr);
- (void) fwrite(errbuf, 2, 1,stderr);
- }
-}
-
-char *index2(const char *str, char c)
-{
- char *ret;
- ret=strchr((char *) str,c);
- return(ret);
-}
-
-
-int get_options(int argc, char **argv, const char *opts)
-{
- static int sp = 1;
- /* register int c;
- register char *cp; */
- int c;
- char tmp;
- char *cp;
- cp=&tmp;
-
- if(sp == 1)
- {
- if(my_optind >= argc ||
- argv[my_optind][0] != '-' || argv[my_optind][1] == '\0')
- return(EOF);
- else if(strcmp(argv[my_optind], "--") == 0) {
- my_optind++;
- return(EOF);
- }
- }
- my_optopt = c = argv[my_optind][sp];
- if(c == ':' || (cp=index2((char *) opts, c)) == NULL) {
- ERR(": illegal option -- ", c,argv);
- if(argv[my_optind][++sp] == '\0') {
- my_optind++;
- sp = 1;
- }
- return('?');
- }
- if(*++cp == ':') {
- if(argv[my_optind][sp+1] != '\0')
- my_optarg = &argv[my_optind++][sp+1];
- else if(++my_optind >= argc) {
- ERR(": option requires an argument -- ", c,argv);
- sp = 1;
- return('?');
- } else
- my_optarg = argv[my_optind++];
- sp = 1;
- } else {
- if(argv[my_optind][++sp] == '\0') {
- sp = 1;
- my_optind++;
- }
- my_optarg = NULL;
- }
- return(c);
-}
+++ /dev/null
-#include "config.h"
-
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void give_examples_of_using_design_coupler(void)
-{
- printf("Here are a examples of how to use 'design_coupler'\n");
- printf("In the examples, the %c sign is used in front of anything you must type\n",'%');
- printf("which is what you will probably see when using the csh or tcsh as a shell. It\n");
- printf("would probably be a $ sign if using the sh or bash shell. \n\n");
- printf("To find the odd and even mode impedances and frequency response of a 50 Ohm\n");
- printf("coupler, covering 130 to 170 MHz, with a coupling coefficient of 30 dB:\n\n");
- printf("%c design_coupler 30 130 170\n\n",'%');
- printf("Note the frequency response is symmetrical about the centre frequency at 0.192 dB\n");
- printf("below that wanted. You may wish to redesign this for a coupling coefficient of \n");
- printf("about 29.9 dB, so the maximum deviation from the ideal 30.0 dB never exceeds 0.1 dB\n");
- printf("Note the length suggested is 0.5 m (nearly 20\") is a quarter wave at\n");
- printf("the centre frequency of 150 MHz. You might find this a bit too long, so\n");
- printf("let's specify a length of 0.25 m.\n\n");
- printf("%c design_coupler -L 0.25 30 130 170\n\n",'%');
- printf("What you may notice is that while the coupling to the coupled port is exactly\n");
- printf("30 dB below the input power at the centre frequency (150 MHz) it is \n");
- printf("no longer symmetrical about the centre frequency. Also, deviations from the\n");
- printf("ideal 30 dB are now much larger, with a maximum error of 1.012 dB\n");
- printf("Unlike the case when the length is the default quarter wave, there is not much\n");
- printf("you can do about this, since the deviations occur in both directions.\n\n");
- printf("Now assume you are reasonably happy with the response when the length is 250 mm\n");
- printf("but would like to see the response at every 2.5 MHz. This can be done using the\n");
- printf("-s option to design_coupler.\n\n");
- printf("%c design_coupler -L 0.25 -s 2.5 30 130 170\n\n",'%');
- printf("Assuming the performance is acceptable, the dimensions of the coupler can\n");
- printf("be determined by adding the -d option. This will design a coupler that must look\n");
- printf("like the structure below. The two inner conductors, which are spaced equally\n");
- printf("between the top and bottom edges of the outer conductor, must be very thin.\n");
- printf("These are placed along the length of a box of width W, height H and of\n");
- printf("a length L determined by the user, which in this case is 250 mm.\n");
- printf("|-----------^------------------------------------------------------------------|\n");
- printf("| | |\n");
- printf("| | <---w---><-----s----><---w--> |\n");
- printf("| H --------- -------- |\n");
- printf("| | |\n");
- printf("| | Er=1.0 (air) |\n");
- printf("------------v------------------------------------------------------------------\n");
- printf("<-----------------------------------------W----------------------------------->\n");
- printf("The program reports: H = 1.0, ; w = 1.44 ; s = 0.44\n");
-
- printf("The height of the box H must be small compared to the length L, (perhaps no\n");
- printf("more than 7%c of the length), or 17.5 mm in this case, with a length of 250 mm,\n",'%');
- printf("otherwise fringing effects will be significant. The width of the structure W\n");
- printf("should be as large as possible. The program suggests making this 5*H+2*w+s. The\n");
- printf("7%c and 5*H+2*w+s are educated guesses, rather than exact figures. There is\n",'%');
- printf("no problem in making the width larger than 5*H+2*w+s. The length L must be\n");
- printf("kept at 250 mm. The RATIO of the dimensions H, w and s (but not L or W\n");
- printf("must be kept constant. W just needs to be sufficiently large - it is\n");
- printf("uncritical. \n\n");
- printf("If you happened to have some 15 mm square brass available, then using that\n");
- printf("for the side-walls would require that H becomes 15*1.0 = 15 mm,\n");
- printf("w = 15*1.44 = 21.6 mm and s = 15*0.44 = 6.6 mm\n\n");
- printf("There is no need to compute the above scaling with a calculator, as using\n");
- printf("The -H option allows one to specify the height H. The program then reports the\n");
- printf("exact dimensions for the length L, height H, w, s and suggests a minimum width\n");
- printf("for W.\n\n");
- printf("In summary we have:\n");
- printf(" 30 dB coupler +1.02 dB / -0.78 dB for 130 to 170 MHz\n");
- printf(" Length L = 250 mm, height H = 15 mm, stripline spacing s\n");
- printf(" = 6.6 mm, stripline width w = 21.6 mm, width W >= 124 mm\n");
- printf("By default, design_coupler prints a lot of information to the screen.\n");
- printf("This can be reduced by the -q option or reduced to only one line with -Q\n");
- printf("Other options include -Z to change the impedance from the default 50 Ohms\n");
- printf("and -C to see the fully copyright, Licensing and distribution information\n");
- exit_with_msg_and_exit_code("",OKAY);
-}
+++ /dev/null
-/*
-atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/*
-The following code is taken from the GNU Scientifi Library, gsl,
-which is also issued under the GPL.
-
-*/
-#define GSL_PREC_DOUBLE 0
-#define GSL_SUCCESS 0
-/*
-These values suita IEEE machines but might be too large
-for non-IEEE machines. Since I don't think its that
-important, I've changed the values a bit to be sure
-double will work out okay.
-
-#define GSL_DBL_EPSILON 2.2204460492503131e-16
-#define GSL_SQRT_DBL_EPSILON 1.4901161193847656e-08
-#define GSL_DBL_MIN 2.2250738585072014e-308
-#define GSL_DBL_MAX 1.7976931348623157e+308
-*/
-
-#define GSL_DBL_EPSILON 1e-14
-#define GSL_SQRT_DBL_EPSILON 1e-7
-#define GSL_DBL_MIN 1e-100
-#define GSL_DBL_MAX 1e+100
-
-#define GSL_MODE_PREC(mt) ((mt) & (unsigned int)7)
-#define GSL_MAX(a,b) ((a) > (b) ? (a) : (b))
-/* GSL_VAR const double gsl_prec_eps[]; */
-
-typedef unsigned int gsl_mode_t;
-typedef unsigned int gsl_prec_t;
-
-typedef struct
-{
- double val;
- double err;
-} gsl_sf_result;
-
-double gsl_sf_ellint_Kcomp(double k, gsl_mode_t mode);
-int gsl_sf_ellint_Kcomp_e(double k, gsl_mode_t mode, gsl_sf_result * result);
-int gsl_sf_ellint_RF_e(double x, double y, double z, gsl_mode_t mode, gsl_sf_result * result);
-double locMAX3(double x, double y, double z);
-
-
-/* End of things taken from gsl library */
+++ /dev/null
-
-
-#include "config.h"
-
-#ifdef HAVE_MATH_H
-#include <math.h>
-#endif
-
-#include "definitions.h"
-#include "gsl_types.h"
-#include "gsl_definitions.h"
-#include "exit_codes.h"
-
-/* This part of atlc is a copy from the code in the GPL'ed
-GNU Scientific Library, gsl. By including this code, it saves
-the user having to like with gsl. */
-
-const double gsl_prec_eps[3];
-
-
-
-double gsl_sf_ellint_Kcomp(double k, gsl_mode_t mode)
-{
- gsl_sf_result result;
- gsl_sf_ellint_Kcomp_e(k, mode, &result);
- return result.val;
-}
-
-
-/* [Carlson, Numer. Math. 33 (1979) 1, (4.5)] */
-int gsl_sf_ellint_Kcomp_e(double k, gsl_mode_t mode, gsl_sf_result * result)
-{
- int return_val=0;
- if(k*k >= 1.0) {
- exit_with_msg_and_exit_code("domain error in gsl_sf_Kcomp_e", DOMAIN_ERROR);
- }
- else if(k*k >= 1.0 - GSL_SQRT_DBL_EPSILON) {
- /* [Abramowitz+Stegun, 17.3.33] */
- const double y = 1.0 - k*k;
- const double a[] = { 1.38629436112, 0.09666344259, 0.03590092383 };
- const double b[] = { 0.5, 0.12498593597, 0.06880248576 };
- const double ta = a[0] + y*(a[1] + y*a[2]);
- const double tb = -log(y) * (b[0] * y*(b[1] + y*b[2]));
- result->val = ta + tb;
- result->err = 2.0 * GSL_DBL_EPSILON * result->val;
- return_val=GSL_SUCCESS;
- }
- else {
- /* This was previously computed as,
-
- return gsl_sf_ellint_RF_e(0.0, 1.0 - k*k, 1.0, mode, result);
-
- but this underestimated the total error for small k, since the
- argument y=1-k^2 is not exact (there is an absolute error of
- GSL_DBL_EPSILON near y=0 due to cancellation in the subtraction).
- Taking the singular behavior of -log(y) above gives an error
- of 0.5*epsilon/y near y=0. (BJG) */
-
- double y = 1.0 - k*k;
- int status = gsl_sf_ellint_RF_e(0.0, y, 1.0, mode, result);
- result->err += 0.5 * GSL_DBL_EPSILON / y;
- return_val=status ;
- }
- return(return_val);
-}
-
-int gsl_sf_ellint_RF_e(double x, double y, double z, gsl_mode_t mode, gsl_sf_result * result)
-{
- int return_val=0;
- const double lolim = 5.0 * GSL_DBL_MIN;
- const double uplim = 0.2 * GSL_DBL_MAX;
- const gsl_prec_t goal = GSL_MODE_PREC(mode);
- const double errtol = ( goal == GSL_PREC_DOUBLE ? 0.001 : 0.03 );
- const double prec = gsl_prec_eps[goal];
-
- if(x < 0.0 || y < 0.0 || z < 0.0) {
- exit_with_msg_and_exit_code("domain error in gsl_sf_ellint_RF_e", DOMAIN_ERROR);
- }
- else if(x+y < lolim || x+z < lolim || y+z < lolim) {
- exit_with_msg_and_exit_code("domain error in gsl_sf_ellint_RF_e", DOMAIN_ERROR);
- }
- else if(locMAX3(x,y,z) < uplim) {
- const double c1 = 1.0 / 24.0;
- const double c2 = 3.0 / 44.0;
- const double c3 = 1.0 / 14.0;
- double xn = x;
- double yn = y;
- double zn = z;
- double mu, xndev, yndev, zndev, e2, e3, s;
- while(1) {
- double epslon, lamda;
- double xnroot, ynroot, znroot;
- mu = (xn + yn + zn) / 3.0;
- xndev = 2.0 - (mu + xn) / mu;
- yndev = 2.0 - (mu + yn) / mu;
- zndev = 2.0 - (mu + zn) / mu;
- epslon = locMAX3(fabs(xndev), fabs(yndev), fabs(zndev));
- if (epslon < errtol) break;
- xnroot = sqrt(xn);
- ynroot = sqrt(yn);
- znroot = sqrt(zn);
- lamda = xnroot * (ynroot + znroot) + ynroot * znroot;
- xn = (xn + lamda) * 0.25;
- yn = (yn + lamda) * 0.25;
- zn = (zn + lamda) * 0.25;
- }
- e2 = xndev * yndev - zndev * zndev;
- e3 = xndev * yndev * zndev;
- s = 1.0 + (c1 * e2 - 0.1 - c2 * e3) * e2 + c3 * e3;
- result->val = s / sqrt(mu);
- result->err = prec * fabs(result->val);
- return_val= GSL_SUCCESS;
- }
- else {
- exit_with_msg_and_exit_code("domain error in gsl_sf_ellint_RF_e", DOMAIN_ERROR);
- }
- return(return_val);
-}
-
-
-/* static double locMAX3(double x, double y, double z) */
-double locMAX3(double x, double y, double z)
-{
- double xy = GSL_MAX(x, y);
- return GSL_MAX(xy, z);
-}
-
-
-#define EVAL_RESULT(fn) \
- gsl_sf_result result; \
- int status = fn; \
- if (status != GSL_SUCCESS) { \
- GSL_ERROR_VAL(#fn, status, result.val); \
- } ; \
-return result.val;
-
+++ /dev/null
-/*
-atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby@ntlworld.com
-
-This is haevily hacked from the gsl_types.h file which is copyright
-
-* Copyright (C) 2001 Brian Gough
-and for part of the GNU Scientific library (gsl).
-
-It is not identical and only contrains a subset of the information
-from that file and is hacked somewhat.
-
-*/
-
-
-#ifndef __GSL_TYPES_H__
-#define __GSL_TYPES_H__
-
-#ifndef GSL_VAR
-
-#ifdef WIN32
-# ifdef _DLL
-# ifdef DLL_EXPORT
-# define GSL_VAR __declspec(dllexport)
-# else
-# define GSL_VAR __declspec(dllimport)
-# endif
-# else
-# define GSL_VAR extern
-# endif
-#else
-# define GSL_VAR extern
-#endif
-
-#endif
-
-#endif /* __GSL_TYPES_H__ */
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-Some of these memory allocation routies are hacked versions of those
-from the book 'Numerical Recipes in C' by Press et al. */
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_SYS_TYPES
-#include <sys/types.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#define NR_END 1
-
-char *string(long nl,long nh)
-{
- char *v;
-
- v=(char *)malloc((unsigned) (nh-nl+1));
- if (!v)
- exit_with_msg_and_exit_code("Memory allocation failure in string()",MEMORY_ALLOCATION_ERROR_IN_STRING);
-
- return v-nl;
-}
-
-unsigned char *ustring(long nl,long nh)
-{
- unsigned char *v;
-
- v=(unsigned char *)malloc((size_t) (sizeof(unsigned char)* (nh-nl+1)));
- if (!v) {
- fprintf(stderr,"Can't allocate %ld bytes\n",nh-nl+1);
- while(1)
- {
- }
- exit_with_msg_and_exit_code("Memory allocation failure in ustring()",MEMORY_ALLOCATION_ERROR_IN_USTRING);
- }
- return v-nl;
-}
-
-void free_string(char *v, long nl, long nh)
-/* free a string allocated with string() */
-{
- if(nh <= nl)
- exit_with_msg_and_exit_code("nh <= nl in free_string()",SILLY_ARGUMENTS_IN_FREE_STRING);
- free((FREE_ARG) (v+nl));
-}
-
-void free_ustring(unsigned char *v, long nl, long nh)
-/* free a string allocated with ustring() */
-{
- if(nh <= nl)
- exit_with_msg_and_exit_code("nh <= nl in free_ustring()",SILLY_ARGUMENTS_IN_FREE_USTRING);
- free((FREE_ARG) (v+nl));
-}
-
-
-/* allocate a signed char matrix with subscript range m[nrl..nrh][ncl..nch] */
-signed char **scmatrix(long nrl, long nrh, long ncl, long nch)
-{
- long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
- signed char **m;
- /* allocate pointers to rows */
- m=(signed char **) malloc((size_t)((nrow+NR_END)*sizeof(signed char*)));
- if (!m)
- exit_with_msg_and_exit_code("Memory allocation failure #1 in scmatrix()",MEMORY_ALLOCATION_ERROR_IN_SCMATRIX);
- m += NR_END;
- m -= nrl;
-
- /* allocate rows and set pointers to them */
- m[nrl]=(signed char *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(signed char)));
- if (!m[nrl])
- exit_with_msg_and_exit_code("Memory allocation failure #2 in ucmatrix()",MEMORY_ALLOCATION_ERROR_IN_UCMATRIX);
-
- m[nrl] += NR_END;
- m[nrl] -= ncl;
-
- for(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;
-
- /* return pointer to array of pointers to rows */
- return m;
-}
-
-
-/* allocate a unsigned char matrix with subscript range m[nrl..nrh][ncl..nch] */
-unsigned char **ucmatrix(long nrl, long nrh, long ncl, long nch)
-{
- long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
- unsigned char **m;
- /* allocate pointers to rows */
- m=(unsigned char **) malloc((size_t)((nrow+NR_END)*sizeof(unsigned char*)));
- if (!m)
- exit_with_msg_and_exit_code("Memory allocation failure #1 in scmatrix()",MEMORY_ALLOCATION_ERROR_IN_UCMATRIX);
- m += NR_END;
- m -= nrl;
-
- /* allocate rows and set pointers to them */
- m[nrl]=(unsigned char *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(unsigned char)));
- if (!m[nrl])
- exit_with_msg_and_exit_code("Memory allocation failure #2 in ucmatrix()",MEMORY_ALLOCATION_ERROR_IN_UCMATRIX);
-
- m[nrl] += NR_END;
- m[nrl] -= ncl;
-
- for(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;
-
- /* return pointer to array of pointers to rows */
- return m;
-}
-
-
-/* free a signed char matrix allocated by cmatrix() */
-void free_scmatrix(signed char **m, long nrl, long nrh, long ncl, long nch)
-{
- if(nrh <= nrl)
- exit_with_msg_and_exit_code("nrh <= nrl in free_scmatrix()",SILLY_ARGUMENTS_IN_FREE_SCMATRIX);
- if(nch <= ncl)
- exit_with_msg_and_exit_code("nch <= ncl in free_scmatrix()",SILLY_ARGUMENTS_IN_FREE_SCMATRIX);
- free((FREE_ARG) (m[nrl]+ncl-NR_END));
- free((FREE_ARG) (m+nrl-NR_END));
-}
-
-
-/* free a unsigned char matrix allocated by ucmatrix() */
-void free_ucmatrix(unsigned char **m, long nrl, long nrh, long ncl, long nch)
-{
- if(nrh <= nrl)
- exit_with_msg_and_exit_code("nrh <= nrl in free_ucmatrix()",SILLY_ARGUMENTS_IN_FREE_UCMATRIX);
- if(nch <= ncl)
- exit_with_msg_and_exit_code("nch <= ncl in free_ucmatrix()",SILLY_ARGUMENTS_IN_FREE_UCMATRIX);
- free((FREE_ARG) (m[nrl]+ncl-NR_END));
- free((FREE_ARG) (m+nrl-NR_END));
-}
-
-double **dmatrix(long nrl, long nrh, long ncl, long nch)
-/* allocate a double matrix with subscript range m[nrl..nrh][ncl..nch] */
-{
- long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
- double **m;
-
- /* allocate pointers to rows */
- m=(double **) malloc((size_t)((nrow+NR_END)*sizeof(double*)));
- if (!m)
- exit_with_msg_and_exit_code("Memory allocation error #1 in dmatrix()",MEMORY_ALLOCATION_ERROR_IN_DMATRIX);
- m += NR_END;
- m -= nrl;
-
- /* allocate rows and set pointers to them */
- m[nrl]=(double *) malloc((size_t)((nrow*ncol+NR_END)*sizeof(double)));
- if (!m[nrl])
- exit_with_msg_and_exit_code("Memory allocation error #2 in dmatrix()",MEMORY_ALLOCATION_ERROR_IN_DMATRIX);
- m[nrl] += NR_END;
- m[nrl] -= ncl;
-
- for(i=nrl+1;i<=nrh;i++) m[i]=m[i-1]+ncol;
-
- /* return pointer to array of pointers to rows */
- return m;
-}
-
-
-void free_dvector(double *v, long nl, long nh)
-/* free a double vector allocated with dvector() */
-{
- if(nh <= nl)
- exit_with_msg_and_exit_code("nh is <= nl in call to free_dvector",SILLY_ARGUMENTS_IN_FREE_DVECTOR);
- free((FREE_ARG) (v+nl-NR_END));
-}
-
-void free_dmatrix(double **m, long nrl, long nrh, long ncl, long nch)
-/* free a double matrix allocated by dmatrix() */
-{
- if(nrh <= nrl)
- exit_with_msg_and_exit_code("nhh is <= nl in call to free_dmatrix",SILLY_ARGUMENTS_IN_FREE_DMATRIX);
- if(nch <= ncl)
- exit_with_msg_and_exit_code("nch is <= nl in call to free_dmatrix",SILLY_ARGUMENTS_IN_FREE_DMATRIX);
- free((FREE_ARG) (m[nrl]+ncl-NR_END));
- free((FREE_ARG) (m+nrl-NR_END));
-}
-
-void free_cx(char **m, long nrl, long nrh, long ncl, long nch)
-/* free a char matrix allocated by cmatrix() */
-{
- if(nrh <= nrl)
- exit_with_msg_and_exit_code("nrh is <= nrl in call to free_charmatrix",SILLY_ARGUMENTS_IN_FREE_CMATRIX);
- if(nch <= ncl)
- exit_with_msg_and_exit_code("nch is <= ncl in call to free_charmatrix",SILLY_ARGUMENTS_IN_FREE_CMATRIX);
- free((FREE_ARG) (m[nrl]+ncl-NR_END));
- free((FREE_ARG) (m+nrl-NR_END));
-}
-
-double *dvector(long nl, long nh)
-/* allocate a double vector with subscript range v[nl..nh] */
-{
- double *v;
- v=(double *)malloc((size_t) ((nh-nl+1+NR_END)*sizeof(double)));
- if (!v)
- exit_with_msg_and_exit_code("Memory allocation error in dvector()",MEMORY_ALLOCATION_ERROR_IN_DVECTOR);
- return v-nl+NR_END;
-}
-
+++ /dev/null
-
-#include "config.h"
-#include "definitions.h"
-
-void print_copyright(const char *s)
-{
- printf("Copyright (C) %s. Dr. David Kirkby, PhD (G8WRB).\n",s);
- printf("Dr. David Kirkby, e-mail drkirkby at ntlworld.com \n");
- printf("Stokes Hall Lodge, Burnham Road, Althorne, Essex, CM3 6DT, UK.\n\n");
-
- printf("This program is free software; you can redistribute it and/or\n");
- printf("modify it under the terms of the GNU General Public License\n");
- printf("as published by the Free Software Foundation; either package_version 2\n");
- printf("of the License, or (at your option) any later package_version.\n\n");
-
- printf("This program is distributed in the hope that it will be useful,\n");
- printf("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
- printf("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n");
- printf("GNU General Public License, printed below, for more details.\n\n");
-
-
- printf(" GNU GENERAL PUBLIC LICENSE\n");
- printf(" Package_version 2, June 1991\n\n");
- printf(" Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n");
- printf(" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n");
- printf(" Everyone is permitted to copy and distribute verbatim copies\n");
- printf(" of this license document, but changing it is not allowed.\n\n");
- printf(" Preamble\n");
- printf(" The licenses for most software are designed to take away your\n");
- printf("freedom to share and change it. By contrast, the GNU General Public\n");
- printf("License is intended to guarantee your freedom to share and change free\n");
- printf("software--to make sure the software is free for all its users. This\n");
- printf("General Public License applies to most of the Free Software\n");
- printf("Foundation's software and to any other program whose authors commit to\n");
- printf("using it. (Some other Free Software Foundation software is covered by\n");
- printf("the GNU Library General Public License instead.) You can apply it to\n");
- printf("your programs, too.\n\n");
-
- printf(" When we speak of free software, we are referring to freedom, not\n");
- printf("price. Our General Public Licenses are designed to make sure that you\n");
- printf("have the freedom to distribute copies of free software (and charge for\n");
- printf("this service if you wish), that you receive source code or can get it\n");
- printf("if you want it, that you can change the software or use pieces of it\n");
- printf("in new free programs; and that you know you can do these things.\n\n");
-
- printf(" To protect your rights, we need to make restrictions that forbid\n");
- printf("anyone to deny you these rights or to ask you to surrender the rights.\n");
- printf("These restrictions translate to certain responsibilities for you if you\n");
- printf("distribute copies of the software, or if you modify it.\n\n");
-
- printf(" For example, if you distribute copies of such a program, whether\n");
- printf("gratis or for a fee, you must give the recipients all the rights that\n");
- printf("you have. You must make sure that they, too, receive or can get the\n");
- printf("source code. And you must show them these terms so they know their\n");
- printf("rights.\n");
- printf("\n");
- printf(" We protect your rights with two steps: (1) copyright the software, and\n");
- printf("(2) offer you this license which gives you legal permission to copy,\n");
- printf("distribute and/or modify the software.\n");
- printf("\n");
- printf(" Also, for each author's protection and ours, we want to make certain\n");
- printf("that everyone understands that there is no warranty for this free\n");
- printf("software. If the software is modified by someone else and passed on, we\n");
- printf("want its recipients to know that what they have is not the original, so\n");
- printf("that any problems introduced by others will not reflect on the original\n");
- printf("authors' reputations.\n");
- printf("\n");
- printf(" Finally, any free program is threatened constantly by software\n");
- printf("patents. We wish to avoid the danger that redistributors of a free\n");
- printf("program will individually obtain patent licenses, in effect making the\n");
- printf("program proprietary. To prevent this, we have made it clear that any\n");
- printf("patent must be licensed for everyone's free use or not licensed at all.\n");
- printf("\n");
- printf(" The precise terms and conditions for copying, distribution and\n");
- printf("modification follow.\n");
- printf("\f\n");
- printf(" GNU GENERAL PUBLIC LICENSE\n");
- printf(" TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n");
- printf("\n");
- printf(" 0. This License applies to any program or other work which contains\n");
- printf("a notice placed by the copyright holder saying it may be distributed\n");
- printf("under the terms of this General Public License. The \"Program\", below,\n");
- printf("refers to any such program or work, and a \"work based on the Program\"\n");
- printf("means either the Program or any derivative work under copyright law:\n");
- printf("that is to say, a work containing the Program or a portion of it,\n");
- printf("either verbatim or with modifications and/or translated into another\n");
- printf("language. (Hereinafter, translation is included without limitation in\n");
- printf("the term \"modification\".) Each licensee is addressed as \"you\".\n");
- printf("\n");
- printf("Activities other than copying, distribution and modification are not\n");
- printf("covered by this License; they are outside its scope. The act of\n");
- printf("running the Program is not restricted, and the output from the Program\n");
- printf("is covered only if its contents constitute a work based on the\n");
- printf("Program (independent of having been made by running the Program).\n");
- printf("Whether that is true depends on what the Program does.\n");
- printf("\n");
- printf(" 1. You may copy and distribute verbatim copies of the Program's\n");
- printf("source code as you receive it, in any medium, provided that you\n");
- printf("conspicuously and appropriately publish on each copy an appropriate\n");
- printf("copyright notice and disclaimer of warranty; keep intact all the\n");
- printf("notices that refer to this License and to the absence of any warranty;\n");
- printf("and give any other recipients of the Program a copy of this License\n");
- printf("along with the Program.\n");
- printf("\n");
- printf("You may charge a fee for the physical act of transferring a copy, and\n");
- printf("you may at your option offer warranty protection in exchange for a fee.\n");
- printf("\n");
- printf(" 2. You may modify your copy or copies of the Program or any portion\n");
- printf("of it, thus forming a work based on the Program, and copy and\n");
- printf("distribute such modifications or work under the terms of Section 1\n");
- printf("above, provided that you also meet all of these conditions:\n");
- printf("\n");
- printf(" a) You must cause the modified files to carry prominent notices\n");
- printf(" stating that you changed the files and the date of any change.\n");
- printf("\n");
- printf(" b) You must cause any work that you distribute or publish, that in\n");
- printf(" whole or in part contains or is derived from the Program or any\n");
- printf(" part thereof, to be licensed as a whole at no charge to all third\n");
- printf(" parties under the terms of this License.\n");
- printf("\n");
- printf(" c) If the modified program normally reads commands interactively\n");
- printf(" when run, you must cause it, when started running for such\n");
- printf(" interactive use in the most ordinary way, to print or display an\n");
- printf(" announcement including an appropriate copyright notice and a\n");
- printf(" notice that there is no warranty (or else, saying that you provide\n");
- printf(" a warranty) and that users may redistribute the program under\n");
- printf(" these conditions, and telling the user how to view a copy of this\n");
- printf(" License. (Exception: if the Program itself is interactive but\n");
- printf(" does not normally print such an announcement, your work based on\n");
- printf(" the Program is not required to print an announcement.)\n");
- printf("\f\n");
- printf("These requirements apply to the modified work as a whole. If\n");
- printf("identifiable sections of that work are not derived from the Program,\n");
- printf("and can be reasonably considered independent and separate works in\n");
- printf("themselves, then this License, and its terms, do not apply to those\n");
- printf("sections when you distribute them as separate works. But when you\n");
- printf("distribute the same sections as part of a whole which is a work based\n");
- printf("on the Program, the distribution of the whole must be on the terms of\n");
- printf("this License, whose permissions for other licensees extend to the\n");
- printf("entire whole, and thus to each and every part regardless of who wrote it.\n");
- printf("\n");
- printf("Thus, it is not the intent of this section to claim rights or contest\n");
- printf("your rights to work written entirely by you; rather, the intent is to\n");
- printf("exercise the right to control the distribution of derivative or\n");
- printf("collective works based on the Program.\n");
- printf("\n");
- printf("In addition, mere aggregation of another work not based on the Program\n");
- printf("with the Program (or with a work based on the Program) on a volume of\n");
- printf("a storage or distribution medium does not bring the other work under\n");
- printf("the scope of this License.\n");
- printf("\n");
- printf(" 3. You may copy and distribute the Program (or a work based on it,\n");
- printf("under Section 2) in object code or executable form under the terms of\n");
- printf("Sections 1 and 2 above provided that you also do one of the following:\n");
- printf("\n");
- printf(" a) Accompany it with the complete corresponding machine-readable\n");
- printf(" source code, which must be distributed under the terms of Sections\n");
- printf(" 1 and 2 above on a medium customarily used for software interchange; or,\n");
- printf("\n");
- printf(" b) Accompany it with a written offer, valid for at least three\n");
- printf(" years, to give any third party, for a charge no more than your\n");
- printf(" cost of physically performing source distribution, a complete\n");
- printf(" machine-readable copy of the corresponding source code, to be\n");
- printf(" distributed under the terms of Sections 1 and 2 above on a medium\n");
- printf(" customarily used for software interchange; or,\n");
- printf("\n");
- printf(" c) Accompany it with the information you received as to the offer\n");
- printf(" to distribute corresponding source code. (This alternative is\n");
- printf(" allowed only for noncommercial distribution and only if you\n");
- printf(" received the program in object code or executable form with such\n");
- printf(" an offer, in accord with Subsection b above.)\n");
- printf("\n");
- printf("The source code for a work means the preferred form of the work for\n");
- printf("making modifications to it. For an executable work, complete source\n");
- printf("code means all the source code for all modules it contains, plus any\n");
- printf("associated interface definition files, plus the scripts used to\n");
- printf("control compilation and installation of the executable. However, as a\n");
- printf("special exception, the source code distributed need not include\n");
- printf("anything that is normally distributed (in either source or binary\n");
- printf("form) with the major components (compiler, kernel, and so on) of the\n");
- printf("operating system on which the executable runs, unless that component\n");
- printf("itself accompanies the executable.\n");
- printf("\n");
- printf("If distribution of executable or object code is made by offering\n");
- printf("access to copy from a designated place, then offering equivalent\n");
- printf("access to copy the source code from the same place counts as\n");
- printf("distribution of the source code, even though third parties are not\n");
- printf("compelled to copy the source along with the object code.\n");
- printf("\f\n");
- printf(" 4. You may not copy, modify, sublicense, or distribute the Program\n");
- printf("except as expressly provided under this License. Any attempt\n");
- printf("otherwise to copy, modify, sublicense or distribute the Program is\n");
- printf("void, and will automatically terminate your rights under this License.\n");
- printf("However, parties who have received copies, or rights, from you under\n");
- printf("this License will not have their licenses terminated so long as such\n");
- printf("parties remain in full compliance.\n");
- printf("\n");
- printf(" 5. You are not required to accept this License, since you have not\n");
- printf("signed it. However, nothing else grants you permission to modify or\n");
- printf("distribute the Program or its derivative works. These actions are\n");
- printf("prohibited by law if you do not accept this License. Therefore, by\n");
- printf("modifying or distributing the Program (or any work based on the\n");
- printf("Program), you indicate your acceptance of this License to do so, and\n");
- printf("all its terms and conditions for copying, distributing or modifying\n");
- printf("the Program or works based on it.\n");
- printf("\n");
- printf(" 6. Each time you redistribute the Program (or any work based on the\n");
- printf("Program), the recipient automatically receives a license from the\n");
- printf("original licensor to copy, distribute or modify the Program subject to\n");
- printf("these terms and conditions. You may not impose any further\n");
- printf("restrictions on the recipients' exercise of the rights granted herein.\n");
- printf("You are not responsible for enforcing compliance by third parties to\n");
- printf("this License.\n");
- printf("\n");
- printf(" 7. If, as a consequence of a court judgment or allegation of patent\n");
- printf("infringement or for any other reason (not limited to patent issues),\n");
- printf("conditions are imposed on you (whether by court order, agreement or\n");
- printf("otherwise) that contradict the conditions of this License, they do not\n");
- printf("excuse you from the conditions of this License. If you cannot\n");
- printf("distribute so as to satisfy simultaneously your obligations under this\n");
- printf("License and any other pertinent obligations, then as a consequence you\n");
- printf("may not distribute the Program at all. For example, if a patent\n");
- printf("license would not permit royalty-free redistribution of the Program by\n");
- printf("all those who receive copies directly or indirectly through you, then\n");
- printf("the only way you could satisfy both it and this License would be to\n");
- printf("refrain entirely from distribution of the Program.\n");
- printf("\n");
- printf("If any portion of this section is held invalid or unenforceable under\n");
- printf("any particular circumstance, the balance of the section is intended to\n");
- printf("apply and the section as a whole is intended to apply in other\n");
- printf("circumstances.\n");
- printf("\n");
- printf("It is not the purpose of this section to induce you to infringe any\n");
- printf("patents or other property right claims or to contest validity of any\n");
- printf("such claims; this section has the sole purpose of protecting the\n");
- printf("integrity of the free software distribution system, which is\n");
- printf("implemented by public license practices. Many people have made\n");
- printf("generous contributions to the wide range of software distributed\n");
- printf("through that system in reliance on consistent application of that\n");
- printf("system; it is up to the author/donor to decide if he or she is willing\n");
- printf("to distribute software through any other system and a licensee cannot\n");
- printf("impose that choice.\n");
- printf("\n");
- printf("This section is intended to make thoroughly clear what is believed to\n");
- printf("be a consequence of the rest of this License.\n");
- printf("\f\n");
- printf(" 8. If the distribution and/or use of the Program is restricted in\n");
- printf("certain countries either by patents or by copyrighted interfaces, the\n");
- printf("original copyright holder who places the Program under this License\n");
- printf("may add an explicit geographical distribution limitation excluding\n");
- printf("those countries, so that distribution is permitted only in or among\n");
- printf("countries not thus excluded. In such case, this License incorporates\n");
- printf("the limitation as if written in the body of this License.\n");
- printf("\n");
- printf(" 9. The Free Software Foundation may publish revised and/or new versions\n");
- printf("of the General Public License from time to time. Such new versions will\n");
- printf("be similar in spirit to the present package_version, but may differ in detail to\n");
- printf("address new problems or concerns.\n");
- printf("\n");
- printf("Each package_version is given a distinguishing package_version number. If the Program\n");
- printf("specifies a package_version number of this License which applies to it and \"any\n");
- printf("later package_version\", you have the option of following the terms and conditions\n");
- printf("either of that package_version or of any later package_version published by the Free\n");
- printf("Software Foundation. If the Program does not specify a package_version number of\n");
- printf("this License, you may choose any package_version ever published by the Free Software\n");
- printf("Foundation.\n");
- printf("\n");
- printf(" 10. If you wish to incorporate parts of the Program into other free\n");
- printf("programs whose distribution conditions are different, write to the author\n");
- printf("to ask for permission. For software which is copyrighted by the Free\n");
- printf("Software Foundation, write to the Free Software Foundation; we sometimes\n");
- printf("make exceptions for this. Our decision will be guided by the two goals\n");
- printf("of preserving the free status of all derivatives of our free software and\n");
- printf("of promoting the sharing and reuse of software generally.\n");
- printf("\n");
- printf(" NO WARRANTY\n");
- printf("\n");
- printf(" 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\n");
- printf("FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\n");
- printf("OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\n");
- printf("PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\n");
- printf("OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n");
- printf("MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\n");
- printf("TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\n");
- printf("PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\n");
- printf("REPAIR OR CORRECTION.\n");
- printf("\n");
- printf(" 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n");
- printf("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\n");
- printf("REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\n");
- printf("INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\n");
- printf("OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\n");
- printf("TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\n");
- printf("YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\n");
- printf("PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\n");
- printf("POSSIBILITY OF SUCH DAMAGES.\n");
- printf("\n");
- printf(" END OF TERMS AND CONDITIONS\n");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#include "definitions.h"
-
-/* The following simple function just prints data into a file, or if
-fp-stout, to the screen. Depending on whether the dielectric is mixed or
-not, it is or is not possible to quote a value for Er. If Er is passed
-as a mumber < 0, this function interprets that as meaning that the
-dielectric is mixed, and says 'Er= MIXED' */
-
-void print_data_for_directional_couplers(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name)
-{
- if(data.display==Z_ODD_SINGLE_DIELECTRIC)
- {
- if(data.verbose_level ==1)
- fprintf(where_to_print_fp,"%s 3 Er_odd= %6.2f Er_even= %s Zodd= %7.3f Zeven= %s Zo= %s Zdiff= %6.2f Zcomm= %s Ohms VERSION=%s\n",inputfile_name,data.Er_odd, "??????", data.Zodd, "??????","??????",data.Zdiff, "??????", PACKAGE_VERSION);
- else if (data.verbose_level >=2)
- fprintf(where_to_print_fp,"%s 3 Er_odd= %6.2f Er_even= %s Zodd= %7.3f Zeven= %s Zo= %s Zdiff= %6.2f Zcomm= %s Ohms VERSION=%s\n",inputfile_name,data.Er_odd, "??????", data.Zodd, "??????","??????",data.Zdiff, "??????", PACKAGE_VERSION);
- }
- else if(data.display == Z_EVEN_SINGLE_DIELECTRIC)
- {
- if(data.verbose_level ==1)
- fprintf(where_to_print_fp,"%s 3 Er_odd= %7.3f Er_even= %7.3f Zodd= %7.3f Zeven= %7.3f Zo= %7.3f Zdiff= %7.3f Zcomm= %7.3f Ohms VERSION=%s\n",inputfile_name,data.Er_odd, data.Er_even, data.Zodd, data.Zeven, data.Zo,data.Zdiff, data.Zcomm, PACKAGE_VERSION);
- else if (data.verbose_level >=2)
- fprintf(where_to_print_fp,"%s 3 Er_odd= %7.3f Er_even= %7.3f Zodd= %7.3f Zeven= %7.3f Zo= %7.3f Zdiff= %7.3f Zcomm= %7.3f Ohms VERSION=%s\n",inputfile_name,data.Er_odd, data.Er_even, data.Zodd, data.Zeven, data.Zo,data.Zdiff, data.Zcomm, PACKAGE_VERSION);
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#include "definitions.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-/* The following simple function just prints data into a file, or if
-fp-stout, to the screen. Depending on whether the dielectric is mixed or
-not, it is or is not possible to quote a value for Er. If Er is passed
-as a mumber < 0, this function interprets that as meaning that the
-dielectric is mixed, and says 'Er= MIXED' */
-
-void print_data_for_two_conductor_lines(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name)
-{
- if(data.verbose_level <2)
- fprintf(where_to_print_fp,"%s 2 Er= %5.2f Zo= %7.3f Ohms C= %6.1f pF/m L= %6.1f nH/m v= %.4g m/s v_f= %.3f VERSION= %s\n",inputfile_name,data.Er, data.Zo,data.C*1e12, data.L_vacuum*1e9, data.velocity,data.velocity_factor,PACKAGE_VERSION);
- else
- fprintf(where_to_print_fp,"%s 2 Er= %16.13f Zo= %16.13f Ohms C= %16.13f pF/m L= %16.13f nH/m v= %16.13g m/s v_f= %16.13f VERSION= %s\n",inputfile_name,data.Er, data.Zo,data.C*1e12, data.L_vacuum*1e9, data.velocity,data.velocity_factor,PACKAGE_VERSION);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-unsigned char *bmp_buff;
-
-/* We make the bitmap header public, as we write it back
-later, when saving bmp files. It saves a lot of hassle,
-just writing what we read back, rather than correctly
-calculating all the data in the header correctly */
-
-/* #define DEBUG */
-
-#define BITMAP_HEADER_SIZE 0x36 /* 54 */
-
-void read_bitmap_file_headers(char *filename, int *offset, size_t *size, int *width, int *height)
-{
- FILE *fp;
-
- struct Bitmap_File_Head_Struct Bitmap_File_Head;
- struct Bitmap_Head_Struct Bitmap_Head;
- int ColormapSize, Maps;
- int length_of_file; /* Appently Photoshop versions < 7.01
- don't write this into Bitmap_Head.biSizeIm
- so it causes a problem. So we will work out
- the length by seeking to the end of the file
- and finding the position of the file
- pointer */
-
- bmp_buff=ustring(0,BITMAP_HEADER_SIZE);
- if(strcmp(filename,"-")==0)
- {
- fp=stdin;
- }
- else
- fp=fopen(filename,"rb");
-
- if(fp==NULL)
- {
- fprintf(stderr,"cannot open %s\n", filename);
- exit_with_msg_and_exit_code("",CANT_OPEN_FILE_FOR_READING);
- }
-
- /* deternine the length of the file, as its not always
- written into the bitmap. I thought it needed to be, but
- apparently it does not and photoshop versions < 7.01
- don't do it. */
- if( fseek(fp, 0, SEEK_END) == -1)
- {
- fprintf(stderr," Can't seek to the end of the file in read_bitmap_file_headers.c\n");
- exit(FSEEK_FAILURE);
- }
- if( (length_of_file=ftell(fp)) == -1)
- exit_with_msg_and_exit_code("Can't find length of file in read_bitmap_file_headers.c",FTELL_FAILURE);
-
- if( (fseek(fp, 0, SEEK_SET) ) == -1)
- {
- fprintf(stderr," Can't seek to the beggining of the file in read_bitmap_file_headers.c\n");
- exit(FSEEK_FAILURE);
- }
- /* Read the .bmp file header into a bmp_buff */
- if (!(fread(bmp_buff, 1,BITMAP_HEADER_SIZE,fp))||(strncmp((char *) bmp_buff,"BM",2)))
- {
- fprintf(stderr,"%s is not a valid BMP file\n", filename);
- exit_with_msg_and_exit_code("",NOT_A_VALID_BITMAP_FILE);
- }
-
-/* On most machines, sizeof(short)==2 and sizeof(int)==4. This is so no matter
-if the machine is 32 or 64 bis. An exception is the Cray Y-MP, which has
-sizeof(short)=8
-sizeof(int)=8
-sizeof(long)=8.
-
-In this case, it is much more difficult to write the header for the bitmap. But in
-the aid of portability, this is done. So these is a section of code that will work
-even if sizeof(short)=8 and sizeof(int)=8. See below for that. */
-
-
- /* Read the bmp_buff into the two structures we want */
-
- Bitmap_File_Head.zzMagic[0x0] = bmp_buff[0];
- Bitmap_File_Head.zzMagic[0x1] = bmp_buff[1];
- Bitmap_File_Head.bfSize = bmp_buff[0x2] + ((bmp_buff[3] + ((bmp_buff[4] + (bmp_buff[5] << 8)) << 8)) <<8);
- Bitmap_File_Head.zzHotX = bmp_buff[0x6] + (bmp_buff[7] << 8);
- Bitmap_File_Head.zzHotY = bmp_buff[0x8] + (bmp_buff[0x09] << 8);
- Bitmap_File_Head.bfOffs = bmp_buff[0x0a] + ((bmp_buff[0xb] + ((bmp_buff[0xc] + (bmp_buff[0x0d] << 8)) << 8)) <<8);
- Bitmap_File_Head.biSize = bmp_buff[0x0E] + ((bmp_buff[0x0f] + ((bmp_buff[0x10] + (bmp_buff[0x11] << 8)) << 8)) <<8);
-#ifdef DEBUG
- printf("Bitmap_File_Head.bfSize = %d \n",Bitmap_File_Head.bfSize);
- printf("Bitmap_File_Head.zzHotX = %d\n",Bitmap_File_Head.zzHotX);
- printf("Bitmap_File_Head.zzHotY = %d\n",Bitmap_File_Head.zzHotY);
- printf("Bitmap_File_Head.bfOffs = %d\n",Bitmap_File_Head.bfOffs);
- printf("Bitmap_File_Head.biSize = %d\n\n",Bitmap_File_Head.biSize);
-#endif
-
- Bitmap_Head.biWidth=bmp_buff[0x12] + ((bmp_buff[0x13] + ((bmp_buff[0x14] + (bmp_buff[0x15] << 8)) << 8)) <<8);
- Bitmap_Head.biHeight=bmp_buff[0x16] + ((bmp_buff[0x17] + ((bmp_buff[0x18] + (bmp_buff[0x19] << 8)) << 8)) <<8);
- Bitmap_Head.biPlanes = bmp_buff[0x1A] + (bmp_buff[0x1b] << 8);
- Bitmap_Head.biBitCnt = bmp_buff[0x1C] + (bmp_buff[0x1d] << 8);
- Bitmap_Head.biCompr= bmp_buff[0x1E] + ((bmp_buff[0x1f] + ((bmp_buff[0x20] + (bmp_buff[0x21] << 8)) << 8)) <<8);
- Bitmap_Head.biSizeIm=bmp_buff[0x22] + ((bmp_buff[0x23] + ((bmp_buff[0x24] + (bmp_buff[0x25] << 8)) << 8)) <<8);
- /* I thought the length of the image was always stored in Bitmap_Head.biSizeIm, but
- this appears not to be so. Hence it is now calculated from the length of the file
- */
- Bitmap_Head.biSizeIm=length_of_file-BITMAP_HEADER_SIZE;
- Bitmap_Head.biXPels = bmp_buff[0x26] + ((bmp_buff[0x27] + ((bmp_buff[0x28] + (bmp_buff[0x29] << 8)) << 8)) <<8);
- Bitmap_Head.biYPels= bmp_buff[0x2A] + ((bmp_buff[0x2b] + ((bmp_buff[0x2c] + (bmp_buff[0x2d] << 8)) << 8)) <<8);
- Bitmap_Head.biClrUsed = bmp_buff[0x2E] + ((bmp_buff[0x2f] + ((bmp_buff[0x30] + (bmp_buff[0x31] << 8)) << 8)) <<8);
- Bitmap_Head.biClrImp = bmp_buff[0x32] + ((bmp_buff[0x33] + ((bmp_buff[0x34] + (bmp_buff[0x35] << 8)) << 8)) <<8);
-
- Maps=4;
- if(Bitmap_Head.biBitCnt!=24)
- {
- fprintf(stderr,"Sorry, the .bmp bitmap must have 24 bits per colour,\n");
- fprintf(stderr,"but it has %d bits. Resave the \n",Bitmap_Head.biBitCnt);
- fprintf(stderr,"image using 24-bit colour\n");
- exit_with_msg_and_exit_code("mage using 24-bit colour",BITMAP_NOT_24_BIT);
- }
-#ifdef DEBUG
- printf("Bitmap_Head.biWidth =%d =0x%x\n",Bitmap_Head.biWidth,Bitmap_Head.biWidth);
- printf("Bitmap_Head.biHeight =%d =0x%x\n",Bitmap_Head.biHeight,Bitmap_Head.biHeight);
- printf("Bitmap_Head.biPlanes =%d =0x%x\n",Bitmap_Head.biPlanes,Bitmap_Head.biPlanes);
- printf("Bitmap_Head.biBitCnt =%d =0x%x\n",Bitmap_Head.biBitCnt,Bitmap_Head.biBitCnt);
- printf("Bitmap_Head.biCompr =%d =0x%x\n",Bitmap_Head.biCompr,Bitmap_Head.biCompr );
- printf("Bitmap_Head.biSizeIm =%d =0x%x\n",Bitmap_Head.biSizeIm,Bitmap_Head.biSizeIm);
- printf("size by ftell=%d\n", length_of_file);
- printf("Bitmap_Head.biXPels =%d =0x%x\n",Bitmap_Head.biXPels,Bitmap_Head.biXPels);
- printf("Bitmap_Head.biYPels =%d =0x%x\n",Bitmap_Head.biYPels,Bitmap_Head.biYPels);
- printf("Bitmap_Head.biClrUsed =%d =0x%x\n",Bitmap_Head.biClrUsed,Bitmap_Head.biClrUsed);
- printf("Bitmap_Head.biClrImp =%d =0x%x\n",Bitmap_Head.biClrImp,Bitmap_Head.biClrImp);
-#endif
- ColormapSize = (Bitmap_File_Head.bfOffs - Bitmap_File_Head.biSize - 14) / Maps;
-
- if ((Bitmap_Head.biClrUsed == 0) && (Bitmap_Head.biBitCnt <= 8))
- Bitmap_Head.biClrUsed = ColormapSize;
-
- /* Sanity checks */
-
- if (Bitmap_Head.biHeight == 0 || Bitmap_Head.biWidth == 0)
- {
- fprintf(stderr,"error reading BMP file header of %s - width or height is zero\n",filename);
- exit_with_msg_and_exit_code("",WIDTH_OR_HEIGHT_ZERO_IN_BITMAP);
- }
- if (Bitmap_Head.biPlanes != 1)
- {
- fprintf(stderr,"error reading BMP file header of %s - bitplanes not equal to 1\n",filename);
- exit_with_msg_and_exit_code("",BITPLANES_NOT_1_IN_BITMAP);
- }
- if (ColormapSize > 256 || Bitmap_Head.biClrUsed > 256)
- {
- fprintf(stderr,"error reading BMP file header of %s - colourmap size error\n",filename);
- exit_with_msg_and_exit_code("",COLOURMAP_GREATER_THAN_256);
- }
- /* Windows and OS/2 declare filler so that rows are a multiple of
- word length (32 bits == 4 bytes)
- */
-
- /*fclose(fp); I'm not sure if this should be closed or not. Why did I ??? */
- *width=Bitmap_Head.biWidth;
- *height=Bitmap_Head.biHeight;
- *offset=Bitmap_File_Head.bfOffs;
- *size=Bitmap_Head.biSizeIm;
- if( *size < 3 * (*width) * (*height) )
- {
- fprintf(stderr,"Internal error in read_bitmap_file_headers.c\n");
- exit(1);
- }
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-#ifdef WINDOWS
-#pragma hrdstop
-#include <condefs.h>
-#endif
-
-int main(int argc, char **argv)
-{
- FILE *fp;
- double *data, x;
- int q;
- int one=0, zero=0, minusone=0, other=0, length=0, i, reverse=0;
- int metal_er=0;
- while((q=get_options(argc,argv,"Cr")) != -1)
- switch (q)
- {
- case 'C':
- print_copyright("2002");
- exit_with_msg_and_exit_code("",OKAY);
- break;
- case 'r':
- reverse=1;
- break;
- case '?':
- usage_readbin();
- }
- if(argc-my_optind == 1)
- {
- fp=fopen(argv[my_optind],"rb");
- if (fp==NULL)
- {
- fprintf(stderr,"Can't open %s for reading\n",argv[my_optind]);
- exit_with_msg_and_exit_code("Can't open file for reading",CANT_OPEN_FILE_FOR_READING);
- }
- if (fseek(fp,0,SEEK_END) != 0)
- exit_with_msg_and_exit_code("failed to fseek in readbin.c #1", FSEEK_FAILURE);
- length=ftell(fp);
- printf("file length=%d bytes. There are %ld pixels\n", length, (long)
- length/sizeof(double));
- data=dvector(0,length);
- if( fseek(fp,0,SEEK_SET) != 0)
- exit_with_msg_and_exit_code("failed to fseek in readbin.c #2", FSEEK_FAILURE);
-
- if (fread(&(data[0]), (size_t) length, (size_t) 1,fp) != 1)
- exit_with_msg_and_exit_code("can't read all fo the file in readbin.c", CANT_READ_ALL_OF_FILE);
- for(i=0;i<length/sizeof(double);++i)
- {
- x=data[i];
- if(reverse==1)
- byteswap_doubles(&x);
- if (fabs(x) <= 1e-15)
- zero++;
- else if ( x > 0.9999999999 && x < 1.000000000000001)
- one++;
- else if (x < -0.9999999999 && x > -1.000000000000001)
- minusone++;
- else if (x == METAL_ER)
- metal_er++;
- else
- other++;
- }
- free_dvector(data,0L,(long) length);
- }
- else
- usage_readbin();
- return(OKAY);
-}
+++ /dev/null
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef SYS_TYPES_H
-#include <sys/types.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_TIME_H
-#include <time.h>
-#endif
-
-#include "definitions.h"
-
-
-void set_data_to_sensible_starting_values(struct transmission_line_properties *data)
-{
- /* Most of the values below are set to -3. This is so when they are unchanged,
- its easy to pick them up in a debugger. Others are set to important values
- rather than -3 */
- data->dielectrics_in_bitmap=0;
- data->dielectrics_on_command_line=0;
- data->r=1.9; /* For now at least, this is still global, so this has no effect XXX */
- data->image_fiddle_factor=IMAGE_FIDDLE_FACTOR;
- data->cutoff=0.0001;
- data->avoid_use_of_fast_convergence_methodQ=FALSE;
- data->the_single_Er=1.0;
- data->Er=1.0;
- data->found_this_dielectric=1.0;
- data->couplerQ=FALSE;
- data->verbose_level=0;
- data->should_binary_data_be_written_tooQ=FALSE;
- data->write_binary_field_imagesQ=TRUE;
- data->write_bitmap_field_imagesQ=TRUE;
-
- data->Lodd_vacuum=-3; data->Leven_vacuum=-3;
- data->L_vacuum=-3; data->Codd_vacuum=-3;
- data->Codd_vacuum=-3; data->Ceven_vacuum=-3;
- data->Lodd_vacuum=-3; data->Leven_vacuum=-3;
- data->display=-3;
- data->Zo=-3 ; data->Zo_vacuum=-3 ; data->Zodd_vacuum=-3;
- data->Zodd_vacuum=-3; data->Zeven_vacuum=-3;
- data->Zeven_vacuum=-3; data->Zdiff=-3; data->Zdiff_vacuum=-3;
- data->Zcomm=-3; data->Zcomm_vacuum=-3;
- data->velocity=-3; data->velocity_factor=-3;
- data->relative_permittivity=-3;
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* The function setup_arrays sets the type of a pixel to be dielectric,
-or metal. This routines refines that, setting the type of a pixel to be
-some number between 1 and 28 according to where it is located, and what
-is around it. See Green paper to understand what they mean */
-
-#include "config.h"
-#include "definitions.h"
-#include "exit_codes.h"
-
-extern int width, height;
-extern unsigned char **cell_type, **oddity;
-extern double **Er;
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-void set_oddity_value(void)
-{
- int i, j;
- double er, ERa, ERb, ERl, ERr;
- int cl, cr, ca, cb;
- unsigned char c;
-
- /* Its easier to set the endge values first, as it
- reduces the amount of checking needed in the main body.
- There are only 11 cases here - 3 types of metal,
- the four corners, and the four sides */
-
- for(i=0;i<width; ++i) {
- for(j=0;j<height;++j) {
-
- oddity[i][j]=UNDEFINED_ODDITY; /* Stick it to some underfined status */
-
- c=cell_type[i][j]; /* Cell type at point (i,j) */
-
-
- /* The 3 metal cases can be quickly checked and the
- oddity value assigned to a fixed value depending on
- whether it's -1, 0 or +1 V */
-
- if(c <= CONDUCTOR_PLUS_ONE_V ) /* a metal */
- oddity[i][j]=c;
-
-
- /* Now do the 4 courners */
- else if( (i == 0) && (j == height-1) )
- oddity[i][j]=BOTTOM_LEFT_CORNER;
-
- else if ( (i == width-1) && (j == height-1) )
- oddity[i][j]=BOTTOM_RIGHT_CORNER;
-
- else if( (i == 0) && (j == 0) )
- oddity[i][j]=TOP_LEFT_CORNER;
-
- else if( (i == width-1) && (j == 0) )
- oddity[i][j]=TOP_RIGHT_CORNER;
-
- /* Now the four edges */
- else if ( i == 0 )
- oddity[i][j]=ORDINARY_POINT_LEFT_EDGE;
-
- else if ( j == 0 )
- oddity[i][j]=ORDINARY_POINT_TOP_EDGE;
-
- else if ( j == height-1)
- oddity[i][j]=ORDINARY_POINT_BOTTOM_EDGE;
-
- else if ( i == width-1 )
- oddity[i][j]=ORDINARY_POINT_RIGHT_EDGE;
-
-
- else if ( (i == 0 || i == width-1 || j == 0 || j == height-1 ) && (oddity[i][j]==UNDEFINED_ODDITY)) {
- fprintf(stderr,"Internal error: one of the edge points (%d,%d) is still undefined\n",i,j);
- fprintf(stderr, "ZZZZZZZZZZZZZ width=%d height=%d\n", width, height);
- fprintf(stderr,"Error set_oddity_value.c\n");
- exit(INTERNAL_ERROR);
- }
- } /* end of for(j=0;j<height-0;++j) { */
- } /* end of for(i=0;i<width-0; ++i) { */
- /* With the oddity values of all the edges now know, the centre
- values can be attempted */
-
- for(i=1;i<width-1; ++i) {
- for(j=1;j<height-1;++j) {
-
- c=cell_type[i][j]; /* Cell type at point (i,j) */
- cl=cell_type[i-1][j]; /* Cell type to left of point (i,j) */
- cr=cell_type[i+1][j]; /* Cell type to right of point (i,j) */
- ca=cell_type[i][j-1]; /* Cell type above point (i,j) */
- cb=cell_type[i][j+1]; /* Cell type below point (i,j) */
-
- ERa=Er[i][j-1];
- ERb=Er[i][j+1];
- ERl=Er[i-1][j];
- ERr=Er[i+1][j];
- er=Er[i][j];
-
-
- /* If the conductor is at a fixed voltage, it must stay there
- so there is nothing to do with it */
-
- if(c == CONDUCTOR_ZERO_V )
- oddity[i][j] = CONDUCTOR_ZERO_V;
-
- else if(c== CONDUCTOR_PLUS_ONE_V)
- oddity[i][j] = CONDUCTOR_PLUS_ONE_V;
-
- else if(c == CONDUCTOR_MINUS_ONE_V )
- oddity[i][j] = CONDUCTOR_MINUS_ONE_V;
-
- else if ( cr <= CONDUCTOR_PLUS_ONE_V && cb<= CONDUCTOR_PLUS_ONE_V)
- oddity[i][j]= METAL_BELOW_AND_RIGHT;
-
- else if ( cr <= CONDUCTOR_PLUS_ONE_V && ca<= CONDUCTOR_PLUS_ONE_V)
- oddity[i][j]= METAL_ABOVE_AND_RIGHT;
-
- else if ( cl <= CONDUCTOR_PLUS_ONE_V && cb<= CONDUCTOR_PLUS_ONE_V)
- oddity[i][j]= METAL_BELOW_AND_LEFT;
-
- else if ( cl <= CONDUCTOR_PLUS_ONE_V && ca<= CONDUCTOR_PLUS_ONE_V)
- oddity[i][j]= METAL_ABOVE_AND_LEFT;
-
- else if ( ca <= CONDUCTOR_PLUS_ONE_V )
- oddity[i][j]= METAL_ABOVE;
-
- else if ( cb <= CONDUCTOR_PLUS_ONE_V )
- oddity[i][j]= METAL_BELOW;
-
- else if ( cl <= CONDUCTOR_PLUS_ONE_V )
- oddity[i][j]= METAL_LEFT;
-
- else if ( cr <= CONDUCTOR_PLUS_ONE_V )
- oddity[i][j]= METAL_RIGHT;
-
- else if ( ERb != ERa)
- oddity[i][j]= DIFFERENT_DIELECTRIC_VERTICALLY;
-
- else if ( ERl != ERr )
- oddity[i][j]= DIFFERENT_DIELECTRIC_HORIZONTALLY;
-/*
- else if ( ERa != er && ERr != er)
- oddity[i][j]= DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT;
-
- else if ( ERa != er && ERl != er)
- oddity[i][j]= DIFFERENT_DIELECTRIC_ABOVE_AND_LEFT;
-
- else if ( ERb != er && ERl != er)
- oddity[i][j]= DIFFERENT_DIELECTRIC_BELOW_AND_LEFT;
-
- else if ( ERa != er )
- oddity[i][j]= DIFFERENT_DIELECTRIC_ABOVE;
-
- else if ( ERb != er )
- oddity[i][j]= DIFFERENT_DIELECTRIC_BELOW;
- else if ( ERl != er )
- oddity[i][j]= DIFFERENT_DIELECTRIC_LEFT;
-
- else if ( ERr != er )
- oddity[i][j]= DIFFERENT_DIELECTRIC_RIGHT;
-*/
- else
- oddity[i][j]= ORDINARY_INTERIOR_POINT;
- }/* end of for i=0 to width-1 */
- } /* end of for j= 0 to height-1 */
-}
-
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-#include "Erdata.h"
-
-/* We need to set up the permittivity and cell_type arrays. A
-complication arrises if a diaectric is found, that is not vacuum.
-If it is the only dielectric found, we calaculate C by saying C=C*Er. If
-there are more than one dielectric, we need to calculate it twice. */
-
-extern struct pixels Er_in_bitmap[MAX_DIFFERENT_PERMITTIVITIES];
-extern struct pixels Er_on_command_line[MAX_DIFFERENT_PERMITTIVITIES];
-extern int width, height;
-
-extern double **Vij, **Er;
-extern unsigned char *image_data;
-extern unsigned char **cell_type;
-extern int non_vacuum_found;
-extern int coupler;
-extern char *inputfile_name;
-
-void setup_arrays(struct transmission_line_properties *data)
-{
- struct pixels pixels_found;
- int conductor_found;
- int conductors = 0;
- int w,h, offset=-3, colour_mixture, i, z;
- unsigned char red, green, blue;
- int dielectric_found;
- int new_colour_in_image;
- data->dielectrics_in_bitmap=0;
- pixels_found.red=0;
- pixels_found.green=0;
- pixels_found.blue=0;
- pixels_found.white=0;
- pixels_found.other_colour=0;
-
- for(h=0;h<height;h++)
- {
- for (w=0; w<width;++w)
- {
- cell_type[w][height-1-h]=0;
- dielectric_found=FALSE;
- conductor_found=FALSE;
- offset+=3;
- if((w==0) && (offset%4!=0) && (h!=0))
- offset++;
- if((w==0) && (offset%4!=0) && (h!=0))
- offset++;
- if((w==0) && (offset%4!=0) && (h!=0))
- offset++;
- blue=image_data[offset];
- green=image_data[offset+1];
- red=image_data[offset+2];
- colour_mixture=256*256*red+256*green+blue;
- if( colour_mixture == 0xff0000 ) /* +1V red */
- {
- cell_type[w][height-1-h]=CONDUCTOR_PLUS_ONE_V;
- Vij[w][height-1-h]=1.0;
- Er[w][height-1-h]=METAL_ER;
- conductor_found=TRUE;
- pixels_found.red++;
- }
- else if( colour_mixture == 0x00ff00 ) /* 0v green */
- {
- cell_type[w][height-1-h]=CONDUCTOR_ZERO_V;
- Vij[w][height-1-h]=0.0;
- conductor_found=TRUE;
- pixels_found.green++;
- Er[w][height-1-h]=METAL_ER;
- }
- else if( colour_mixture == 0x0000ff ) /* -1V blue */
- {
- cell_type[w][height-1-h]=CONDUCTOR_MINUS_ONE_V;
- Vij[w][height-1-h]=-1.0;
- conductor_found=TRUE;
- pixels_found.blue++;
- Er[w][height-1-h]=METAL_ER;
- coupler=TRUE;
- data->couplerQ=TRUE;
- }
- else /* A dielectric */
- {
- if(colour_mixture == 0xffffff ) /* White */
- pixels_found.white++; /* Vacuum */
- else
- pixels_found.other_colour++; /* Some other dielectric */
- cell_type[w][height-1-h]=DIELECTRIC;
- Vij[w][height-1-h]=0.0; /* XXXXXXXXXXx */
- for(z=0;z<NUMBER_OF_DIELECTRICS_DEFINED;++z)
- {
- /* Check to see if the colour is one of the 10 known
- about, without any need to define on the command line
- */
- if (colour_mixture == colours[z])
- {
- Er[w][height-1-h]=Ers[z];
- dielectric_found=TRUE;
- if(z != 0)
- {
- non_vacuum_found=TRUE;
- data->found_this_dielectric=Ers[z];
- }
- }
- }
- for(i=0;i<data->dielectrics_on_command_line;++i)
- {
- if (Er_on_command_line[i].other_colour == colour_mixture)
- {
- Er[w][height-1-h]=Er_on_command_line[i].epsilon;
- dielectric_found=TRUE;
- data->found_this_dielectric=Er_on_command_line[i].epsilon;
- non_vacuum_found=TRUE;
- }
- }
- }
- if((dielectric_found == FALSE) && (conductor_found==FALSE))
- {
- fprintf(stderr,"Error#7: The colour r=0x%x g=0x%x b=0x%x (0x%02x%02x%02x) exists at pixel %d,%d.\n",red,green,blue,red,green,blue,w,h);
- fprintf(stderr,"However, atlc does not know how to interpret this colour. This is not a\n");
- fprintf(stderr,"conductor (pure red, green or blue), nor is it one of the %d dielectrics that\n",NUMBER_OF_DIELECTRICS_DEFINED);
- fprintf(stderr,"are predefined in Erdata.h, nor is a corresponding dielectric constant defined\n");
- fprintf(stderr,"on the command line with the -d option. Sometimes this occurs when a\n");
- fprintf(stderr,"graphics package is used to make the bitmap, but it performs some form of\n");
- fprintf(stderr,"anti-aliasing or smooting. If this is the case, redraw the image turning such\n");
- fprintf(stderr,"options off. If this is not the case then re-run atlc adding the -d option\n");
- fprintf(stderr,"to define the relative permittivity of the dielectric\n\n");
- fprintf(stderr,"e.g. atlc -d %02x%02x%02x=1.9 %s \n\n",red,green,blue, inputfile_name);
- fprintf(stderr,"if this colour has a permittivity of 1.9. If there are multiple undefined\n");
- fprintf(stderr,"dielectrics, then there will need to be multiple copies of the -d option given.\n");
- exit_with_msg_and_exit_code("",UNDEFINED_COLOUR_IN_BITMAP);
- }
- /* We need to keep a record of the number of dielectrics in the image,
- and determine if they are defined on the command line, or if they are
- defined on in the header file. */
- if (dielectric_found == TRUE)
- {
- new_colour_in_image=TRUE;
- for (i=0; i< data->dielectrics_in_bitmap; ++i)
- {
- if (Er_in_bitmap[i].other_colour == colour_mixture) /* a known colour */
- {
- new_colour_in_image=FALSE;
- if(colour_mixture != 0xffffff)
- {
- non_vacuum_found=TRUE;
- }
- }
- }
- if(new_colour_in_image==TRUE)
- {
- (data->dielectrics_in_bitmap)++;
- Er_in_bitmap[i].other_colour=colour_mixture;
- Er_in_bitmap[i].red=red;
- Er_in_bitmap[i].green=green;
- Er_in_bitmap[i].blue=blue;
- Er_in_bitmap[i].epsilon=Er[w][height-1-h];
- }
- } /* end of if dielctric found */
- } /* end of for w */
- } /*end of for h */
- /* The following prints a lot of data that is generally not wanted
- but is when finding statistics of performance etc. */
- if(data->verbose_level >=3)
- {
- printf("Red (+1 V conductor) pixels found = %8d \n",pixels_found.red);
- printf("Green (0 V conductor) pixels found = %8d \n",pixels_found.green);
- printf("Blue (-1 V conductor) pixels found = %8d \n",pixels_found.blue);
- printf("White (vacuum dielectric) pixels found = %8d \n",pixels_found.white);
- printf("Others (not vacuum dielectic) pixels found = %8d \n",pixels_found.other_colour);
- printf("Width = %8d \n",width);
- printf("Height = %8d \n",height);
- printf("Pixels = %8d \n",width*height);
- printf("Number of Dielectrics found = %8d \n", data->dielectrics_in_bitmap);
- data->non_metallic_pixels=width*height-pixels_found.red-pixels_found.green -pixels_found.blue;
- printf("Number of non-metallic pixels = %8d \n", data->non_metallic_pixels);
- printf("filename = %30s \n",inputfile_name);
- if (pixels_found.red > 0 )
- conductors+=1;
- if (pixels_found.green > 0 )
- conductors+=1;
- if (pixels_found.blue > 0 )
- conductors+=1;
- printf("Number of Conductors = %d \n", conductors);
- }
- /* The following should not be necessary, but may be as a test */
- /* I'd like to Miguel Berg for noticcing a servere bug, where the
- indeces of w and h were transposed, leading to crashes on Windoze
- XP */
- for(h=0;h<height;h++)
- {
- for (w=0; w<width;++w)
- {
- if((Vij[w][h] > 1.0) || (Vij[w][h]<-1.0))
- {
- fprintf(stderr,"Sorry, something is wrong Vij[%d][%d]=%f in %s %d\n",w,h,Vij[w][h], __FILE__,__LINE__);
- exit_with_msg_and_exit_code("Exiting ....",VOLTAGE_OUT_OF_RANGE);
- }
- }
- }
- /* Check two conductors and not next to each other, creating a short */
- check_for_shorts();
-} /* end of function */
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-/* When calculationg the properties of couplers it is necessary to swap
-around the voltages on the conductors. First we consider the voltages as
-present, which will be positive and negative. Next the negative pixels
-must be changed to positive, to calculate the even mode impedance. This
-routine does the swapping around, based on the value of the parameter
-oddity, which will be set to CONDUCTOR_PLUS_ONE_V or
-
-CONDUCTOR_MINUS_ONE_V in definitions.h */
-
-#include "config.h"
-
-#include "definitions.h"
-
-extern int width, height;
-unsigned char **oddity;
-extern double **Vij;
-
-/* This swaps any conductor orignally at -1 V to +1 V. Any
-dielectric is set to zero volts. This is used in computation
-of couplers. */
-
-void swap_conductor_voltages()
-{
- int i, j;
- int pixel;
- for(i=0;i<width;++i)
- {
- for(j=0;j<height;++j)
- {
- pixel=oddity[i][j];
- if(pixel==CONDUCTOR_MINUS_ONE_V){
- Vij[i][j]=+1.0;
- oddity[i][j]=CONDUCTOR_PLUS_ONE_V;
- }
- }
- }
-}
+++ /dev/null
-/*
-The code below for calculating the voltage at a point i,j, given the
-voltages and permittivities at the four adjacent points (i,j+1),
-(i,j-1), (i-1,j), and (i+1,j), although I am not convinced it is
-100% correct in the case of mulitple dielectrics, the errors are
-still very small.
-*/
-
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
-
-#include "definitions.h"
-
-
-extern int width, height;
-extern double **Er;
-extern unsigned char **oddity;
-extern int dielectrics_to_consider_just_now;
-extern double r;
-extern int coupler;
-
-#include "exit_codes.h"
-
-/* The following function updates the voltage on the matrix V_to given data about the
-oddity of the location i,j and the voltages in the matrix V_from. It does this for n interations
-between rows jmin and jmax inclusive and between columns imain and imax inclusive */
-
-void update_voltage_array(int nmax, int imin, int imax, int jmin, int jmax, double **V_from, double **V_to)
-{
- int k, i, j, n;
- unsigned char oddity_value;
- double Va, Vb, Vl, Vr, ERa, ERb, ERl, ERr;
- double Vnew, g;
-
- if (dielectrics_to_consider_just_now==1)
- g=r;
- else
- g=1;
- for(n=0; n < nmax; ++n)
- for(k=0; k < 4; ++k)
- for (i = k&1 ? imax : imin; k&1 ? i >=imin : i <= imax ; k&1 ? i-- : i++)
- for (j = (k==0 || k ==3) ? jmin : jmax; (k ==0 || k == 3) ? j <= jmax : j >= jmin ; (k == 0 || k ==3) ? j++ : j--){
- oddity_value=oddity[i][j];
-
- if( oddity_value == CONDUCTOR_ZERO_V ){
- V_to[i][j]=0.0;
- }
-
- else if( oddity_value == CONDUCTOR_PLUS_ONE_V ){
- V_to[i][j]=1.0;
- }
-
- else if( oddity_value == CONDUCTOR_MINUS_ONE_V ){
- V_to[i][j]=-1.0;
- }
-
- else if( oddity_value == TOP_LEFT_CORNER ) { /* top left */
- Vnew=0.5*(V_from[1][0]+V_from[0][1]);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
- else if( oddity_value == TOP_RIGHT_CORNER ) {
- Vnew=0.5*(V_from[width-2][0]+V_from[width-1][1]); /* top right */
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if(oddity_value == BOTTOM_LEFT_CORNER) {
- Vnew=0.5*(V_from[0][height-2]+V_from[1][height-1]); /* bottom left */
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == BOTTOM_RIGHT_CORNER) {
- Vnew=0.5*(V_from[width-2][height-1]+V_from[width-1][height-2]); /* bottom right */
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- /* Now the sides */
-
- else if( oddity_value == ORDINARY_POINT_LEFT_EDGE ){ /* left hand side */
- Vnew=0.25*(V_from[0][j-1]+V_from[0][j+1] + 2*V_from[1][j]);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == ORDINARY_POINT_RIGHT_EDGE){ /* right hand side */
- Vnew=0.25*(V_from[width-1][j+1]+V_from[width-1][j-1]+2*V_from[width-2][j]);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == ORDINARY_POINT_TOP_EDGE ){ /* top row */
- Vnew=0.25*(V_from[i-1][0]+V_from[i+1][0]+2*V_from[i][1]);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == ORDINARY_POINT_BOTTOM_EDGE ){ /* bottom row */
- Vnew=0.25*(V_from[i-1][height-1]+V_from[i+1][height-1]+2*V_from[i][height-2]);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if ( oddity_value == ORDINARY_INTERIOR_POINT || (oddity_value>=DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT && oddity_value < UNDEFINED_ODDITY && dielectrics_to_consider_just_now == 1) ) {
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=(Va+Vb+Vl+Vr)/4.0;
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- /* I'm not sure the following equations, which compute the voltage
- where there is a metal around are okay. One line of thought would
- say that the same equations as normal i.e.
- v_new=(v(i+1,j_+v(i-1,j)+v(i,j-1)+v(i,j+1))/4 should be used
- but then since the electric field across the metal surface is zero,
- the equation that was used to derrive that equation is not valid.
-
- Another thought of mine is that voltage near a metal will be more affected
- by the metal than the dielectric, since the nearest part of the metal is at
- at the same voltage as the node, whereas for a dielectric is less so. Hence
- the following seems a sensible solution. Since the metal will have twice
- the effect of a dielectric, the voltage at i,j should be weighted such
- that its effect is more strongly affected by the metal. This seems to
- produce reasonably accurate results, but whether this is chance or not
- I don't know. */
-
- else if( oddity_value == METAL_ABOVE ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Va/3+2*Vb/3+Vl+Vr);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_BELOW ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vb/3+2*Va/3+Vl+Vr);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_LEFT ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vl/3+2*Vr/3+Va+Vb);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_RIGHT ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vr/3+2*Vl/3+Va+Vb);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_ABOVE_AND_RIGHT ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vr/3+4*Va/3 +2*Vl/3 + 2*Vb/3);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_ABOVE_AND_LEFT ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vl/3+4*Va/3+2*Vr/3+2*Vb/3);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_BELOW_AND_LEFT ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vl/3+4*Vb/3+2*Vr/3+2*Va/3);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- else if( oddity_value == METAL_BELOW_AND_RIGHT ){
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- Vnew=0.25*(4*Vb/3+4*Vr/3+2*Va/3+2*Vl/3);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
- }
-
- /* Again, when there is a change of permittivity, my equations may
- (probably are wrong). My logic is that if there's and RF field,
- the impedance is inversly proportional to Er. So if the material
- above a node is of a higher permittivity, then the
- voltage will be closer to that of the node above, becuase of this.
- The same applies for other directions of change in Er. */
-
-
- else if(dielectrics_to_consider_just_now > 1){
-
- Va=V_from[i][j-1];
- Vb=V_from[i][j+1];
- Vl=V_from[i-1][j];
- Vr=V_from[i+1][j];
-
- ERa=Er[i][j-1];
- ERb=Er[i][j+1];
- ERl=Er[i-1][j];
- ERr=Er[i+1][j];
-
- Vnew=(Va * ERa + Vb * ERb + Vl * ERl + Vr * ERr)/(ERa + ERb + ERl + ERr);
- V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
-
- }
- else if ( (dielectrics_to_consider_just_now == 1 && oddity_value == UNDEFINED_ODDITY) || (dielectrics_to_consider_just_now > 1)) {
- fprintf(stderr,"Internal error in update_voltage_array.c\n");
- fprintf(stderr,"i=%d j=%d oddity[%d][%d]=%d\n",i,j,i,j,oddity[i][j]);
- exit(INTERNAL_ERROR);
- } /* end if if an internal error */
-
- } /* end of j loop */
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-void usage_atlc(void)
-{
-#ifdef ENABLE_POSIX_THREADS
- fprintf(stderr,"Usage: atlc [options ...] bitmap\n\n");
-#endif
- fprintf(stderr,"atlc %s: options are:\n",PACKAGE_VERSION);
- fprintf(stderr," -C \n Print Licence and copying information\n");
- fprintf(stderr," -s \n Skip writing the Ex, Ey, E, V, U and Er files bitmap (.bmp) files\n");
- fprintf(stderr," -S \n Skip writing the Ex, Ey, E, V, U and Er files binary (.bin) files\n");
- fprintf(stderr," -v \n Be verbose (-vv -vvv or -vvvv gives progressively more information)\n");
- fprintf(stderr," -c cutoff\n where 'cutoff' sets the cutoff criteria - see html docs or man page.\n");
- fprintf(stderr," -d rrggbb=Er\n where the colour rrggbb (in hex) is a (d)ielectric of permittivity Er.\n");
- fprintf(stderr," -i factor\n which lightens (factor>%.1f) or darkens (1.0 <factor<%.1f) output bitmaps.\n",
- IMAGE_FIDDLE_FACTOR,IMAGE_FIDDLE_FACTOR);
- fprintf(stderr," -p prefix\n where 'prefix' is a name (normally a directory) added in front of output files\n");
- fprintf(stderr," -r rate_multiplier\n where 'rate_multiplier' sets the rate multipler (1 <= r < 2)\n");
-#ifdef ENABLE_POSIX_THREADS
- fprintf(stderr," -t THREADs. \n Where THREADs is the number of threads to use (normally best set to \n the number of cpus). The default is %d. Set to 0 for single threaded algorithm.\n",MAX_THREADS);
-#endif
-#ifdef ENABLE_MPI
- fprintf(stderr," -w weights\n where weights is a colon-separated list of weights to use when dividing up the work amongst the processors.\n");
-#endif
-/*
-#ifndef ENABLE_POSIX_THREADS
- fprintf(stderr,"****************NOTE******************************\n");
- fprintf(stderr,"The -t option setting the number of threads to use is disabled since\n");
- fprintf(stderr,"since this was not configured with multi-processor support.\n");
- fprintf(stderr,"To add support for multiple threads (for an MP machine), \"make clean\" then \nre-run the configure script with the option --with-threads\n");
-#endif
-*/
-#ifndef ENABLE_MPI
- fprintf(stderr," ");
-/*
- fprintf(stderr,"****************NOTE******************************\n");
- fprintf(stderr,"The -w option setting the weights to use when dividing up the work for\n");
- fprintf(stderr,"multiple CPUs on distributed processors is disabled since this was not\n");
- fprintf(stderr,"for distributed processing. To add such support, \"make clean\" then re-run\n");
- fprintf(stderr,"the configure script with the option --with-mpi\n");
- */
-#endif
-#ifdef WINDOWS
- fprintf(stderr,"****************NOTE******************************\n");
- fprintf(stderr,"The -t and -w options are disabled disabled since\n");
- fprintf(stderr,"this is a Windoze executable.\n");
- fprintf(stderr,"There are no plans to add multi-processor or distributed\n");
- fprintf(stderr,"processing to Windoze.\n");
-
-#endif
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-void usage_create_any_bitmap()
-{
-
- fprintf(stderr,"create_any_bitmap version %s\n\n",PACKAGE_VERSION);
- fprintf(stderr,"Usage: create_any_bitmap commandfile\n\n");
- fprintf(stderr,"where 'commandfile' is a text file, which:\n");
- fprintf(stderr,"a) MUST have a FILENAME command\n");
- fprintf(stderr,"b) MUST have either a BACKGROUND or a GREEN_ENCLOSED_BACKGROUND command\n");
- fprintf(stderr,"c) Must have at least one RECTANGLE or CIRCLE command, but might have several.\n\n");
- fprintf(stderr,"The following is a typical command file, which in this case creates an bitmap\n");
- fprintf(stderr,"called twin-wire-a.bmp, consisting of a rectangle 5000 x 4500 pixels\n");
- fprintf(stderr,"which has a green (0 V) border of 5 pixels in thickness\n");
- fprintf(stderr,"Inside are placed two red (V = +1 V) circular conductors, each of diameter\n");
- fprintf(stderr,"80 pixels which have centres of 2400,2000 and 2600,2000\n\n");
- fprintf(stderr,"FILENAME twin-wire-a.bmp # Write to file 'twin-wire-a.bmp'\n");
- fprintf(stderr,"GREEN_ENCLOSED_BACKGROUND 5000 4000 1.0 # 5000x4000 image. Er=1.0 Green border\n");
- fprintf(stderr,"CIRCLE 80 2400 2000 RED # Red circle, dia 80, centre (2400,2000)\n");
- fprintf(stderr,"CIRCLE 80 2600 2000 RED # Red circle, dia 80, centre (2600,2000)\n");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_circ_in_circ(void)
-{
- fprintf(stderr,"Usage: circ_in_circ [-b bmp_size] [-f outfile] [-v] D d O Er filename\n\n");
- fprintf(stderr,"Version %s\n", PACKAGE_VERSION);
- fprintf(stderr,"Where \n");
- fprintf(stderr," D is the internal diameter of the outer conductor \n");
- fprintf(stderr," d is the outside diameter of the inner conductor\n");
- fprintf(stderr," O is the offset between centres (zero in the case of coax cable)\n");
- fprintf(stderr," Er is the relative permettivity of the dielectric.\n");
- fprintf(stderr," D, d and O are either all in mm or all in inches (but not a mixture!!)\n\n");
- fprintf(stderr,"options are:\n");
- fprintf(stderr," -C \n Print copyright, licencing and distribution information\n");
- fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -v \n Write diagnostic information to stderr\n\n");
-
- fprintf(stderr," *****************\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," **** <-----d------> ****\n");
- fprintf(stderr," *** ***** ***\n");
- fprintf(stderr," *** *********** ***\n");
- fprintf(stderr," *** ************* ***\n");
- fprintf(stderr," *** *************** ***\n");
- fprintf(stderr," *** ^ *************** ***\n");
- fprintf(stderr," *** | *************** ***\n");
- fprintf(stderr," *** | ************* ***\n");
- fprintf(stderr," ** O *********** **\n");
- fprintf(stderr," *** | *** ***\n");
- fprintf(stderr," ** | **\n");
- fprintf(stderr," *<------------------------D------------------------>*\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," ***** *****\n");
- fprintf(stderr," ****** ******\n");
- fprintf(stderr," *******************\n");
- fprintf(stderr," ***\n\n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_circ_in_rect(void)
-{
- fprintf(stderr,"Usage: create_bmp_for_circ_in_rect [-b bmp_size] [-v] d W H x y Er outputfile\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"Where \n");
- fprintf(stderr," d is the outside diameter of the inner conductor\n");
- fprintf(stderr," W is the horizontal internal dimension of the outer conductor\n");
- fprintf(stderr," H is the vertical internal dimension of the outer conductor\n");
- fprintf(stderr," x is the horizontal offset between the centre of the inner and outer conductors \n");
- fprintf(stderr," y is the vertical offset between the centre of the inner and outer conductors \n");
- fprintf(stderr," Er is the relative permittivity of the dielectric.\n");
- fprintf(stderr," d, W, H, x and y are either all in mm or all in inches (but not a mixture!!)\n\n");
- fprintf(stderr,"options are:\n");
- fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -v \n Write extra diagnostic information to stdout\n\n");
- fprintf(stderr," -------------------------------------------------------- ^\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| Dielectric, permittivity=Er | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| <------x------> ^ | H\n");
- fprintf(stderr,"| ***** | | |\n");
- fprintf(stderr,"| *********** y | |\n");
- fprintf(stderr,"| ************* | | |\n");
- fprintf(stderr,"| ************** | | |\n");
- fprintf(stderr,"| <-----d------> v | |\n");
- fprintf(stderr,"| ************** | |\n");
- fprintf(stderr,"| ************* | |\n");
- fprintf(stderr,"| *********** | |\n");
- fprintf(stderr,"| *** | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"------------------------------------------------------- v\n");
- fprintf(stderr,"<---------------------------W-------------------------->\n");
- fprintf(stderr," ***\n\n");
- fprintf(stderr,"Example: create_bmp_for_circ_in_rect 20 100 150 25 10 3.7 foo.bmp\n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_microstrip_coupler(void)
-{
- fprintf(stderr,"Usage: create_bmp_for_microstrip_coupler [-b bmp_size] [-v] w s g h t Er1 Er2 filename\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"where h, t, g1 and g2 are all ,in mm, all in inches or all in ..\n");
- fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
- fprintf(stderr,"Options are:\n");
- fprintf(stderr," -C Print copyright, licencing and distribution information.\n");
- fprintf(stderr," -b bmp_size Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -H height Sets the height 'H' of the box. Normally 15x(h+t)\n");
- fprintf(stderr," -W width Sets the height 'H' of the box. Normally 6h+2g+s+2w)\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ^\n");
- fprintf(stderr,"G G |\n");
- fprintf(stderr,"G G |\n");
- fprintf(stderr,"G Dielectric, permittivity=Er1 (usually 1.0) G |\n");
- fprintf(stderr,"G G |\n");
- fprintf(stderr,"G c's denonte the copuled transmission lines of width w. G |\n");
- fprintf(stderr,"G t is the thickness of the copper of the PCB (typically 0.035 mm) G |\n");
- fprintf(stderr,"G h is the thickness of the dielectric ( ~1.593 mm for 1.6 mm PCB) G |\n");
- fprintf(stderr,"G | g is the gap between the coupled lines and the groundplane. G |\n");
- fprintf(stderr,"G | s is the spacing between the two coupled lines. G |\n");
- fprintf(stderr,"G | This is NOT drawn to scale (W and H are shown far too small ) G H\n");
- fprintf(stderr,"G | G |\n");
- fprintf(stderr,"G v <--g--><--w--><----s----><--w--><--g--> G |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGG ccccccc ccccccc GGGGGGGGGGGGGGG |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGG.......ccccccc...........ccccccc.......GGGGGGGGGGGGGGG |\n");
- fprintf(stderr,"G.^................................................^....................G |\n");
- fprintf(stderr,"G.|................................................|....................G |\n");
- fprintf(stderr,"G.|t........Dielectric, permittivity=Er2...........h....................G |\n");
- fprintf(stderr,"G.|............(3.7 for FR4 PCB)...................|....................G |\n");
- fprintf(stderr,"G..................................................V....................G |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG. v\n");
- fprintf(stderr,"<-----------------------------------W----------------------------------->\n\n");
- fprintf(stderr,"E.g. \ncreate_bmp_for_microstrip_coupler 1.5 2.0 1 1.593 0.035 1 3.7 foo.bmp\n");
- fprintf(stderr,"In this example, the conductor thickness t was small, but the width w is\n");
- fprintf(stderr,"large, so a fine grid (large bitmap) was needed. Hence the bitmap size\n");
- fprintf(stderr,"was increassed with the -b optoin. Without it, an error would result\n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_rect_cen_in_rect(void)
-{
- fprintf(stderr,"Usage: rect_cen_in_rect [-b bmp_size] [-f outfile] [-v] W H w h Er1 outfile.bmp\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"outfile.bmp is the file to write the bitmap to\n");
- fprintf(stderr,"W, H, w, and h are all in mm or all in inches\n");
- fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
- fprintf(stderr,"options are:\n");
- fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -v \n Write diagnostic information to stdout\n");
- fprintf(stderr,"----------------------------------------------------- ^\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| Er1 <----------w-----------> | |\n");
- fprintf(stderr,"| ------------------------ ^ | |\n");
- fprintf(stderr,"| | | | | |\n");
- fprintf(stderr,"| | Metallic conductor | | | H\n");
- fprintf(stderr,"| | conductor (centred | h | |\n");
- fprintf(stderr,"| | vertically and | | | |\n");
- fprintf(stderr,"| | horizontally) | | | |\n");
- fprintf(stderr,"| ------------------------ | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"----------------------------------------------------- |\n");
- fprintf(stderr,"<-------------------------W------------------------->\n\n");
- fprintf(stderr,"Eg: create_bmp_for_rect_cen_in_rect 200 100 30 30 1.0 foo.bmp\n\n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_rect_cen_in_rect_coupler(void)
-{
- fprintf(stderr,"Usage: rect_cen_in_rect [-b bmp_size] [-f outfile] [-v] W H w h Er1 outfile.bmp\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"outfile.bmp is the file to write the bitmap to\n");
- fprintf(stderr,"W, H, w, and h are all in mm or all in inches\n");
- fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
- fprintf(stderr,"options are:\n");
- fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -v \n Write diagnostic information to stdout\n");
- fprintf(stderr,"----------------------------------------------------- ^\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| Er1 <----------w-----------> | |\n");
- fprintf(stderr,"| ------------------------ ^ | |\n");
- fprintf(stderr,"| | | | | |\n");
- fprintf(stderr,"| | Metallic conductor | | | H\n");
- fprintf(stderr,"| | conductor (centred | h | |\n");
- fprintf(stderr,"| | vertically and | | | |\n");
- fprintf(stderr,"| | horizontally) | | | |\n");
- fprintf(stderr,"| ------------------------ | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"----------------------------------------------------- |\n");
- fprintf(stderr,"<-------------------------W------------------------->\n\n");
- fprintf(stderr,"Eg: create_bmp_for_rect_cen_in_rect 200 100 30 30 1.0 foo.bmp\n\n");
-
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_rect_in_circ(void)
-{
- fprintf(stderr,"Usage: rect_in_circ [-b bmp_size] [-f outfile] [-v] D w h x y Er\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"Where \n");
- fprintf(stderr," D is the internal diameter of the outer conductor \n");
- fprintf(stderr," w is the width of the inner conductor\n");
- fprintf(stderr," h is the height of the inner conductor\n");
- fprintf(stderr," x is the horizontal offset between centres of the conductors\n");
- fprintf(stderr," y is the vertical offset between centres of the conductors\n");
- fprintf(stderr," Er is the relative permettivity of the dielectric.\n");
- fprintf(stderr," D, w, h, x, and y are either all in mm or all in inches (but not a mixture!!)\n\n");
- fprintf(stderr,"options are:\n");
- fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -f outfile \n Write output to 'outfile' instead of stdout\n");
- fprintf(stderr," -v \n Write diagnostic information to stderr\n\n");
- fprintf(stderr," ***\n");
- fprintf(stderr," *****************\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," *** ************* ^ ***\n");
- fprintf(stderr," *** ************* | ***\n");
- fprintf(stderr," *** ************* | ***\n");
- fprintf(stderr," *** ^ ************* h ***\n");
- fprintf(stderr," *** | ************* | ***\n");
- fprintf(stderr," *** | ************* | ***\n");
- fprintf(stderr," ** y ************* v **\n");
- fprintf(stderr," *** | <-----w-----> ***\n");
- fprintf(stderr," ** | **\n");
- fprintf(stderr," *<----------v-------------D------------------------>*\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** <--x-> **\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," ** **\n");
- fprintf(stderr," *** ***\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," **** ****\n");
- fprintf(stderr," ***** *****\n");
- fprintf(stderr," ****** ******\n");
- fprintf(stderr," *******************\n");
- fprintf(stderr," ***\n\n");
- fprintf(stderr,"***WARNING*** Since the output from rect_in_circ is binary data (the bitmap) it\n");
- fprintf(stderr,"will screw up your terminal unless you redirect the ouptut to a file.\n");
- fprintf(stderr,"The '-f' option can be used to send the output to 'outfile' \n");
- fprintf(stderr,"or you can use rect_in_circ D d h Er > filename.bmp \n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_create_bmp_for_rect_in_rect(void)
-{
- fprintf(stderr,"Usage: create_bmp_for_rect_in_rect [-b bmp_size] [-f outfile] [-v] W H a b c d w h Er1 Er2 outfile.bmp\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"where W, H, a, b, c, d, w, and h are all in mm or all in inches\n");
- fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
- fprintf(stderr,"outfile.bmp is the name of a file to writ the bitmap to\n");
- fprintf(stderr,"Options are:\n");
- fprintf(stderr," -C \n Print copyright, licencing and distribution information.\n");
- fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
- fprintf(stderr," -v \n Write diagnostic information to stderr\n");
- fprintf(stderr,"----------------------------------------------------------------------- ^\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| Dielectric, permittivity=Er1 | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| <----------------d-------------------------> | |\n");
- fprintf(stderr,"| | |\n");
- fprintf(stderr,"| <----------w-----------> | |\n");
- fprintf(stderr,"| ------------------------ ^ | |\n");
- fprintf(stderr,"| | | | | |\n");
- fprintf(stderr,"| | Metallic conductor | | | H\n");
- fprintf(stderr,"|<-----b----->| conductor (can be | c | |\n");
- fprintf(stderr,"| | off-centre) | | | |\n");
- fprintf(stderr,"| | | | | |\n");
- fprintf(stderr,"| |------------------------------------------- ^ | |\n");
- fprintf(stderr,"| |..........................................| | | |\n");
- fprintf(stderr,"| |.....Dielectric, permittivity=Er2.........| | | |\n");
- fprintf(stderr,"|<--a-->|.......(can be off centre )...............| h | |\n");
- fprintf(stderr,"| |..........................................| | | |\n");
- fprintf(stderr,"| |..........................................| | | |\n");
- fprintf(stderr,"----------------------------------------------------------------------- |\n");
- fprintf(stderr,"<----------------------------------W--------------------------------->\n\n");
- fprintf(stderr,"Eg: create_bmp_for_rect_in_rect 250 100 20 100 4.25 205 45 15 1.0006 3.7 ms.bmp \n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-void usage_create_bmp_for_stripline_coupler(void)
-{
- fprintf(stderr,"Usage: create_bmp_for_stripline_coupler [-C] [-b bitmapsize] [-v] H w s Er filename\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"Options:\n");
- fprintf(stderr," -C\n");
- fprintf(stderr," Print copyright, licencing and distribution information\n");
- fprintf(stderr," -b bitmapsize\n");
- fprintf(stderr," Set the size of the bitmap to about 2^bitmapsize bytes\n");
- fprintf(stderr," -v\n");
- fprintf(stderr," Prints the theoretical impedances too - good for verifying atlc\n");
- fprintf(stderr,"------------^------------------------------------------------------------------\n");
- fprintf(stderr," | \n");
- fprintf(stderr," | <---w---><-----s----><---w-->\n");
- fprintf(stderr," H --------- --------\n");
- fprintf(stderr," | \n");
- fprintf(stderr," | Er \n");
- fprintf(stderr,"------------v------------------------------------------------------------------\n");
- fprintf(stderr,"e.g. create_bmp_for_stripline_coupler 1.23 0.7 1.2 1.0 coupler.bmp\n");
- fprintf(stderr,"e.g. create_bmp_for_stripline_coupler -b 8 1.23 0.7 1.0 1.0 smaller.bmp\n");
- fprintf(stderr,"e.g. create_bmp_for_stripline_coupler -v 12 1.23 0.7 1.006 air.bmp\n");
- fprintf(stderr,"\nThe default bitmap_bitmap size b is %d. Files will be between 2^(b-1)\n", DEFAULT_COUPLER_BMP_SIZE);
- fprintf(stderr,"and 2^(b+1) bytes in length\n");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-
-void usage_create_bmp_for_symmetrical_stripline(void)
-{
- fprintf(stderr,"create_bmp_for_symmetrical_stripline produces a bitmap for a wide stripline and \ncan calculate Zo ASSUMING IT IT INFINITELY WIDE (which it is not of course) if the -v option is added.\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"Usage: usage_create_bmp_for_symmetrical_stripline [-C][-v] W H w filename\n\n");
- fprintf(stderr,"---------^-----------------------------------------------------\n");
- fprintf(stderr," | \n");
- fprintf(stderr," | <----------w----------->\n");
- fprintf(stderr," H ------------------------\n");
- fprintf(stderr," | \n");
- fprintf(stderr," | \n");
- fprintf(stderr,"---------v-----------------------------------------------------\n");
- fprintf(stderr,"<-----------------------------W-------------------------------->\n\n");
- fprintf(stderr,"Option:\n");
- fprintf(stderr," -C Print copyright, licensing and distribution information.\n");
- fprintf(stderr," -i Force the width W to be effectively infinite.\n");
- fprintf(stderr," -v Compute the theoretical impedance and print to stdout.\n\n");
- fprintf(stderr,"WARNING create_bmp_for_symmetrical_stripline does *NOT* take floating points for W, H and w. You must\n");
- fprintf(stderr,"enter only integers. The program was put together quickly, so does NOT\n");
- fprintf(stderr,"automatically convert floating point values to integers like create_bmp_for_rect_in_rect,\n");
- fprintf(stderr,"create_bmp_for_circ_in_circ, create_bmp_for_circ_in_rect, create_bmp_for_rect_cen_in_rect\n");
- fprintf(stderr,"create_bmp_for_microstrip_coupler and create_bmp_for_stripline_coupler\n");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-#include "config.h"
-
-#include "definitions.h"
-
-void usage_design_coupler()
-{
- fprintf(stderr,"\nUsage: design_coupler [-d] [-e] [-q] [-s fstep] [-C] [-D] [-H height] [-L length] [-Z Zo] CF fmin fmax\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"where: \n");
- fprintf(stderr," CF is the coupling factor required in dB [10 log(P1/P2)]\n");
- fprintf(stderr," fmin is the minimum frequency (MHz)\n");
- fprintf(stderr," fman is the maximum frequency (MHz)\n");
- fprintf(stderr,"Options are:\n");
- fprintf(stderr," -d Calculate physical dimensions (takes a while).\n");
- fprintf(stderr," -e Give lots of examples of usage.\n");
- fprintf(stderr," -q Run in quite mode, giving less output.\n");
- fprintf(stderr," -s fstep Set the analysis frequency step in MHz.\n");
- fprintf(stderr," -C Print Copyright, Licencing and Distribution information.\n");
- fprintf(stderr," -D Calculate physical dimensions to high accuracy (takes a *very* long while).\n");
- fprintf(stderr," -H height to set the height of the enclosure (defaults to 1 unit).\n");
- fprintf(stderr," -L length to set the coupler length (m). Defaults to lambda/4.\n");
- fprintf(stderr," -Q Run in very quite mode, giving just one line of output\n");
- fprintf(stderr," -Z Zo Set the design impedance (default is 50 Ohms)\n");
- fprintf(stderr,"coupled port 2 ************************************************ reflected port 3\n\n");
- fprintf(stderr,"input port 1 ************************************************ output port 4\n");
- fprintf(stderr," <--------------------L------------------------->\n");
- fprintf(stderr,"Drive Port 1. The main power comes out from port 4. A fraction (set by the \n");
- printf("coupling factor) of the forward power comes from port 2. A fraction of the\n");
- printf("reflected power comes from port 3. All ports must present an impedance Zo.\n");
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_find_optimal_dimensions_for_microstrip_coupler(void)
-{
- fprintf(stderr,"Usage: find_optimal_dimensions_for_microstrip_coupler [-s smin] [-S smax] [-t sstep] [-w wmin] [-W wmax] [-x wstep] [-g gmin] [-G GMAX] [-i gstep] h t Er1 Er2 Zodd_required Zeven_required output_filename\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"where h and t are all, in mm, all in inches or all in ..; Zodd_required and Zeven are in Ohms\n");
- fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
- fprintf(stderr,"Options are:\n");
- fprintf(stderr," -C Print copyright, licencing and distribution information.\n");
- /*fprintf(stderr," -b bmp_size Sets the size of the bitmap used by 'atlc', in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE); */
- fprintf(stderr," -s gmin Sets the minimum gap between the two coupled lines (default = %f)\n", DEFAULT_SMIN);
- fprintf(stderr," -s gmax Sets the maximum gap between the two coupled lines (default = %f)\n", DEFAULT_SMAX);
- fprintf(stderr," -i gstep Sets the stepsize used for interations between gmin and gmax (default = %f)\n", DEFAULT_SSTEP);
- fprintf(stderr," -g gmin Sets the minimum gap between the coupled lines and the groundplane (default = %f)\n", DEFAULT_GMIN);
- fprintf(stderr," -G gmax Sets the maximum gap between the coupled lines and the groundplane (default = %f)\n", DEFAULT_GMAX);
- fprintf(stderr," -i gmin Sets the stepsize used between gmain and max (default = %f)\n", DEFAULT_GSTEP);
- fprintf(stderr," -w wstep Sets the minimum width of the coupled lines (default = %f)\n", DEFAULT_WMIN);
- fprintf(stderr," -W Wstep Sets the maximum width of the coupled lines (default = %f)\n", DEFAULT_WMAX);
- fprintf(stderr," -x Wstep Sets the stepsize used between wmin and wmax (default = %f)\n", DEFAULT_WSTEP);
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ^\n");
- fprintf(stderr,"G G |\n");
- fprintf(stderr,"G G |\n");
- fprintf(stderr,"G Dielectric, permittivity=Er1 (usually 1.0) G |\n");
- fprintf(stderr,"G G |\n");
- fprintf(stderr,"G c's denonte the copuled transmission lines of width w. G |\n");
- fprintf(stderr,"G t is the thickness of the copper of the PCB (typically 0.035 mm) G |\n");
- fprintf(stderr,"G h is the thickness of the dielectric ( ~1.593 mm for 1.6 mm PCB) G |\n");
- fprintf(stderr,"G | g is the gap between the coupled lines and the groundplane. G |\n");
- fprintf(stderr,"G | s is the spacing between the two coupled lines. G |\n");
- fprintf(stderr,"G | This is NOT drawn to scale (W and H are shown far too small ) G H\n");
- fprintf(stderr,"G | G |\n");
- fprintf(stderr,"G v <--g--><--w--><----s----><--w--><--g--> G |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGG ccccccc ccccccc GGGGGGGGGGGGGGG |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGG.......ccccccc...........ccccccc.......GGGGGGGGGGGGGGG |\n");
- fprintf(stderr,"G.^................................................^....................G |\n");
- fprintf(stderr,"G.|................................................|....................G |\n");
- fprintf(stderr,"G.|t........Dielectric, permittivity=Er2...........h....................G |\n");
- fprintf(stderr,"G.|............(3.7 for FR4 PCB)...................|....................G |\n");
- fprintf(stderr,"G..................................................V....................G |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG |\n");
- fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG. v\n");
- fprintf(stderr,"<-----------------------------------W----------------------------------->\n\n");
- fprintf(stderr,"E.g. \nfind_optimal_dimensions_for_microstrip_coupler 1.593 0.035 1 3.7 15 180 best.txt\n\n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-void usage_readbin(void)
-{
- fprintf(stderr,"Usage: readbin [-r] binaryfile.V.bin\n\n");
- fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
- fprintf(stderr,"options are:\n");
- fprintf(stderr," -C Print copyright, licencing and distribution information\n");
- fprintf(stderr," -r Used when analysing binary files created on\
- the other byte-ordering\n (ie a big-endian example.V.bin file\
- on a small endian machine - or\n the reverse)\n");
- exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#include "definitions.h"
-#include "Erdata.h"
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-extern int W, H;
-
-void write_bitmap(FILE *image_data_fp, struct transmission_line_properties xyz)
-{
- int colour_Er1=-1, colour_Er2=-1, vector_aligned;
-#ifndef HAVE_MEMSET
- int memory_location;
-#endif
- unsigned char *image_data, *unaligned_image_vector;
-
- get_Er1_and_Er2_colours(&colour_Er1, &colour_Er2);
- W+=2*BORDER;
- H+=2*BORDER;
- xyz.W+=2*BORDER;
- xyz.H+=2*BORDER;
- /* We create an vector big enough for the image. Since rows are
- aligned on 4-byte boundaries, we need to allow suffient space for
- (W+2)*(H-1) bytes. */
-
- /* when aligning data on 4-byte boundaries, the
- padding must be filled with 0's, to meet the
- .bmp standard */
-
- image_data=ustring(0,(W+3)*3*H);
- unaligned_image_vector=ustring(0,(W+3)*3*H);
-
-#ifdef HAVE_MEMSET
- (void) memset((void *) (image_data),0x0,(size_t) ((W+3)*3*H));
-#else
- for(memory_location=0; memory_location < (W+3)*3*H; ++ memory_location)
- image_data[memory_location]=0;
-#endif /* end of #ifdef HAVE_MEMSET */
-
-
- /* Fill a vector with the initial (original) data on the
- tline. This is not aligned in any way */
- /* The following function 'fill_image_vector_with_data' is *not* in the file
- fill_image_vector_with_data.c, but instead different versions of it are
- located in files fill_rect_with_rect.c, fill_circ_with_circ.c,
- fill_rect_with_circ.c and fill_circ_with_rect.c */
- fill_image_vector_with_data(unaligned_image_vector, colour_Er1, colour_Er2, xyz);
-
- /* put into the vector, in reverse order - i.e. from bottom to top and
- align each row on 4-byte boundaries */
- vector_aligned=align_bitmap_image(W, H, unaligned_image_vector,image_data);
- write_bitmap_out(image_data, image_data_fp,vector_aligned, W, H);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
-
-#include "definitions.h"
-#include "exit_codes.h"
-
-/* names, colours and Ers are all arrays of 10. It would be better they were
-in a structure as they are all linked closely, but they are not and I
-can't be bothered to change it */
-
-
-extern int W, H;
-
-/* This function can be used on any routines that writes .bmp files */
-
-/*#define DEBUG*/
-
-void write_bitmap_out(unsigned char *byte_aligned_image_data, FILE *image_data_fp,int sizeof_image, int W, int H)
-{
- unsigned char *buff;
-
- struct Bitmap_File_Head_Struct Bitmap_File_Head;
- struct Bitmap_Head_Struct Bitmap_Head;
-
-#ifdef DEBUG
- printf("sizeof_image = %d in write_bitmap_out\n", sizeof_image);
-#endif
-
- buff=ustring(0,0x36);
-
- /* fprintf(stderr,"file size=%ld\n",temp_long); */
-
- Bitmap_File_Head.zzMagic[0]='B';
- Bitmap_File_Head.zzMagic[1]='M';
- Bitmap_File_Head.bfSize=sizeof_image+0x36;
- Bitmap_File_Head.zzHotX=0;
- Bitmap_File_Head.zzHotY=0;
- Bitmap_File_Head.bfOffs=54;
- Bitmap_File_Head.biSize=0x28;
-
-
- Bitmap_Head.biWidth=W;
- Bitmap_Head.biHeight=H;
- Bitmap_Head.biPlanes=1;
- Bitmap_Head.biBitCnt=24;
- Bitmap_Head.biCompr=0;
- Bitmap_Head.biSizeIm=sizeof_image;
- Bitmap_Head.biXPels=W*10; /* Why ??? XXX */
- Bitmap_Head.biYPels=H*10; /* Why ??? XXX */
- Bitmap_Head.biClrUsed=0;
- Bitmap_Head.biClrImp=0;
-
- buff[0x00] = (unsigned char) (Bitmap_File_Head.zzMagic[0]);
- buff[0x01] = (unsigned char) (Bitmap_File_Head.zzMagic[1]);
-/*
- buff[0x02] = Bitmap_File_Head.bfSize);
- buff[0x03] = Bitmap_File_Head.bfSize >> 8);
- buff[0x04] = Bitmap_File_Head.bfSize >> 16);
- buff[0x05] = Bitmap_File_Head.bfSize >> 24);
- */
-
- buff[0x02] = (unsigned char) (Bitmap_File_Head.bfSize);
- buff[0x03] = (unsigned char) (Bitmap_File_Head.bfSize >> 8);
- buff[0x04] = (unsigned char) (Bitmap_File_Head.bfSize >> 16);
- buff[0x05] = (unsigned char) (Bitmap_File_Head.bfSize >> 24);
-
-
- buff[0x06] = (unsigned char) (Bitmap_File_Head.zzHotX);
- buff[0x07] = (unsigned char) (Bitmap_File_Head.zzHotX >> 8);
-
- buff[0x08] = (unsigned char) (Bitmap_File_Head.zzHotY);
- buff[0x09] = (unsigned char) (Bitmap_File_Head.zzHotY >> 8);
-
- buff[0x0a] = (unsigned char) (Bitmap_File_Head.bfOffs);
- buff[0x0b] = (unsigned char) (Bitmap_File_Head.bfOffs>> 8);
- buff[0x0c] = (unsigned char) (Bitmap_File_Head.bfOffs>> 16);
- buff[0x0d] = (unsigned char) (Bitmap_File_Head.bfOffs>> 24);
-
- buff[0x0e] = (unsigned char) (Bitmap_File_Head.biSize);
- buff[0x0f] = (unsigned char) (Bitmap_File_Head.biSize>> 8);
- buff[0x10] = (unsigned char) (Bitmap_File_Head.biSize>> 16);
- buff[0x11] = (unsigned char) (Bitmap_File_Head.biSize>> 24);
-
- /* Write contents of Bitmap_Head_Struct */
-
- buff[0x12] = (unsigned char) (Bitmap_Head.biWidth);
- buff[0x13] = (unsigned char) (Bitmap_Head.biWidth>> 8);
- buff[0x14] = (unsigned char) (Bitmap_Head.biWidth>> 16);
- buff[0x15] = (unsigned char) (Bitmap_Head.biWidth>> 24);
-
- buff[0x16] = (unsigned char) (Bitmap_Head.biHeight);
- buff[0x17] = (unsigned char) (Bitmap_Head.biHeight>> 8);
- buff[0x18] = (unsigned char) (Bitmap_Head.biHeight>> 16);
- buff[0x19] = (unsigned char) (Bitmap_Head.biHeight>> 24);
-
- buff[0x1a] = (unsigned char) (Bitmap_Head.biPlanes);
- buff[0x1b] = (unsigned char) (Bitmap_Head.biPlanes>> 8);
-
- buff[0x1c] = (unsigned char) (Bitmap_Head.biBitCnt);
- buff[0x1d] = (unsigned char) (Bitmap_Head.biBitCnt>> 8);
-
- buff[0x1e] = (unsigned char) (Bitmap_Head.biCompr);
- buff[0x1f] = (unsigned char) (Bitmap_Head.biCompr>> 8);
- buff[0x20] = (unsigned char) (Bitmap_Head.biCompr>> 16);
- buff[0x21] = (unsigned char) (Bitmap_Head.biCompr>> 24);
-
- buff[0x22] = (unsigned char) (Bitmap_Head.biSizeIm);
- buff[0x23] = (unsigned char) (Bitmap_Head.biSizeIm>> 8);
- buff[0x24] = (unsigned char) (Bitmap_Head.biSizeIm>> 16);
- buff[0x25] = (unsigned char) (Bitmap_Head.biSizeIm>> 24);
-
- buff[0x26] = (unsigned char) (Bitmap_Head.biXPels);
- buff[0x27] = (unsigned char) (Bitmap_Head.biXPels>> 8);
- buff[0x28] = (unsigned char) (Bitmap_Head.biXPels>> 16);
- buff[0x29] = (unsigned char) (Bitmap_Head.biXPels>> 24);
-
- buff[0x2a] = (unsigned char) (Bitmap_Head.biYPels);
- buff[0x2b] = (unsigned char) (Bitmap_Head.biYPels>> 8);
- buff[0x2c] = (unsigned char) (Bitmap_Head.biYPels>> 16);
- buff[0x2d] = (unsigned char) (Bitmap_Head.biYPels>> 24);
-
- buff[0x2e] = (unsigned char) (Bitmap_Head.biClrUsed);
- buff[0x2f] = (unsigned char) (Bitmap_Head.biClrUsed>> 8);
- buff[0x30] = (unsigned char) (Bitmap_Head.biClrUsed>> 16);
- buff[0x31] = (unsigned char) (Bitmap_Head.biClrUsed>> 24);
-
- buff[0x32] = (unsigned char) (Bitmap_Head.biClrImp);
- buff[0x33] = (unsigned char) (Bitmap_Head.biClrImp>> 8);
- buff[0x34] = (unsigned char) (Bitmap_Head.biClrImp>> 16);
- buff[0x35] = (unsigned char) (Bitmap_Head.biClrImp>> 24);
-
- if( fwrite((void *) buff, 0x36, 1, image_data_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write bitmap file in write_bitmap_out.c",WRITE_FAILURE);
-
-
- /* Now the reader is written, finally write the image */
- if( fwrite(byte_aligned_image_data,(size_t) sizeof_image,1,image_data_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write bitmap file in write_bitmap_out.c",WRITE_FAILURE);
- if( fclose(image_data_fp) != 0)
- exit_with_msg_and_exit_code("failed to close file in write_bitmap_out.c",CANT_CLOSE_FILE);
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#include "definitions.h"
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-
-#include "exit_codes.h"
-
-/* Write the following files, assuming an input of example.bmp
-
-example.E.Even.bmp Grayscale Bitmap of |E-field|, normallised to 1,
- for even mode, but corrected for Gamma
-example.Ex.Even.bmp Colour Bitmap of x-directed E-field, normallised to 1,
- for even mode, but corrected for Gamma
-example.Ey.Even.bmp Colour Bitmap of y-directed E-field, normallised to 1,
- for even mode, but corrected for Gamma
-example.V.Even.bmp Colour Bitmap of Voltage field, normallised to 1,
- for even mode, corrected for Gamma
-example.U.Even.bmp Grayscale bitmap, with just the energy (U=CV^2).
- for even mode, corrected for Gamma
-
-
-example.E.Odd.bmp Grayscale Bitmap of |E-field|, normallised to 1,
- for odd mode, but corrected for Gamma
-example.Ex.Odd.bmp Colour Bitmap of x-directed E-field, normallised to 1,
- for odd mode, but corrected for Gamma
-example.Ey.Odd.bmp Colour Bitmap of y-directed E-field, normallised to 1,
- for odd mode, but corrected for Gamma
-example.V.Odd.bmp Colour Bitmap of Voltage field, normallised to 1,
- for odd mode, corrected for Gamma
-example.U.Odd.bmp Grayscale bitmap, with just the energy (U=CV^2).
- for odd mode, corrected for Gamma
-
-
-example.Er.bmp Bitmap, showing dielectric constant as on grayscale
- and conductors as red,green and blue. This is *not*
- specifically for the any one mode.
-
-
-
-
-example.E.Odd.bin Binary file of |E-field|, normallised to for odd mode.
-example.Ex.Odd.bin Colour binary file of x-directed E-field, for odd mode.
-example.Ey.Odd.bin Colour binary file of y-directed E-field, for odd mode.
-example.V.Odd.bin Colour binary file of Voltage field, normallised to 1, for odd mode.
-example.U.Odd.bin Bitmap, with just the energy (U=CV^2). for odd mode.
-
-example.E.Even.bin Binary file of |E-field|, for even mode.
-example.Ex.Even.bin Colour binary file of x-directed E-field for even mode.
-example.Ey.Even.bin Colour binary file of y-directed E-field for even mode.
-example.V.Even.bin Colour binary file of Voltage field, for even mode.
-example.U.Even.bin Bitmap, with just the energy (U=CV^2) for even mode.
-
-
-example.Er.bin binary file, showing dielectric constant as on grayscale
- and conductors as red,green and blue. This is *not*
- specifically for the any one mode.
-
-
-*/
-
-extern double **Vij;
-extern double **Er;
-extern unsigned char *bmp_buff;
-extern int width, height;
-
-void write_fields_for_directional_couplers(char * filename, struct transmission_line_properties data, size_t size, int odd_or_even)
-{
- FILE *Ex_even_bin_fp, *Ey_even_bin_fp, *E_even_bin_fp, *V_even_bin_fp, *U_even_bin_fp;
- FILE *Ex_odd_bin_fp, *Ey_odd_bin_fp, *E_odd_bin_fp, *V_odd_bin_fp, *U_odd_bin_fp;
- FILE *Ex_even_bmp_fp, *Ey_even_bmp_fp, *E_even_bmp_fp, *V_even_bmp_fp, *U_even_bmp_fp;
- FILE *Ex_odd_bmp_fp, *Ey_odd_bmp_fp, *E_odd_bmp_fp, *V_odd_bmp_fp, *U_odd_bmp_fp;
- FILE *permittivity_bin_fp, *permittivity_bmp_fp;
-#ifdef DEBUG
- FILE *fpOddEx, *fpOddEy;
- FILE *fpEvenEx, *fpEvenEy;
-#endif
- unsigned char *image_data_Ex=NULL;
- unsigned char *image_data_Ey=NULL;
- unsigned char *image_data_E=NULL;
- unsigned char *image_data_U=NULL;
- unsigned char *image_data_V=NULL;
- unsigned char *image_data_Er=NULL;
-
- unsigned char r, g, b;
-
- static struct max_values maximum_values;
- int offset=-3, w, h;
- size_t memory_location;
- double E, Ex, Ey, U;
-
- if(data.write_binary_field_imagesQ==TRUE && odd_or_even == ODD)
- {
- Ex_odd_bin_fp=get_file_pointer_with_right_filename(filename,".Ex.odd.bin");
- Ey_odd_bin_fp=get_file_pointer_with_right_filename(filename,".Ey.odd.bin");
- E_odd_bin_fp=get_file_pointer_with_right_filename(filename,".E.odd.bin");
- V_odd_bin_fp=get_file_pointer_with_right_filename(filename,".V.odd.bin");
- U_odd_bin_fp=get_file_pointer_with_right_filename(filename,".U.odd.bin");
- permittivity_bin_fp=get_file_pointer_with_right_filename(filename,".Er.bin");
-
- for(h=height-1;h>=0;h--)
- {
- for(w=0;w<width;++w)
- {
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=find_E(w,h);
- U=find_energy_per_metre(w,h);
- if( fwrite((void *) &Ex,sizeof(double), 1, Ex_odd_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &Ey,sizeof(double), 1, Ey_odd_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#2: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &E,sizeof(double), 1, E_odd_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#3: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &U,sizeof(double), 1, U_odd_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#4: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &Vij[w][h],sizeof(double), 1, V_odd_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#5: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &Er[w][h],sizeof(double), 1, permittivity_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- }
- }
- if( fclose(Ex_odd_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#7: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(Ey_odd_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#8: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(E_odd_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#9: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(U_odd_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#10: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(V_odd_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#11: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(permittivity_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#12: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- } /* End of writing odd binary files */
-
- if(data.write_bitmap_field_imagesQ==TRUE && odd_or_even == ODD)
- {
- /* Allocate ram to store the bitmaps before they are written to disk */
- image_data_Ex=ustring(0L,(long) size);
- image_data_Ey=ustring(0L,(long) size);
- image_data_E=ustring(0L,(long) size);
- image_data_V=ustring(0L,(long) size);
- image_data_Er=ustring(0L,(long) size);
- image_data_U=ustring(0L,(long) size);
- for(memory_location=0; memory_location < size; ++memory_location)
- {
- image_data_Ex[memory_location]=0;
- image_data_Ey[memory_location]=0;
- image_data_E[memory_location]=0;
- image_data_U[memory_location]=0;
- image_data_V[memory_location]=0;
- image_data_Er[memory_location]=0;
- }
- /* Find maximum of the parameters */
- find_maximum_values(&(maximum_values),ZERO_ELEMENTS_FIRST); /* sets stucture maximum_values */
- Ex_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".Ex.odd.bmp");
- Ey_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".Ey.odd.bmp");
- E_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".E.odd.bmp");
- V_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".V.odd.bmp");
- U_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".U.odd.bmp");
- permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
-
- /* Permittivity images are written along with the odd images. It
- makes no difference whey they are written, since they don't change */
-
- permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
-
- if( fwrite(bmp_buff,0x36,1,Ex_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,Ey_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,E_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,U_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,V_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,permittivity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- offset=-3;
- for(h=height-1;h>=0;h--)
- {
- for(w=0;w<width;++w)
- {
- offset+=3;
- if((w==0) && (offset%4!=0) && (h!=0))
- offset+=(4-offset%4);
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=find_Ex(w,h);
- U=find_energy_per_metre(w,h);
-
- calculate_colour_data(Ex, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ex, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Ey, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ey, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(E, maximum_values.E_max, w, h, offset,image_data_E, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(U, maximum_values.U_max, w, h, offset,image_data_U, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Vij[w][h], maximum_values.V_max, w, h, offset,image_data_V, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Er[w][h], MAX_ER, w, h, offset,image_data_Er, MIXED,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- }
- }
- if( fwrite((void *) image_data_Ex,size, 1, Ex_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#25: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_Ey[0]),size, 1, Ey_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#26: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_E[0]),size, 1, E_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#27: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_V[0]),size, 1, V_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#28: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_U[0]),size, 1, U_odd_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_Er[0]),size, 1, permittivity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
-
- if( fclose(Ex_odd_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#30: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(Ey_odd_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#31: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(E_odd_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#32: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(V_odd_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#33: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(U_odd_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#34: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(permittivity_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#35: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- free_ustring(image_data_Ex,0L,(long) size);
- free_ustring(image_data_Ey,0L,(long) size);
- free_ustring(image_data_E,0L,(long) size);
- free_ustring(image_data_V,0L,(long) size);
- free_ustring(image_data_U,0L,(long) size);
- free_ustring(image_data_Er,0L,(long)size);
- } /* End of writing odd bitmap files and therefore *all* odd files */
-
- if(data.write_binary_field_imagesQ==TRUE && odd_or_even == EVEN)
- {
- Ex_even_bin_fp=get_file_pointer_with_right_filename(filename,".Ex.even.bin");
- Ey_even_bin_fp=get_file_pointer_with_right_filename(filename,".Ey.even.bin");
- E_even_bin_fp=get_file_pointer_with_right_filename(filename,".E.even.bin");
- V_even_bin_fp=get_file_pointer_with_right_filename(filename,".V.even.bin");
- U_even_bin_fp=get_file_pointer_with_right_filename(filename,".U.even.bin");
- permittivity_bin_fp=get_file_pointer_with_right_filename(filename,".Er.bin");
-
- for(h=height-1;h>=0;h--)
- {
- for(w=0;w<width;++w)
- {
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=find_E(w,h);
- U=find_energy_per_metre(w,h);
-
- if( fwrite((void *) &Ex,sizeof(double), 1, Ex_even_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &Ey,sizeof(double), 1, Ey_even_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#2: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &E,sizeof(double), 1, E_even_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#3: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &U,sizeof(double), 1, U_even_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#4: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &Vij[w][h],sizeof(double), 1, V_even_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#5: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &Er[w][h],sizeof(double), 1, permittivity_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- }
- }
- if( fclose(Ex_even_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#7: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(Ey_even_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#8: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(E_even_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#9: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(U_even_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#10: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(V_even_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#11: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(permittivity_bin_fp) != 0)
- exit_with_msg_and_exit_code("Error#12: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- } /* End of writing even binary files */
-
- if(data.write_bitmap_field_imagesQ==TRUE && odd_or_even == EVEN)
- {
- /* Allocate ram to store the bitmaps before they are written to disk */
- image_data_Ex=ustring(0L,(long) size);
- image_data_Ey=ustring(0L,(long) size);
- image_data_E=ustring(0L,(long) size);
- image_data_V=ustring(0L,(long) size);
- image_data_Er=ustring(0L,(long) size);
- image_data_U=ustring(0L,(long) size);
-#ifdef HAVE_MEMSET
- (void) memset((void *) image_data_Ex,0,size);
- (void) memset((void *) image_data_Ey,0,size);
- (void) memset((void *) image_data_E,0,size);
- (void) memset((void *) image_data_U,0,size);
- (void) memset((void *) image_data_V,0,size);
- (void) memset((void *) image_data_Er,0,size);
-#else
- for(memory_location=0; memory_location < size; ++memory_location)
- {
- image_data_Ex[memory_location]=0;
- image_data_Ey[memory_location]=0;
- image_data_E[memory_location]=0;
- image_data_U[memory_location]=0;
- image_data_V[memory_location]=0;
- image_data_Er[memory_location]=0;
- }
-#endif /* End of #ifdef HAVE_MEMSET */
- /* Find maximum of the parameters */
- find_maximum_values(&(maximum_values),FALSE); /* sets stucture maximum_values */
-
- Ex_even_bmp_fp=get_file_pointer_with_right_filename(filename,".Ex.even.bmp");
- Ey_even_bmp_fp=get_file_pointer_with_right_filename(filename,".Ey.even.bmp");
- E_even_bmp_fp=get_file_pointer_with_right_filename(filename,".E.even.bmp");
- V_even_bmp_fp=get_file_pointer_with_right_filename(filename,".V.even.bmp");
- U_even_bmp_fp=get_file_pointer_with_right_filename(filename,".U.even.bmp");
- permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
-
- /* Permittivity images are written along with the even images. It
- makes no difference whey they are written, since they don't change */
-
- permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
-
- if( fwrite(bmp_buff,0x36,1,Ex_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,Ey_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,E_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,U_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,V_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,permittivity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- offset=-3;
-#ifdef DEBUG
- fpEvenEx=fopen("Ex.even.txt","w");
- fpEvenEy=fopen("Ey.even.txt","w");
-#endif
- for(h=height-1;h>=0;h--)
- {
- for(w=0;w<width;++w)
- {
- offset+=3;
- if((w==0) && (offset%4!=0) && (h!=0))
- offset+=(4-offset%4);
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=find_Ex(w,h);
- U=find_energy_per_metre(w,h);
-
- calculate_colour_data(Ex, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ex, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Ey, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ey, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(E, maximum_values.E_max, w, h, offset,image_data_E, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(U, maximum_values.U_max, w, h, offset,image_data_U, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Vij[w][h], maximum_values.V_max, w, h, offset,image_data_V, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Er[w][h], MAX_ER, w, h, offset,image_data_Er, MIXED,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
- }
- }
- if( fwrite((void *) &(image_data_Ex[0]),size, 1, Ex_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#25: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_Ey[0]),size, 1, Ey_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#26: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_E[0]),size, 1, E_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#27: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_V[0]),size, 1, V_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#28: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_U[0]),size, 1, U_even_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
- if( fwrite((void *) &(image_data_Er[0]),size, 1, permittivity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
-
- if( fclose(Ex_even_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#30: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(Ey_even_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#31: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(E_even_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#32: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(V_even_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#33: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(U_even_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#34: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
- if( fclose(permittivity_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#35: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
-
- /* Free ram used to store the bitmaps before they were written to disk */
- free_ustring(image_data_Ex,0L,(long) size);
- free_ustring(image_data_Ey,0L,(long) size);
- free_ustring(image_data_E,0L,(long) size);
- free_ustring(image_data_V,0L,(long) size);
- free_ustring(image_data_U,0L,(long) size);
- free_ustring(image_data_Er,0L,(long) size);
- } /* End of writing even bitmap files */
-}
+++ /dev/null
-/* atlc - arbitrary transmission line calculator, for the analysis of
-transmission lines are directional couplers.
-
-Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
-
-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 package_version 2
-of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
-USA.
-
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
-
-*/
-
-#include "config.h"
-
-#include "definitions.h"
-
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
-
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
-
-#include "exit_codes.h"
-
-extern double **Vij;
-extern double **Er;
-extern unsigned char *bmp_buff;
-extern int width, height, errno;
-#ifdef WRITE_ODDITY_DATA
-extern unsigned char **oddity;
-#endif
-
-/* Write the following files, assuming an input of example.bmp
-where example.bmp is a 2 conductor transmission lines. For
-3 conductor transmission lines (couplers) the function
-
-
-example.E.bmp Grayscale Bitmap of |E-field|, normallised to 1,
-but corrected for Gamma
-example.Ex.bmp Colour Bitmap of x-directed E-field, normallised to 1,
-but corrected for Gamma
-example.Ey.bmp Colour Bitmap of y-directed E-field, normallised to 1,
-but corrected for Gamma
-example.V.bmp Colour Bitmap of Voltage field, normallised to 1, but
-corrected for Gamma
-eexample.U.bmp Grayscale bitmap, with just the energy (U=CV^2).
-
-example.Ex.bin binary file, with just the x-directed E-field
-(in volts/pixel) as doubles
-example.Ey.bin binary file, with just the y-directed E-field
-(in volts/pixel) as doubles
-example.E.bin binary file, with just the E-field {sqrt(Ex^2+Ey^2)}
-(in volts/pixel) as doubles
-example.V.bin binary file, with just the Voltage as doubles
-eexample.U.bin binary file, with just the energy (U=CV^2).
-
-*/
-
-extern double image_fiddle_factor;
-
-
-void write_fields_for_two_conductor_lines(char * filename, struct transmission_line_properties data, size_t size)
-{
- FILE *Ex_bin_fp=NULL, *Ey_bin_fp=NULL;
- FILE *E_bin_fp=NULL, *V_bin_fp, *U_bin_fp=NULL;
- FILE *Ex_bmp_fp=NULL, *Ey_bmp_fp=NULL;
- FILE *E_bmp_fp=NULL, *V_bmp_fp=NULL, *U_bmp_fp=NULL;
-#ifdef WRITE_ODDITY_DATA
- FILE *oddity_bmp_fp=NULL;
- double odd;
-#endif
- unsigned char r, g, b;
- FILE *permittivity_bin_fp=NULL, *permittivity_bmp_fp=NULL;
- struct max_values maximum_values;
- int offset=-3, w, h;
- double V, E, Ex, Ey, U;
-
- unsigned char *image_data_Ex=NULL;
- unsigned char *image_data_Ey=NULL;
- unsigned char *image_data_E=NULL;
- unsigned char *image_data_U=NULL;
- unsigned char *image_data_V=NULL;
- unsigned char *image_data_Er=NULL;
-#ifdef WRITE_ODDITY_DATA
- unsigned char *image_data_oddity=NULL;
-#endif
-
-
- if(data.write_binary_field_imagesQ==TRUE)
- {
- Ex_bin_fp=get_file_pointer_with_right_filename(filename,".Ex.bin");
- Ey_bin_fp=get_file_pointer_with_right_filename(filename,".Ey.bin");
- E_bin_fp=get_file_pointer_with_right_filename(filename,".E.bin");
- V_bin_fp=get_file_pointer_with_right_filename(filename,".V.bin");
- U_bin_fp=get_file_pointer_with_right_filename(filename,".U.bin");
- permittivity_bin_fp=get_file_pointer_with_right_filename(filename,".Er.bin");
- for(h=height-1;h>=0;h--)
- {
- for(w=0;w<width;++w)
- {
- V=Vij[w][h];
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=find_E(w,h);
- U=find_energy_per_metre(w,h);
-#ifdef DEBUG
- if( Vij[w][h] == 0.0)
- zeros++;
- if( Vij[w][h] == 1.0)
- ones++;
-#endif
- if( fwrite((void *) &Ex,sizeof(double), 1, Ex_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-
- if( fwrite((void *) &Ey,sizeof(double), 1, Ey_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#2: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-
- if( fwrite((void *) &E,sizeof(double), 1, E_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#3: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-
- if( fwrite((void *) &V,sizeof(double), 1, V_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#4: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-
- if( fwrite((void *) &U,sizeof(double), 1, U_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#5: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-
- if( fwrite((void *) &Er[w][h],sizeof(double), 1, permittivity_bin_fp) != 1)
- exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- }
- }
- } /* end of writing binary files for 2 conductor lines */
-
- if(data.write_bitmap_field_imagesQ==TRUE)
- {
- find_maximum_values(&(maximum_values), ZERO_ELEMENTS_FIRST); /* sets stucture maximum_values */
-
- /* Allocate ram to store the bitmaps before they are written to disk */
- image_data_Ex=ustring(0L,(long) size);
- image_data_Ey=ustring(0L,(long) size);
- image_data_E=ustring(0L,(long) size);
- image_data_V=ustring(0L,(long) size);
- image_data_Er=ustring(0L,(long) size);
- image_data_U=ustring(0L,(long) size);
-#ifdef WRITE_ODDITY_DATA
- image_data_oddity=ustring(0L,(long) size);
-#endif
-
- Ex_bmp_fp=get_file_pointer_with_right_filename(filename,".Ex.bmp");
- Ey_bmp_fp=get_file_pointer_with_right_filename(filename,".Ey.bmp");
- E_bmp_fp=get_file_pointer_with_right_filename(filename,".E.bmp");
- V_bmp_fp=get_file_pointer_with_right_filename(filename,".V.bmp");
- U_bmp_fp=get_file_pointer_with_right_filename(filename,".U.bmp");
- permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
-#ifdef WRITE_ODDITY_DATA
- oddity_bmp_fp=get_file_pointer_with_right_filename(filename,".oddity.bmp");
-#endif
-
- if( fwrite(bmp_buff,0x36,1,Ex_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer Ex_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,Ey_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer Ey_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,E_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer E_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,V_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer V_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,U_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer U_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fwrite(bmp_buff,0x36,1,permittivity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer permittivity_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-
-#ifdef WRITE_ODDITY_DATA
- if( fwrite(bmp_buff,0x36,1,oddity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("failed to write file with the pointer oddity_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
-#endif
-
- offset=-3;
- for(h=height-1;h>=0;h--)
- {
- for(w=0;w<width;++w)
- {
- offset+=3;
- if((w==0) && (offset%4!=0) && (h!=0))
- offset+=(4-offset%4);
- Ex=find_Ex(w,h);
- Ey=find_Ey(w,h);
- E=find_E(w,h);
- U=find_energy_per_metre(w,h);
- calculate_colour_data(Ex, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ex, COLOUR,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Ey, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ey, COLOUR,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(E, maximum_values.E_max, w, h, offset,image_data_E, MONOCHROME,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(U, maximum_values.U_max, w, h, offset,image_data_U, MONOCHROME,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Vij[w][h], maximum_values.V_max, w, h, offset,image_data_V, COLOUR,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
- calculate_colour_data(Er[w][h], MAX_ER, w, h, offset,image_data_Er, MIXED,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
-#ifdef WRITE_ODDITY_DATA
- odd=(double) oddity[w][h];
- calculate_colour_data(odd, 255 , w, h, offset,image_data_oddity, MONOCHROME,&r,&g,&b,1.0);
-#endif
-
- }
- }
-
- /* if( fwrite((void *) &(image_data_Ex[0]),size, 1, Ex_bmp_fp) != 1) */
- if( fwrite((void *) image_data_Ex,size, 1, Ex_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#7: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(Ex_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#8: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-
- /* if( fwrite((void *) &(image_data_Ey[0]),size, 1, Ey_bmp_fp) != 1) */
- if( fwrite((void *) image_data_Ey,size, 1, Ey_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#9: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(Ey_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#10: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-
- if( fwrite((void *) &(image_data_E[0]),size, 1, E_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#11: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(E_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#12: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-
- if( fwrite((void *) &(image_data_U[0]),size, 1, U_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#13: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(U_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#14: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-
- if( fwrite((void *) &(image_data_V[0]),size, 1, V_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#15: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(V_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#16: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-
- if( fwrite((void *) &(image_data_Er[0]),size, 1, permittivity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#17: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(permittivity_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#18: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-
-#ifdef WRITE_ODDITY_DATA
- if( fwrite((void *) &(image_data_oddity[0]),size, 1, oddity_bmp_fp) != 1)
- exit_with_msg_and_exit_code("Error#19: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
- if( fclose(oddity_bmp_fp) != 0)
- exit_with_msg_and_exit_code("Error#20: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
-#endif
-
- free_ustring(image_data_Ex,0L,(long)size);
- free_ustring(image_data_Ey,0L,(long)size);
- free_ustring(image_data_E,0L,(long)size);
- free_ustring(image_data_V,0L,(long)size);
- free_ustring(image_data_U,0L,(long)size);
- free_ustring(image_data_Er,0L,(long)size);
-#ifdef WRITE_ODDITY_DATA
- free_ustring(image_data_oddity,0L,(long)size);
-#endif
- }
-#ifdef DEBUG
- printf("zeros=%d ones=%d\n",zeros,ones);
-#endif
-}
--- /dev/null
+
+#include "config.h"
+#include "definitions.h"
+
+void print_copyright(const char *s)
+{
+ printf("Copyright (C) %s. Dr. David Kirkby, PhD (G8WRB).\n",s);
+ printf("Dr. David Kirkby, e-mail drkirkby at gmail.com \n");
+ printf("Stokes Hall Lodge, Burnham Road, Althorne, Essex, CM3 6DT, UK.\n\n");
+
+ printf("This program is free software; you can redistribute it and/or\n");
+ printf("modify it under the terms of the GNU General Public License\n");
+ printf("as published by the Free Software Foundation; either package_version 2\n");
+ printf("of the License, or (at your option) any later package_version.\n\n");
+
+ printf("This program is distributed in the hope that it will be useful,\n");
+ printf("but WITHOUT ANY WARRANTY; without even the implied warranty of\n");
+ printf("MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n");
+ printf("GNU General Public License, printed below, for more details.\n\n");
+
+
+ printf(" GNU GENERAL PUBLIC LICENSE\n");
+ printf(" Package_version 2, June 1991\n\n");
+ printf(" Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n");
+ printf(" 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n");
+ printf(" Everyone is permitted to copy and distribute verbatim copies\n");
+ printf(" of this license document, but changing it is not allowed.\n\n");
+ printf(" Preamble\n");
+ printf(" The licenses for most software are designed to take away your\n");
+ printf("freedom to share and change it. By contrast, the GNU General Public\n");
+ printf("License is intended to guarantee your freedom to share and change free\n");
+ printf("software--to make sure the software is free for all its users. This\n");
+ printf("General Public License applies to most of the Free Software\n");
+ printf("Foundation's software and to any other program whose authors commit to\n");
+ printf("using it. (Some other Free Software Foundation software is covered by\n");
+ printf("the GNU Library General Public License instead.) You can apply it to\n");
+ printf("your programs, too.\n\n");
+
+ printf(" When we speak of free software, we are referring to freedom, not\n");
+ printf("price. Our General Public Licenses are designed to make sure that you\n");
+ printf("have the freedom to distribute copies of free software (and charge for\n");
+ printf("this service if you wish), that you receive source code or can get it\n");
+ printf("if you want it, that you can change the software or use pieces of it\n");
+ printf("in new free programs; and that you know you can do these things.\n\n");
+
+ printf(" To protect your rights, we need to make restrictions that forbid\n");
+ printf("anyone to deny you these rights or to ask you to surrender the rights.\n");
+ printf("These restrictions translate to certain responsibilities for you if you\n");
+ printf("distribute copies of the software, or if you modify it.\n\n");
+
+ printf(" For example, if you distribute copies of such a program, whether\n");
+ printf("gratis or for a fee, you must give the recipients all the rights that\n");
+ printf("you have. You must make sure that they, too, receive or can get the\n");
+ printf("source code. And you must show them these terms so they know their\n");
+ printf("rights.\n");
+ printf("\n");
+ printf(" We protect your rights with two steps: (1) copyright the software, and\n");
+ printf("(2) offer you this license which gives you legal permission to copy,\n");
+ printf("distribute and/or modify the software.\n");
+ printf("\n");
+ printf(" Also, for each author's protection and ours, we want to make certain\n");
+ printf("that everyone understands that there is no warranty for this free\n");
+ printf("software. If the software is modified by someone else and passed on, we\n");
+ printf("want its recipients to know that what they have is not the original, so\n");
+ printf("that any problems introduced by others will not reflect on the original\n");
+ printf("authors' reputations.\n");
+ printf("\n");
+ printf(" Finally, any free program is threatened constantly by software\n");
+ printf("patents. We wish to avoid the danger that redistributors of a free\n");
+ printf("program will individually obtain patent licenses, in effect making the\n");
+ printf("program proprietary. To prevent this, we have made it clear that any\n");
+ printf("patent must be licensed for everyone's free use or not licensed at all.\n");
+ printf("\n");
+ printf(" The precise terms and conditions for copying, distribution and\n");
+ printf("modification follow.\n");
+ printf("\f\n");
+ printf(" GNU GENERAL PUBLIC LICENSE\n");
+ printf(" TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n");
+ printf("\n");
+ printf(" 0. This License applies to any program or other work which contains\n");
+ printf("a notice placed by the copyright holder saying it may be distributed\n");
+ printf("under the terms of this General Public License. The \"Program\", below,\n");
+ printf("refers to any such program or work, and a \"work based on the Program\"\n");
+ printf("means either the Program or any derivative work under copyright law:\n");
+ printf("that is to say, a work containing the Program or a portion of it,\n");
+ printf("either verbatim or with modifications and/or translated into another\n");
+ printf("language. (Hereinafter, translation is included without limitation in\n");
+ printf("the term \"modification\".) Each licensee is addressed as \"you\".\n");
+ printf("\n");
+ printf("Activities other than copying, distribution and modification are not\n");
+ printf("covered by this License; they are outside its scope. The act of\n");
+ printf("running the Program is not restricted, and the output from the Program\n");
+ printf("is covered only if its contents constitute a work based on the\n");
+ printf("Program (independent of having been made by running the Program).\n");
+ printf("Whether that is true depends on what the Program does.\n");
+ printf("\n");
+ printf(" 1. You may copy and distribute verbatim copies of the Program's\n");
+ printf("source code as you receive it, in any medium, provided that you\n");
+ printf("conspicuously and appropriately publish on each copy an appropriate\n");
+ printf("copyright notice and disclaimer of warranty; keep intact all the\n");
+ printf("notices that refer to this License and to the absence of any warranty;\n");
+ printf("and give any other recipients of the Program a copy of this License\n");
+ printf("along with the Program.\n");
+ printf("\n");
+ printf("You may charge a fee for the physical act of transferring a copy, and\n");
+ printf("you may at your option offer warranty protection in exchange for a fee.\n");
+ printf("\n");
+ printf(" 2. You may modify your copy or copies of the Program or any portion\n");
+ printf("of it, thus forming a work based on the Program, and copy and\n");
+ printf("distribute such modifications or work under the terms of Section 1\n");
+ printf("above, provided that you also meet all of these conditions:\n");
+ printf("\n");
+ printf(" a) You must cause the modified files to carry prominent notices\n");
+ printf(" stating that you changed the files and the date of any change.\n");
+ printf("\n");
+ printf(" b) You must cause any work that you distribute or publish, that in\n");
+ printf(" whole or in part contains or is derived from the Program or any\n");
+ printf(" part thereof, to be licensed as a whole at no charge to all third\n");
+ printf(" parties under the terms of this License.\n");
+ printf("\n");
+ printf(" c) If the modified program normally reads commands interactively\n");
+ printf(" when run, you must cause it, when started running for such\n");
+ printf(" interactive use in the most ordinary way, to print or display an\n");
+ printf(" announcement including an appropriate copyright notice and a\n");
+ printf(" notice that there is no warranty (or else, saying that you provide\n");
+ printf(" a warranty) and that users may redistribute the program under\n");
+ printf(" these conditions, and telling the user how to view a copy of this\n");
+ printf(" License. (Exception: if the Program itself is interactive but\n");
+ printf(" does not normally print such an announcement, your work based on\n");
+ printf(" the Program is not required to print an announcement.)\n");
+ printf("\f\n");
+ printf("These requirements apply to the modified work as a whole. If\n");
+ printf("identifiable sections of that work are not derived from the Program,\n");
+ printf("and can be reasonably considered independent and separate works in\n");
+ printf("themselves, then this License, and its terms, do not apply to those\n");
+ printf("sections when you distribute them as separate works. But when you\n");
+ printf("distribute the same sections as part of a whole which is a work based\n");
+ printf("on the Program, the distribution of the whole must be on the terms of\n");
+ printf("this License, whose permissions for other licensees extend to the\n");
+ printf("entire whole, and thus to each and every part regardless of who wrote it.\n");
+ printf("\n");
+ printf("Thus, it is not the intent of this section to claim rights or contest\n");
+ printf("your rights to work written entirely by you; rather, the intent is to\n");
+ printf("exercise the right to control the distribution of derivative or\n");
+ printf("collective works based on the Program.\n");
+ printf("\n");
+ printf("In addition, mere aggregation of another work not based on the Program\n");
+ printf("with the Program (or with a work based on the Program) on a volume of\n");
+ printf("a storage or distribution medium does not bring the other work under\n");
+ printf("the scope of this License.\n");
+ printf("\n");
+ printf(" 3. You may copy and distribute the Program (or a work based on it,\n");
+ printf("under Section 2) in object code or executable form under the terms of\n");
+ printf("Sections 1 and 2 above provided that you also do one of the following:\n");
+ printf("\n");
+ printf(" a) Accompany it with the complete corresponding machine-readable\n");
+ printf(" source code, which must be distributed under the terms of Sections\n");
+ printf(" 1 and 2 above on a medium customarily used for software interchange; or,\n");
+ printf("\n");
+ printf(" b) Accompany it with a written offer, valid for at least three\n");
+ printf(" years, to give any third party, for a charge no more than your\n");
+ printf(" cost of physically performing source distribution, a complete\n");
+ printf(" machine-readable copy of the corresponding source code, to be\n");
+ printf(" distributed under the terms of Sections 1 and 2 above on a medium\n");
+ printf(" customarily used for software interchange; or,\n");
+ printf("\n");
+ printf(" c) Accompany it with the information you received as to the offer\n");
+ printf(" to distribute corresponding source code. (This alternative is\n");
+ printf(" allowed only for noncommercial distribution and only if you\n");
+ printf(" received the program in object code or executable form with such\n");
+ printf(" an offer, in accord with Subsection b above.)\n");
+ printf("\n");
+ printf("The source code for a work means the preferred form of the work for\n");
+ printf("making modifications to it. For an executable work, complete source\n");
+ printf("code means all the source code for all modules it contains, plus any\n");
+ printf("associated interface definition files, plus the scripts used to\n");
+ printf("control compilation and installation of the executable. However, as a\n");
+ printf("special exception, the source code distributed need not include\n");
+ printf("anything that is normally distributed (in either source or binary\n");
+ printf("form) with the major components (compiler, kernel, and so on) of the\n");
+ printf("operating system on which the executable runs, unless that component\n");
+ printf("itself accompanies the executable.\n");
+ printf("\n");
+ printf("If distribution of executable or object code is made by offering\n");
+ printf("access to copy from a designated place, then offering equivalent\n");
+ printf("access to copy the source code from the same place counts as\n");
+ printf("distribution of the source code, even though third parties are not\n");
+ printf("compelled to copy the source along with the object code.\n");
+ printf("\f\n");
+ printf(" 4. You may not copy, modify, sublicense, or distribute the Program\n");
+ printf("except as expressly provided under this License. Any attempt\n");
+ printf("otherwise to copy, modify, sublicense or distribute the Program is\n");
+ printf("void, and will automatically terminate your rights under this License.\n");
+ printf("However, parties who have received copies, or rights, from you under\n");
+ printf("this License will not have their licenses terminated so long as such\n");
+ printf("parties remain in full compliance.\n");
+ printf("\n");
+ printf(" 5. You are not required to accept this License, since you have not\n");
+ printf("signed it. However, nothing else grants you permission to modify or\n");
+ printf("distribute the Program or its derivative works. These actions are\n");
+ printf("prohibited by law if you do not accept this License. Therefore, by\n");
+ printf("modifying or distributing the Program (or any work based on the\n");
+ printf("Program), you indicate your acceptance of this License to do so, and\n");
+ printf("all its terms and conditions for copying, distributing or modifying\n");
+ printf("the Program or works based on it.\n");
+ printf("\n");
+ printf(" 6. Each time you redistribute the Program (or any work based on the\n");
+ printf("Program), the recipient automatically receives a license from the\n");
+ printf("original licensor to copy, distribute or modify the Program subject to\n");
+ printf("these terms and conditions. You may not impose any further\n");
+ printf("restrictions on the recipients' exercise of the rights granted herein.\n");
+ printf("You are not responsible for enforcing compliance by third parties to\n");
+ printf("this License.\n");
+ printf("\n");
+ printf(" 7. If, as a consequence of a court judgment or allegation of patent\n");
+ printf("infringement or for any other reason (not limited to patent issues),\n");
+ printf("conditions are imposed on you (whether by court order, agreement or\n");
+ printf("otherwise) that contradict the conditions of this License, they do not\n");
+ printf("excuse you from the conditions of this License. If you cannot\n");
+ printf("distribute so as to satisfy simultaneously your obligations under this\n");
+ printf("License and any other pertinent obligations, then as a consequence you\n");
+ printf("may not distribute the Program at all. For example, if a patent\n");
+ printf("license would not permit royalty-free redistribution of the Program by\n");
+ printf("all those who receive copies directly or indirectly through you, then\n");
+ printf("the only way you could satisfy both it and this License would be to\n");
+ printf("refrain entirely from distribution of the Program.\n");
+ printf("\n");
+ printf("If any portion of this section is held invalid or unenforceable under\n");
+ printf("any particular circumstance, the balance of the section is intended to\n");
+ printf("apply and the section as a whole is intended to apply in other\n");
+ printf("circumstances.\n");
+ printf("\n");
+ printf("It is not the purpose of this section to induce you to infringe any\n");
+ printf("patents or other property right claims or to contest validity of any\n");
+ printf("such claims; this section has the sole purpose of protecting the\n");
+ printf("integrity of the free software distribution system, which is\n");
+ printf("implemented by public license practices. Many people have made\n");
+ printf("generous contributions to the wide range of software distributed\n");
+ printf("through that system in reliance on consistent application of that\n");
+ printf("system; it is up to the author/donor to decide if he or she is willing\n");
+ printf("to distribute software through any other system and a licensee cannot\n");
+ printf("impose that choice.\n");
+ printf("\n");
+ printf("This section is intended to make thoroughly clear what is believed to\n");
+ printf("be a consequence of the rest of this License.\n");
+ printf("\f\n");
+ printf(" 8. If the distribution and/or use of the Program is restricted in\n");
+ printf("certain countries either by patents or by copyrighted interfaces, the\n");
+ printf("original copyright holder who places the Program under this License\n");
+ printf("may add an explicit geographical distribution limitation excluding\n");
+ printf("those countries, so that distribution is permitted only in or among\n");
+ printf("countries not thus excluded. In such case, this License incorporates\n");
+ printf("the limitation as if written in the body of this License.\n");
+ printf("\n");
+ printf(" 9. The Free Software Foundation may publish revised and/or new versions\n");
+ printf("of the General Public License from time to time. Such new versions will\n");
+ printf("be similar in spirit to the present package_version, but may differ in detail to\n");
+ printf("address new problems or concerns.\n");
+ printf("\n");
+ printf("Each package_version is given a distinguishing package_version number. If the Program\n");
+ printf("specifies a package_version number of this License which applies to it and \"any\n");
+ printf("later package_version\", you have the option of following the terms and conditions\n");
+ printf("either of that package_version or of any later package_version published by the Free\n");
+ printf("Software Foundation. If the Program does not specify a package_version number of\n");
+ printf("this License, you may choose any package_version ever published by the Free Software\n");
+ printf("Foundation.\n");
+ printf("\n");
+ printf(" 10. If you wish to incorporate parts of the Program into other free\n");
+ printf("programs whose distribution conditions are different, write to the author\n");
+ printf("to ask for permission. For software which is copyrighted by the Free\n");
+ printf("Software Foundation, write to the Free Software Foundation; we sometimes\n");
+ printf("make exceptions for this. Our decision will be guided by the two goals\n");
+ printf("of preserving the free status of all derivatives of our free software and\n");
+ printf("of promoting the sharing and reuse of software generally.\n");
+ printf("\n");
+ printf(" NO WARRANTY\n");
+ printf("\n");
+ printf(" 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\n");
+ printf("FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN\n");
+ printf("OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\n");
+ printf("PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\n");
+ printf("OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\n");
+ printf("MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS\n");
+ printf("TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE\n");
+ printf("PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\n");
+ printf("REPAIR OR CORRECTION.\n");
+ printf("\n");
+ printf(" 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\n");
+ printf("WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\n");
+ printf("REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\n");
+ printf("INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\n");
+ printf("OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\n");
+ printf("TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\n");
+ printf("YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\n");
+ printf("PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\n");
+ printf("POSSIBILITY OF SUCH DAMAGES.\n");
+ printf("\n");
+ printf(" END OF TERMS AND CONDITIONS\n");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#include "definitions.h"
+
+/* The following simple function just prints data into a file, or if
+fp-stout, to the screen. Depending on whether the dielectric is mixed or
+not, it is or is not possible to quote a value for Er. If Er is passed
+as a mumber < 0, this function interprets that as meaning that the
+dielectric is mixed, and says 'Er= MIXED' */
+
+void print_data_for_directional_couplers(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name)
+{
+ if(data.display==Z_ODD_SINGLE_DIELECTRIC)
+ {
+ if(data.verbose_level ==1)
+ fprintf(where_to_print_fp,"%s 3 Er_odd= %6.2f Er_even= %s Zodd= %7.3f Zeven= %s Zo= %s Zdiff= %6.2f Zcomm= %s Ohms VERSION=%s\n",inputfile_name,data.Er_odd, "??????", data.Zodd, "??????","??????",data.Zdiff, "??????", PACKAGE_VERSION);
+ else if (data.verbose_level >=2)
+ fprintf(where_to_print_fp,"%s 3 Er_odd= %6.2f Er_even= %s Zodd= %7.3f Zeven= %s Zo= %s Zdiff= %6.2f Zcomm= %s Ohms VERSION=%s\n",inputfile_name,data.Er_odd, "??????", data.Zodd, "??????","??????",data.Zdiff, "??????", PACKAGE_VERSION);
+ }
+ else if(data.display == Z_EVEN_SINGLE_DIELECTRIC)
+ {
+ if(data.verbose_level ==1)
+ fprintf(where_to_print_fp,"%s 3 Er_odd= %7.3f Er_even= %7.3f Zodd= %7.3f Zeven= %7.3f Zo= %7.3f Zdiff= %7.3f Zcomm= %7.3f Ohms VERSION=%s\n",inputfile_name,data.Er_odd, data.Er_even, data.Zodd, data.Zeven, data.Zo,data.Zdiff, data.Zcomm, PACKAGE_VERSION);
+ else if (data.verbose_level >=2)
+ fprintf(where_to_print_fp,"%s 3 Er_odd= %7.3f Er_even= %7.3f Zodd= %7.3f Zeven= %7.3f Zo= %7.3f Zdiff= %7.3f Zcomm= %7.3f Ohms VERSION=%s\n",inputfile_name,data.Er_odd, data.Er_even, data.Zodd, data.Zeven, data.Zo,data.Zdiff, data.Zcomm, PACKAGE_VERSION);
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#include "definitions.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+/* The following simple function just prints data into a file, or if
+fp-stout, to the screen. Depending on whether the dielectric is mixed or
+not, it is or is not possible to quote a value for Er. If Er is passed
+as a mumber < 0, this function interprets that as meaning that the
+dielectric is mixed, and says 'Er= MIXED' */
+
+void print_data_for_two_conductor_lines(struct transmission_line_properties data, FILE *where_to_print_fp, char *inputfile_name)
+{
+ if(data.verbose_level <2)
+ fprintf(where_to_print_fp,"%s 2 Er= %5.2f Zo= %7.3f Ohms C= %6.1f pF/m L= %6.1f nH/m v= %.4g m/s v_f= %.3f VERSION= %s\n",inputfile_name,data.Er, data.Zo,data.C*1e12, data.L_vacuum*1e9, data.velocity,data.velocity_factor,PACKAGE_VERSION);
+ else
+ fprintf(where_to_print_fp,"%s 2 Er= %16.13f Zo= %16.13f Ohms C= %16.13f pF/m L= %16.13f nH/m v= %16.13g m/s v_f= %16.13f VERSION= %s\n",inputfile_name,data.Er, data.Zo,data.C*1e12, data.L_vacuum*1e9, data.velocity,data.velocity_factor,PACKAGE_VERSION);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+unsigned char *bmp_buff;
+
+/* We make the bitmap header public, as we write it back
+later, when saving bmp files. It saves a lot of hassle,
+just writing what we read back, rather than correctly
+calculating all the data in the header correctly */
+
+#define BITMAP_HEADER_SIZE 0x36 /* 54 */
+
+void read_bitmap_file_headers(char *filename, int *offset, size_t *size, int *width, int *height)
+{
+ FILE *fp;
+
+ struct Bitmap_File_Head_Struct Bitmap_File_Head;
+ struct Bitmap_Head_Struct Bitmap_Head;
+ int ColormapSize, Maps;
+ int length_of_file; /* Appently Photoshop versions < 7.01
+ don't write this into Bitmap_Head.biSizeIm
+ so it causes a problem. So we will work out
+ the length by seeking to the end of the file
+ and finding the position of the file
+ pointer */
+
+ bmp_buff=ustring(0,BITMAP_HEADER_SIZE);
+ if(strcmp(filename,"-")==0)
+ {
+ fp=stdin;
+ }
+ else
+ fp=fopen(filename,"rb");
+
+ if(fp==NULL)
+ {
+ fprintf(stderr,"cannot open %s\n", filename);
+ exit_with_msg_and_exit_code("",CANT_OPEN_FILE_FOR_READING);
+ }
+
+ /* deternine the length of the file, as its not always
+ written into the bitmap. I thought it needed to be, but
+ apparently it does not and photoshop versions < 7.01
+ don't do it. */
+ if( fseek(fp, 0, SEEK_END) == -1)
+ {
+ fprintf(stderr," Can't seek to the end of the file in read_bitmap_file_headers.c\n");
+ exit(FSEEK_FAILURE);
+ }
+ if( (length_of_file=ftell(fp)) == -1)
+ exit_with_msg_and_exit_code("Can't find length of file in read_bitmap_file_headers.c",FTELL_FAILURE);
+
+ if( (fseek(fp, 0, SEEK_SET) ) == -1)
+ {
+ fprintf(stderr," Can't seek to the beggining of the file in read_bitmap_file_headers.c\n");
+ exit(FSEEK_FAILURE);
+ }
+ /* Read the .bmp file header into a bmp_buff */
+ if (!(fread(bmp_buff, 1,BITMAP_HEADER_SIZE,fp))||(strncmp((char *) bmp_buff,"BM",2)))
+ {
+ fprintf(stderr,"%s is not a valid BMP file\n", filename);
+ exit_with_msg_and_exit_code("",NOT_A_VALID_BITMAP_FILE);
+ }
+
+/* On most machines, sizeof(short)==2 and sizeof(int)==4. This is so no matter
+if the machine is 32 or 64 bis. An exception is the Cray Y-MP, which has
+sizeof(short)=8
+sizeof(int)=8
+sizeof(long)=8.
+
+In this case, it is much more difficult to write the header for the bitmap. But in
+the aid of portability, this is done. So these is a section of code that will work
+even if sizeof(short)=8 and sizeof(int)=8. See below for that. */
+
+
+ /* Read the bmp_buff into the two structures we want */
+
+ Bitmap_File_Head.zzMagic[0x0] = bmp_buff[0];
+ Bitmap_File_Head.zzMagic[0x1] = bmp_buff[1];
+ Bitmap_File_Head.bfSize = bmp_buff[0x2] + ((bmp_buff[3] + ((bmp_buff[4] + (bmp_buff[5] << 8)) << 8)) <<8);
+ Bitmap_File_Head.zzHotX = bmp_buff[0x6] + (bmp_buff[7] << 8);
+ Bitmap_File_Head.zzHotY = bmp_buff[0x8] + (bmp_buff[0x09] << 8);
+ Bitmap_File_Head.bfOffs = bmp_buff[0x0a] + ((bmp_buff[0xb] + ((bmp_buff[0xc] + (bmp_buff[0x0d] << 8)) << 8)) <<8);
+ Bitmap_File_Head.biSize = bmp_buff[0x0E] + ((bmp_buff[0x0f] + ((bmp_buff[0x10] + (bmp_buff[0x11] << 8)) << 8)) <<8);
+ Bitmap_Head.biWidth=bmp_buff[0x12] + ((bmp_buff[0x13] + ((bmp_buff[0x14] + (bmp_buff[0x15] << 8)) << 8)) <<8);
+ Bitmap_Head.biHeight=bmp_buff[0x16] + ((bmp_buff[0x17] + ((bmp_buff[0x18] + (bmp_buff[0x19] << 8)) << 8)) <<8);
+ Bitmap_Head.biPlanes = bmp_buff[0x1A] + (bmp_buff[0x1b] << 8);
+ Bitmap_Head.biBitCnt = bmp_buff[0x1C] + (bmp_buff[0x1d] << 8);
+ Bitmap_Head.biCompr= bmp_buff[0x1E] + ((bmp_buff[0x1f] + ((bmp_buff[0x20] + (bmp_buff[0x21] << 8)) << 8)) <<8);
+ Bitmap_Head.biSizeIm=bmp_buff[0x22] + ((bmp_buff[0x23] + ((bmp_buff[0x24] + (bmp_buff[0x25] << 8)) << 8)) <<8);
+ /* I thought the length of the image was always stored in Bitmap_Head.biSizeIm, but
+ this appears not to be so. Hence it is now calculated from the length of the file
+ */
+ Bitmap_Head.biSizeIm=length_of_file-BITMAP_HEADER_SIZE;
+ Bitmap_Head.biXPels = bmp_buff[0x26] + ((bmp_buff[0x27] + ((bmp_buff[0x28] + (bmp_buff[0x29] << 8)) << 8)) <<8);
+ Bitmap_Head.biYPels= bmp_buff[0x2A] + ((bmp_buff[0x2b] + ((bmp_buff[0x2c] + (bmp_buff[0x2d] << 8)) << 8)) <<8);
+ Bitmap_Head.biClrUsed = bmp_buff[0x2E] + ((bmp_buff[0x2f] + ((bmp_buff[0x30] + (bmp_buff[0x31] << 8)) << 8)) <<8);
+ Bitmap_Head.biClrImp = bmp_buff[0x32] + ((bmp_buff[0x33] + ((bmp_buff[0x34] + (bmp_buff[0x35] << 8)) << 8)) <<8);
+
+ Maps=4;
+ if(Bitmap_Head.biBitCnt!=24)
+ {
+ fprintf(stderr,"Sorry, the .bmp bitmap must have 24 bits per colour,\n");
+ fprintf(stderr,"but it has %d bits. Resave the \n",Bitmap_Head.biBitCnt);
+ fprintf(stderr,"image using 24-bit colour\n");
+ exit_with_msg_and_exit_code("mage using 24-bit colour",BITMAP_NOT_24_BIT);
+ }
+ ColormapSize = (Bitmap_File_Head.bfOffs - Bitmap_File_Head.biSize - 14) / Maps;
+
+ if ((Bitmap_Head.biClrUsed == 0) && (Bitmap_Head.biBitCnt <= 8))
+ Bitmap_Head.biClrUsed = ColormapSize;
+
+ /* Sanity checks */
+
+ if (Bitmap_Head.biHeight == 0 || Bitmap_Head.biWidth == 0)
+ {
+ fprintf(stderr,"error reading BMP file header of %s - width or height is zero\n",filename);
+ exit_with_msg_and_exit_code("",WIDTH_OR_HEIGHT_ZERO_IN_BITMAP);
+ }
+ if (Bitmap_Head.biPlanes != 1)
+ {
+ fprintf(stderr,"error reading BMP file header of %s - bitplanes not equal to 1\n",filename);
+ exit_with_msg_and_exit_code("",BITPLANES_NOT_1_IN_BITMAP);
+ }
+ if (ColormapSize > 256 || Bitmap_Head.biClrUsed > 256)
+ {
+ fprintf(stderr,"error reading BMP file header of %s - colourmap size error\n",filename);
+ exit_with_msg_and_exit_code("",COLOURMAP_GREATER_THAN_256);
+ }
+ /* Windows and OS/2 declare filler so that rows are a multiple of
+ word length (32 bits == 4 bytes)
+ */
+
+ fclose(fp);
+ *width=Bitmap_Head.biWidth;
+ *height=Bitmap_Head.biHeight;
+ *offset=Bitmap_File_Head.bfOffs;
+ *size=Bitmap_Head.biSizeIm;
+ if( *size < 3 * (*width) * (*height) )
+ {
+ fprintf(stderr,"Internal error in read_bitmap_file_headers.c\n");
+ exit(1);
+ }
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+#ifdef WINDOWS
+#pragma hrdstop
+#include <condefs.h>
+#endif
+
+int main(int argc, char **argv)
+{
+ FILE *fp;
+ double *data, x;
+ int q;
+ int one=0, zero=0, minusone=0, other=0, length=0, i, reverse=0;
+ int metal_er=0;
+ while((q=get_options(argc,argv,"Cr")) != -1)
+ switch (q)
+ {
+ case 'C':
+ print_copyright("2002");
+ exit_with_msg_and_exit_code("",OKAY);
+ break;
+ case 'r':
+ reverse=1;
+ break;
+ case '?':
+ usage_readbin();
+ }
+ if(argc-my_optind == 1)
+ {
+ fp=fopen(argv[my_optind],"rb");
+ if (fp==NULL)
+ {
+ fprintf(stderr,"Can't open %s for reading\n",argv[my_optind]);
+ exit_with_msg_and_exit_code("Can't open file for reading",CANT_OPEN_FILE_FOR_READING);
+ }
+ if (fseek(fp,0,SEEK_END) != 0)
+ exit_with_msg_and_exit_code("failed to fseek in readbin.c #1", FSEEK_FAILURE);
+ length=ftell(fp);
+ printf("file length=%d bytes. There are %ld pixels\n", length, (long)
+ length/sizeof(double));
+ data=dvector(0,length);
+ if( fseek(fp,0,SEEK_SET) != 0)
+ exit_with_msg_and_exit_code("failed to fseek in readbin.c #2", FSEEK_FAILURE);
+
+ if (fread(&(data[0]), (size_t) length, (size_t) 1,fp) != 1)
+ exit_with_msg_and_exit_code("can't read all fo the file in readbin.c", CANT_READ_ALL_OF_FILE);
+ for(i=0;i<length/sizeof(double);++i)
+ {
+ x=data[i];
+ if(reverse==1)
+ byteswap_doubles(&x);
+ if (fabs(x) <= 1e-15)
+ zero++;
+ else if ( x > 0.9999999999 && x < 1.000000000000001)
+ one++;
+ else if (x < -0.9999999999 && x > -1.000000000000001)
+ minusone++;
+ else if (x == METAL_ER)
+ metal_er++;
+ else
+ other++;
+ }
+ free_dvector(data,0L,(long) length);
+ fclose(fp);
+ }
+ else
+ usage_readbin();
+ return(OKAY);
+}
--- /dev/null
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_TIME_H
+#include <time.h>
+#endif
+
+#include "definitions.h"
+
+
+void set_data_to_sensible_starting_values(struct transmission_line_properties *data)
+{
+ /* Most of the values below are set to -3. This is so when they are unchanged,
+ its easy to pick them up in a debugger. Others are set to important values
+ rather than -3 */
+ data->dielectrics_in_bitmap=0;
+ data->dielectrics_on_command_line=0;
+ data->r=1.9; /* For now at least, this is still global, so this has no effect XXX */
+ data->image_fiddle_factor=IMAGE_FIDDLE_FACTOR;
+ data->cutoff=0.0001;
+ data->avoid_use_of_fast_convergence_methodQ=FALSE;
+ data->the_single_Er=1.0;
+ data->Er=1.0;
+ data->found_this_dielectric=1.0;
+ data->couplerQ=FALSE;
+ data->verbose_level=0;
+ data->should_binary_data_be_written_tooQ=FALSE;
+ data->write_binary_field_imagesQ=TRUE;
+ data->write_bitmap_field_imagesQ=TRUE;
+
+ data->Lodd_vacuum=-3; data->Leven_vacuum=-3;
+ data->L_vacuum=-3; data->Codd_vacuum=-3;
+ data->Codd_vacuum=-3; data->Ceven_vacuum=-3;
+ data->Lodd_vacuum=-3; data->Leven_vacuum=-3;
+ data->display=-3;
+ data->Zo=-3 ; data->Zo_vacuum=-3 ; data->Zodd_vacuum=-3;
+ data->Zodd_vacuum=-3; data->Zeven_vacuum=-3;
+ data->Zeven_vacuum=-3; data->Zdiff=-3; data->Zdiff_vacuum=-3;
+ data->Zcomm=-3; data->Zcomm_vacuum=-3;
+ data->velocity=-3; data->velocity_factor=-3;
+ data->relative_permittivity=-3;
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* The function setup_arrays sets the type of a pixel to be dielectric,
+or metal. This routines refines that, setting the type of a pixel to be
+some number between 1 and 28 according to where it is located, and what
+is around it. See Green paper to understand what they mean */
+
+#include "config.h"
+#include "definitions.h"
+#include "exit_codes.h"
+
+extern int width, height;
+extern unsigned char **cell_type, **oddity;
+extern double **Er;
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+void set_oddity_value(void)
+{
+ int i, j;
+ double er, ERa, ERb, ERl, ERr;
+ int cl, cr, ca, cb;
+ unsigned char c;
+
+ /* Its easier to set the endge values first, as it
+ reduces the amount of checking needed in the main body.
+ There are only 11 cases here - 3 types of metal,
+ the four corners, and the four sides */
+
+ for(i=0;i<width; ++i) {
+ for(j=0;j<height;++j) {
+
+ oddity[i][j]=UNDEFINED_ODDITY; /* Stick it to some underfined status */
+
+ c=cell_type[i][j]; /* Cell type at point (i,j) */
+
+
+ /* The 3 metal cases can be quickly checked and the
+ oddity value assigned to a fixed value depending on
+ whether it's -1, 0 or +1 V */
+
+ if(c <= CONDUCTOR_PLUS_ONE_V ) /* a metal */
+ oddity[i][j]=c;
+
+
+ /* Now do the 4 courners */
+ else if( (i == 0) && (j == height-1) )
+ oddity[i][j]=BOTTOM_LEFT_CORNER;
+
+ else if ( (i == width-1) && (j == height-1) )
+ oddity[i][j]=BOTTOM_RIGHT_CORNER;
+
+ else if( (i == 0) && (j == 0) )
+ oddity[i][j]=TOP_LEFT_CORNER;
+
+ else if( (i == width-1) && (j == 0) )
+ oddity[i][j]=TOP_RIGHT_CORNER;
+
+ /* Now the four edges */
+ else if ( i == 0 )
+ oddity[i][j]=ORDINARY_POINT_LEFT_EDGE;
+
+ else if ( j == 0 )
+ oddity[i][j]=ORDINARY_POINT_TOP_EDGE;
+
+ else if ( j == height-1)
+ oddity[i][j]=ORDINARY_POINT_BOTTOM_EDGE;
+
+ else if ( i == width-1 )
+ oddity[i][j]=ORDINARY_POINT_RIGHT_EDGE;
+
+
+ else if ( (i == 0 || i == width-1 || j == 0 || j == height-1 ) && (oddity[i][j]==UNDEFINED_ODDITY)) {
+ fprintf(stderr,"Internal error: one of the edge points (%d,%d) is still undefined\n",i,j);
+ fprintf(stderr, "ZZZZZZZZZZZZZ width=%d height=%d\n", width, height);
+ fprintf(stderr,"Error set_oddity_value.c\n");
+ exit(INTERNAL_ERROR);
+ }
+ } /* end of for(j=0;j<height-0;++j) { */
+ } /* end of for(i=0;i<width-0; ++i) { */
+ /* With the oddity values of all the edges now know, the centre
+ values can be attempted */
+
+ for(i=1;i<width-1; ++i) {
+ for(j=1;j<height-1;++j) {
+
+ c=cell_type[i][j]; /* Cell type at point (i,j) */
+ cl=cell_type[i-1][j]; /* Cell type to left of point (i,j) */
+ cr=cell_type[i+1][j]; /* Cell type to right of point (i,j) */
+ ca=cell_type[i][j-1]; /* Cell type above point (i,j) */
+ cb=cell_type[i][j+1]; /* Cell type below point (i,j) */
+
+ ERa=Er[i][j-1];
+ ERb=Er[i][j+1];
+ ERl=Er[i-1][j];
+ ERr=Er[i+1][j];
+ er=Er[i][j];
+
+
+ /* If the conductor is at a fixed voltage, it must stay there
+ so there is nothing to do with it */
+
+ if(c == CONDUCTOR_ZERO_V )
+ oddity[i][j] = CONDUCTOR_ZERO_V;
+
+ else if(c== CONDUCTOR_PLUS_ONE_V)
+ oddity[i][j] = CONDUCTOR_PLUS_ONE_V;
+
+ else if(c == CONDUCTOR_MINUS_ONE_V )
+ oddity[i][j] = CONDUCTOR_MINUS_ONE_V;
+
+ else if ( cr <= CONDUCTOR_PLUS_ONE_V && cb<= CONDUCTOR_PLUS_ONE_V)
+ oddity[i][j]= METAL_BELOW_AND_RIGHT;
+
+ else if ( cr <= CONDUCTOR_PLUS_ONE_V && ca<= CONDUCTOR_PLUS_ONE_V)
+ oddity[i][j]= METAL_ABOVE_AND_RIGHT;
+
+ else if ( cl <= CONDUCTOR_PLUS_ONE_V && cb<= CONDUCTOR_PLUS_ONE_V)
+ oddity[i][j]= METAL_BELOW_AND_LEFT;
+
+ else if ( cl <= CONDUCTOR_PLUS_ONE_V && ca<= CONDUCTOR_PLUS_ONE_V)
+ oddity[i][j]= METAL_ABOVE_AND_LEFT;
+
+ else if ( ca <= CONDUCTOR_PLUS_ONE_V )
+ oddity[i][j]= METAL_ABOVE;
+
+ else if ( cb <= CONDUCTOR_PLUS_ONE_V )
+ oddity[i][j]= METAL_BELOW;
+
+ else if ( cl <= CONDUCTOR_PLUS_ONE_V )
+ oddity[i][j]= METAL_LEFT;
+
+ else if ( cr <= CONDUCTOR_PLUS_ONE_V )
+ oddity[i][j]= METAL_RIGHT;
+
+ else if ( ERb != ERa)
+ oddity[i][j]= DIFFERENT_DIELECTRIC_VERTICALLY;
+
+ else if ( ERl != ERr )
+ oddity[i][j]= DIFFERENT_DIELECTRIC_HORIZONTALLY;
+/*
+ else if ( ERa != er && ERr != er)
+ oddity[i][j]= DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT;
+
+ else if ( ERa != er && ERl != er)
+ oddity[i][j]= DIFFERENT_DIELECTRIC_ABOVE_AND_LEFT;
+
+ else if ( ERb != er && ERl != er)
+ oddity[i][j]= DIFFERENT_DIELECTRIC_BELOW_AND_LEFT;
+
+ else if ( ERa != er )
+ oddity[i][j]= DIFFERENT_DIELECTRIC_ABOVE;
+
+ else if ( ERb != er )
+ oddity[i][j]= DIFFERENT_DIELECTRIC_BELOW;
+ else if ( ERl != er )
+ oddity[i][j]= DIFFERENT_DIELECTRIC_LEFT;
+
+ else if ( ERr != er )
+ oddity[i][j]= DIFFERENT_DIELECTRIC_RIGHT;
+*/
+ else
+ oddity[i][j]= ORDINARY_INTERIOR_POINT;
+ }/* end of for i=0 to width-1 */
+ } /* end of for j= 0 to height-1 */
+}
+
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+#include "Erdata.h"
+
+/* We need to set up the permittivity and cell_type arrays. A
+complication arrises if a diaectric is found, that is not vacuum.
+If it is the only dielectric found, we calaculate C by saying C=C*Er. If
+there are more than one dielectric, we need to calculate it twice. */
+
+extern struct pixels Er_in_bitmap[MAX_DIFFERENT_PERMITTIVITIES];
+extern struct pixels Er_on_command_line[MAX_DIFFERENT_PERMITTIVITIES];
+extern int width, height;
+
+extern double **Vij, **Er;
+extern unsigned char *image_data;
+extern unsigned char **cell_type;
+extern int non_vacuum_found;
+extern int coupler;
+extern char *inputfile_name;
+
+void setup_arrays(struct transmission_line_properties *data)
+{
+ struct pixels pixels_found;
+ int conductor_found;
+ int conductors = 0;
+ int w,h, offset=-3, colour_mixture, i, z;
+ unsigned char red, green, blue;
+ int dielectric_found;
+ int new_colour_in_image;
+ data->dielectrics_in_bitmap=0;
+ pixels_found.red=0;
+ pixels_found.green=0;
+ pixels_found.blue=0;
+ pixels_found.white=0;
+ pixels_found.other_colour=0;
+
+ for(h=0;h<height;h++)
+ {
+ for (w=0; w<width;++w)
+ {
+ cell_type[w][height-1-h]=0;
+ dielectric_found=FALSE;
+ conductor_found=FALSE;
+ offset+=3;
+ if((w==0) && (offset%4!=0) && (h!=0))
+ offset++;
+ if((w==0) && (offset%4!=0) && (h!=0))
+ offset++;
+ if((w==0) && (offset%4!=0) && (h!=0))
+ offset++;
+ blue=image_data[offset];
+ green=image_data[offset+1];
+ red=image_data[offset+2];
+ colour_mixture=256*256*red+256*green+blue;
+ if( colour_mixture == 0xff0000 ) /* +1V red */
+ {
+ cell_type[w][height-1-h]=CONDUCTOR_PLUS_ONE_V;
+ Vij[w][height-1-h]=1.0;
+ Er[w][height-1-h]=METAL_ER;
+ conductor_found=TRUE;
+ pixels_found.red++;
+ }
+ else if( colour_mixture == 0x00ff00 ) /* 0v green */
+ {
+ cell_type[w][height-1-h]=CONDUCTOR_ZERO_V;
+ Vij[w][height-1-h]=0.0;
+ conductor_found=TRUE;
+ pixels_found.green++;
+ Er[w][height-1-h]=METAL_ER;
+ }
+ else if( colour_mixture == 0x0000ff ) /* -1V blue */
+ {
+ cell_type[w][height-1-h]=CONDUCTOR_MINUS_ONE_V;
+ Vij[w][height-1-h]=-1.0;
+ conductor_found=TRUE;
+ pixels_found.blue++;
+ Er[w][height-1-h]=METAL_ER;
+ coupler=TRUE;
+ data->couplerQ=TRUE;
+ }
+ else /* A dielectric */
+ {
+ if(colour_mixture == 0xffffff ) /* White */
+ pixels_found.white++; /* Vacuum */
+ else
+ pixels_found.other_colour++; /* Some other dielectric */
+ cell_type[w][height-1-h]=DIELECTRIC;
+ Vij[w][height-1-h]=0.0; /* XXXXXXXXXXx */
+ for(z=0;z<NUMBER_OF_DIELECTRICS_DEFINED;++z)
+ {
+ /* Check to see if the colour is one of the 10 known
+ about, without any need to define on the command line
+ */
+ if (colour_mixture == colours[z])
+ {
+ Er[w][height-1-h]=Ers[z];
+ dielectric_found=TRUE;
+ if(z != 0)
+ {
+ non_vacuum_found=TRUE;
+ data->found_this_dielectric=Ers[z];
+ }
+ }
+ }
+ for(i=0;i<data->dielectrics_on_command_line;++i)
+ {
+ if (Er_on_command_line[i].other_colour == colour_mixture)
+ {
+ Er[w][height-1-h]=Er_on_command_line[i].epsilon;
+ dielectric_found=TRUE;
+ data->found_this_dielectric=Er_on_command_line[i].epsilon;
+ non_vacuum_found=TRUE;
+ }
+ }
+ }
+ if((dielectric_found == FALSE) && (conductor_found==FALSE))
+ {
+ fprintf(stderr,"Error#7: The colour r=0x%x g=0x%x b=0x%x (0x%02x%02x%02x) exists at pixel %d,%d.\n",red,green,blue,red,green,blue,w,h);
+ fprintf(stderr,"However, atlc does not know how to interpret this colour. This is not a\n");
+ fprintf(stderr,"conductor (pure red, green or blue), nor is it one of the %d dielectrics that\n",NUMBER_OF_DIELECTRICS_DEFINED);
+ fprintf(stderr,"are predefined in Erdata.h, nor is a corresponding dielectric constant defined\n");
+ fprintf(stderr,"on the command line with the -d option. Sometimes this occurs when a\n");
+ fprintf(stderr,"graphics package is used to make the bitmap, but it performs some form of\n");
+ fprintf(stderr,"anti-aliasing or smooting. If this is the case, redraw the image turning such\n");
+ fprintf(stderr,"options off. If this is not the case then re-run atlc adding the -d option\n");
+ fprintf(stderr,"to define the relative permittivity of the dielectric\n\n");
+ fprintf(stderr,"e.g. atlc -d %02x%02x%02x=1.9 %s \n\n",red,green,blue, inputfile_name);
+ fprintf(stderr,"if this colour has a permittivity of 1.9. If there are multiple undefined\n");
+ fprintf(stderr,"dielectrics, then there will need to be multiple copies of the -d option given.\n");
+ exit_with_msg_and_exit_code("",UNDEFINED_COLOUR_IN_BITMAP);
+ }
+ /* We need to keep a record of the number of dielectrics in the image,
+ and determine if they are defined on the command line, or if they are
+ defined on in the header file. */
+ if (dielectric_found == TRUE)
+ {
+ new_colour_in_image=TRUE;
+ for (i=0; i< data->dielectrics_in_bitmap; ++i)
+ {
+ if (Er_in_bitmap[i].other_colour == colour_mixture) /* a known colour */
+ {
+ new_colour_in_image=FALSE;
+ if(colour_mixture != 0xffffff)
+ {
+ non_vacuum_found=TRUE;
+ }
+ }
+ }
+ if(new_colour_in_image==TRUE)
+ {
+ (data->dielectrics_in_bitmap)++;
+ Er_in_bitmap[i].other_colour=colour_mixture;
+ Er_in_bitmap[i].red=red;
+ Er_in_bitmap[i].green=green;
+ Er_in_bitmap[i].blue=blue;
+ Er_in_bitmap[i].epsilon=Er[w][height-1-h];
+ }
+ } /* end of if dielctric found */
+ } /* end of for w */
+ } /*end of for h */
+ /* The following prints a lot of data that is generally not wanted
+ but is when finding statistics of performance etc. */
+ if(data->verbose_level >=3)
+ {
+ printf("Red (+1 V conductor) pixels found = %8d \n",pixels_found.red);
+ printf("Green (0 V conductor) pixels found = %8d \n",pixels_found.green);
+ printf("Blue (-1 V conductor) pixels found = %8d \n",pixels_found.blue);
+ printf("White (vacuum dielectric) pixels found = %8d \n",pixels_found.white);
+ printf("Others (not vacuum dielectic) pixels found = %8d \n",pixels_found.other_colour);
+ printf("Width = %8d \n",width);
+ printf("Height = %8d \n",height);
+ printf("Pixels = %8d \n",width*height);
+ printf("Number of Dielectrics found = %8d \n", data->dielectrics_in_bitmap);
+ data->non_metallic_pixels=width*height-pixels_found.red-pixels_found.green -pixels_found.blue;
+ printf("Number of non-metallic pixels = %8d \n", data->non_metallic_pixels);
+ printf("filename = %30s \n",inputfile_name);
+ if (pixels_found.red > 0 )
+ conductors+=1;
+ if (pixels_found.green > 0 )
+ conductors+=1;
+ if (pixels_found.blue > 0 )
+ conductors+=1;
+ printf("Number of Conductors = %d \n", conductors);
+ }
+ /* The following should not be necessary, but may be as a test */
+ /* I'd like to Miguel Berg for noticcing a servere bug, where the
+ indeces of w and h were transposed, leading to crashes on Windoze
+ XP */
+ for(h=0;h<height;h++)
+ {
+ for (w=0; w<width;++w)
+ {
+ if((Vij[w][h] > 1.0) || (Vij[w][h]<-1.0))
+ {
+ fprintf(stderr,"Sorry, something is wrong Vij[%d][%d]=%f in %s %d\n",w,h,Vij[w][h], __FILE__,__LINE__);
+ exit_with_msg_and_exit_code("Exiting ....",VOLTAGE_OUT_OF_RANGE);
+ }
+ }
+ }
+ /* Check two conductors and not next to each other, creating a short */
+ check_for_shorts();
+} /* end of function */
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+/* When calculationg the properties of couplers it is necessary to swap
+around the voltages on the conductors. First we consider the voltages as
+present, which will be positive and negative. Next the negative pixels
+must be changed to positive, to calculate the even mode impedance. This
+routine does the swapping around, based on the value of the parameter
+oddity, which will be set to CONDUCTOR_PLUS_ONE_V or
+
+CONDUCTOR_MINUS_ONE_V in definitions.h */
+
+#include "config.h"
+
+#include "definitions.h"
+
+extern int width, height;
+unsigned char **oddity;
+extern double **Vij;
+
+/* This swaps any conductor orignally at -1 V to +1 V. Any
+dielectric is set to zero volts. This is used in computation
+of couplers. */
+
+void swap_conductor_voltages()
+{
+ int i, j;
+ int pixel;
+ for(i=0;i<width;++i)
+ {
+ for(j=0;j<height;++j)
+ {
+ pixel=oddity[i][j];
+ if(pixel==CONDUCTOR_MINUS_ONE_V){
+ Vij[i][j]=+1.0;
+ oddity[i][j]=CONDUCTOR_PLUS_ONE_V;
+ }
+ }
+ }
+}
--- /dev/null
+/*
+The code below for calculating the voltage at a point i,j, given the
+voltages and permittivities at the four adjacent points (i,j+1),
+(i,j-1), (i-1,j), and (i+1,j), although I am not convinced it is
+100% correct in the case of mulitple dielectrics, the errors are
+still very small.
+*/
+
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#include "definitions.h"
+
+
+extern int width, height;
+extern double **Er;
+extern unsigned char **oddity;
+extern int dielectrics_to_consider_just_now;
+extern double r;
+extern int coupler;
+
+#include "exit_codes.h"
+
+/* The following function updates the voltage on the matrix V_to given data about the
+oddity of the location i,j and the voltages in the matrix V_from. It does this for n interations
+between rows jmin and jmax inclusive and between columns imain and imax inclusive */
+
+void update_voltage_array(int nmax, int imin, int imax, int jmin, int jmax, double **V_from, double **V_to)
+{
+ int k, i, j, n;
+ unsigned char oddity_value;
+ double Va, Vb, Vl, Vr, ERa, ERb, ERl, ERr;
+ double Vnew, g;
+
+ if (dielectrics_to_consider_just_now==1)
+ g=r;
+ else
+ g=1;
+ for(n=0; n < nmax; ++n)
+ for(k=0; k < 4; ++k)
+ for (i = k&1 ? imax : imin; k&1 ? i >=imin : i <= imax ; k&1 ? i-- : i++)
+ for (j = (k==0 || k ==3) ? jmin : jmax; (k ==0 || k == 3) ? j <= jmax : j >= jmin ; (k == 0 || k ==3) ? j++ : j--){
+ oddity_value=oddity[i][j];
+
+ if( oddity_value == CONDUCTOR_ZERO_V ){
+ V_to[i][j]=0.0;
+ }
+
+ else if( oddity_value == CONDUCTOR_PLUS_ONE_V ){
+ V_to[i][j]=1.0;
+ }
+
+ else if( oddity_value == CONDUCTOR_MINUS_ONE_V ){
+ V_to[i][j]=-1.0;
+ }
+
+ else if( oddity_value == TOP_LEFT_CORNER ) { /* top left */
+ Vnew=0.5*(V_from[1][0]+V_from[0][1]);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+ else if( oddity_value == TOP_RIGHT_CORNER ) {
+ Vnew=0.5*(V_from[width-2][0]+V_from[width-1][1]); /* top right */
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if(oddity_value == BOTTOM_LEFT_CORNER) {
+ Vnew=0.5*(V_from[0][height-2]+V_from[1][height-1]); /* bottom left */
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == BOTTOM_RIGHT_CORNER) {
+ Vnew=0.5*(V_from[width-2][height-1]+V_from[width-1][height-2]); /* bottom right */
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ /* Now the sides */
+
+ else if( oddity_value == ORDINARY_POINT_LEFT_EDGE ){ /* left hand side */
+ Vnew=0.25*(V_from[0][j-1]+V_from[0][j+1] + 2*V_from[1][j]);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == ORDINARY_POINT_RIGHT_EDGE){ /* right hand side */
+ Vnew=0.25*(V_from[width-1][j+1]+V_from[width-1][j-1]+2*V_from[width-2][j]);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == ORDINARY_POINT_TOP_EDGE ){ /* top row */
+ Vnew=0.25*(V_from[i-1][0]+V_from[i+1][0]+2*V_from[i][1]);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == ORDINARY_POINT_BOTTOM_EDGE ){ /* bottom row */
+ Vnew=0.25*(V_from[i-1][height-1]+V_from[i+1][height-1]+2*V_from[i][height-2]);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if ( oddity_value == ORDINARY_INTERIOR_POINT || (oddity_value>=DIFFERENT_DIELECTRIC_ABOVE_AND_RIGHT && oddity_value < UNDEFINED_ODDITY && dielectrics_to_consider_just_now == 1) ) {
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=(Va+Vb+Vl+Vr)/4.0;
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ /* I'm not sure the following equations, which compute the voltage
+ where there is a metal around are okay. One line of thought would
+ say that the same equations as normal i.e.
+ v_new=(v(i+1,j_+v(i-1,j)+v(i,j-1)+v(i,j+1))/4 should be used
+ but then since the electric field across the metal surface is zero,
+ the equation that was used to derrive that equation is not valid.
+
+ Another thought of mine is that voltage near a metal will be more affected
+ by the metal than the dielectric, since the nearest part of the metal is at
+ at the same voltage as the node, whereas for a dielectric is less so. Hence
+ the following seems a sensible solution. Since the metal will have twice
+ the effect of a dielectric, the voltage at i,j should be weighted such
+ that its effect is more strongly affected by the metal. This seems to
+ produce reasonably accurate results, but whether this is chance or not
+ I don't know. */
+
+ else if( oddity_value == METAL_ABOVE ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Va/3+2*Vb/3+Vl+Vr);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_BELOW ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vb/3+2*Va/3+Vl+Vr);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_LEFT ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vl/3+2*Vr/3+Va+Vb);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_RIGHT ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vr/3+2*Vl/3+Va+Vb);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_ABOVE_AND_RIGHT ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vr/3+4*Va/3 +2*Vl/3 + 2*Vb/3);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_ABOVE_AND_LEFT ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vl/3+4*Va/3+2*Vr/3+2*Vb/3);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_BELOW_AND_LEFT ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vl/3+4*Vb/3+2*Vr/3+2*Va/3);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ else if( oddity_value == METAL_BELOW_AND_RIGHT ){
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ Vnew=0.25*(4*Vb/3+4*Vr/3+2*Va/3+2*Vl/3);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+ }
+
+ /* Again, when there is a change of permittivity, my equations may
+ (probably are wrong). My logic is that if there's and RF field,
+ the impedance is inversly proportional to Er. So if the material
+ above a node is of a higher permittivity, then the
+ voltage will be closer to that of the node above, becuase of this.
+ The same applies for other directions of change in Er. */
+
+
+ else if(dielectrics_to_consider_just_now > 1){
+
+ Va=V_from[i][j-1];
+ Vb=V_from[i][j+1];
+ Vl=V_from[i-1][j];
+ Vr=V_from[i+1][j];
+
+ ERa=Er[i][j-1];
+ ERb=Er[i][j+1];
+ ERl=Er[i-1][j];
+ ERr=Er[i+1][j];
+
+ Vnew=(Va * ERa + Vb * ERb + Vl * ERl + Vr * ERr)/(ERa + ERb + ERl + ERr);
+ V_to[i][j]=g*Vnew+(1-g)*V_from[i][j];
+
+ }
+ else if ( (dielectrics_to_consider_just_now == 1 && oddity_value == UNDEFINED_ODDITY) || (dielectrics_to_consider_just_now > 1)) {
+ fprintf(stderr,"Internal error in update_voltage_array.c\n");
+ fprintf(stderr,"i=%d j=%d oddity[%d][%d]=%d\n",i,j,i,j,oddity[i][j]);
+ exit(INTERNAL_ERROR);
+ } /* end if if an internal error */
+
+ } /* end of j loop */
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+void usage_atlc(void)
+{
+#ifdef ENABLE_POSIX_THREADS
+ fprintf(stderr,"Usage: atlc [options ...] bitmap\n\n");
+#endif
+ fprintf(stderr,"atlc %s: options are:\n",PACKAGE_VERSION);
+ fprintf(stderr," -C \n Print Licence and copying information\n");
+ fprintf(stderr," -s \n Skip writing the Ex, Ey, E, V, U and Er files bitmap (.bmp) files\n");
+ fprintf(stderr," -S \n Skip writing the Ex, Ey, E, V, U and Er files binary (.bin) files\n");
+ fprintf(stderr," -v \n Be verbose (-vv -vvv or -vvvv gives progressively more information)\n");
+ fprintf(stderr," -c cutoff\n where 'cutoff' sets the cutoff criteria - see html docs or man page.\n");
+ fprintf(stderr," -d rrggbb=Er\n where the colour rrggbb (in hex) is a (d)ielectric of permittivity Er.\n");
+ fprintf(stderr," -i factor\n which lightens (factor>%.1f) or darkens (1.0 <factor<%.1f) output bitmaps.\n",
+ IMAGE_FIDDLE_FACTOR,IMAGE_FIDDLE_FACTOR);
+ fprintf(stderr," -p prefix\n where 'prefix' is a name (normally a directory) added in front of output files\n");
+ fprintf(stderr," -r rate_multiplier\n where 'rate_multiplier' sets the rate multipler (1 <= r < 2)\n");
+#ifdef ENABLE_POSIX_THREADS
+ fprintf(stderr," -t THREADs. \n Where THREADs is the number of threads to use (normally best set to \n the number of cpus). The default is %d. Set to 0 for single threaded algorithm.\n",MAX_THREADS);
+#endif
+#ifdef ENABLE_MPI
+ fprintf(stderr," -w weights\n where weights is a colon-separated list of weights to use when dividing up the work amongst the processors.\n");
+#endif
+/*
+#ifndef ENABLE_POSIX_THREADS
+ fprintf(stderr,"****************NOTE******************************\n");
+ fprintf(stderr,"The -t option setting the number of threads to use is disabled since\n");
+ fprintf(stderr,"since this was not configured with multi-processor support.\n");
+ fprintf(stderr,"To add support for multiple threads (for an MP machine), \"make clean\" then \nre-run the configure script with the option --with-threads\n");
+#endif
+*/
+#ifndef ENABLE_MPI
+ fprintf(stderr," ");
+/*
+ fprintf(stderr,"****************NOTE******************************\n");
+ fprintf(stderr,"The -w option setting the weights to use when dividing up the work for\n");
+ fprintf(stderr,"multiple CPUs on distributed processors is disabled since this was not\n");
+ fprintf(stderr,"for distributed processing. To add such support, \"make clean\" then re-run\n");
+ fprintf(stderr,"the configure script with the option --with-mpi\n");
+ */
+#endif
+#ifdef WINDOWS
+ fprintf(stderr,"****************NOTE******************************\n");
+ fprintf(stderr,"The -t and -w options are disabled disabled since\n");
+ fprintf(stderr,"this is a Windoze executable.\n");
+ fprintf(stderr,"There are no plans to add multi-processor or distributed\n");
+ fprintf(stderr,"processing to Windoze.\n");
+
+#endif
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+void usage_create_any_bitmap()
+{
+
+ fprintf(stderr,"create_any_bitmap version %s\n\n",PACKAGE_VERSION);
+ fprintf(stderr,"Usage: create_any_bitmap commandfile\n\n");
+ fprintf(stderr,"where 'commandfile' is a text file, which:\n");
+ fprintf(stderr,"a) MUST have a FILENAME command\n");
+ fprintf(stderr,"b) MUST have either a BACKGROUND or a GREEN_ENCLOSED_BACKGROUND command\n");
+ fprintf(stderr,"c) Must have at least one RECTANGLE or CIRCLE command, but might have several.\n\n");
+ fprintf(stderr,"The following is a typical command file, which in this case creates an bitmap\n");
+ fprintf(stderr,"called twin-wire-a.bmp, consisting of a rectangle 5000 x 4500 pixels\n");
+ fprintf(stderr,"which has a green (0 V) border of 5 pixels in thickness\n");
+ fprintf(stderr,"Inside are placed two red (V = +1 V) circular conductors, each of diameter\n");
+ fprintf(stderr,"80 pixels which have centres of 2400,2000 and 2600,2000\n\n");
+ fprintf(stderr,"FILENAME twin-wire-a.bmp # Write to file 'twin-wire-a.bmp'\n");
+ fprintf(stderr,"GREEN_ENCLOSED_BACKGROUND 5000 4000 1.0 # 5000x4000 image. Er=1.0 Green border\n");
+ fprintf(stderr,"CIRCLE 80 2400 2000 RED # Red circle, dia 80, centre (2400,2000)\n");
+ fprintf(stderr,"CIRCLE 80 2600 2000 RED # Red circle, dia 80, centre (2600,2000)\n");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_circ_in_circ(void)
+{
+ fprintf(stderr,"Usage: circ_in_circ [-b bmp_size] [-f outfile] [-v] D d O Er filename\n\n");
+ fprintf(stderr,"Version %s\n", PACKAGE_VERSION);
+ fprintf(stderr,"Where \n");
+ fprintf(stderr," D is the internal diameter of the outer conductor \n");
+ fprintf(stderr," d is the outside diameter of the inner conductor\n");
+ fprintf(stderr," O is the offset between centres (zero in the case of coax cable)\n");
+ fprintf(stderr," Er is the relative permettivity of the dielectric.\n");
+ fprintf(stderr," D, d and O are either all in mm or all in inches (but not a mixture!!)\n\n");
+ fprintf(stderr,"options are:\n");
+ fprintf(stderr," -C \n Print copyright, licencing and distribution information\n");
+ fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -v \n Write diagnostic information to stderr\n\n");
+
+ fprintf(stderr," *****************\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," **** <-----d------> ****\n");
+ fprintf(stderr," *** ***** ***\n");
+ fprintf(stderr," *** *********** ***\n");
+ fprintf(stderr," *** ************* ***\n");
+ fprintf(stderr," *** *************** ***\n");
+ fprintf(stderr," *** ^ *************** ***\n");
+ fprintf(stderr," *** | *************** ***\n");
+ fprintf(stderr," *** | ************* ***\n");
+ fprintf(stderr," ** O *********** **\n");
+ fprintf(stderr," *** | *** ***\n");
+ fprintf(stderr," ** | **\n");
+ fprintf(stderr," *<------------------------D------------------------>*\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," ***** *****\n");
+ fprintf(stderr," ****** ******\n");
+ fprintf(stderr," *******************\n");
+ fprintf(stderr," ***\n\n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_circ_in_rect(void)
+{
+ fprintf(stderr,"Usage: create_bmp_for_circ_in_rect [-b bmp_size] [-v] d W H x y Er outputfile\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"Where \n");
+ fprintf(stderr," d is the outside diameter of the inner conductor\n");
+ fprintf(stderr," W is the horizontal internal dimension of the outer conductor\n");
+ fprintf(stderr," H is the vertical internal dimension of the outer conductor\n");
+ fprintf(stderr," x is the horizontal offset between the centre of the inner and outer conductors \n");
+ fprintf(stderr," y is the vertical offset between the centre of the inner and outer conductors \n");
+ fprintf(stderr," Er is the relative permittivity of the dielectric.\n");
+ fprintf(stderr," d, W, H, x and y are either all in mm or all in inches (but not a mixture!!)\n\n");
+ fprintf(stderr,"options are:\n");
+ fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -v \n Write extra diagnostic information to stdout\n\n");
+ fprintf(stderr," -------------------------------------------------------- ^\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| Dielectric, permittivity=Er | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| <------x------> ^ | H\n");
+ fprintf(stderr,"| ***** | | |\n");
+ fprintf(stderr,"| *********** y | |\n");
+ fprintf(stderr,"| ************* | | |\n");
+ fprintf(stderr,"| ************** | | |\n");
+ fprintf(stderr,"| <-----d------> v | |\n");
+ fprintf(stderr,"| ************** | |\n");
+ fprintf(stderr,"| ************* | |\n");
+ fprintf(stderr,"| *********** | |\n");
+ fprintf(stderr,"| *** | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"------------------------------------------------------- v\n");
+ fprintf(stderr,"<---------------------------W-------------------------->\n");
+ fprintf(stderr," ***\n\n");
+ fprintf(stderr,"Example: create_bmp_for_circ_in_rect 20 100 150 25 10 3.7 foo.bmp\n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_microstrip_coupler(void)
+{
+ fprintf(stderr,"Usage: create_bmp_for_microstrip_coupler [-b bmp_size] [-v] w s g h t Er1 Er2 filename\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"where h, t, g1 and g2 are all ,in mm, all in inches or all in ..\n");
+ fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
+ fprintf(stderr,"Options are:\n");
+ fprintf(stderr," -C Print copyright, licencing and distribution information.\n");
+ fprintf(stderr," -b bmp_size Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -H height Sets the height 'H' of the box. Normally 15x(h+t)\n");
+ fprintf(stderr," -W width Sets the height 'H' of the box. Normally 6h+2g+s+2w)\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ^\n");
+ fprintf(stderr,"G G |\n");
+ fprintf(stderr,"G G |\n");
+ fprintf(stderr,"G Dielectric, permittivity=Er1 (usually 1.0) G |\n");
+ fprintf(stderr,"G G |\n");
+ fprintf(stderr,"G c's denonte the copuled transmission lines of width w. G |\n");
+ fprintf(stderr,"G t is the thickness of the copper of the PCB (typically 0.035 mm) G |\n");
+ fprintf(stderr,"G h is the thickness of the dielectric ( ~1.593 mm for 1.6 mm PCB) G |\n");
+ fprintf(stderr,"G | g is the gap between the coupled lines and the groundplane. G |\n");
+ fprintf(stderr,"G | s is the spacing between the two coupled lines. G |\n");
+ fprintf(stderr,"G | This is NOT drawn to scale (W and H are shown far too small ) G H\n");
+ fprintf(stderr,"G | G |\n");
+ fprintf(stderr,"G v <--g--><--w--><----s----><--w--><--g--> G |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGG ccccccc ccccccc GGGGGGGGGGGGGGG |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGG.......ccccccc...........ccccccc.......GGGGGGGGGGGGGGG |\n");
+ fprintf(stderr,"G.^................................................^....................G |\n");
+ fprintf(stderr,"G.|................................................|....................G |\n");
+ fprintf(stderr,"G.|t........Dielectric, permittivity=Er2...........h....................G |\n");
+ fprintf(stderr,"G.|............(3.7 for FR4 PCB)...................|....................G |\n");
+ fprintf(stderr,"G..................................................V....................G |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG. v\n");
+ fprintf(stderr,"<-----------------------------------W----------------------------------->\n\n");
+ fprintf(stderr,"E.g. \ncreate_bmp_for_microstrip_coupler 1.5 2.0 1 1.593 0.035 1 3.7 foo.bmp\n");
+ fprintf(stderr,"In this example, the conductor thickness t was small, but the width w is\n");
+ fprintf(stderr,"large, so a fine grid (large bitmap) was needed. Hence the bitmap size\n");
+ fprintf(stderr,"was increassed with the -b optoin. Without it, an error would result\n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_rect_cen_in_rect(void)
+{
+ fprintf(stderr,"Usage: rect_cen_in_rect [-b bmp_size] [-f outfile] [-v] W H w h Er1 outfile.bmp\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"outfile.bmp is the file to write the bitmap to\n");
+ fprintf(stderr,"W, H, w, and h are all in mm or all in inches\n");
+ fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
+ fprintf(stderr,"options are:\n");
+ fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -v \n Write diagnostic information to stdout\n");
+ fprintf(stderr,"----------------------------------------------------- ^\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| Er1 <----------w-----------> | |\n");
+ fprintf(stderr,"| ------------------------ ^ | |\n");
+ fprintf(stderr,"| | | | | |\n");
+ fprintf(stderr,"| | Metallic conductor | | | H\n");
+ fprintf(stderr,"| | conductor (centred | h | |\n");
+ fprintf(stderr,"| | vertically and | | | |\n");
+ fprintf(stderr,"| | horizontally) | | | |\n");
+ fprintf(stderr,"| ------------------------ | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"----------------------------------------------------- |\n");
+ fprintf(stderr,"<-------------------------W------------------------->\n\n");
+ fprintf(stderr,"Eg: create_bmp_for_rect_cen_in_rect 200 100 30 30 1.0 foo.bmp\n\n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_rect_cen_in_rect_coupler(void)
+{
+ fprintf(stderr,"Usage: rect_cen_in_rect [-b bmp_size] [-f outfile] [-v] W H w h Er1 outfile.bmp\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"outfile.bmp is the file to write the bitmap to\n");
+ fprintf(stderr,"W, H, w, and h are all in mm or all in inches\n");
+ fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
+ fprintf(stderr,"options are:\n");
+ fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -v \n Write diagnostic information to stdout\n");
+ fprintf(stderr,"----------------------------------------------------- ^\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| Er1 <----------w-----------> | |\n");
+ fprintf(stderr,"| ------------------------ ^ | |\n");
+ fprintf(stderr,"| | | | | |\n");
+ fprintf(stderr,"| | Metallic conductor | | | H\n");
+ fprintf(stderr,"| | conductor (centred | h | |\n");
+ fprintf(stderr,"| | vertically and | | | |\n");
+ fprintf(stderr,"| | horizontally) | | | |\n");
+ fprintf(stderr,"| ------------------------ | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"----------------------------------------------------- |\n");
+ fprintf(stderr,"<-------------------------W------------------------->\n\n");
+ fprintf(stderr,"Eg: create_bmp_for_rect_cen_in_rect 200 100 30 30 1.0 foo.bmp\n\n");
+
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_rect_in_circ(void)
+{
+ fprintf(stderr,"Usage: rect_in_circ [-b bmp_size] [-f outfile] [-v] D w h x y Er\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"Where \n");
+ fprintf(stderr," D is the internal diameter of the outer conductor \n");
+ fprintf(stderr," w is the width of the inner conductor\n");
+ fprintf(stderr," h is the height of the inner conductor\n");
+ fprintf(stderr," x is the horizontal offset between centres of the conductors\n");
+ fprintf(stderr," y is the vertical offset between centres of the conductors\n");
+ fprintf(stderr," Er is the relative permettivity of the dielectric.\n");
+ fprintf(stderr," D, w, h, x, and y are either all in mm or all in inches (but not a mixture!!)\n\n");
+ fprintf(stderr,"options are:\n");
+ fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -f outfile \n Write output to 'outfile' instead of stdout\n");
+ fprintf(stderr," -v \n Write diagnostic information to stderr\n\n");
+ fprintf(stderr," ***\n");
+ fprintf(stderr," *****************\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," *** ************* ^ ***\n");
+ fprintf(stderr," *** ************* | ***\n");
+ fprintf(stderr," *** ************* | ***\n");
+ fprintf(stderr," *** ^ ************* h ***\n");
+ fprintf(stderr," *** | ************* | ***\n");
+ fprintf(stderr," *** | ************* | ***\n");
+ fprintf(stderr," ** y ************* v **\n");
+ fprintf(stderr," *** | <-----w-----> ***\n");
+ fprintf(stderr," ** | **\n");
+ fprintf(stderr," *<----------v-------------D------------------------>*\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** <--x-> **\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," ** **\n");
+ fprintf(stderr," *** ***\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," **** ****\n");
+ fprintf(stderr," ***** *****\n");
+ fprintf(stderr," ****** ******\n");
+ fprintf(stderr," *******************\n");
+ fprintf(stderr," ***\n\n");
+ fprintf(stderr,"***WARNING*** Since the output from rect_in_circ is binary data (the bitmap) it\n");
+ fprintf(stderr,"will screw up your terminal unless you redirect the ouptut to a file.\n");
+ fprintf(stderr,"The '-f' option can be used to send the output to 'outfile' \n");
+ fprintf(stderr,"or you can use rect_in_circ D d h Er > filename.bmp \n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_create_bmp_for_rect_in_rect(void)
+{
+ fprintf(stderr,"Usage: create_bmp_for_rect_in_rect [-b bmp_size] [-f outfile] [-v] W H a b c d w h Er1 Er2 outfile.bmp\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"where W, H, a, b, c, d, w, and h are all in mm or all in inches\n");
+ fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
+ fprintf(stderr,"outfile.bmp is the name of a file to writ the bitmap to\n");
+ fprintf(stderr,"Options are:\n");
+ fprintf(stderr," -C \n Print copyright, licencing and distribution information.\n");
+ fprintf(stderr," -b bmp_size\n Sets the size of the bitmap, in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE);
+ fprintf(stderr," -v \n Write diagnostic information to stderr\n");
+ fprintf(stderr,"----------------------------------------------------------------------- ^\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| Dielectric, permittivity=Er1 | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| <----------------d-------------------------> | |\n");
+ fprintf(stderr,"| | |\n");
+ fprintf(stderr,"| <----------w-----------> | |\n");
+ fprintf(stderr,"| ------------------------ ^ | |\n");
+ fprintf(stderr,"| | | | | |\n");
+ fprintf(stderr,"| | Metallic conductor | | | H\n");
+ fprintf(stderr,"|<-----b----->| conductor (can be | c | |\n");
+ fprintf(stderr,"| | off-centre) | | | |\n");
+ fprintf(stderr,"| | | | | |\n");
+ fprintf(stderr,"| |------------------------------------------- ^ | |\n");
+ fprintf(stderr,"| |..........................................| | | |\n");
+ fprintf(stderr,"| |.....Dielectric, permittivity=Er2.........| | | |\n");
+ fprintf(stderr,"|<--a-->|.......(can be off centre )...............| h | |\n");
+ fprintf(stderr,"| |..........................................| | | |\n");
+ fprintf(stderr,"| |..........................................| | | |\n");
+ fprintf(stderr,"----------------------------------------------------------------------- |\n");
+ fprintf(stderr,"<----------------------------------W--------------------------------->\n\n");
+ fprintf(stderr,"Eg: create_bmp_for_rect_in_rect 250 100 20 100 4.25 205 45 15 1.0006 3.7 ms.bmp \n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+void usage_create_bmp_for_stripline_coupler(void)
+{
+ fprintf(stderr,"Usage: create_bmp_for_stripline_coupler [-C] [-b bitmapsize] [-v] H w s Er filename\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"Options:\n");
+ fprintf(stderr," -C\n");
+ fprintf(stderr," Print copyright, licencing and distribution information\n");
+ fprintf(stderr," -b bitmapsize\n");
+ fprintf(stderr," Set the size of the bitmap to about 2^bitmapsize bytes\n");
+ fprintf(stderr," -v\n");
+ fprintf(stderr," Prints the theoretical impedances too - good for verifying atlc\n");
+ fprintf(stderr,"------------^------------------------------------------------------------------\n");
+ fprintf(stderr," | \n");
+ fprintf(stderr," | <---w---><-----s----><---w-->\n");
+ fprintf(stderr," H --------- --------\n");
+ fprintf(stderr," | \n");
+ fprintf(stderr," | Er \n");
+ fprintf(stderr,"------------v------------------------------------------------------------------\n");
+ fprintf(stderr,"e.g. create_bmp_for_stripline_coupler 1.23 0.7 1.2 1.0 coupler.bmp\n");
+ fprintf(stderr,"e.g. create_bmp_for_stripline_coupler -b 8 1.23 0.7 1.0 1.0 smaller.bmp\n");
+ fprintf(stderr,"e.g. create_bmp_for_stripline_coupler -v 12 1.23 0.7 1.006 air.bmp\n");
+ fprintf(stderr,"\nThe default bitmap_bitmap size b is %d. Files will be between 2^(b-1)\n", DEFAULT_COUPLER_BMP_SIZE);
+ fprintf(stderr,"and 2^(b+1) bytes in length\n");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+
+void usage_create_bmp_for_symmetrical_stripline(void)
+{
+ fprintf(stderr,"create_bmp_for_symmetrical_stripline produces a bitmap for a wide stripline and \ncan calculate Zo ASSUMING IT IT INFINITELY WIDE (which it is not of course) if the -v option is added.\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"Usage: usage_create_bmp_for_symmetrical_stripline [-C][-v] W H w filename\n\n");
+ fprintf(stderr,"---------^-----------------------------------------------------\n");
+ fprintf(stderr," | \n");
+ fprintf(stderr," | <----------w----------->\n");
+ fprintf(stderr," H ------------------------\n");
+ fprintf(stderr," | \n");
+ fprintf(stderr," | \n");
+ fprintf(stderr,"---------v-----------------------------------------------------\n");
+ fprintf(stderr,"<-----------------------------W-------------------------------->\n\n");
+ fprintf(stderr,"Option:\n");
+ fprintf(stderr," -C Print copyright, licensing and distribution information.\n");
+ fprintf(stderr," -i Force the width W to be effectively infinite.\n");
+ fprintf(stderr," -v Compute the theoretical impedance and print to stdout.\n\n");
+ fprintf(stderr,"WARNING create_bmp_for_symmetrical_stripline does *NOT* take floating points for W, H and w. You must\n");
+ fprintf(stderr,"enter only integers. The program was put together quickly, so does NOT\n");
+ fprintf(stderr,"automatically convert floating point values to integers like create_bmp_for_rect_in_rect,\n");
+ fprintf(stderr,"create_bmp_for_circ_in_circ, create_bmp_for_circ_in_rect, create_bmp_for_rect_cen_in_rect\n");
+ fprintf(stderr,"create_bmp_for_microstrip_coupler and create_bmp_for_stripline_coupler\n");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+#include "config.h"
+
+#include "definitions.h"
+
+void usage_design_coupler()
+{
+ fprintf(stderr,"\nUsage: design_coupler [-d] [-e] [-q] [-s fstep] [-C] [-D] [-H height] [-L length] [-Z Zo] CF fmin fmax\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"where: \n");
+ fprintf(stderr," CF is the coupling factor required in dB [10 log(P1/P2)]\n");
+ fprintf(stderr," fmin is the minimum frequency (MHz)\n");
+ fprintf(stderr," fman is the maximum frequency (MHz)\n");
+ fprintf(stderr,"Options are:\n");
+ fprintf(stderr," -d Calculate physical dimensions (takes a while).\n");
+ fprintf(stderr," -e Give lots of examples of usage.\n");
+ fprintf(stderr," -q Run in quite mode, giving less output.\n");
+ fprintf(stderr," -s fstep Set the analysis frequency step in MHz.\n");
+ fprintf(stderr," -C Print Copyright, Licencing and Distribution information.\n");
+ fprintf(stderr," -D Calculate physical dimensions to high accuracy (takes a *very* long while).\n");
+ fprintf(stderr," -H height to set the height of the enclosure (defaults to 1 unit).\n");
+ fprintf(stderr," -L length to set the coupler length (m). Defaults to lambda/4.\n");
+ fprintf(stderr," -Q Run in very quite mode, giving just one line of output\n");
+ fprintf(stderr," -Z Zo Set the design impedance (default is 50 Ohms)\n");
+ fprintf(stderr,"coupled port 2 ************************************************ reflected port 3\n\n");
+ fprintf(stderr,"input port 1 ************************************************ output port 4\n");
+ fprintf(stderr," <--------------------L------------------------->\n");
+ fprintf(stderr,"Drive Port 1. The main power comes out from port 4. A fraction (set by the \n");
+ printf("coupling factor) of the forward power comes from port 2. A fraction of the\n");
+ printf("reflected power comes from port 3. All ports must present an impedance Zo.\n");
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_find_optimal_dimensions_for_microstrip_coupler(void)
+{
+ fprintf(stderr,"Usage: find_optimal_dimensions_for_microstrip_coupler [-s smin] [-S smax] [-t sstep] [-w wmin] [-W wmax] [-x wstep] [-g gmin] [-G GMAX] [-i gstep] h t Er1 Er2 Zodd_required Zeven_required output_filename\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"where h and t are all, in mm, all in inches or all in ..; Zodd_required and Zeven are in Ohms\n");
+ fprintf(stderr,"(they *must* use the same units. Non-integers allowed for all parameters)\n");
+ fprintf(stderr,"Options are:\n");
+ fprintf(stderr," -C Print copyright, licencing and distribution information.\n");
+ /*fprintf(stderr," -b bmp_size Sets the size of the bitmap used by 'atlc', in the range 1 to 15 (default %d).\n",DEFAULT_BMP_SIZE); */
+ fprintf(stderr," -s gmin Sets the minimum gap between the two coupled lines (default = %f)\n", DEFAULT_SMIN);
+ fprintf(stderr," -s gmax Sets the maximum gap between the two coupled lines (default = %f)\n", DEFAULT_SMAX);
+ fprintf(stderr," -i gstep Sets the stepsize used for interations between gmin and gmax (default = %f)\n", DEFAULT_SSTEP);
+ fprintf(stderr," -g gmin Sets the minimum gap between the coupled lines and the groundplane (default = %f)\n", DEFAULT_GMIN);
+ fprintf(stderr," -G gmax Sets the maximum gap between the coupled lines and the groundplane (default = %f)\n", DEFAULT_GMAX);
+ fprintf(stderr," -i gmin Sets the stepsize used between gmain and max (default = %f)\n", DEFAULT_GSTEP);
+ fprintf(stderr," -w wstep Sets the minimum width of the coupled lines (default = %f)\n", DEFAULT_WMIN);
+ fprintf(stderr," -W Wstep Sets the maximum width of the coupled lines (default = %f)\n", DEFAULT_WMAX);
+ fprintf(stderr," -x Wstep Sets the stepsize used between wmin and wmax (default = %f)\n", DEFAULT_WSTEP);
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG ^\n");
+ fprintf(stderr,"G G |\n");
+ fprintf(stderr,"G G |\n");
+ fprintf(stderr,"G Dielectric, permittivity=Er1 (usually 1.0) G |\n");
+ fprintf(stderr,"G G |\n");
+ fprintf(stderr,"G c's denonte the copuled transmission lines of width w. G |\n");
+ fprintf(stderr,"G t is the thickness of the copper of the PCB (typically 0.035 mm) G |\n");
+ fprintf(stderr,"G h is the thickness of the dielectric ( ~1.593 mm for 1.6 mm PCB) G |\n");
+ fprintf(stderr,"G | g is the gap between the coupled lines and the groundplane. G |\n");
+ fprintf(stderr,"G | s is the spacing between the two coupled lines. G |\n");
+ fprintf(stderr,"G | This is NOT drawn to scale (W and H are shown far too small ) G H\n");
+ fprintf(stderr,"G | G |\n");
+ fprintf(stderr,"G v <--g--><--w--><----s----><--w--><--g--> G |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGG ccccccc ccccccc GGGGGGGGGGGGGGG |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGG.......ccccccc...........ccccccc.......GGGGGGGGGGGGGGG |\n");
+ fprintf(stderr,"G.^................................................^....................G |\n");
+ fprintf(stderr,"G.|................................................|....................G |\n");
+ fprintf(stderr,"G.|t........Dielectric, permittivity=Er2...........h....................G |\n");
+ fprintf(stderr,"G.|............(3.7 for FR4 PCB)...................|....................G |\n");
+ fprintf(stderr,"G..................................................V....................G |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG |\n");
+ fprintf(stderr,"GGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG. v\n");
+ fprintf(stderr,"<-----------------------------------W----------------------------------->\n\n");
+ fprintf(stderr,"E.g. \nfind_optimal_dimensions_for_microstrip_coupler 1.593 0.035 1 3.7 15 180 best.txt\n\n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+void usage_readbin(void)
+{
+ fprintf(stderr,"Usage: readbin [-r] binaryfile.V.bin\n\n");
+ fprintf(stderr,"Version %s\n",PACKAGE_VERSION);
+ fprintf(stderr,"options are:\n");
+ fprintf(stderr," -C Print copyright, licencing and distribution information\n");
+ fprintf(stderr," -r Used when analysing binary files created on\
+ the other byte-ordering\n (ie a big-endian example.V.bin file\
+ on a small endian machine - or\n the reverse)\n");
+ exit_with_msg_and_exit_code("",PROGRAM_CALLED_WITH_WRONG_NUMBER_OF_ARGUMENTS);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#include "definitions.h"
+#include "Erdata.h"
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+extern int W, H;
+
+void write_bitmap(FILE *image_data_fp, struct transmission_line_properties xyz)
+{
+ int colour_Er1=-1, colour_Er2=-1, vector_aligned;
+#ifndef HAVE_MEMSET
+ int memory_location;
+#endif
+ unsigned char *image_data, *unaligned_image_vector;
+
+ get_Er1_and_Er2_colours(&colour_Er1, &colour_Er2);
+ W+=2*BORDER;
+ H+=2*BORDER;
+ xyz.W+=2*BORDER;
+ xyz.H+=2*BORDER;
+ /* We create an vector big enough for the image. Since rows are
+ aligned on 4-byte boundaries, we need to allow suffient space for
+ (W+2)*(H-1) bytes. */
+
+ /* when aligning data on 4-byte boundaries, the
+ padding must be filled with 0's, to meet the
+ .bmp standard */
+
+ image_data=ustring(0,(W+3)*3*H);
+ unaligned_image_vector=ustring(0,(W+3)*3*H);
+
+#ifdef HAVE_MEMSET
+ (void) memset((void *) (image_data),0x0,(size_t) ((W+3)*3*H));
+#else
+ for(memory_location=0; memory_location < (W+3)*3*H; ++ memory_location)
+ image_data[memory_location]=0;
+#endif /* end of #ifdef HAVE_MEMSET */
+
+
+ /* Fill a vector with the initial (original) data on the
+ tline. This is not aligned in any way */
+ /* The following function 'fill_image_vector_with_data' is *not* in the file
+ fill_image_vector_with_data.c, but instead different versions of it are
+ located in files fill_rect_with_rect.c, fill_circ_with_circ.c,
+ fill_rect_with_circ.c and fill_circ_with_rect.c */
+ fill_image_vector_with_data(unaligned_image_vector, colour_Er1, colour_Er2, xyz);
+
+ /* put into the vector, in reverse order - i.e. from bottom to top and
+ align each row on 4-byte boundaries */
+ vector_aligned=align_bitmap_image(W, H, unaligned_image_vector,image_data);
+ write_bitmap_out(image_data, image_data_fp,vector_aligned, W, H);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#include "definitions.h"
+#include "exit_codes.h"
+
+/* names, colours and Ers are all arrays of 10. It would be better they were
+in a structure as they are all linked closely, but they are not and I
+can't be bothered to change it */
+
+
+extern int W, H;
+
+/* This function can be used on any routines that writes .bmp files */
+
+void write_bitmap_out(unsigned char *byte_aligned_image_data, FILE *image_data_fp,int sizeof_image, int W, int H)
+{
+ unsigned char *buff;
+
+ struct Bitmap_File_Head_Struct Bitmap_File_Head;
+ struct Bitmap_Head_Struct Bitmap_Head;
+
+#ifdef DEBUG
+ printf("sizeof_image = %d in write_bitmap_out\n", sizeof_image);
+#endif
+
+ buff=ustring(0,0x36);
+
+ /* fprintf(stderr,"file size=%ld\n",temp_long); */
+
+ Bitmap_File_Head.zzMagic[0]='B';
+ Bitmap_File_Head.zzMagic[1]='M';
+ Bitmap_File_Head.bfSize=sizeof_image+0x36;
+ Bitmap_File_Head.zzHotX=0;
+ Bitmap_File_Head.zzHotY=0;
+ Bitmap_File_Head.bfOffs=54;
+ Bitmap_File_Head.biSize=0x28;
+
+
+ Bitmap_Head.biWidth=W;
+ Bitmap_Head.biHeight=H;
+ Bitmap_Head.biPlanes=1;
+ Bitmap_Head.biBitCnt=24;
+ Bitmap_Head.biCompr=0;
+ Bitmap_Head.biSizeIm=sizeof_image;
+ Bitmap_Head.biXPels=W*10; /* Why ??? XXX */
+ Bitmap_Head.biYPels=H*10; /* Why ??? XXX */
+ Bitmap_Head.biClrUsed=0;
+ Bitmap_Head.biClrImp=0;
+
+ buff[0x00] = (unsigned char) (Bitmap_File_Head.zzMagic[0]);
+ buff[0x01] = (unsigned char) (Bitmap_File_Head.zzMagic[1]);
+/*
+ buff[0x02] = Bitmap_File_Head.bfSize);
+ buff[0x03] = Bitmap_File_Head.bfSize >> 8);
+ buff[0x04] = Bitmap_File_Head.bfSize >> 16);
+ buff[0x05] = Bitmap_File_Head.bfSize >> 24);
+ */
+
+ buff[0x02] = (unsigned char) (Bitmap_File_Head.bfSize);
+ buff[0x03] = (unsigned char) (Bitmap_File_Head.bfSize >> 8);
+ buff[0x04] = (unsigned char) (Bitmap_File_Head.bfSize >> 16);
+ buff[0x05] = (unsigned char) (Bitmap_File_Head.bfSize >> 24);
+
+
+ buff[0x06] = (unsigned char) (Bitmap_File_Head.zzHotX);
+ buff[0x07] = (unsigned char) (Bitmap_File_Head.zzHotX >> 8);
+
+ buff[0x08] = (unsigned char) (Bitmap_File_Head.zzHotY);
+ buff[0x09] = (unsigned char) (Bitmap_File_Head.zzHotY >> 8);
+
+ buff[0x0a] = (unsigned char) (Bitmap_File_Head.bfOffs);
+ buff[0x0b] = (unsigned char) (Bitmap_File_Head.bfOffs>> 8);
+ buff[0x0c] = (unsigned char) (Bitmap_File_Head.bfOffs>> 16);
+ buff[0x0d] = (unsigned char) (Bitmap_File_Head.bfOffs>> 24);
+
+ buff[0x0e] = (unsigned char) (Bitmap_File_Head.biSize);
+ buff[0x0f] = (unsigned char) (Bitmap_File_Head.biSize>> 8);
+ buff[0x10] = (unsigned char) (Bitmap_File_Head.biSize>> 16);
+ buff[0x11] = (unsigned char) (Bitmap_File_Head.biSize>> 24);
+
+ /* Write contents of Bitmap_Head_Struct */
+
+ buff[0x12] = (unsigned char) (Bitmap_Head.biWidth);
+ buff[0x13] = (unsigned char) (Bitmap_Head.biWidth>> 8);
+ buff[0x14] = (unsigned char) (Bitmap_Head.biWidth>> 16);
+ buff[0x15] = (unsigned char) (Bitmap_Head.biWidth>> 24);
+
+ buff[0x16] = (unsigned char) (Bitmap_Head.biHeight);
+ buff[0x17] = (unsigned char) (Bitmap_Head.biHeight>> 8);
+ buff[0x18] = (unsigned char) (Bitmap_Head.biHeight>> 16);
+ buff[0x19] = (unsigned char) (Bitmap_Head.biHeight>> 24);
+
+ buff[0x1a] = (unsigned char) (Bitmap_Head.biPlanes);
+ buff[0x1b] = (unsigned char) (Bitmap_Head.biPlanes>> 8);
+
+ buff[0x1c] = (unsigned char) (Bitmap_Head.biBitCnt);
+ buff[0x1d] = (unsigned char) (Bitmap_Head.biBitCnt>> 8);
+
+ buff[0x1e] = (unsigned char) (Bitmap_Head.biCompr);
+ buff[0x1f] = (unsigned char) (Bitmap_Head.biCompr>> 8);
+ buff[0x20] = (unsigned char) (Bitmap_Head.biCompr>> 16);
+ buff[0x21] = (unsigned char) (Bitmap_Head.biCompr>> 24);
+
+ buff[0x22] = (unsigned char) (Bitmap_Head.biSizeIm);
+ buff[0x23] = (unsigned char) (Bitmap_Head.biSizeIm>> 8);
+ buff[0x24] = (unsigned char) (Bitmap_Head.biSizeIm>> 16);
+ buff[0x25] = (unsigned char) (Bitmap_Head.biSizeIm>> 24);
+
+ buff[0x26] = (unsigned char) (Bitmap_Head.biXPels);
+ buff[0x27] = (unsigned char) (Bitmap_Head.biXPels>> 8);
+ buff[0x28] = (unsigned char) (Bitmap_Head.biXPels>> 16);
+ buff[0x29] = (unsigned char) (Bitmap_Head.biXPels>> 24);
+
+ buff[0x2a] = (unsigned char) (Bitmap_Head.biYPels);
+ buff[0x2b] = (unsigned char) (Bitmap_Head.biYPels>> 8);
+ buff[0x2c] = (unsigned char) (Bitmap_Head.biYPels>> 16);
+ buff[0x2d] = (unsigned char) (Bitmap_Head.biYPels>> 24);
+
+ buff[0x2e] = (unsigned char) (Bitmap_Head.biClrUsed);
+ buff[0x2f] = (unsigned char) (Bitmap_Head.biClrUsed>> 8);
+ buff[0x30] = (unsigned char) (Bitmap_Head.biClrUsed>> 16);
+ buff[0x31] = (unsigned char) (Bitmap_Head.biClrUsed>> 24);
+
+ buff[0x32] = (unsigned char) (Bitmap_Head.biClrImp);
+ buff[0x33] = (unsigned char) (Bitmap_Head.biClrImp>> 8);
+ buff[0x34] = (unsigned char) (Bitmap_Head.biClrImp>> 16);
+ buff[0x35] = (unsigned char) (Bitmap_Head.biClrImp>> 24);
+
+ if( fwrite((void *) buff, 0x36, 1, image_data_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write bitmap file in write_bitmap_out.c",WRITE_FAILURE);
+
+
+ /* Now the reader is written, finally write the image */
+ if( fwrite(byte_aligned_image_data,(size_t) sizeof_image,1,image_data_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write bitmap file in write_bitmap_out.c",WRITE_FAILURE);
+ if( fclose(image_data_fp) != 0)
+ exit_with_msg_and_exit_code("failed to close file in write_bitmap_out.c",CANT_CLOSE_FILE);
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#include "definitions.h"
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
+#include "exit_codes.h"
+
+/* Write the following files, assuming an input of example.bmp
+
+example.E.Even.bmp Grayscale Bitmap of |E-field|, normallised to 1,
+ for even mode, but corrected for Gamma
+example.Ex.Even.bmp Colour Bitmap of x-directed E-field, normallised to 1,
+ for even mode, but corrected for Gamma
+example.Ey.Even.bmp Colour Bitmap of y-directed E-field, normallised to 1,
+ for even mode, but corrected for Gamma
+example.V.Even.bmp Colour Bitmap of Voltage field, normallised to 1,
+ for even mode, corrected for Gamma
+example.U.Even.bmp Grayscale bitmap, with just the energy (U=CV^2).
+ for even mode, corrected for Gamma
+
+
+example.E.Odd.bmp Grayscale Bitmap of |E-field|, normallised to 1,
+ for odd mode, but corrected for Gamma
+example.Ex.Odd.bmp Colour Bitmap of x-directed E-field, normallised to 1,
+ for odd mode, but corrected for Gamma
+example.Ey.Odd.bmp Colour Bitmap of y-directed E-field, normallised to 1,
+ for odd mode, but corrected for Gamma
+example.V.Odd.bmp Colour Bitmap of Voltage field, normallised to 1,
+ for odd mode, corrected for Gamma
+example.U.Odd.bmp Grayscale bitmap, with just the energy (U=CV^2).
+ for odd mode, corrected for Gamma
+
+
+example.Er.bmp Bitmap, showing dielectric constant as on grayscale
+ and conductors as red,green and blue. This is *not*
+ specifically for the any one mode.
+
+
+
+
+example.E.Odd.bin Binary file of |E-field|, normallised to for odd mode.
+example.Ex.Odd.bin Colour binary file of x-directed E-field, for odd mode.
+example.Ey.Odd.bin Colour binary file of y-directed E-field, for odd mode.
+example.V.Odd.bin Colour binary file of Voltage field, normallised to 1, for odd mode.
+example.U.Odd.bin Bitmap, with just the energy (U=CV^2). for odd mode.
+
+example.E.Even.bin Binary file of |E-field|, for even mode.
+example.Ex.Even.bin Colour binary file of x-directed E-field for even mode.
+example.Ey.Even.bin Colour binary file of y-directed E-field for even mode.
+example.V.Even.bin Colour binary file of Voltage field, for even mode.
+example.U.Even.bin Bitmap, with just the energy (U=CV^2) for even mode.
+
+
+example.Er.bin binary file, showing dielectric constant as on grayscale
+ and conductors as red,green and blue. This is *not*
+ specifically for the any one mode.
+
+
+*/
+
+extern double **Vij;
+extern double **Er;
+extern unsigned char *bmp_buff;
+extern int width, height;
+
+void write_fields_for_directional_couplers(char * filename, struct transmission_line_properties data, size_t size, int odd_or_even)
+{
+ FILE *Ex_even_bin_fp, *Ey_even_bin_fp, *E_even_bin_fp, *V_even_bin_fp, *U_even_bin_fp;
+ FILE *Ex_odd_bin_fp, *Ey_odd_bin_fp, *E_odd_bin_fp, *V_odd_bin_fp, *U_odd_bin_fp;
+ FILE *Ex_even_bmp_fp, *Ey_even_bmp_fp, *E_even_bmp_fp, *V_even_bmp_fp, *U_even_bmp_fp;
+ FILE *Ex_odd_bmp_fp, *Ey_odd_bmp_fp, *E_odd_bmp_fp, *V_odd_bmp_fp, *U_odd_bmp_fp;
+ FILE *permittivity_bin_fp, *permittivity_bmp_fp;
+ unsigned char *image_data_Ex=NULL;
+ unsigned char *image_data_Ey=NULL;
+ unsigned char *image_data_E=NULL;
+ unsigned char *image_data_U=NULL;
+ unsigned char *image_data_V=NULL;
+ unsigned char *image_data_Er=NULL;
+
+ unsigned char r, g, b;
+
+ static struct max_values maximum_values;
+ int offset=-3, w, h;
+ size_t memory_location;
+ double E, Ex, Ey, U;
+
+ if(data.write_binary_field_imagesQ==TRUE && odd_or_even == ODD)
+ {
+ Ex_odd_bin_fp=get_file_pointer_with_right_filename(filename,".Ex.odd.bin");
+ Ey_odd_bin_fp=get_file_pointer_with_right_filename(filename,".Ey.odd.bin");
+ E_odd_bin_fp=get_file_pointer_with_right_filename(filename,".E.odd.bin");
+ V_odd_bin_fp=get_file_pointer_with_right_filename(filename,".V.odd.bin");
+ U_odd_bin_fp=get_file_pointer_with_right_filename(filename,".U.odd.bin");
+ permittivity_bin_fp=get_file_pointer_with_right_filename(filename,".Er.bin");
+
+ for(h=height-1;h>=0;h--)
+ {
+ for(w=0;w<width;++w)
+ {
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=find_E(w,h);
+ U=find_energy_per_metre(w,h);
+ if( fwrite((void *) &Ex,sizeof(double), 1, Ex_odd_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &Ey,sizeof(double), 1, Ey_odd_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#2: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &E,sizeof(double), 1, E_odd_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#3: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &U,sizeof(double), 1, U_odd_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#4: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &Vij[w][h],sizeof(double), 1, V_odd_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#5: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &Er[w][h],sizeof(double), 1, permittivity_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ }
+ }
+ if( fclose(Ex_odd_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#7: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(Ey_odd_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#8: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(E_odd_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#9: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(U_odd_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#10: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(V_odd_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#11: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(permittivity_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#12: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ } /* End of writing odd binary files */
+
+ if(data.write_bitmap_field_imagesQ==TRUE && odd_or_even == ODD)
+ {
+ /* Allocate ram to store the bitmaps before they are written to disk */
+ image_data_Ex=ustring(0L,(long) size);
+ image_data_Ey=ustring(0L,(long) size);
+ image_data_E=ustring(0L,(long) size);
+ image_data_V=ustring(0L,(long) size);
+ image_data_Er=ustring(0L,(long) size);
+ image_data_U=ustring(0L,(long) size);
+ for(memory_location=0; memory_location < size; ++memory_location)
+ {
+ image_data_Ex[memory_location]=0;
+ image_data_Ey[memory_location]=0;
+ image_data_E[memory_location]=0;
+ image_data_U[memory_location]=0;
+ image_data_V[memory_location]=0;
+ image_data_Er[memory_location]=0;
+ }
+ /* Find maximum of the parameters */
+ find_maximum_values(&(maximum_values),ZERO_ELEMENTS_FIRST); /* sets stucture maximum_values */
+ Ex_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".Ex.odd.bmp");
+ Ey_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".Ey.odd.bmp");
+ E_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".E.odd.bmp");
+ V_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".V.odd.bmp");
+ U_odd_bmp_fp=get_file_pointer_with_right_filename(filename,".U.odd.bmp");
+ permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
+
+ /* Permittivity images are written along with the odd images. It
+ makes no difference whey they are written, since they don't change */
+
+ permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
+
+ if( fwrite(bmp_buff,0x36,1,Ex_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,Ey_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,E_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,U_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,V_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,permittivity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ offset=-3;
+ for(h=height-1;h>=0;h--)
+ {
+ for(w=0;w<width;++w)
+ {
+ offset+=3;
+ if((w==0) && (offset%4!=0) && (h!=0))
+ offset+=(4-offset%4);
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=find_Ex(w,h);
+ U=find_energy_per_metre(w,h);
+
+ calculate_colour_data(Ex, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ex, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Ey, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ey, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(E, maximum_values.E_max, w, h, offset,image_data_E, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(U, maximum_values.U_max, w, h, offset,image_data_U, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Vij[w][h], maximum_values.V_max, w, h, offset,image_data_V, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Er[w][h], MAX_ER, w, h, offset,image_data_Er, MIXED,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ }
+ }
+ if( fwrite((void *) image_data_Ex,size, 1, Ex_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#25: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_Ey[0]),size, 1, Ey_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#26: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_E[0]),size, 1, E_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#27: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_V[0]),size, 1, V_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#28: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_U[0]),size, 1, U_odd_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_Er[0]),size, 1, permittivity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+
+ if( fclose(Ex_odd_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#30: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(Ey_odd_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#31: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(E_odd_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#32: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(V_odd_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#33: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(U_odd_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#34: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(permittivity_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#35: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ free_ustring(image_data_Ex,0L,(long) size);
+ free_ustring(image_data_Ey,0L,(long) size);
+ free_ustring(image_data_E,0L,(long) size);
+ free_ustring(image_data_V,0L,(long) size);
+ free_ustring(image_data_U,0L,(long) size);
+ free_ustring(image_data_Er,0L,(long)size);
+ } /* End of writing odd bitmap files and therefore *all* odd files */
+
+ if(data.write_binary_field_imagesQ==TRUE && odd_or_even == EVEN)
+ {
+ Ex_even_bin_fp=get_file_pointer_with_right_filename(filename,".Ex.even.bin");
+ Ey_even_bin_fp=get_file_pointer_with_right_filename(filename,".Ey.even.bin");
+ E_even_bin_fp=get_file_pointer_with_right_filename(filename,".E.even.bin");
+ V_even_bin_fp=get_file_pointer_with_right_filename(filename,".V.even.bin");
+ U_even_bin_fp=get_file_pointer_with_right_filename(filename,".U.even.bin");
+ permittivity_bin_fp=get_file_pointer_with_right_filename(filename,".Er.bin");
+
+ for(h=height-1;h>=0;h--)
+ {
+ for(w=0;w<width;++w)
+ {
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=find_E(w,h);
+ U=find_energy_per_metre(w,h);
+
+ if( fwrite((void *) &Ex,sizeof(double), 1, Ex_even_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &Ey,sizeof(double), 1, Ey_even_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#2: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &E,sizeof(double), 1, E_even_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#3: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &U,sizeof(double), 1, U_even_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#4: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &Vij[w][h],sizeof(double), 1, V_even_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#5: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &Er[w][h],sizeof(double), 1, permittivity_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ }
+ }
+ if( fclose(Ex_even_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#7: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(Ey_even_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#8: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(E_even_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#9: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(U_even_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#10: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(V_even_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#11: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(permittivity_bin_fp) != 0)
+ exit_with_msg_and_exit_code("Error#12: can't close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ } /* End of writing even binary files */
+
+ if(data.write_bitmap_field_imagesQ==TRUE && odd_or_even == EVEN)
+ {
+ /* Allocate ram to store the bitmaps before they are written to disk */
+ image_data_Ex=ustring(0L,(long) size);
+ image_data_Ey=ustring(0L,(long) size);
+ image_data_E=ustring(0L,(long) size);
+ image_data_V=ustring(0L,(long) size);
+ image_data_Er=ustring(0L,(long) size);
+ image_data_U=ustring(0L,(long) size);
+#ifdef HAVE_MEMSET
+ (void) memset((void *) image_data_Ex,0,size);
+ (void) memset((void *) image_data_Ey,0,size);
+ (void) memset((void *) image_data_E,0,size);
+ (void) memset((void *) image_data_U,0,size);
+ (void) memset((void *) image_data_V,0,size);
+ (void) memset((void *) image_data_Er,0,size);
+#else
+ for(memory_location=0; memory_location < size; ++memory_location)
+ {
+ image_data_Ex[memory_location]=0;
+ image_data_Ey[memory_location]=0;
+ image_data_E[memory_location]=0;
+ image_data_U[memory_location]=0;
+ image_data_V[memory_location]=0;
+ image_data_Er[memory_location]=0;
+ }
+#endif /* End of #ifdef HAVE_MEMSET */
+ /* Find maximum of the parameters */
+ find_maximum_values(&(maximum_values),FALSE); /* sets stucture maximum_values */
+
+ Ex_even_bmp_fp=get_file_pointer_with_right_filename(filename,".Ex.even.bmp");
+ Ey_even_bmp_fp=get_file_pointer_with_right_filename(filename,".Ey.even.bmp");
+ E_even_bmp_fp=get_file_pointer_with_right_filename(filename,".E.even.bmp");
+ V_even_bmp_fp=get_file_pointer_with_right_filename(filename,".V.even.bmp");
+ U_even_bmp_fp=get_file_pointer_with_right_filename(filename,".U.even.bmp");
+ permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
+
+ /* Permittivity images are written along with the even images. It
+ makes no difference whey they are written, since they don't change */
+
+ permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
+
+ if( fwrite(bmp_buff,0x36,1,Ex_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,Ey_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,E_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,U_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,V_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,permittivity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ offset=-3;
+ for(h=height-1;h>=0;h--)
+ {
+ for(w=0;w<width;++w)
+ {
+ offset+=3;
+ if((w==0) && (offset%4!=0) && (h!=0))
+ offset+=(4-offset%4);
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=find_Ex(w,h);
+ U=find_energy_per_metre(w,h);
+
+ calculate_colour_data(Ex, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ex, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Ey, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ey, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(E, maximum_values.E_max, w, h, offset,image_data_E, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(U, maximum_values.U_max, w, h, offset,image_data_U, MONOCHROME,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Vij[w][h], maximum_values.V_max, w, h, offset,image_data_V, COLOUR,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Er[w][h], MAX_ER, w, h, offset,image_data_Er, MIXED,&r,&g,&b, IMAGE_FIDDLE_FACTOR);
+ }
+ }
+ if( fwrite((void *) &(image_data_Ex[0]),size, 1, Ex_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#25: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_Ey[0]),size, 1, Ey_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#26: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_E[0]),size, 1, E_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#27: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_V[0]),size, 1, V_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#28: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_U[0]),size, 1, U_even_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+ if( fwrite((void *) &(image_data_Er[0]),size, 1, permittivity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#29: Failed to write bitmap file in write_fields_for_directional_couplers.c",WRITE_FAILURE);
+
+ if( fclose(Ex_even_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#30: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(Ey_even_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#31: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(E_even_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#32: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(V_even_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#33: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(U_even_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#34: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+ if( fclose(permittivity_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#35: Unable to close file in write_fields_for_directional_couplers.c",CANT_CLOSE_FILE);
+
+ /* Free ram used to store the bitmaps before they were written to disk */
+ free_ustring(image_data_Ex,0L,(long) size);
+ free_ustring(image_data_Ey,0L,(long) size);
+ free_ustring(image_data_E,0L,(long) size);
+ free_ustring(image_data_V,0L,(long) size);
+ free_ustring(image_data_U,0L,(long) size);
+ free_ustring(image_data_Er,0L,(long) size);
+ } /* End of writing even bitmap files */
+}
--- /dev/null
+/* atlc - arbitrary transmission line calculator, for the analysis of
+transmission lines are directional couplers.
+
+Copyright (C) 2002. Dr. David Kirkby, PhD (G8WRB).
+
+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 package_version 2
+of the License, or (at your option) any later package_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., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+USA.
+
+Dr. David Kirkby, e-mail drkirkby at gmail.com
+
+*/
+
+#include "config.h"
+
+#include "definitions.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
+#ifdef HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
+#include "exit_codes.h"
+
+extern double **Vij;
+extern double **Er;
+extern unsigned char *bmp_buff;
+extern int width, height, errno;
+#ifdef WRITE_ODDITY_DATA
+extern unsigned char **oddity;
+#endif
+
+/* Write the following files, assuming an input of example.bmp
+where example.bmp is a 2 conductor transmission lines. For
+3 conductor transmission lines (couplers) the function
+
+
+example.E.bmp Grayscale Bitmap of |E-field|, normallised to 1,
+but corrected for Gamma
+example.Ex.bmp Colour Bitmap of x-directed E-field, normallised to 1,
+but corrected for Gamma
+example.Ey.bmp Colour Bitmap of y-directed E-field, normallised to 1,
+but corrected for Gamma
+example.V.bmp Colour Bitmap of Voltage field, normallised to 1, but
+corrected for Gamma
+eexample.U.bmp Grayscale bitmap, with just the energy (U=CV^2).
+
+example.Ex.bin binary file, with just the x-directed E-field
+(in volts/pixel) as doubles
+example.Ey.bin binary file, with just the y-directed E-field
+(in volts/pixel) as doubles
+example.E.bin binary file, with just the E-field {sqrt(Ex^2+Ey^2)}
+(in volts/pixel) as doubles
+example.V.bin binary file, with just the Voltage as doubles
+eexample.U.bin binary file, with just the energy (U=CV^2).
+
+*/
+
+extern double image_fiddle_factor;
+
+
+void write_fields_for_two_conductor_lines(char * filename, struct transmission_line_properties data, size_t size)
+{
+ FILE *Ex_bin_fp=NULL, *Ey_bin_fp=NULL;
+ FILE *E_bin_fp=NULL, *V_bin_fp, *U_bin_fp=NULL;
+ FILE *Ex_bmp_fp=NULL, *Ey_bmp_fp=NULL;
+ FILE *E_bmp_fp=NULL, *V_bmp_fp=NULL, *U_bmp_fp=NULL;
+#ifdef WRITE_ODDITY_DATA
+ FILE *oddity_bmp_fp=NULL;
+ double odd;
+#endif
+ unsigned char r, g, b;
+ FILE *permittivity_bin_fp=NULL, *permittivity_bmp_fp=NULL;
+ struct max_values maximum_values;
+ int offset=-3, w, h;
+ double V, E, Ex, Ey, U;
+
+ unsigned char *image_data_Ex=NULL;
+ unsigned char *image_data_Ey=NULL;
+ unsigned char *image_data_E=NULL;
+ unsigned char *image_data_U=NULL;
+ unsigned char *image_data_V=NULL;
+ unsigned char *image_data_Er=NULL;
+#ifdef WRITE_ODDITY_DATA
+ unsigned char *image_data_oddity=NULL;
+#endif
+
+
+ if(data.write_binary_field_imagesQ==TRUE)
+ {
+ Ex_bin_fp=get_file_pointer_with_right_filename(filename,".Ex.bin");
+ Ey_bin_fp=get_file_pointer_with_right_filename(filename,".Ey.bin");
+ E_bin_fp=get_file_pointer_with_right_filename(filename,".E.bin");
+ V_bin_fp=get_file_pointer_with_right_filename(filename,".V.bin");
+ U_bin_fp=get_file_pointer_with_right_filename(filename,".U.bin");
+ permittivity_bin_fp=get_file_pointer_with_right_filename(filename,".Er.bin");
+ for(h=height-1;h>=0;h--)
+ {
+ for(w=0;w<width;++w)
+ {
+ V=Vij[w][h];
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=find_E(w,h);
+ U=find_energy_per_metre(w,h);
+ if( fwrite((void *) &Ex,sizeof(double), 1, Ex_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#1: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+
+ if( fwrite((void *) &Ey,sizeof(double), 1, Ey_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#2: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+
+ if( fwrite((void *) &E,sizeof(double), 1, E_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#3: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+
+ if( fwrite((void *) &V,sizeof(double), 1, V_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#4: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+
+ if( fwrite((void *) &U,sizeof(double), 1, U_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#5: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+
+ if( fwrite((void *) &Er[w][h],sizeof(double), 1, permittivity_bin_fp) != 1)
+ exit_with_msg_and_exit_code("Error#6: Failed to write binary file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ }
+ }
+ } /* end of writing binary files for 2 conductor lines */
+
+ if(data.write_bitmap_field_imagesQ==TRUE)
+ {
+ find_maximum_values(&(maximum_values), ZERO_ELEMENTS_FIRST); /* sets stucture maximum_values */
+
+ /* Allocate ram to store the bitmaps before they are written to disk */
+ image_data_Ex=ustring(0L,(long) size);
+ image_data_Ey=ustring(0L,(long) size);
+ image_data_E=ustring(0L,(long) size);
+ image_data_V=ustring(0L,(long) size);
+ image_data_Er=ustring(0L,(long) size);
+ image_data_U=ustring(0L,(long) size);
+#ifdef WRITE_ODDITY_DATA
+ image_data_oddity=ustring(0L,(long) size);
+#endif
+
+ Ex_bmp_fp=get_file_pointer_with_right_filename(filename,".Ex.bmp");
+ Ey_bmp_fp=get_file_pointer_with_right_filename(filename,".Ey.bmp");
+ E_bmp_fp=get_file_pointer_with_right_filename(filename,".E.bmp");
+ V_bmp_fp=get_file_pointer_with_right_filename(filename,".V.bmp");
+ U_bmp_fp=get_file_pointer_with_right_filename(filename,".U.bmp");
+ permittivity_bmp_fp=get_file_pointer_with_right_filename(filename,".Er.bmp");
+#ifdef WRITE_ODDITY_DATA
+ oddity_bmp_fp=get_file_pointer_with_right_filename(filename,".oddity.bmp");
+#endif
+
+ if( fwrite(bmp_buff,0x36,1,Ex_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer Ex_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,Ey_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer Ey_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,E_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer E_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,V_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer V_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,U_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer U_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fwrite(bmp_buff,0x36,1,permittivity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer permittivity_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+
+#ifdef WRITE_ODDITY_DATA
+ if( fwrite(bmp_buff,0x36,1,oddity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("failed to write file with the pointer oddity_bmp_fp in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+#endif
+
+ offset=-3;
+ for(h=height-1;h>=0;h--)
+ {
+ for(w=0;w<width;++w)
+ {
+ offset+=3;
+ if((w==0) && (offset%4!=0) && (h!=0))
+ offset+=(4-offset%4);
+ Ex=find_Ex(w,h);
+ Ey=find_Ey(w,h);
+ E=find_E(w,h);
+ U=find_energy_per_metre(w,h);
+ calculate_colour_data(Ex, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ex, COLOUR,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Ey, maximum_values.Ex_or_Ey_max, w, h, offset,image_data_Ey, COLOUR,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(E, maximum_values.E_max, w, h, offset,image_data_E, MONOCHROME,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(U, maximum_values.U_max, w, h, offset,image_data_U, MONOCHROME,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Vij[w][h], maximum_values.V_max, w, h, offset,image_data_V, COLOUR,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
+ calculate_colour_data(Er[w][h], MAX_ER, w, h, offset,image_data_Er, MIXED,&r,&g,&b,IMAGE_FIDDLE_FACTOR);
+#ifdef WRITE_ODDITY_DATA
+ odd=(double) oddity[w][h];
+ calculate_colour_data(odd, 255 , w, h, offset,image_data_oddity, MONOCHROME,&r,&g,&b,1.0);
+#endif
+
+ }
+ }
+
+ /* if( fwrite((void *) &(image_data_Ex[0]),size, 1, Ex_bmp_fp) != 1) */
+ if( fwrite((void *) image_data_Ex,size, 1, Ex_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#7: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(Ex_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#8: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+
+ /* if( fwrite((void *) &(image_data_Ey[0]),size, 1, Ey_bmp_fp) != 1) */
+ if( fwrite((void *) image_data_Ey,size, 1, Ey_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#9: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(Ey_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#10: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+
+ if( fwrite((void *) &(image_data_E[0]),size, 1, E_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#11: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(E_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#12: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+
+ if( fwrite((void *) &(image_data_U[0]),size, 1, U_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#13: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(U_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#14: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+
+ if( fwrite((void *) &(image_data_V[0]),size, 1, V_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#15: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(V_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#16: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+
+ if( fwrite((void *) &(image_data_Er[0]),size, 1, permittivity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#17: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(permittivity_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#18: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+
+#ifdef WRITE_ODDITY_DATA
+ if( fwrite((void *) &(image_data_oddity[0]),size, 1, oddity_bmp_fp) != 1)
+ exit_with_msg_and_exit_code("Error#19: Failed to write bitmap file in write_fields_for_two_conductor_lines.c",WRITE_FAILURE);
+ if( fclose(oddity_bmp_fp) != 0)
+ exit_with_msg_and_exit_code("Error#20: Unable to close file in write_fields_for_two_conductor_lines.c",CANT_CLOSE_FILE);
+#endif
+
+ free_ustring(image_data_Ex,0L,(long)size);
+ free_ustring(image_data_Ey,0L,(long)size);
+ free_ustring(image_data_E,0L,(long)size);
+ free_ustring(image_data_V,0L,(long)size);
+ free_ustring(image_data_U,0L,(long)size);
+ free_ustring(image_data_Er,0L,(long)size);
+#ifdef WRITE_ODDITY_DATA
+ free_ustring(image_data_oddity,0L,(long)size);
+#endif
+ }
+}
#! /bin/sh
-Zodd=`$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -v 1.0 1.0 0.02 1 $top_builddir/tests/coupler8.bmp | tail -4 | head -1 | awk '{print $2}'`
-Zeven=`$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -v 1.0 1.0 0.02 1 $top_builddir/tests/coupler8.bmp | tail -4 | head -1 | awk '{print $4}'`
-Zo=`$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -v 1.0 1.0 0.02 1 $top_builddir/tests/coupler8.bmp | tail -4 | head -1 | awk '{print $6}'`
+Zodd=`$top_builddir/src/create_bmp_for_stripline_coupler -v 1.0 1.0 0.02 1 $top_builddir/tests/coupler8.bmp | tail -4 | head -1 | awk '{print $2}'`
+Zeven=`$top_builddir/src/create_bmp_for_stripline_coupler -v 1.0 1.0 0.02 1 $top_builddir/tests/coupler8.bmp | tail -4 | head -1 | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_stripline_coupler -v 1.0 1.0 0.02 1 $top_builddir/tests/coupler8.bmp | tail -4 | head -1 | awk '{print $6}'`
rm $top_builddir/tests/coupler8.bmp
if [ $Zodd = 40.395419 ] && [ $Zeven = 76.541465 ] && [ $Zo = 55.605076 ] ; then
# know. email drkirkby@ntlworld.com and/or davek@medphys.ucl.ac.uk
-Zodd=`$top_builddir/src/no*/create_bmp_for_stripline_coupler -v 1.0 1.0 1.0 1.0 $top_builddir/tmp/coupler1.bmp | tail -1 | awk '{print $2 }' `
-Zeven=`$top_builddir/src/no*/create_bmp_for_stripline_coupler -v 1.0 1.0 1.0 1.0 $top_builddir/tmp/coupler1.bmp | tail -1 | awk '{print $4 }' `
-Zo=`$top_builddir/src/no*/create_bmp_for_stripline_coupler -v 1.0 1.0 1.0 1.0 $top_builddir/tmp/coupler1.bmp | tail -1 | awk '{print $6 }' `
+Zodd=`$top_builddir/src/create_bmp_for_stripline_coupler -v 1.0 1.0 1.0 1.0 $top_builddir/tmp/coupler1.bmp | tail -1 | awk '{print $2 }' `
+Zeven=`$top_builddir/src/create_bmp_for_stripline_coupler -v 1.0 1.0 1.0 1.0 $top_builddir/tmp/coupler1.bmp | tail -1 | awk '{print $4 }' `
+Zo=`$top_builddir/src/create_bmp_for_stripline_coupler -v 1.0 1.0 1.0 1.0 $top_builddir/tmp/coupler1.bmp | tail -1 | awk '{print $6 }' `
rm -f $top_builddir/tmp/coupler1.bmp
if [ $Zodd = 64.722695 ] && [ $Zeven = 65.969498 ] && [ $Zo = 65.343123 ] ; then
echo "PASSED:" $0 >> tests.log
# We will generate all the bitmaps and check they
# are all okay.
if [ "$mpirun" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test-coupler1.bmp > /dev/null
+ mpirun -np 2 $top_builddir/src/atlc -S $top_builddir/tmp/test-coupler1.bmp > /dev/null
rm $top_builddir/tmp/test-coupler1.Ex.odd.bmp
else
- $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test-coupler1.bmp > /dev/null
+ $top_builddir/src/atlc -S $top_builddir/tmp/test-coupler1.bmp > /dev/null
fi
touch $top_builddir/tmp/test-coupler1.Ex.odd.bmp
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test-coupler1.Ex.odd.bmp`
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_rect_cen_in_rect 268 100 100 50 4.8 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_rect_cen_in_rect 268 100 100 50 4.8 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/central.bmp`
rm $top_builddir/tmp/central.bmp
if [ $MD5SUM != 48dc0ac8fc6092d7bee8cd2b00fa7da2 ]; then
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_rect_cen_in_rect 200.3 100 93 57 1.0 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_rect_cen_in_rect 200.3 100 93 57 1.0 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/central.bmp`
rm $top_builddir/tmp/central.bmp
if [ $MD5SUM != ceb7b80aba008c32d3af257943e8b0db ]; then
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_rect_cen_in_rect 268 100 100 50 4.8 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_rect_cen_in_rect 268 100 100 50 4.8 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/central.bmp`
rm $top_builddir/tmp/central.bmp
if [ $MD5SUM != 48dc0ac8fc6092d7bee8cd2b00fa7da2 ]; then
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_rect_cen_in_rect 267 150 140 50 1 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_rect_cen_in_rect 267 150 140 50 1 $top_builddir/tmp/central.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/central.bmp`
rm $top_builddir/tmp/central.bmp
if [ $MD5SUM != e9d0da5766743faaa772bf15ad383716 ]; then
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_circ_in_rect 20 200 100 50 -4.98 10.2 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_circ_in_rect 20 200 100 50 -4.98 10.2 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/cir.bmp`
rm $top_builddir/tmp/cir.bmp
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_circ_in_rect 20 180 100 50 -5 1 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_circ_in_rect 20 180 100 50 -5 1 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/cir.bmp`
rm $top_builddir/tmp/cir.bmp
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_circ_in_rect 5 100 100 20 -5 4.8 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_circ_in_rect 5 100 100 20 -5 4.8 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/cir.bmp`
rm $top_builddir/tmp/cir.bmp
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_circ_in_rect 40 100 100 5 -5 1 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_circ_in_rect 40 100 100 5 -5 1 $top_builddir/tmp/cir.bmp >/dev/null 2>/dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/cir.bmp`
rm $top_builddir/tmp/cir.bmp
echo "Testing started at" `date` "on" `hostname` > $top_builddir/tests/tests.log
mkdir $top_builddir/tmp 2>/dev/null >/dev/null
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 950 201 68 $top_builddir/tmp/test_sym_strip.bmp > /dev/null 2> /dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline -v 950 201 68 $top_builddir/tmp/test_sym_strip.bmp > /dev/null 2> /dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test_sym_strip.bmp`
if [ $MD5SUM = 74b72c91834147d14396cc25db7c9e14 ] ; then
# the mpirun script, which is part of the MPICH distribution.
if [ -n "$mpirun_found" ] ; then
- Zo=`mpirun -np 2 $top_builddir/src/non_gui/atlc $top_builddir/tmp/test_sym_strip.bmp | awk '{print $6}'` 2> /dev/null
+ Zo=`mpirun -np 2 $top_builddir/src/atlc $top_builddir/tmp/test_sym_strip.bmp | awk '{print $6}'` 2> /dev/null
else
- Zo=`$top_builddir/src/non_gui/atlc $top_builddir/tmp/test_sym_strip.bmp | awk '{print $6}'`
+ Zo=`$top_builddir/src/atlc $top_builddir/tmp/test_sym_strip.bmp | awk '{print $6}'`
fi
# Check the impedance Zo which should be 122.43 Ohms
# rehat Linux and a Dec Alpha. Any failure probably indicates a
# program bug, so PLEASE PLEASE let me know about it!!
-$top_builddir/src/non_gui/create_bmp_for_rect_in_rect -b 4 500 100 20 240 20 460 50 40 1 4.8 $top_builddir/tmp/test_rect_in_rect.bmp
+$top_builddir/src/create_bmp_for_rect_in_rect -b 4 500 100 20 240 20 460 50 40 1 4.8 $top_builddir/tmp/test_rect_in_rect.bmp
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test_rect_in_rect.bmp`
if [ $MD5SUM = c761645b57a08057064eb284a44859e9 ]; then
rm $top_builddir/tmp/test_rect_in_rect.bmp
# for the MPICH libraries, atlc gives a huge number of error messages.
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test_rect_in_rect.bmp > $top_builddir/tmp/test_rect_in_rect.txt
+ mpirun -np 2 $top_builddir/src/atlc -S $top_builddir/tmp/test_rect_in_rect.bmp > $top_builddir/tmp/test_rect_in_rect.txt
else
- $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test_rect_in_rect.bmp > $top_builddir/tmp/test_rect_in_rect.txt
+ $top_builddir/src/atlc -S $top_builddir/tmp/test_rect_in_rect.bmp > $top_builddir/tmp/test_rect_in_rect.txt
fi
touch $top_builddir/tmp/test_rect_in_rect.txt
#! /bin/sh
-$top_builddir/src/non_gui/create_bmp_for_rect_cen_in_rect -b 4 500 100 20 20 1 $top_builddir/tmp/test.bmp
+$top_builddir/src/create_bmp_for_rect_cen_in_rect -b 4 500 100 20 20 1 $top_builddir/tmp/test.bmp
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/test.bmp`
if [ $MD5SUM = a4545fdbafdb3150d8dc65eb8ca5e6ef ]; then
echo "PASSED:" $0 >> tests.log
rm -f test.*.bin
if [ -n "$mpirun_found" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/test.bmp > $top_builddir/tmp/test.txt 2> /dev/null
+ mpirun -np 2 $top_builddir/src/atlc -s -S $top_builddir/tmp/test.bmp > $top_builddir/tmp/test.txt 2> /dev/null
else
- $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/test.bmp > $top_builddir/tmp/test.txt
+ $top_builddir/src/atlc -s -S $top_builddir/tmp/test.bmp > $top_builddir/tmp/test.txt
fi
# Check the inductance per metre, which should be in column 12 and
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_microstrip_coupler 1.5 2.0 1 1.593 0.035 1 3.7 $top_builddir/tmp/microstrip_coupler.bmp
+$top_builddir/src/create_bmp_for_microstrip_coupler 1.5 2.0 1 1.593 0.035 1 3.7 $top_builddir/tmp/microstrip_coupler.bmp
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/microstrip_coupler.bmp`
rm $top_builddir/tmp/microstrip_coupler.bmp
#rm microstrip_coupler.bmp
# Check the -S and -s options together prevent all ( .bmp or .bin files ) being created.
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/coax2.bmp > /dev/null
+ mpirun -np 2 $top_builddir/src/atlc -s -S $top_builddir/tmp/coax2.bmp > /dev/null
else
- $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/coax2.bmp > /dev/null
+ $top_builddir/src/atlc -s -S $top_builddir/tmp/coax2.bmp > /dev/null
fi
if [ -f $top_builddir/tmp/coax2.Ex.bmp ] || [ -f $top_builddir/tmp/coax2.Ey.bin ] || [ -f top_builddir/tmp/coax2.Er.bin ] ; then
# Check that -S suppresses the creation of .bin, but not .bmp's
if [ "$mpirun_found" = "yes" ] ; then
- npirun -np 2$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/coax2.bmp > /dev/null
+ npirun -np 2$top_builddir/src/atlc -S $top_builddir/tmp/coax2.bmp > /dev/null
else
- $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/coax2.bmp > /dev/null
+ $top_builddir/src/atlc -S $top_builddir/tmp/coax2.bmp > /dev/null
fi
if [ -f $top_builddir/tmp/coax2.Ex.bin ] || [ -f $top_builddir/tmp/coax2.Ey.bin ] || [ -f $top_builddir/tmp/coax2.Er.bin ] || [ ! -f $top_builddir/tmp/coax2.Er.bmp ] ; then
# Check that -s suppresses the creation of .bmp's, but not .bin's
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -s $top_builddir/tmp/coax2.bmp > /dev/null
+ mpirun -np 2 $top_builddir/src/atlc -s $top_builddir/tmp/coax2.bmp > /dev/null
else
- $top_builddir/src/non_gui/atlc -s $top_builddir/tmp/coax2.bmp > /dev/null
+ $top_builddir/src/atlc -s $top_builddir/tmp/coax2.bmp > /dev/null
fi
if [ -f $top_builddir/tmp/coax2.Ex.bmp ] || [ -f $top_builddir/tmp/coax2.Ey.bmp ] || [ ! -f $top_builddir/tmp/coax2.Er.bin ] ; then
# Check that no options creates.bmp's and bin's
if [ "$mpirun_found" = "yes" ] ; then
- $top_builddir/src/non_gui/atlc $top_builddir/tmp/coax2.bmp > /dev/null
+ $top_builddir/src/atlc $top_builddir/tmp/coax2.bmp > /dev/null
else
- $top_builddir/src/non_gui/atlc $top_builddir/tmp/coax2.bmp > /dev/null
+ $top_builddir/src/atlc $top_builddir/tmp/coax2.bmp > /dev/null
fi
if [ ! -f $top_builddir/tmp/coax2.Ex.bmp ] || [ ! -f $top_builddir/tmp/coax2.Ey.bmp ] || [ ! -f $top_builddir/tmp/coax2.Er.bin ] ; then
# Check the -S and -s options together allow no .bmp or .bin files
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
+ mpirun -np 2 $top_builddir/src/atlc -s -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
else
- $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
+ $top_builddir/src/atlc -s -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
fi
if [ -f $top_builddir/tmp/test-coupler2.Ex.even.bmp ] || [ -f $top_builddir/tmp/test-coupler2.Ey.odd.bin ] || [ -f $top_builddir/tmp/test-coupler2.Er.bin ] ; then
# Check that -S suppresses the creation of .bin, but not .bmp's
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
+ mpirun -np 2 $top_builddir/src/atlc -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
else
- $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
+ $top_builddir/src/atlc -S $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
fi
if [ -f $top_builddir/tmp/test-coupler2.Ex.odd.bin ] || [ -f $top_builddir/tmp/test-coupler2.Ey.odd.bin ] || [ ! -f $top_builddir/tmp/test-coupler2.Er.bmp ] ; then
# Check that -s suppresses the creation of .bmp's, but not .bin's
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc -s $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
+ mpirun -np 2 $top_builddir/src/atlc -s $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
else
- $top_builddir/src/non_gui/atlc -s $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
+ $top_builddir/src/atlc -s $top_builddir/tmp/test-coupler2.bmp > $top_builddir/tmp/test-coupler2.bmp.txt
fi
if [ -f $top_builddir/tmp/test-coupler2.Ex.even.bmp ] || [ -f $top_builddir/tmp/test-coupler2.Ey.odd.bmp ] || [ ! -f $top_builddir/tmp/test-coupler2.Er.bin ] ; then
# Check that no options creates both the .bmp's and .bin's
if [ "$mpirun_found" = "yes" ] ; then
- mpirun -np 2 $top_builddir/src/non_gui/atlc $top_builddir/tmp/test-coupler2.bmp > /dev/null
+ mpirun -np 2 $top_builddir/src/atlc $top_builddir/tmp/test-coupler2.bmp > /dev/null
else
- $top_builddir/src/non_gui/atlc $top_builddir/tmp/test-coupler2.bmp > /dev/null
+ $top_builddir/src/atlc $top_builddir/tmp/test-coupler2.bmp > /dev/null
fi
if [ ! -f $top_builddir/tmp/test-coupler2.Ex.odd.bmp ] || [ ! -f $top_builddir/tmp/test-coupler2.Ey.odd.bmp ] || [ ! -f $top_builddir/tmp/test-coupler2.Er.bin ] ; then
# Add the -S and -s options together to prevent all ( .bmp or .bin files ) being created.
if [ "$mpirun_found" = "yes" ] ; then
- Zo=`mpirun -np 2 $top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/coax2.bmp | awk '{print $6}'`
+ Zo=`mpirun -np 2 $top_builddir/src/atlc -s -S $top_builddir/tmp/coax2.bmp | awk '{print $6}'`
else
- Zo=`$top_builddir/src/non_gui/atlc -s -S $top_builddir/tmp/coax2.bmp | awk '{print $6}'`
+ Zo=`$top_builddir/src/atlc -s -S $top_builddir/tmp/coax2.bmp | awk '{print $6}'`
fi
if [ $Zo != 70.199 ] ; then
# slightly from the theoretical data
# Create a bitmap and compute its theeoretical impedance.
-ZoTheory=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 1512 201 668 $top_builddir/tmp/25ohm-201h.bmp | awk '{print $4}'`
+ZoTheory=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 1512 201 668 $top_builddir/tmp/25ohm-201h.bmp | awk '{print $4}' | tail -1`
# Generate a checksum for the file created
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/25ohm-201h.bmp`
-# Now run atlc on this bitmap and check it close to that computed.
+# Now run atlc on this bitmap and check it is close to that computed.
if [ "x$mpirun" = "xyes" ] ; then
- Zoatlc=`mpirun -np 2 $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/25ohm-201h.bmp | awk '{print $6}'`
+ Zoatlc=`mpirun -np 2 $top_builddir/src/atlc -S $top_builddir/tmp/25ohm-201h.bmp | awk '{print $6}' | tail -1`
else
- Zoatlc=`$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/25ohm-201h.bmp | awk '{print $6}'`
+ Zoatlc=`$top_builddir/src/atlc -S $top_builddir/tmp/25ohm-201h.bmp | awk '{print $6}' | tail -1 `
fi
# Generate a checksum for a file created by atlc.
# "Zo theory = " $ZoTheory "Zo altc= " $Zoatlc " cksum of bitmap" $MD5SUM "cksum of .Ex.bmp= " $EXMD5SUM
-
-if [ $ZoTheory = 25.017590 ] && [ $Zoatlc = 24.932 ] && [ $MD5SUM = 44e86f6bcec1a61db9564040ec93557c ] && [ $EXMD5SUM = 499efd42aa2610c23f6995071e060e69 ] ; then
# Remvove the unwanted files.
- rm $top_builddir/tmp/25ohm-201h.Ex.bmp
- rm $top_builddir/tmp/25ohm-201h.bmp
- rm $top_builddir/tmp/25ohm-201h.Ey.bmp
- rm $top_builddir/tmp/25ohm-201h.E.bmp
- rm $top_builddir/tmp/25ohm-201h.V.bmp
- rm $top_builddir/tmp/25ohm-201h.U.bmp
- rm $top_builddir/tmp/25ohm-201h.Er.bmp
+rm $top_builddir/tmp/25ohm-201h.Ex.bmp
+rm $top_builddir/tmp/25ohm-201h.bmp
+rm $top_builddir/tmp/25ohm-201h.Ey.bmp
+rm $top_builddir/tmp/25ohm-201h.E.bmp
+rm $top_builddir/tmp/25ohm-201h.V.bmp
+rm $top_builddir/tmp/25ohm-201h.U.bmp
+rm $top_builddir/tmp/25ohm-201h.Er.bmp
+if [ $ZoTheory = 25.017590 ] && [ $Zoatlc = 24.932 ] && [ $MD5SUM = 44e86f6bcec1a61db9564040ec93557c ] && [ $EXMD5SUM = 499efd42aa2610c23f6995071e060e69 ] ; then
echo "PASSED:" $0 >> tests.log
exit 0
else
# in 6a-create_and_check_25ohm_201Pixel_high_symmetrical_stripline.test
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 2978 401 1334 $top_builddir/tmp/25ohm-401h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 2978 401 1334 $top_builddir/tmp/25ohm-401h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 24.995678 ]; then
rm $top_builddir/tmp/25ohm-401h.bmp
echo "PASSED:" $0 >> tests.log
# To save time, atlc is not called to give its estimate of Zo, like it was
# in 6a-create_and_check_25ohm_201Pixel_high_symmetrical_stripline.test
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 6000 801 2664 $top_builddir/tmp/25ohm-801h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 6000 801 2664 $top_builddir/tmp/25ohm-801h.bmp | awk '{print $4}'| tail -1`
if [ $Zo = 25.001256 ]; then
rm $top_builddir/tmp/25ohm-801h.bmp
echo "PASSED:" $0 >> tests.log
#: ${Zoatlc='iofdklkljf'}
if [ "x$mpirun_found" = "xyes" ] ; then
- ZoTheory=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 1134 201 290 $top_builddir/tmp/50ohm-201h.bmp | awk '{print $4}'`
- Zoatlc=`mpirun -np 2 $top_builddir/src/non_gui/atlc -S $top_builddir/tmp/50ohm-201h.bmp | awk '{print $6}'`
+ ZoTheory=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 1134 201 290 $top_builddir/tmp/50ohm-201h.bmp | awk '{print $4}' | tail -1`
+ Zoatlc=`mpirun -np 2 $top_builddir/src/atlc -S $top_builddir/tmp/50ohm-201h.bmp | awk '{print $6}' | tail -1`
else
- ZoTheory=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 1134 201 290 $top_builddir/tmp/50ohm-201h.bmp | awk '{print $4}'`
- Zoatlc=`$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/50ohm-201h.bmp | awk '{print $6}'`
+ ZoTheory=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 1134 201 290 $top_builddir/tmp/50ohm-201h.bmp | awk '{print $4}' | tail -1`
+ Zoatlc=`$top_builddir/src/atlc -S $top_builddir/tmp/50ohm-201h.bmp | awk '{print $6}' | tail -1`
fi
touch $top_builddir/tmp/50ohm-201h.bmp $top_builddir/tmp/50ohm-201h.Ex.bmp
# atlc is then called, and its estimate calaculated, which will differ
# slightly from the theoretical data
-ZoTheory=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 2222 401 578 $top_builddir/tmp/50ohm-401h.bmp | awk '{print $4}'`
-#echo "Zo theory = " $ZoTheory "Zo altc= " $Zoatlc " cksum of bitmap" $MD5SUM "cksum of .Ex.bmp= " $EXMD5SUM
+ZoTheory=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 2222 401 578 $top_builddir/tmp/50ohm-401h.bmp | awk '{print $4}' | tail -1`
if [ $ZoTheory = 50.026376 ] ; then
rm $top_builddir/tmp/50ohm-401h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 5000 801 1155 $top_builddir/tmp/50ohm-801h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 5000 801 1155 $top_builddir/tmp/50ohm-801h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 50.011737 ]; then
rm $top_builddir/tmp/50ohm-801h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 945 201 101 $top_builddir/tmp/100ohm-201h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 945 201 101 $top_builddir/tmp/100ohm-201h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 100.160858 ]; then
rm $top_builddir/tmp/100ohm-201h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 1846 401 202 $top_builddir/tmp/100ohm-401h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 1846 401 202 $top_builddir/tmp/100ohm-401h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 100.024637 ]; then
rm $top_builddir/tmp/100ohm-401h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 3647 801 403 $top_builddir/tmp/100ohm-801h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 3647 801 403 $top_builddir/tmp/100ohm-801h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 100.091938 ]; then
rm $top_builddir/tmp/100ohm-801h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 862 201 18 $top_builddir/tmp/200ohm-201h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 862 201 18 $top_builddir/tmp/200ohm-201h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 200.818306 ]; then
rm $top_builddir/tmp/200ohm-201h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 1680 401 36 $top_builddir/tmp/200ohm-401h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 1680 401 36 $top_builddir/tmp/200ohm-401h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 200.669461 ]; then
rm $top_builddir/tmp/200ohm-401h.bmp
echo "PASSED:" $0 >> tests.log
# This test has been disabled, since it uses more than 256 Mb of RAM
# which is a bit excessive.
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 3317 801 73 $top_builddir/tmp/200ohm-801h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 3317 801 73 $top_builddir/tmp/200ohm-801h.bmp | awk '{print $4}' | tail -1`
if [ $Zo = 199.770642 ]; then
rm $top_builddir/tmp/200ohm-801h.bmp
echo "PASSED:" $0 >> tests.log
#! /bin/sh
# Removed since this uses too much RAM
-Zo=`$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline -v 6449 1551 5 $top_builddir/tmp/400ohm-1551h.bmp | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_symmetrical_stripline -v 6449 1551 5 $top_builddir/tmp/400ohm-1551h.bmp | awk '{print $4}'`
if [ $Zo = 400.038921 ]; then
rm $top_builddir/tmp/400ohm-1551h.bmp
echo "PASSED:" $0 >> tests.log
# program bug, so PLEASE PLEASE let me know about it!!
# Dr. David Kirkby, drkirkby@ntlworld.com
-$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -vv -b 16 1 1 1 1.0 $top_builddir/tmp/test_stripline_coupler.bmp > $top_builddir/tmp/test_stripline_coupler.bmp.pre-atlc.txt
+$top_builddir/src/create_bmp_for_stripline_coupler -vv -b 16 1 1 1 1.0 $top_builddir/tmp/test_stripline_coupler.bmp > $top_builddir/tmp/test_stripline_coupler.bmp.pre-atlc.txt
rm $top_builddir/tmp/test_stripline_coupler.bmp.pre-atlc.txt
touch $top_builddir/tmp/test_stripline_coupler.bmp
touch $top_builddir/tmp/test_stripline_coupler.bmp
if [ "x$mpirun_found" = "xyes" ] ; then
- mpirun -np 2 Zodd=`$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test_stripline_coupler.bmp | awk '{print $8}'` 2> /dev/null
+ mpirun -np 2 Zodd=`$top_builddir/src/atlc -S $top_builddir/tmp/test_stripline_coupler.bmp | awk '{print $8}'` 2> /dev/null
else
- Zodd=`$top_builddir/src/non_gui/atlc -S $top_builddir/tmp/test_stripline_coupler.bmp | awk '{print $8}'`
+ Zodd=`$top_builddir/src/atlc -S $top_builddir/tmp/test_stripline_coupler.bmp | awk '{print $8}'`
fi
rm -f $top_builddir/tmp/test_stripline_coupler.bmp
#! /bin/sh
touch $top_builddir/tmp/test_stripline_coupler2.bmp
-Zodd=`$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -vv -b 16 1 1 0.05 1.0 $top_builddir/tmp/test_stripline_coupler2.bmp | tail -4 | head -1 | awk '{print $2}'`
-Zeven=`$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -vv -b 16 1 1 0.05 1.0 $top_builddir/tmp/test_stripline_coupler2.bmp | tail -4 | head -1 | awk '{print $4}'`
-Zo=`$top_builddir/src/non_gui/create_bmp_for_stripline_coupler -vv -b 16 1 1 0.05 1.0 $top_builddir/tmp/test_stripline_coupler2.bmp | tail -4 | head -1 | awk '{print $6}'`
+Zodd=`$top_builddir/src/create_bmp_for_stripline_coupler -vv -b 16 1 1 0.05 1.0 $top_builddir/tmp/test_stripline_coupler2.bmp | tail -4 | head -1 | awk '{print $2}'`
+Zeven=`$top_builddir/src/create_bmp_for_stripline_coupler -vv -b 16 1 1 0.05 1.0 $top_builddir/tmp/test_stripline_coupler2.bmp | tail -4 | head -1 | awk '{print $4}'`
+Zo=`$top_builddir/src/create_bmp_for_stripline_coupler -vv -b 16 1 1 0.05 1.0 $top_builddir/tmp/test_stripline_coupler2.bmp | tail -4 | head -1 | awk '{print $6}'`
if [ $Zodd = 45.839308 ] && [ $Zeven = 75.669832 ] && [ $Zo = 58.895269 ] ; then
rm -f $top_builddir/tmp/test_stripline_coupler2.bmp
# The GNU scientific library is needed to use design_coupler, so if it's
# not present, this test gets skipped.
-$top_builddir/src/non_gui/design_coupler -d 20 144 146 > $top_builddir/tmp/results 2> /dev/null
+$top_builddir/src/design_coupler -d 20 144 146 > $top_builddir/tmp/results 2> /dev/null
MD5SUM=`$top_builddir/tools/src/mymd5sum $top_builddir/tmp/results`
# Accept eithe a DOS or UNIX based text file, so accept two checksums.
if [ $MD5SUM = f53d09bdc334c3f0508b4f44e789e216 ] || [ $MD5SUM = aebd9a6d1c1db548d39723edec454640 ] ; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 800 201 668 $top_builddir/tmp/25-Ohm-201b.bmp 2> /dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 800 201 668 $top_builddir/tmp/25-Ohm-201b.bmp 2> /dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/25-Ohm-201b.bmp`
rm $top_builddir/tmp/25-Ohm-201b.bmp
if [ $LENGTH = 506454 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 401 1334 $top_builddir/tmp/25-Ohm-401b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 401 1334 $top_builddir/tmp/25-Ohm-401b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/25-Ohm-401b.bmp`
rm $top_builddir/tmp/25-Ohm-401b.bmp
if [ $LENGTH = 6165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 201 290 $top_builddir/tmp/50-Ohm-201b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 201 290 $top_builddir/tmp/50-Ohm-201b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/50-Ohm-201b.bmp`
rm $top_builddir/tmp/50-Ohm-201b.bmp
if [ $LENGTH = 3165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 401 578 $top_builddir/tmp/50-Ohm-401b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 401 578 $top_builddir/tmp/50-Ohm-401b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/50-Ohm-401b.bmp`
rm $top_builddir/tmp/50-Ohm-401b.bmp
if [ $LENGTH = 6165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 201 101 $top_builddir/tmp/100-Ohm-201b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 201 101 $top_builddir/tmp/100-Ohm-201b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/100-Ohm-201b.bmp`
rm $top_builddir/tmp/100-Ohm-201b.bmp
if [ $LENGTH = 3165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 401 202 $top_builddir/tmp/100-Ohm-401b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 401 202 $top_builddir/tmp/100-Ohm-401b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/100-Ohm-401b.bmp`
rm $top_builddir/tmp/100-Ohm-401b.bmp
if [ $LENGTH = 6165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 201 18 $top_builddir/tmp/200-Ohm-201b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 201 18 $top_builddir/tmp/200-Ohm-201b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/200-Ohm-201b.bmp`
rm $top_builddir/tmp/200-Ohm-201b.bmp
if [ $LENGTH = 3165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 401 36 $top_builddir/tmp/200-Ohm-401b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 401 36 $top_builddir/tmp/200-Ohm-401b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/200-Ohm-401b.bmp`
rm $top_builddir/tmp/200-Ohm-401b.bmp
if [ $LENGTH = 6165054 ]; then
# and it is tedious to do.
# The following are around 25 Ohm transmission lines.
-$top_builddir/src/non_gui/create_bmp_for_symmetrical_stripline 5000 801 73 $top_builddir/tmp/200-Ohm-801b.bmp >/dev/null 2>/dev/null
+$top_builddir/src/create_bmp_for_symmetrical_stripline 5000 801 73 $top_builddir/tmp/200-Ohm-801b.bmp >/dev/null 2>/dev/null
LENGTH=`$top_builddir/tools/src/myfilelength $top_builddir/tmp/200-Ohm-801b.bmp`
rm $top_builddir/tmp/200-Ohm-801b.bmp
if [ $LENGTH = 12165054 ]; then
14b-check-circ-in-rect.test \
14c-check-circ-in-rect.test \
14d-check-circ-in-rect.test \
+WARNING-The-next-test-is-a-benchmark-and-takes-a-long-while.test \
benchmark.test
#MPI_16a_PI
14b-check-circ-in-rect.test \
14c-check-circ-in-rect.test \
14d-check-circ-in-rect.test \
-WARNING--The-next-test+benchmark-takes-a-long-while.test \
+WARNING-The-next-test-is-a-benchmark-and-takes-a-long-while.test \
1a-create_bmp_for_symmetrical_stripline.bmp.test \
1b-create_bmp_for_symmetrical_stripline.txt.test \
1c-create_bmp_for_symmetrical_stripline.E.bmp.test \
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+check_PROGRAMS = sysdata$(EXEEXT) benchmark$(EXEEXT) \
+ Test_threads_a$(EXEEXT) Test_threads_b$(EXEEXT)
+TESTS = Test_threads_a$(EXEEXT) Test_threads_b$(EXEEXT) \
+ find-zero-length.test \
+ 1a-create_bmp_for_symmetrical_stripline.bmp.test \
+ 1b-create_bmp_for_symmetrical_stripline.txt.test \
+ 1c-create_bmp_for_symmetrical_stripline.E.bmp.test \
+ 1d-create_bmp_for_symmetrical_stripline.Er.bmp.test \
+ 1e-create_bmp_for_symmetrical_stripline.Ey.bmp.test \
+ 1f-create_bmp_for_symmetrical_stripline.Ex.bmp.test \
+ 1g-create_bmp_for_symmetrical_stripline.U.bmp.test \
+ 1h-create_bmp_for_symmetrical_stripline.V.bmp.test \
+ 1i-create_bmp_for_symmetrical_stripline.E.bin.test \
+ 1j-create_bmp_for_symmetrical_stripline.Er.bin.test \
+ 1k-create_bmp_for_symmetrical_stripline.Ey.bin.test \
+ 1l-create_bmp_for_symmetrical_stripline.Ex.bin.test \
+ 1m-create_bmp_for_symmetrical_stripline.U.bin.test \
+ 1n-create_bmp_for_symmetrical_stripline.V.bin.test \
+ 2a-create_bmp_for_rect_in_rect.bmp.test \
+ 3a-create_bmp_for_rect_cen_in_rect.bmp.test \
+ 3b-create_bmp_for_rect_cen_in_rect.txt.test \
+ 4a-create_bmp_for_microstrip_coupler.test \
+ 5a-check-s_and_-S_options_of_atlc-2conductor.test \
+ 5b-check-s_and_-S_options_of_atlc-3conductor.test \
+ 5c-check_numeric_data_from_atlc-2conductor.test \
+ 6a-create_and_check_25ohm_201Pixel_high_symmetrical_stripline.test \
+ 6b-create_25ohm_401Pixel_high_symmetrical_stripline.test \
+ 6c-create_25ohm_801Pixel_high_symmetrical_stripline.test \
+ 6d-create_and_check_50ohm_201Pixel_high_symmetrical_stripline.test \
+ 6e-create_50ohm_401Pixel_high_symmetrical_stripline.test \
+ 6f-create_50ohm_801Pixel_high_symmetrical_stripline.test \
+ 6g-create_100ohm_201Pixel_high_symmetrical_stripline.test \
+ 6h-create_100ohm_401Pixel_high_symmetrical_stripline.test \
+ 6i-create_100ohm_801Pixel_high_symmetrical_stripline.test \
+ 6j-create_200ohm_201Pixel_high_symmetrical_stripline.test \
+ 6k-create_200ohm_401Pixel_high_symmetrical_stripline.test \
+ 6l-create_200ohm_801Pixel_high_symmetrical_stripline.test \
+ 7a-create_bmp_for_stripline_coupler.bmp.test \
+ 7b-create_bmp_for_stripline_coupler.txt.test \
+ 7c-create_bmp_for_stripline_coupler.Ex.odd.bmp.test \
+ 7d-create_bmp_for_stripline_coupler.Ey.odd.bmp.test \
+ 7e-create_bmp_for_stripline_coupler.E.odd.bmp.test \
+ 7f-create_bmp_for_stripline_coupler.V.odd.bmp.test \
+ 7g-create_bmp_for_stripline_coupler.U.odd.bmp.test \
+ 7h-create_bmp_for_stripline_coupler.Er.bmp.test \
+ 7i-create_bmp_for_stripline_coupler.U.even.bmp.test \
+ 7j-create_bmp_for_stripline_coupler.Ex.even.bmp.test \
+ 7k-create_bmp_for_stripline_coupler.Ey.even.bmp.test \
+ 7l-create_bmp_for_stripline_coupler.E.even.bmp.test \
+ 7m-create_bmp_for_stripline_coupler.V.even.bmp.test \
+ 7n-create_bmp_for_stripline_coupler.bmp.pre-atlc.txt.test \
+ 8a-design_coupler.bmp.test 9a-create-25-Ohm-201b.bmp.test \
+ 9b-create-25-Ohm-401b.bmp.test 9c-create-50-Ohm-201b.bmp.test \
+ 9d-create-50-Ohm-401b.bmp.test 9e-create-100-Ohm-201b.bmp.test \
+ 9f-create-100-Ohm-401b.bmp.test \
+ 9g-create-200-Ohm-201b.bmp.test \
+ 9h-create-200-Ohm-401b.bmp.test \
+ 9i-create-200-Ohm-801b.bmp.test \
+ 10a-create-lots-of-examples-check-last-one.test \
+ 10b-create-lots-of-examples-check-last-one.test \
+ 11a-verify-checksum-of-supplied-test-coupler1.bmp.test \
+ 11b-verify-checksum-of-created-test-coupler1.Ex.odd.bmp.test \
+ 11c-verify-checksum-of-created-test-coupler1.Ey.odd.bmp.test \
+ 11d-verify-checksum-of-created-test-coupler1.E.odd.bmp.test \
+ 11e-verify-checksum-of-created-test-coupler1.V.odd.bmp.test \
+ 11f-verify-checksum-of-created-test-coupler1.U.odd.bmp.test \
+ 11g-verify-checksum-of-created-test-coupler1.Er.bmp.test \
+ 11h-verify-checksum-of-created-test-coupler1.Ex.even.bmp.test \
+ 11i-verify-checksum-of-created-test-coupler1.Ey.even.bmp.test \
+ 11j-verify-checksum-of-created-test-coupler1.E.even.bmp.test \
+ 11k-verify-checksum-of-created-test-coupler1.U.even.bmp.test \
+ 11l-verify-checksum-of-created-test-coupler1.V.even.bmp.test \
+ 13a-check_rect_cen_in_rect.test \
+ 13b-check_rect_cen_in_rect.test \
+ 13c-check_rect_cen_in_rect.test \
+ 13d-check_rect_cen_in_rect.test 14a-check-circ-in-rect.test \
+ 14b-check-circ-in-rect.test 14c-check-circ-in-rect.test \
+ 14d-check-circ-in-rect.test \
+ WARNING-The-next-test-is-a-benchmark-and-takes-a-long-while.test \
+ benchmark.test
+subdir = tests
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am_Test_threads_a_OBJECTS = Test_threads_a-Test_threads_a.$(OBJEXT)
+Test_threads_a_OBJECTS = $(am_Test_threads_a_OBJECTS)
+Test_threads_a_DEPENDENCIES =
+am_Test_threads_b_OBJECTS = Test_threads_b-Test_threads_b.$(OBJEXT)
+Test_threads_b_OBJECTS = $(am_Test_threads_b_OBJECTS)
+Test_threads_b_DEPENDENCIES =
+am_benchmark_OBJECTS = benchmark.$(OBJEXT) try_aix.$(OBJEXT) \
+ try_bsd.$(OBJEXT) try_hpux.$(OBJEXT) try_irix.$(OBJEXT) \
+ try_linux.$(OBJEXT) try_portable.$(OBJEXT) \
+ try_solaris.$(OBJEXT) try_tru64.$(OBJEXT) try_unicos.$(OBJEXT)
+benchmark_OBJECTS = $(am_benchmark_OBJECTS)
+benchmark_LDADD = $(LDADD)
+am_sysdata_OBJECTS = sysdata.$(OBJEXT) try_aix.$(OBJEXT) \
+ try_bsd.$(OBJEXT) try_hpux.$(OBJEXT) try_irix.$(OBJEXT) \
+ try_linux.$(OBJEXT) try_portable.$(OBJEXT) \
+ try_solaris.$(OBJEXT) try_tru64.$(OBJEXT) try_unicos.$(OBJEXT)
+sysdata_OBJECTS = $(am_sysdata_OBJECTS)
+sysdata_LDADD = $(LDADD)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(Test_threads_a_SOURCES) $(Test_threads_b_SOURCES) \
+ $(benchmark_SOURCES) $(sysdata_SOURCES)
+DIST_SOURCES = $(Test_threads_a_SOURCES) $(Test_threads_b_SOURCES) \
+ $(benchmark_SOURCES) $(sysdata_SOURCES)
+ETAGS = etags
+CTAGS = ctags
+am__tty_colors = \
+red=; grn=; lgn=; blu=; std=
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
# This is tests/Makefile.am.
# MPI_16a_PI computes the value of PI and uses distributed processing
# to do it. This test it is not always executed.
AUTOMAKE_OPTIONS = gnits
-
-# check_PROGRAMS = MPI_16a_PI
-check_PROGRAMS = \
-sysdata \
-benchmark \
-Test_threads_a \
-Test_threads_b
-
-
-
#MPI_16a_PI_SOURCES = MPI_16a_PI.c
#MPI_16a_PI_LDADD = @MPILIBS@ @LIBS@
benchmark_SOURCES = \
try_unicos.c \
defs.h
-
sysdata_SOURCES = \
sysdata.c \
try_aix.c \
try_unicos.c \
defs.h
-
Test_threads_a_SOURCES = Test_threads_a.c
Test_threads_a_CPPFLAGS = @PTHREAD_CFLAGS@
#Test_threads_a_LDADD = @PTHREAD_LIBS@ @LIBS@ @GSL_LIBS@ @MPILIBS@
#Test_threads_a_LDADD = @PTHREAD_LIBS@ @LIBS@ @GSL_LIBS@
Test_threads_a_LDADD = @PTHREAD_LIBS@ @LIBS@
-
Test_threads_b_SOURCES = Test_threads_b.c
Test_threads_b_CPPFLAGS = @PTHREAD_CFLAGS@
#Test_threads_b_LDADD = @PTHREAD_LIBS@ @LIBS@ @GSL_LIBS@ @MPILIBS@
#Test_threads_b_LDADD = @PTHREAD_LIBS@ @LIBS@ @GSL_LIBS@
Test_threads_b_LDADD = @PTHREAD_LIBS@ @LIBS@
-
TESTS_ENVIRONMENT = \
top_builddir=$(top_builddir) \
top_srcdir=$(top_srcdir) \
no_gsl=$(no_gsl)
-TESTS = \
-Test_threads_a \
-Test_threads_b \
-find-zero-length.test \
-1a-create_bmp_for_symmetrical_stripline.bmp.test \
-1b-create_bmp_for_symmetrical_stripline.txt.test \
-1c-create_bmp_for_symmetrical_stripline.E.bmp.test \
-1d-create_bmp_for_symmetrical_stripline.Er.bmp.test \
-1e-create_bmp_for_symmetrical_stripline.Ey.bmp.test \
-1f-create_bmp_for_symmetrical_stripline.Ex.bmp.test \
-1g-create_bmp_for_symmetrical_stripline.U.bmp.test \
-1h-create_bmp_for_symmetrical_stripline.V.bmp.test \
-1i-create_bmp_for_symmetrical_stripline.E.bin.test \
-1j-create_bmp_for_symmetrical_stripline.Er.bin.test \
-1k-create_bmp_for_symmetrical_stripline.Ey.bin.test \
-1l-create_bmp_for_symmetrical_stripline.Ex.bin.test \
-1m-create_bmp_for_symmetrical_stripline.U.bin.test \
-1n-create_bmp_for_symmetrical_stripline.V.bin.test \
-2a-create_bmp_for_rect_in_rect.bmp.test \
-3a-create_bmp_for_rect_cen_in_rect.bmp.test \
-3b-create_bmp_for_rect_cen_in_rect.txt.test \
-4a-create_bmp_for_microstrip_coupler.test \
-5a-check-s_and_-S_options_of_atlc-2conductor.test \
-5b-check-s_and_-S_options_of_atlc-3conductor.test \
-5c-check_numeric_data_from_atlc-2conductor.test \
-6a-create_and_check_25ohm_201Pixel_high_symmetrical_stripline.test \
-6b-create_25ohm_401Pixel_high_symmetrical_stripline.test \
-6c-create_25ohm_801Pixel_high_symmetrical_stripline.test \
-6d-create_and_check_50ohm_201Pixel_high_symmetrical_stripline.test \
-6e-create_50ohm_401Pixel_high_symmetrical_stripline.test \
-6f-create_50ohm_801Pixel_high_symmetrical_stripline.test \
-6g-create_100ohm_201Pixel_high_symmetrical_stripline.test \
-6h-create_100ohm_401Pixel_high_symmetrical_stripline.test \
-6i-create_100ohm_801Pixel_high_symmetrical_stripline.test \
-6j-create_200ohm_201Pixel_high_symmetrical_stripline.test \
-6k-create_200ohm_401Pixel_high_symmetrical_stripline.test \
-6l-create_200ohm_801Pixel_high_symmetrical_stripline.test \
-7a-create_bmp_for_stripline_coupler.bmp.test \
-7b-create_bmp_for_stripline_coupler.txt.test \
-7c-create_bmp_for_stripline_coupler.Ex.odd.bmp.test \
-7d-create_bmp_for_stripline_coupler.Ey.odd.bmp.test \
-7e-create_bmp_for_stripline_coupler.E.odd.bmp.test \
-7f-create_bmp_for_stripline_coupler.V.odd.bmp.test \
-7g-create_bmp_for_stripline_coupler.U.odd.bmp.test \
-7h-create_bmp_for_stripline_coupler.Er.bmp.test \
-7i-create_bmp_for_stripline_coupler.U.even.bmp.test \
-7j-create_bmp_for_stripline_coupler.Ex.even.bmp.test \
-7k-create_bmp_for_stripline_coupler.Ey.even.bmp.test \
-7l-create_bmp_for_stripline_coupler.E.even.bmp.test \
-7m-create_bmp_for_stripline_coupler.V.even.bmp.test \
-7n-create_bmp_for_stripline_coupler.bmp.pre-atlc.txt.test \
-8a-design_coupler.bmp.test \
-9a-create-25-Ohm-201b.bmp.test \
-9b-create-25-Ohm-401b.bmp.test \
-9c-create-50-Ohm-201b.bmp.test \
-9d-create-50-Ohm-401b.bmp.test \
-9e-create-100-Ohm-201b.bmp.test \
-9f-create-100-Ohm-401b.bmp.test \
-9g-create-200-Ohm-201b.bmp.test \
-9h-create-200-Ohm-401b.bmp.test \
-9i-create-200-Ohm-801b.bmp.test \
-10a-create-lots-of-examples-check-last-one.test \
-10b-create-lots-of-examples-check-last-one.test \
-11a-verify-checksum-of-supplied-test-coupler1.bmp.test \
-11b-verify-checksum-of-created-test-coupler1.Ex.odd.bmp.test \
-11c-verify-checksum-of-created-test-coupler1.Ey.odd.bmp.test \
-11d-verify-checksum-of-created-test-coupler1.E.odd.bmp.test \
-11e-verify-checksum-of-created-test-coupler1.V.odd.bmp.test \
-11f-verify-checksum-of-created-test-coupler1.U.odd.bmp.test \
-11g-verify-checksum-of-created-test-coupler1.Er.bmp.test \
-11h-verify-checksum-of-created-test-coupler1.Ex.even.bmp.test \
-11i-verify-checksum-of-created-test-coupler1.Ey.even.bmp.test \
-11j-verify-checksum-of-created-test-coupler1.E.even.bmp.test \
-11k-verify-checksum-of-created-test-coupler1.U.even.bmp.test \
-11l-verify-checksum-of-created-test-coupler1.V.even.bmp.test \
-13a-check_rect_cen_in_rect.test \
-13b-check_rect_cen_in_rect.test \
-13c-check_rect_cen_in_rect.test \
-13d-check_rect_cen_in_rect.test \
-14a-check-circ-in-rect.test \
-14b-check-circ-in-rect.test \
-14c-check-circ-in-rect.test \
-14d-check-circ-in-rect.test \
-benchmark.test
-
-
-
#MPI_16a_PI
EXTRA_DIST = \
benchmark.test \
14b-check-circ-in-rect.test \
14c-check-circ-in-rect.test \
14d-check-circ-in-rect.test \
-WARNING--The-next-test+benchmark-takes-a-long-while.test \
+WARNING-The-next-test-is-a-benchmark-and-takes-a-long-while.test \
1a-create_bmp_for_symmetrical_stripline.bmp.test \
1b-create_bmp_for_symmetrical_stripline.txt.test \
1c-create_bmp_for_symmetrical_stripline.E.bmp.test \
9h-create-200-Ohm-401b.bmp.test \
9i-create-200-Ohm-801b.bmp.test
-
CLEANFILES = \
test.E.bin \
test.E.bmp \
microstrip_coupler.bmp \
undefined_permittivities.bmp
-
DISTCLEANFILES = tests.log test.txt benchmark.foo.html tests.html benchmark.foo.dat
-subdir = tests
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-check_PROGRAMS = sysdata$(EXEEXT) benchmark$(EXEEXT) \
- Test_threads_a$(EXEEXT) Test_threads_b$(EXEEXT)
-am_Test_threads_a_OBJECTS = Test_threads_a-Test_threads_a.$(OBJEXT)
-Test_threads_a_OBJECTS = $(am_Test_threads_a_OBJECTS)
-Test_threads_a_DEPENDENCIES =
-Test_threads_a_LDFLAGS =
-am_Test_threads_b_OBJECTS = Test_threads_b-Test_threads_b.$(OBJEXT)
-Test_threads_b_OBJECTS = $(am_Test_threads_b_OBJECTS)
-Test_threads_b_DEPENDENCIES =
-Test_threads_b_LDFLAGS =
-am_benchmark_OBJECTS = benchmark.$(OBJEXT) try_aix.$(OBJEXT) \
- try_bsd.$(OBJEXT) try_hpux.$(OBJEXT) try_irix.$(OBJEXT) \
- try_linux.$(OBJEXT) try_portable.$(OBJEXT) \
- try_solaris.$(OBJEXT) try_tru64.$(OBJEXT) try_unicos.$(OBJEXT)
-benchmark_OBJECTS = $(am_benchmark_OBJECTS)
-benchmark_LDADD = $(LDADD)
-benchmark_DEPENDENCIES =
-benchmark_LDFLAGS =
-am_sysdata_OBJECTS = sysdata.$(OBJEXT) try_aix.$(OBJEXT) \
- try_bsd.$(OBJEXT) try_hpux.$(OBJEXT) try_irix.$(OBJEXT) \
- try_linux.$(OBJEXT) try_portable.$(OBJEXT) \
- try_solaris.$(OBJEXT) try_tru64.$(OBJEXT) try_unicos.$(OBJEXT)
-sysdata_OBJECTS = $(am_sysdata_OBJECTS)
-sysdata_LDADD = $(LDADD)
-sysdata_DEPENDENCIES =
-sysdata_LDFLAGS =
-
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/Test_threads_a-Test_threads_a.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/Test_threads_b-Test_threads_b.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/benchmark.Po ./$(DEPDIR)/sysdata.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/try_aix.Po ./$(DEPDIR)/try_bsd.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/try_hpux.Po ./$(DEPDIR)/try_irix.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/try_linux.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/try_portable.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/try_solaris.Po ./$(DEPDIR)/try_tru64.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/try_unicos.Po
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-DIST_SOURCES = $(Test_threads_a_SOURCES) $(Test_threads_b_SOURCES) \
- $(benchmark_SOURCES) $(sysdata_SOURCES)
-DIST_COMMON = README Makefile.am Makefile.in
-SOURCES = $(Test_threads_a_SOURCES) $(Test_threads_b_SOURCES) $(benchmark_SOURCES) $(sysdata_SOURCES)
-
all: all-am
.SUFFIXES:
.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnits tests/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnits tests/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
+$(am__aclocal_m4_deps):
clean-checkPROGRAMS:
-test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
-Test_threads_a-Test_threads_a.$(OBJEXT): Test_threads_a.c
Test_threads_a$(EXEEXT): $(Test_threads_a_OBJECTS) $(Test_threads_a_DEPENDENCIES)
@rm -f Test_threads_a$(EXEEXT)
- $(LINK) $(Test_threads_a_LDFLAGS) $(Test_threads_a_OBJECTS) $(Test_threads_a_LDADD) $(LIBS)
-Test_threads_b-Test_threads_b.$(OBJEXT): Test_threads_b.c
+ $(LINK) $(Test_threads_a_OBJECTS) $(Test_threads_a_LDADD) $(LIBS)
Test_threads_b$(EXEEXT): $(Test_threads_b_OBJECTS) $(Test_threads_b_DEPENDENCIES)
@rm -f Test_threads_b$(EXEEXT)
- $(LINK) $(Test_threads_b_LDFLAGS) $(Test_threads_b_OBJECTS) $(Test_threads_b_LDADD) $(LIBS)
+ $(LINK) $(Test_threads_b_OBJECTS) $(Test_threads_b_LDADD) $(LIBS)
benchmark$(EXEEXT): $(benchmark_OBJECTS) $(benchmark_DEPENDENCIES)
@rm -f benchmark$(EXEEXT)
- $(LINK) $(benchmark_LDFLAGS) $(benchmark_OBJECTS) $(benchmark_LDADD) $(LIBS)
+ $(LINK) $(benchmark_OBJECTS) $(benchmark_LDADD) $(LIBS)
sysdata$(EXEEXT): $(sysdata_OBJECTS) $(sysdata_DEPENDENCIES)
@rm -f sysdata$(EXEEXT)
- $(LINK) $(sysdata_LDFLAGS) $(sysdata_OBJECTS) $(sysdata_LDADD) $(LIBS)
+ $(LINK) $(sysdata_OBJECTS) $(sysdata_LDADD) $(LIBS)
mostlyclean-compile:
- -rm -f *.$(OBJEXT) core *.core
+ -rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/try_tru64.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/try_unicos.Po@am__quote@
-distclean-depend:
- -rm -rf ./$(DEPDIR)
-
.c.o:
-@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
-@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
Test_threads_a-Test_threads_a.o: Test_threads_a.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_a-Test_threads_a.o -MD -MP -MF "$(DEPDIR)/Test_threads_a-Test_threads_a.Tpo" \
-@am__fastdepCC_TRUE@ -c -o Test_threads_a-Test_threads_a.o `test -f 'Test_threads_a.c' || echo '$(srcdir)/'`Test_threads_a.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/Test_threads_a-Test_threads_a.Tpo" "$(DEPDIR)/Test_threads_a-Test_threads_a.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/Test_threads_a-Test_threads_a.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_a-Test_threads_a.o -MD -MP -MF $(DEPDIR)/Test_threads_a-Test_threads_a.Tpo -c -o Test_threads_a-Test_threads_a.o `test -f 'Test_threads_a.c' || echo '$(srcdir)/'`Test_threads_a.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/Test_threads_a-Test_threads_a.Tpo $(DEPDIR)/Test_threads_a-Test_threads_a.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='Test_threads_a.c' object='Test_threads_a-Test_threads_a.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/Test_threads_a-Test_threads_a.Po' tmpdepfile='$(DEPDIR)/Test_threads_a-Test_threads_a.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o Test_threads_a-Test_threads_a.o `test -f 'Test_threads_a.c' || echo '$(srcdir)/'`Test_threads_a.c
Test_threads_a-Test_threads_a.obj: Test_threads_a.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_a-Test_threads_a.obj -MD -MP -MF "$(DEPDIR)/Test_threads_a-Test_threads_a.Tpo" \
-@am__fastdepCC_TRUE@ -c -o Test_threads_a-Test_threads_a.obj `if test -f 'Test_threads_a.c'; then $(CYGPATH_W) 'Test_threads_a.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_a.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/Test_threads_a-Test_threads_a.Tpo" "$(DEPDIR)/Test_threads_a-Test_threads_a.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/Test_threads_a-Test_threads_a.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_a-Test_threads_a.obj -MD -MP -MF $(DEPDIR)/Test_threads_a-Test_threads_a.Tpo -c -o Test_threads_a-Test_threads_a.obj `if test -f 'Test_threads_a.c'; then $(CYGPATH_W) 'Test_threads_a.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_a.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/Test_threads_a-Test_threads_a.Tpo $(DEPDIR)/Test_threads_a-Test_threads_a.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='Test_threads_a.c' object='Test_threads_a-Test_threads_a.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/Test_threads_a-Test_threads_a.Po' tmpdepfile='$(DEPDIR)/Test_threads_a-Test_threads_a.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o Test_threads_a-Test_threads_a.obj `if test -f 'Test_threads_a.c'; then $(CYGPATH_W) 'Test_threads_a.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_a.c'`
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_a_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o Test_threads_a-Test_threads_a.obj `if test -f 'Test_threads_a.c'; then $(CYGPATH_W) 'Test_threads_a.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_a.c'; fi`
Test_threads_b-Test_threads_b.o: Test_threads_b.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_b-Test_threads_b.o -MD -MP -MF "$(DEPDIR)/Test_threads_b-Test_threads_b.Tpo" \
-@am__fastdepCC_TRUE@ -c -o Test_threads_b-Test_threads_b.o `test -f 'Test_threads_b.c' || echo '$(srcdir)/'`Test_threads_b.c; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/Test_threads_b-Test_threads_b.Tpo" "$(DEPDIR)/Test_threads_b-Test_threads_b.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/Test_threads_b-Test_threads_b.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_b-Test_threads_b.o -MD -MP -MF $(DEPDIR)/Test_threads_b-Test_threads_b.Tpo -c -o Test_threads_b-Test_threads_b.o `test -f 'Test_threads_b.c' || echo '$(srcdir)/'`Test_threads_b.c
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/Test_threads_b-Test_threads_b.Tpo $(DEPDIR)/Test_threads_b-Test_threads_b.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='Test_threads_b.c' object='Test_threads_b-Test_threads_b.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/Test_threads_b-Test_threads_b.Po' tmpdepfile='$(DEPDIR)/Test_threads_b-Test_threads_b.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o Test_threads_b-Test_threads_b.o `test -f 'Test_threads_b.c' || echo '$(srcdir)/'`Test_threads_b.c
Test_threads_b-Test_threads_b.obj: Test_threads_b.c
-@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_b-Test_threads_b.obj -MD -MP -MF "$(DEPDIR)/Test_threads_b-Test_threads_b.Tpo" \
-@am__fastdepCC_TRUE@ -c -o Test_threads_b-Test_threads_b.obj `if test -f 'Test_threads_b.c'; then $(CYGPATH_W) 'Test_threads_b.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_b.c'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/Test_threads_b-Test_threads_b.Tpo" "$(DEPDIR)/Test_threads_b-Test_threads_b.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/Test_threads_b-Test_threads_b.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT Test_threads_b-Test_threads_b.obj -MD -MP -MF $(DEPDIR)/Test_threads_b-Test_threads_b.Tpo -c -o Test_threads_b-Test_threads_b.obj `if test -f 'Test_threads_b.c'; then $(CYGPATH_W) 'Test_threads_b.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_b.c'; fi`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/Test_threads_b-Test_threads_b.Tpo $(DEPDIR)/Test_threads_b-Test_threads_b.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='Test_threads_b.c' object='Test_threads_b-Test_threads_b.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/Test_threads_b-Test_threads_b.Po' tmpdepfile='$(DEPDIR)/Test_threads_b-Test_threads_b.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o Test_threads_b-Test_threads_b.obj `if test -f 'Test_threads_b.c'; then $(CYGPATH_W) 'Test_threads_b.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_b.c'`
-uninstall-info-am:
-
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(Test_threads_b_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o Test_threads_b-Test_threads_b.obj `if test -f 'Test_threads_b.c'; then $(CYGPATH_W) 'Test_threads_b.c'; else $(CYGPATH_W) '$(srcdir)/Test_threads_b.c'; fi`
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ 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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
check-TESTS: $(TESTS)
@failed=0; all=0; xfail=0; xpass=0; skip=0; \
srcdir=$(srcdir); export srcdir; \
- list='$(TESTS)'; \
+ list=' $(TESTS) '; \
+ $(am__tty_colors); \
if test -n "$$list"; then \
for tst in $$list; do \
if test -f ./$$tst; then dir=./; \
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
all=`expr $$all + 1`; \
case " $(XFAIL_TESTS) " in \
- *" $$tst "*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
+ *[\ \ ]$$tst[\ \ ]*) \
+ xpass=`expr $$xpass + 1`; \
+ failed=`expr $$failed + 1`; \
+ col=$$red; res=XPASS; \
;; \
*) \
- echo "PASS: $$tst"; \
+ col=$$grn; res=PASS; \
;; \
esac; \
elif test $$? -ne 77; then \
all=`expr $$all + 1`; \
case " $(XFAIL_TESTS) " in \
- *" $$tst "*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
+ *[\ \ ]$$tst[\ \ ]*) \
+ xfail=`expr $$xfail + 1`; \
+ col=$$lgn; res=XFAIL; \
;; \
*) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
+ failed=`expr $$failed + 1`; \
+ col=$$red; res=FAIL; \
;; \
esac; \
else \
skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
+ col=$$blu; res=SKIP; \
fi; \
+ echo "$${col}$$res$${std}: $$tst"; \
done; \
+ if test "$$all" -eq 1; then \
+ tests="test"; \
+ All=""; \
+ else \
+ tests="tests"; \
+ All="All "; \
+ fi; \
if test "$$failed" -eq 0; then \
if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
+ banner="$$All$$all $$tests passed"; \
else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
+ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \
+ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \
fi; \
else \
if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
+ banner="$$failed of $$all $$tests failed"; \
else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
+ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \
+ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \
fi; \
fi; \
dashes="$$banner"; \
skipped=""; \
if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -gt `echo "$$banner" | wc -c` && \
+ if test "$$skip" -eq 1; then \
+ skipped="($$skip test was not run)"; \
+ else \
+ skipped="($$skip tests were not run)"; \
+ fi; \
+ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
dashes="$$skipped"; \
fi; \
report=""; \
if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -gt `echo "$$banner" | wc -c` && \
+ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
dashes="$$report"; \
fi; \
dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
+ if test "$$failed" -eq 0; then \
+ echo "$$grn$$dashes"; \
+ else \
+ echo "$$red$$dashes"; \
+ fi; \
echo "$$banner"; \
- test -n "$$skipped" && echo "$$skipped"; \
- test -n "$$report" && echo "$$report"; \
- echo "$$dashes"; \
+ test -z "$$skipped" || echo "$$skipped"; \
+ test -z "$$report" || echo "$$report"; \
+ echo "$$dashes$$std"; \
test "$$failed" -eq 0; \
else :; fi
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
check: check-am
all-am: Makefile
-
installdirs:
-
install: install-am
install-exec: install-exec-am
install-data: install-data-am
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
mostlyclean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
maintainer-clean-generic:
clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am
distclean: distclean-am
-
-distclean-am: clean-am distclean-compile distclean-depend \
- distclean-generic distclean-tags
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am:
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-info-am
+uninstall-am:
+
+.MAKE: check-am install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
clean-checkPROGRAMS clean-generic ctags distclean \
- distclean-compile distclean-depend distclean-generic \
- distclean-tags distdir dvi dvi-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 \
- maintainer-clean maintainer-clean-generic mostlyclean \
- mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
- tags uninstall uninstall-am uninstall-info-am
+ distclean-compile distclean-generic distclean-tags distdir dvi \
+ dvi-am html html-am info info-am install install-am \
+ install-data install-data-am install-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
+ install-info install-info-am install-man install-pdf \
+ install-pdf-am install-ps install-ps-am 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
+
# 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.
+++ /dev/null
-#! /bin/sh
-
-exit 0
--- /dev/null
+#! /bin/sh
+
+exit 0
strcpy((char *) data.fpu_type,"unknown");
strcpy((char *) data.max_cpus,"unknown");
strcpy((char *) data.cpus,"unknown");
- strcpy((char *) data.memory,"unknown");
strcpy((char *) data.sysname,"unknown");
strcpy((char *) data.nodename,"unknown");
strcpy((char *) data.release,"unknown");
if(atoi(data.cpus) != 0)
sprintf(data.eff,"%.3f",atof(data.speedup)/atoi(data.cpus)); /* otherwise unknown */
#endif
- printf("0 %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s\n",data.t1, data.t2, data.speedup, data.cpus, data.mhz, data.eff, data.cpu_type,data.fpu_type,data.max_cpus,data.memory,data.sysname,data.nodename,data.release,data.version,data.machine,data.hw_provider, data.hw_platform, data.L1data, data.L1instruction, data.L2);
+ printf("0 %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s %s\n",data.t1, data.t2, data.speedup, data.cpus, data.mhz, data.eff, data.cpu_type,data.fpu_type,data.max_cpus,data.sysname,data.nodename,data.release,data.version,data.machine,data.hw_provider, data.hw_platform, data.L1data, data.L1instruction, data.L2);
return(0);
}
return 77
else
cp $top_srcdir/examples/25ohm-401h.bmp $top_builddir/tmp
- ret=`$top_builddir/tests/benchmark $top_builddir/src/non_gui/atlc $top_builddir/tmp/25ohm-401h.bmp `
+ ret=`$top_builddir/tests/benchmark $top_builddir/src/atlc $top_builddir/tmp/25ohm-401h.bmp `
rm -f $top_builddir/tmp/25ohm-401h.bmp
# cp $top_srcdir/examples/twin-wire3.bmp $top_builddir/tmp
-# ret=`$top_builddir/tests/benchmark $top_builddir/src/non_gui/atlc $top_builddir/tmp/twin-wire3.bmp `
+# ret=`$top_builddir/tests/benchmark $top_builddir/src/atlc $top_builddir/tmp/twin-wire3.bmp `
# rm -f $top_builddir/tmp/twin-wire3.bmp
exitcode=`echo $ret | awk '{print $1}'`
echo "CPU_type is $cpu_type. FPU_type is $fpu_type. Speed of CPU(s) is $mhz MHz." >> tests.log
echo "CPU_type is $cpu_type. FPU_type is $fpu_type. Speed of CPU(s) is $mhz MHz.<BR>" >> tests.html
- echo "RAM is $ram MB (On Linux+BSD systems, the memory is a little larger than this.)"
- echo "RAM is $ram MB. (On Linux+BSD systems, the memory is a little larger than this)" >> tests.log
- echo "RAM is $ram MB. (On Linux+BSD systems, the memory is a little larger than this)<BR>" >> tests.html
-
echo "L1 data cache is $L1data kB; L1 instruction cache is $L1instruction kB; L2 cache is $L2 kB"
echo "L1 data cache is $L1data kB; L1 instruction cache is $L1instruction kB; L2 cache is $L2 kB" >> tests.log
echo "L1 data cache is $L1data kB; L1 instruction cache is $L1instruction kB; L2 cache is $L2 kB<BR>" >> tests.html
rm -f $top_builddir/tmp/atlc-zero-bytes
# since tmp/atlc-zero-bytes will be found, that must be ignored.
-find $top_srcdir -size 0c | grep -v tmp/atlc-zero-bytes > $top_builddir/tmp/atlc-zero-bytes
+find $top_srcdir -type f -size 0c -print | grep -v tmp/atlc-zero-bytes > $top_builddir/tmp/atlc-zero-bytes
# The file $top_builddir/tmp/atlc-zero-bytes contains a list of all the
# files which are zero bytes. Hopefully there are none, in
printf("CPU type: %s\n",data.cpu_type);
printf("FPU type: %s\n",data.fpu_type);
printf("Speed: %s MHz\n",data.mhz);
- printf("RAM: %s Mb\n",data.memory);
printf("L1 data cache %s kb\n",data.L1data);
printf("L1 instruction cache: %s kb\n",data.L1instruction);
printf("L2 cache: %s kb\n",data.L2);
sprintf(data->cpus,"%ld",sysconf(_SC_NPROCESSORS_ONLN));
#endif
- /* Obtain the RAM. This is a bit of a hack using doubles for
- this, but longs overflow and long long is not strictly
- in the ANSI standard. */
-
-#ifdef _SC_PHYS_PAGES
-#ifdef _SC_PAGESIZE
-
-/* This might look a bit of a hack to use a double to compute
-memory size in Mb, when any machine now will have an
-integer multiple of Mb. However, the problem is that the
-way to do this (multiplying the size of a memory page in
-bytes by the number of memory pages), produce the ram in bytes.
-That will likely overflow a long on a 32-bit machine. So a
-double is used, divided by the number of bytes per Mb, then
-printed as a long.
-
-I hope that makes some sense */
-
- if ((long) sysconf(_SC_PHYS_PAGES) > 0L)
- {
- if ((long) sysconf(_SC_PAGESIZE) > 0L)
- {
- ram=(double) sysconf(_SC_PAGESIZE);
- ram*= (double) sysconf(_SC_PHYS_PAGES);
- {
- ram=ram/BYTES_PER_MB;
- sprintf(data->memory,"%ld",(long) (ram+0.05));
- }
- }
- }
-#endif /* End of HAVE__SC_PHYS_PAGES */
-#endif /* End of HAVE__SC_PHYS_PAGES */
#endif /* End of #ifdef HAVE_SYSCONF */
return(0);
}
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
# PARTICULAR PURPOSE.
@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+subdir = tools
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+SOURCES =
+DIST_SOURCES =
+RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
+ html-recursive info-recursive install-data-recursive \
+ install-dvi-recursive install-exec-recursive \
+ install-html-recursive install-info-recursive \
+ install-pdf-recursive install-ps-recursive install-recursive \
+ installcheck-recursive installdirs-recursive pdf-recursive \
+ ps-recursive uninstall-recursive
+RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
+ distclean-recursive maintainer-clean-recursive
+AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
+ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
+ distdir
+ETAGS = etags
+CTAGS = ctags
+DIST_SUBDIRS = $(SUBDIRS)
+DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
+am__relativize = \
+ dir0=`pwd`; \
+ sed_first='s,^\([^/]*\)/.*$$,\1,'; \
+ sed_rest='s,^[^/]*/*,,'; \
+ sed_last='s,^.*/\([^/]*\)$$,\1,'; \
+ sed_butlast='s,/*[^/]*$$,,'; \
+ while test -n "$$dir1"; do \
+ first=`echo "$$dir1" | sed -e "$$sed_first"`; \
+ if test "$$first" != "."; then \
+ if test "$$first" = ".."; then \
+ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
+ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
+ else \
+ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
+ if test "$$first2" = "$$first"; then \
+ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
+ else \
+ dir2="../$$dir2"; \
+ fi; \
+ dir0="$$dir0"/"$$first"; \
+ fi; \
+ fi; \
+ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
+ done; \
+ reldir="$$dir2"
ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
AMTAR = @AMTAR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
SUBDIRS = src
bin_PROGRAM = stoptests remoterun
EXTRA_DIST = stoptests remoterun
-subdir = tools
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-DIST_SOURCES =
-
-RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
- ps-recursive install-info-recursive uninstall-info-recursive \
- all-recursive install-data-recursive install-exec-recursive \
- installdirs-recursive install-recursive uninstall-recursive \
- check-recursive installcheck-recursive
-DIST_COMMON = README Makefile.am Makefile.in
-DIST_SUBDIRS = $(SUBDIRS)
all: all-recursive
.SUFFIXES:
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tools/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-uninstall-info-am:
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu tools/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
+$(am__aclocal_m4_deps):
# This directory's subdirectories are mostly independent; you can cd
# into them and run `make' without going through this Makefile.
# (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):
- @set fnord $$MAKEFLAGS; amf=$$2; \
+ @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 \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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:
- @set fnord $$MAKEFLAGS; amf=$$2; \
+$(RECURSIVE_CLEAN_TARGETS):
+ @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)' ;; \
else \
local_target="$$target"; \
fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
+ ($(am__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); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
done
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
+ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
done
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
-
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
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 -i $$here/$$subdir/TAGS"; \
+ test ! -f $$subdir/TAGS || \
+ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
fi; \
done; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ fi
ctags: CTAGS
CTAGS: ctags-recursive $(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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ test -f "$(distdir)/$$file" \
+ || cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
- list='$(SUBDIRS)'; for subdir in $$list; do \
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
if test "$$subdir" = .; then :; else \
- test -d $(distdir)/$$subdir \
- || mkdir $(distdir)/$$subdir \
+ test -d "$(distdir)/$$subdir" \
+ || $(MKDIR_P) "$(distdir)/$$subdir" \
|| exit 1; \
- (cd $$subdir && \
+ fi; \
+ done
+ @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
+ if test "$$subdir" = .; then :; else \
+ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
+ $(am__relativize); \
+ new_distdir=$$reldir; \
+ dir1=$$subdir; dir2="$(top_distdir)"; \
+ $(am__relativize); \
+ new_top_distdir=$$reldir; \
+ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
+ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
+ ($(am__cd) $$subdir && \
$(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$(top_distdir)" \
- distdir=../$(distdir)/$$subdir \
+ top_distdir="$$new_top_distdir" \
+ distdir="$$new_distdir" \
+ am__remove_distdir=: \
+ am__skip_length_check=: \
+ am__skip_mode_fix=: \
distdir) \
|| exit 1; \
fi; \
all-am: Makefile
installdirs: installdirs-recursive
installdirs-am:
-
install: install-recursive
install-exec: install-exec-recursive
install-data: install-data-recursive
installcheck: installcheck-recursive
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-generic mostlyclean-am
distclean: distclean-recursive
-
+ -rm -f Makefile
distclean-am: clean-am distclean-generic distclean-tags
dvi: dvi-recursive
dvi-am:
+html: html-recursive
+
+html-am:
+
info: info-recursive
info-am:
install-data-am:
+install-dvi: install-dvi-recursive
+
+install-dvi-am:
+
install-exec-am:
+install-html: install-html-recursive
+
+install-html-am:
+
install-info: install-info-recursive
+install-info-am:
+
install-man:
+install-pdf: install-pdf-recursive
+
+install-pdf-am:
+
+install-ps: install-ps-recursive
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-recursive
-
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-recursive
ps-am:
-uninstall-am: uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive distclean \
- distclean-generic distclean-recursive distclean-tags distdir \
- dvi dvi-am dvi-recursive info info-am info-recursive install \
- install-am install-data install-data-am install-data-recursive \
- install-exec install-exec-am install-exec-recursive \
- install-info install-info-am install-info-recursive install-man \
- install-recursive install-strip installcheck installcheck-am \
- installdirs installdirs-am installdirs-recursive \
- maintainer-clean maintainer-clean-generic \
- maintainer-clean-recursive mostlyclean mostlyclean-generic \
- mostlyclean-recursive pdf pdf-am pdf-recursive ps ps-am \
- ps-recursive tags tags-recursive uninstall uninstall-am \
- uninstall-info-am uninstall-info-recursive uninstall-recursive
+uninstall-am:
+
+.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
+ install-am install-strip tags-recursive
+
+.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
+ all all-am check check-am clean clean-generic ctags \
+ ctags-recursive distclean distclean-generic distclean-tags \
+ distdir dvi dvi-am html html-am info info-am install \
+ install-am install-data install-data-am install-dvi \
+ install-dvi-am install-exec install-exec-am install-html \
+ install-html-am install-info install-info-am install-man \
+ install-pdf install-pdf-am install-ps install-ps-am \
+ install-strip installcheck installcheck-am installdirs \
+ installdirs-am maintainer-clean maintainer-clean-generic \
+ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
+ tags-recursive uninstall uninstall-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.
-# Makefile.in generated by automake 1.7 from Makefile.am.
+# Makefile.in generated by automake 1.11 from Makefile.am.
# @configure_input@
-# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
-# Free Software Foundation, Inc.
+# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
+# 2003, 2004, 2005, 2006, 2007, 2008, 2009 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.
@SET_MAKE@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
VPATH = @srcdir@
pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
-
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
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
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
+build_triplet = @build@
host_triplet = @host@
+bin_PROGRAMS = mymd5sum$(EXEEXT) myfilelength$(EXEEXT) \
+ locatediff$(EXEEXT) dualcoax$(EXEEXT) coax$(EXEEXT)
+subdir = tools/src
+DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/m4/acx_pthread.m4 \
+ $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+CONFIG_HEADER = $(top_builddir)/config.h
+CONFIG_CLEAN_FILES =
+CONFIG_CLEAN_VPATH_FILES =
+am__installdirs = "$(DESTDIR)$(bindir)"
+PROGRAMS = $(bin_PROGRAMS)
+am_coax_OBJECTS = coax.$(OBJEXT) get_options.$(OBJEXT) \
+ usage_coax.$(OBJEXT)
+coax_OBJECTS = $(am_coax_OBJECTS)
+coax_LDADD = $(LDADD)
+am_dualcoax_OBJECTS = dualcoax.$(OBJEXT)
+dualcoax_OBJECTS = $(am_dualcoax_OBJECTS)
+dualcoax_LDADD = $(LDADD)
+am_locatediff_OBJECTS = locatediff.$(OBJEXT)
+locatediff_OBJECTS = $(am_locatediff_OBJECTS)
+locatediff_LDADD = $(LDADD)
+am_myfilelength_OBJECTS = myfilelength.$(OBJEXT)
+myfilelength_OBJECTS = $(am_myfilelength_OBJECTS)
+myfilelength_LDADD = $(LDADD)
+am_mymd5sum_OBJECTS = mymd5sum.$(OBJEXT)
+mymd5sum_OBJECTS = $(am_mymd5sum_OBJECTS)
+mymd5sum_LDADD = $(LDADD)
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
+depcomp = $(SHELL) $(top_srcdir)/depcomp
+am__depfiles_maybe = depfiles
+am__mv = mv -f
+COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
+ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+CCLD = $(CC)
+LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+SOURCES = $(coax_SOURCES) $(dualcoax_SOURCES) $(locatediff_SOURCES) \
+ $(myfilelength_SOURCES) $(mymd5sum_SOURCES)
+DIST_SOURCES = $(coax_SOURCES) $(dualcoax_SOURCES) \
+ $(locatediff_SOURCES) $(myfilelength_SOURCES) \
+ $(mymd5sum_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@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
+GREP = @GREP@
+INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
LIBS = @LIBS@
LTLIBOBJS = @LTLIBOBJS@
MAKEINFO = @MAKEINFO@
+MKDIR_P = @MKDIR_P@
OBJEXT = @OBJEXT@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
+PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PATH_SEPARATOR = @PATH_SEPARATOR@
POW_LIB = @POW_LIB@
SHELL = @SHELL@
STRIP = @STRIP@
VERSION = @VERSION@
+abs_builddir = @abs_builddir@
+abs_srcdir = @abs_srcdir@
+abs_top_builddir = @abs_top_builddir@
+abs_top_srcdir = @abs_top_srcdir@
ac_ct_CC = @ac_ct_CC@
-ac_ct_STRIP = @ac_ct_STRIP@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_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 = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
+builddir = @builddir@
built_with_posix_threads = @built_with_posix_threads@
compiled_with_cflags = @compiled_with_cflags@
compiled_with_compiler = @compiled_with_compiler@
datadir = @datadir@
+datarootdir = @datarootdir@
+docdir = @docdir@
+dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
+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@
+srcdir = @srcdir@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
-
-bin_PROGRAMS = mymd5sum myfilelength locatediff dualcoax coax
+top_build_prefix = @top_build_prefix@
+top_builddir = @top_builddir@
+top_srcdir = @top_srcdir@
myfilelength_SOURCES = myfilelength.c
locatediff_SOURCES = locatediff.c
mymd5sum_SOURCES = mymd5sum.c md5.h
dualcoax_SOURCES = dualcoax.c
coax_SOURCES = coax.c get_options.c usage_coax.c
EXTRA_DIST = md5.h
-subdir = tools/src
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/config.h
-CONFIG_CLEAN_FILES =
-bin_PROGRAMS = mymd5sum$(EXEEXT) myfilelength$(EXEEXT) \
- locatediff$(EXEEXT) dualcoax$(EXEEXT) coax$(EXEEXT)
-PROGRAMS = $(bin_PROGRAMS)
-
-am_coax_OBJECTS = coax.$(OBJEXT) get_options.$(OBJEXT) \
- usage_coax.$(OBJEXT)
-coax_OBJECTS = $(am_coax_OBJECTS)
-coax_LDADD = $(LDADD)
-coax_DEPENDENCIES =
-coax_LDFLAGS =
-am_dualcoax_OBJECTS = dualcoax.$(OBJEXT)
-dualcoax_OBJECTS = $(am_dualcoax_OBJECTS)
-dualcoax_LDADD = $(LDADD)
-dualcoax_DEPENDENCIES =
-dualcoax_LDFLAGS =
-am_locatediff_OBJECTS = locatediff.$(OBJEXT)
-locatediff_OBJECTS = $(am_locatediff_OBJECTS)
-locatediff_LDADD = $(LDADD)
-locatediff_DEPENDENCIES =
-locatediff_LDFLAGS =
-am_myfilelength_OBJECTS = myfilelength.$(OBJEXT)
-myfilelength_OBJECTS = $(am_myfilelength_OBJECTS)
-myfilelength_LDADD = $(LDADD)
-myfilelength_DEPENDENCIES =
-myfilelength_LDFLAGS =
-am_mymd5sum_OBJECTS = mymd5sum.$(OBJEXT)
-mymd5sum_OBJECTS = $(am_mymd5sum_OBJECTS)
-mymd5sum_LDADD = $(LDADD)
-mymd5sum_DEPENDENCIES =
-mymd5sum_LDFLAGS =
-
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/coax.Po ./$(DEPDIR)/dualcoax.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/get_options.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/locatediff.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/myfilelength.Po ./$(DEPDIR)/mymd5sum.Po \
-@AMDEP_TRUE@ ./$(DEPDIR)/usage_coax.Po
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-DIST_SOURCES = $(coax_SOURCES) $(dualcoax_SOURCES) $(locatediff_SOURCES) \
- $(myfilelength_SOURCES) $(mymd5sum_SOURCES)
-DIST_COMMON = README Makefile.am Makefile.in
-SOURCES = $(coax_SOURCES) $(dualcoax_SOURCES) $(locatediff_SOURCES) $(myfilelength_SOURCES) $(mymd5sum_SOURCES)
-
all: all-am
.SUFFIXES:
.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tools/src/Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
-binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
+$(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 ) \
+ && { if test -f $@; then exit 0; else break; fi; }; \
+ exit 1;; \
+ esac; \
+ done; \
+ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/src/Makefile'; \
+ $(am__cd) $(top_srcdir) && \
+ $(AUTOMAKE) --gnu tools/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
+$(am__aclocal_m4_deps):
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
- $(mkinstalldirs) $(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
+ test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ for p in $$list; do echo "$$p $$p"; done | \
+ sed 's/$(EXEEXT)$$//' | \
+ while read p p1; do if test -f $$p; \
+ then echo "$$p"; echo "$$p"; else :; fi; \
+ done | \
+ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
+ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
+ sed 'N;N;N;s,\n, ,g' | \
+ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
+ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
+ if ($$2 == $$4) files[d] = files[d] " " $$1; \
+ else { print "f", $$3 "/" $$4, $$1; } } \
+ END { for (d in files) print "f", d, files[d] }' | \
+ while read type dir files; do \
+ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
+ test -z "$$files" || { \
+ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
+ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
+ } \
+ ; 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
+ @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
+ files=`for p in $$list; do echo "$$p"; done | \
+ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
+ -e 's/$$/$(EXEEXT)/' `; \
+ test -n "$$list" || exit 0; \
+ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
+ cd "$(DESTDIR)$(bindir)" && rm -f $$files
clean-binPROGRAMS:
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
coax$(EXEEXT): $(coax_OBJECTS) $(coax_DEPENDENCIES)
@rm -f coax$(EXEEXT)
- $(LINK) $(coax_LDFLAGS) $(coax_OBJECTS) $(coax_LDADD) $(LIBS)
+ $(LINK) $(coax_OBJECTS) $(coax_LDADD) $(LIBS)
dualcoax$(EXEEXT): $(dualcoax_OBJECTS) $(dualcoax_DEPENDENCIES)
@rm -f dualcoax$(EXEEXT)
- $(LINK) $(dualcoax_LDFLAGS) $(dualcoax_OBJECTS) $(dualcoax_LDADD) $(LIBS)
+ $(LINK) $(dualcoax_OBJECTS) $(dualcoax_LDADD) $(LIBS)
locatediff$(EXEEXT): $(locatediff_OBJECTS) $(locatediff_DEPENDENCIES)
@rm -f locatediff$(EXEEXT)
- $(LINK) $(locatediff_LDFLAGS) $(locatediff_OBJECTS) $(locatediff_LDADD) $(LIBS)
+ $(LINK) $(locatediff_OBJECTS) $(locatediff_LDADD) $(LIBS)
myfilelength$(EXEEXT): $(myfilelength_OBJECTS) $(myfilelength_DEPENDENCIES)
@rm -f myfilelength$(EXEEXT)
- $(LINK) $(myfilelength_LDFLAGS) $(myfilelength_OBJECTS) $(myfilelength_LDADD) $(LIBS)
+ $(LINK) $(myfilelength_OBJECTS) $(myfilelength_LDADD) $(LIBS)
mymd5sum$(EXEEXT): $(mymd5sum_OBJECTS) $(mymd5sum_DEPENDENCIES)
@rm -f mymd5sum$(EXEEXT)
- $(LINK) $(mymd5sum_LDFLAGS) $(mymd5sum_OBJECTS) $(mymd5sum_LDADD) $(LIBS)
+ $(LINK) $(mymd5sum_OBJECTS) $(mymd5sum_LDADD) $(LIBS)
mostlyclean-compile:
- -rm -f *.$(OBJEXT) core *.core
+ -rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mymd5sum.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/usage_coax.Po@am__quote@
-distclean-depend:
- -rm -rf ./$(DEPDIR)
-
.c.o:
-@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c $<
.c.obj:
-@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
-@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`; \
-@am__fastdepCC_TRUE@ then mv "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
-@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
-@am__fastdepCC_TRUE@ fi
+@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
+@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'`
-uninstall-info-am:
-
-ETAGS = etags
-ETAGSFLAGS =
-
-CTAGS = ctags
-CTAGSFLAGS =
-
-tags: TAGS
+@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
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; }'`; \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
mkid -fID $$unique
+tags: TAGS
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
$(TAGS_FILES) $(LISP)
- tags=; \
+ set x; \
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 "$(ETAGS_ARGS)$$tags$$unique" \
- || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique
-
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ shift; \
+ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
+ test -n "$$unique" || unique=$$empty_fix; \
+ if test $$# -gt 0; then \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ "$$@" $$unique; \
+ else \
+ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
+ $$unique; \
+ fi; \
+ 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" \
+ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
+ END { if (nonempty) { for (i in files) print i; }; }'`; \
+ test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
+ $$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
+ && $(am__cd) $(top_srcdir) \
+ && gtags -i $(GTAGS_ARGS) "$$here"
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-
-top_distdir = ../..
-distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
- list='$(DISTFILES)'; for file in $$list; do \
- case $$file in \
- $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
- esac; \
+ @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
+ list='$(DISTFILES)'; \
+ dist_files=`for file in $$list; do echo $$file; done | \
+ sed -e "s|^$$srcdirstrip/||;t" \
+ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
+ case $$dist_files in \
+ */*) $(MKDIR_P) `echo "$$dist_files" | \
+ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
+ sort -u` ;; \
+ esac; \
+ for file in $$dist_files; do \
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"; \
- $(mkinstalldirs) "$(distdir)$$dir"; \
- else \
- dir=''; \
- fi; \
if test -d $$d/$$file; then \
+ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
+ if test -d "$(distdir)/$$file"; then \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
+ fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
+ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
+ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
+ 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:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
-
+ 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
installcheck: installcheck-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- INSTALL_STRIP_FLAG=-s \
+ 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:
- -rm -f Makefile $(CONFIG_CLEAN_FILES)
+ -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
+ -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
distclean: distclean-am
-
-distclean-am: clean-am distclean-compile distclean-depend \
- distclean-generic distclean-tags
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
+distclean-am: clean-am distclean-compile distclean-generic \
+ distclean-tags
dvi: dvi-am
dvi-am:
+html: html-am
+
+html-am:
+
info: info-am
info-am:
install-data-am:
+install-dvi: install-dvi-am
+
+install-dvi-am:
+
install-exec-am: install-binPROGRAMS
+install-html: install-html-am
+
+install-html-am:
+
install-info: install-info-am
+install-info-am:
+
install-man:
+install-pdf: install-pdf-am
+
+install-pdf-am:
+
+install-ps: install-ps-am
+
+install-ps-am:
+
installcheck-am:
maintainer-clean: maintainer-clean-am
-
+ -rm -rf ./$(DEPDIR)
+ -rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
ps-am:
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
+uninstall-am: uninstall-binPROGRAMS
+
+.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
clean-generic ctags distclean distclean-compile \
- distclean-depend distclean-generic distclean-tags distdir dvi \
- dvi-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 \
+ 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-dvi install-dvi-am \
+ install-exec install-exec-am install-html install-html-am \
+ install-info install-info-am install-man install-pdf \
+ install-pdf-am install-ps install-ps-am 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
+ uninstall-am uninstall-binPROGRAMS
+
# 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.
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
+Dr. David Kirkby, e-mail drkirkby at gmail.com
*/
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
+Dr. David Kirkby, e-mail drkirkby at gmail.com
*/
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
+Dr. David Kirkby, e-mail drkirkby at gmail.com
*/
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
+Dr. David Kirkby, e-mail drkirkby at gmail.com
*/
#include "config.h"
if(mem1[i] != mem2[i])
printf("At offset= %ld file1 = %d file2 = %d difference=%d\n",i,(int) mem1[i],(int) mem2[i],(int) (mem1[i]-mem2[i]));
}
+ fclose(fp1);
+ fclose(fp2);
return(0);
}
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby@ntlworld.com
+Dr. David Kirkby, e-mail drkirkby@gmail.com
*/
#include <stdlib.h>
#endif
-#include "../../src/non_gui/exit_codes.h"
-#include "../../src/non_gui/definitions.h"
+#include "../../src/exit_codes.h"
+#include "../../src/definitions.h"
int main(int argc, char **argv)
{
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby@ntlworld.com
+Dr. David Kirkby, e-mail drkirkby@gmail.com
*/
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA.
-Dr. David Kirkby, e-mail drkirkby at ntlworld.com
+Dr. David Kirkby, e-mail drkirkby at gmail.com
*/