- Patches needed for cygwin.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 3 Jul 2000 23:43:17 +0000 (23:43 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 3 Jul 2000 23:43:17 +0000 (23:43 +0000)
ginac/utils.h
ginsh/Makefile.am

index 7018bc9..13fa2c8 100644 (file)
@@ -45,7 +45,10 @@ string ToString(const T & t)
  *  signal that ordinary Taylor expansion is safe. */
 class do_taylor {};
 
+// cygwin defines a macro log2, causing confusion
+#ifndef log2
 unsigned log2(unsigned n);
+#endif
 
 int compare_pointers(const void * a, const void * b);
 
index d16cd4d..29ff9d4 100644 (file)
@@ -10,10 +10,10 @@ YFLAGS = -d
 EXTRA_DIST = $(man_MANS) ginsh_parser.h ginsh_fcn_help.sed ginsh_op_help.sed
 
 # files created by sed scripts
-ginsh_fcn_help.c: ginsh.1 ginsh_fcn_help.sed
-       sed -n -f ginsh_fcn_help.sed <$< >$@
+ginsh_fcn_help.c: ginsh.1 $(srcdir)/ginsh_fcn_help.sed
+       sed -n -f $(srcdir)/ginsh_fcn_help.sed <$< >$@
 
-ginsh_op_help.c: ginsh.1 ginsh_op_help.sed
-       sed -n -f ginsh_op_help.sed <$< >$@
+ginsh_op_help.c: ginsh.1 $(srcdir)/ginsh_op_help.sed
+       sed -n -f $(srcdir)/ginsh_op_help.sed <$< >$@
 
 ginsh_parser.o: ginsh_fcn_help.c ginsh_op_help.c