Hi Mark...
Caveat... I'm using Linux, not OSxDarwin/Hexley... But....
I performed a grep on source algol68g-2.8.1/configure and found that 3
different directories are scanned for:
328:if test -d /usr/local/pgsql/include; then
336:if test -d /usr/pkg/pgsql/include; then
344:if test -d /opt/local/pgsql/include; then
352:if test -d /usr/include/postgresql; then
re: OSx/Darwin/Hexley directories ...
http://osxdaily.com/2007/03/30/mac-os-x-directory-structure-explained/
* /Developer The Developer directory appears only if you have installed
Apple’s Developer Tools, and no surprise, contains developer related tools
* /Library Shared libraries, files necessary for the operating system to
function properly, including settings, preferences, and other necessities
(note: you also have a Libraries folder in your home directory, which holds
files specific to th
* /System System related files, libraries, preference
* /usr Second major hierarchy, includes subdirectories that contain
information, configuration files, and other essentials used by the o
I'd suggest finding where postgres gets installed on OSx/Darwin/Hexley and
to a "ln -s" of the directory into (probably) /usr/local/pgsql/include
The other directory to worry about is postgres's "lib" directory... That
will probably need a symbolic link into /usr/local/pgsql/lib.
This is probably (hopefully) all you need to do.
Note: I have included an entrance of in APPENDIX A below detailing options
and environ variables...
Some influential environment variables:
... LIBS libraries to pass to the linker, e.g. -l<library> ... [so
maybe you dont need to symlink the lib dir]
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
If you email Marcel the typical location of pgsql/include & pgsql/lib
on OSx/Darwin/Hexley (and any other hacks you find necessary) then I'd bet
that magically a68g will install without symbolic links in the next
release. I'm thinking that (with you hint) LD_LIBRARY_PATH could be
incorporated into algol68g-2.8.2/configure.ac for autoreconf/automake.
Finally you will ned to run the 200 some algol68g/testset ...
Maybe it's time I gave OSx/Darwin/Hexley
Good luck
NevilleD
APPENDIX A
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]
--enable-arch=cpu if using gcc, enable emitting architecture-tuned
assembly code (default is "no")
--enable-compiler enable unit compiler (default is "yes")
--enable-curses if installed, enable curses library (default is
"yes")
--enable-readline if installed, enable readline library (default is
"yes")
--enable-gsl if installed, enable GNU Scientific Library
(default
is "yes")
--enable-parallel enable Algol 68 parallel-clause (default is "yes")
--enable-pic=option if using gcc, enable option to generate PIC
(default
is "-fPIC")
--enable-prescott if using gcc, enable optimisation for P4 Prescott
(default is "no")
--enable-plotutils if installed, enable GNU plotting utilities
(default
is "yes")
--enable-postgresql if installed, enable PostgreSQL (default is "yes")
--disable-dependency-tracking speeds up one-time build
--enable-dependency-tracking do not reject slow dependency extractors
--disable-assert turn off assertions
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS C/C++/Objective 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.
APPENDIX B:
[algol68g-2.8.1]$ egrep -ni "pgsql|postgres" configure.ac
61:# Check whether $1 is in PostgreSQL.
63:AC_DEFUN([A68G_AC_POSTGRESQL],
64: [AC_CHECK_DECL([$1], [], [enable_postgresql=no], [
67: AC_CHECK_LIB([pq], [$1], [a68g_unexpected=yes], [enable_postgresql=no])
171:AC_ARG_ENABLE(postgresql, [AS_HELP_STRING([--enable-postgresql], [if
installed, enable PostgreSQL (default is "yes")])], ,
enable_postgresql=yes)
328:if test -d /usr/local/pgsql/include; then
329: AC_DEFINE(HAVE_USR_LOCAL_PGSQL_INCLUDE, 1, [Define this if
/usr/local/pgsql/include was detected])
330: CFLAGS="$CFLAGS -I/usr/local/pgsql/include"
331: CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include"
332: CXXFLAGS="$CXXFLAGS -I/usr/local/pgsql/include"
333: LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib"
336:if test -d /usr/pkg/pgsql/include; then
337: AC_DEFINE(HAVE_USR_PKG_PGSQL_INCLUDE, 1, [Define this if
/usr/pkg/pgsql/include was detected])
338: CFLAGS="$CFLAGS -I/usr/pkg/pgsql/include"
339: CPPFLAGS="$CPPFLAGS -I/usr/pkg/pgsql/include"
340: CXXFLAGS="$CXXFLAGS -I/usr/pkg/pgsql/include"
341: LDFLAGS="$LDFLAGS -L/usr/pkg/pgsql/lib"
344:if test -d /opt/local/pgsql/include; then
345: AC_DEFINE(HAVE_OPT_LOCAL_PGSQL_INCLUDE, 1, [Define this if
/opt/local/pgsql/include was detected])
346: CFLAGS="$CFLAGS -I/opt/local/pgsql/include"
347: CPPFLAGS="$CPPFLAGS -I/opt/local/pgsql/include"
348: CXXFLAGS="$CXXFLAGS -I/opt/local/pgsql/include"
349: LDFLAGS="$LDFLAGS -L/opt/local/pgsql/lib"
352:if test -d /usr/include/postgresql; then
353: AC_DEFINE(HAVE_USR_INCLUDE_POSTGRESQL, 1, [Define this if
/usr/include/postgresql was detected])
354: CFLAGS="$CFLAGS -I/usr/include/postgresql"
355: CPPFLAGS="$CPPFLAGS -I/usr/include/postgresql"
356: CXXFLAGS="$CXXFLAGS -I/usr/include/postgresql"
618:if test "x$enable_postgresql" = "xyes"; then
619: AC_MSG_NOTICE([PostgreSQL...])
620: AC_CHECK_HEADERS([libpq-fe.h], [], [enable_postgresql=no], [])
621: A68G_AC_POSTGRESQL(PQbackendPID)
622: if test "x$enable_postgresql" = "xyes"; then
623: A68G_AC_POSTGRESQL(PQclear)
624: A68G_AC_POSTGRESQL(PQcmdStatus)
625: A68G_AC_POSTGRESQL(PQcmdTuples)
626: A68G_AC_POSTGRESQL(PQconnectdb)
627: A68G_AC_POSTGRESQL(PQdb)
628: A68G_AC_POSTGRESQL(PQerrorMessage)
629: A68G_AC_POSTGRESQL(PQexec)
630: A68G_AC_POSTGRESQL(PQfformat)
631: A68G_AC_POSTGRESQL(PQfinish)
632: A68G_AC_POSTGRESQL(PQfname)
633: A68G_AC_POSTGRESQL(PQfnumber)
634: A68G_AC_POSTGRESQL(PQgetisnull)
635: A68G_AC_POSTGRESQL(PQgetvalue)
636: A68G_AC_POSTGRESQL(PQhost)
637: A68G_AC_POSTGRESQL(PQnfields)
638: A68G_AC_POSTGRESQL(PQntuples)
639: A68G_AC_POSTGRESQL(PQoptions)
640: A68G_AC_POSTGRESQL(PQparameterStatus)
641: A68G_AC_POSTGRESQL(PQpass)
642: A68G_AC_POSTGRESQL(PQport)
643: A68G_AC_POSTGRESQL(PQprotocolVersion)
644: A68G_AC_POSTGRESQL(PQreset)
645: A68G_AC_POSTGRESQL(PQresultErrorMessage)
646: A68G_AC_POSTGRESQL(PQresultStatus)
647: A68G_AC_POSTGRESQL(PQserverVersion)
648: A68G_AC_POSTGRESQL(PQsocket)
649: A68G_AC_POSTGRESQL(PQstatus)
650: A68G_AC_POSTGRESQL(PQtty)
651: A68G_AC_POSTGRESQL(PQuser)
653: if test "x$enable_postgresql" = "xyes"; then
655: AC_DEFINE(HAVE_POSTGRESQL, 1, [Define this if a good PostgreSQL
installation was detected])
694:if test "x$enable_postgresql" = "xyes"; then
695: AC_MSG_NOTICE([building with PostgreSQL])
APPENDIX C
algol68g-2.8.1]$ ls algol68g-2.8.1/test-set
a68g.mc.001.appl01.a68 a68g.mc.067.idef11.a68 a68g.mc.133.scop08.a68
a68g.mc.002.appl02.a68 a68g.mc.068.idef12.a68 a68g.mc.134.scop09.a68
...
a68g.mc.066.idef10.a68 a68g.mc.132.scop07.a68 a68g.ur.198.r9.a68
|