prestogres 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +4 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +20 -0
- data/LICENSE +202 -0
- data/NOTICE +22 -0
- data/README.md +217 -0
- data/Rakefile +13 -0
- data/VERSION +1 -0
- data/bin/prestogres +254 -0
- data/config/pcp.conf.sample +28 -0
- data/config/pgpool.conf +678 -0
- data/config/pool_hba.conf +84 -0
- data/config/pool_passwd +0 -0
- data/config/postgresql.conf +2 -0
- data/ext/.gitignore +6 -0
- data/ext/depend +26 -0
- data/ext/extconf.rb +4 -0
- data/ext/prestogres_config.c +12 -0
- data/pgpool2/.gitignore +36 -0
- data/pgpool2/AUTHORS +4 -0
- data/pgpool2/COPYING +12 -0
- data/pgpool2/ChangeLog +1 -0
- data/pgpool2/INSTALL +1 -0
- data/pgpool2/Makefile.am +159 -0
- data/pgpool2/Makefile.in +1187 -0
- data/pgpool2/NEWS +4960 -0
- data/pgpool2/README +1 -0
- data/pgpool2/README.euc_jp +1 -0
- data/pgpool2/README.online-recovery +62 -0
- data/pgpool2/TODO +103 -0
- data/pgpool2/ac_func_accept_argtypes.m4 +85 -0
- data/pgpool2/aclocal.m4 +1088 -0
- data/pgpool2/c-compiler.m4 +134 -0
- data/pgpool2/c-library.m4 +325 -0
- data/pgpool2/child.c +2097 -0
- data/pgpool2/config.guess +1532 -0
- data/pgpool2/config.h.in +332 -0
- data/pgpool2/config.sub +1640 -0
- data/pgpool2/configure +15752 -0
- data/pgpool2/configure.in +392 -0
- data/pgpool2/depcomp +522 -0
- data/pgpool2/doc/basebackup.sh +17 -0
- data/pgpool2/doc/pgpool-de.html +4220 -0
- data/pgpool2/doc/pgpool-en.html +5738 -0
- data/pgpool2/doc/pgpool-fr.html +4118 -0
- data/pgpool2/doc/pgpool-ja.css +198 -0
- data/pgpool2/doc/pgpool-ja.html +11279 -0
- data/pgpool2/doc/pgpool-zh_cn.html +4445 -0
- data/pgpool2/doc/pgpool.css +280 -0
- data/pgpool2/doc/pgpool_remote_start +13 -0
- data/pgpool2/doc/recovery.conf.sample +117 -0
- data/pgpool2/doc/tutorial-en.html +707 -0
- data/pgpool2/doc/tutorial-ja.html +422 -0
- data/pgpool2/doc/tutorial-memqcache-en.html +325 -0
- data/pgpool2/doc/tutorial-memqcache-ja.html +370 -0
- data/pgpool2/doc/tutorial-memqcache-zh_cn.html +322 -0
- data/pgpool2/doc/tutorial-watchdog-en.html +306 -0
- data/pgpool2/doc/tutorial-watchdog-ja.html +343 -0
- data/pgpool2/doc/tutorial-watchdog-zh_cn.html +301 -0
- data/pgpool2/doc/tutorial-zh_cn.html +537 -0
- data/pgpool2/doc/watchdog.png +0 -0
- data/pgpool2/doc/wd-en.html +236 -0
- data/pgpool2/doc/wd-en.jpg +0 -0
- data/pgpool2/doc/wd-ja.html +219 -0
- data/pgpool2/doc/wd-ja.jpg +0 -0
- data/pgpool2/doc/wd-zh_cn.html +201 -0
- data/pgpool2/doc/where_to_send_queries.odg +0 -0
- data/pgpool2/doc/where_to_send_queries.pdf +0 -0
- data/pgpool2/general.m4 +166 -0
- data/pgpool2/getopt_long.c +200 -0
- data/pgpool2/getopt_long.h +44 -0
- data/pgpool2/install-sh +251 -0
- data/pgpool2/ltmain.sh +8406 -0
- data/pgpool2/m4/libtool.m4 +7360 -0
- data/pgpool2/m4/ltoptions.m4 +368 -0
- data/pgpool2/m4/ltsugar.m4 +123 -0
- data/pgpool2/m4/ltversion.m4 +23 -0
- data/pgpool2/m4/lt~obsolete.m4 +92 -0
- data/pgpool2/main.c +2971 -0
- data/pgpool2/md5.c +444 -0
- data/pgpool2/md5.h +28 -0
- data/pgpool2/missing +360 -0
- data/pgpool2/mkinstalldirs +40 -0
- data/pgpool2/parser/Makefile.am +50 -0
- data/pgpool2/parser/Makefile.in +559 -0
- data/pgpool2/parser/copyfuncs.c +3310 -0
- data/pgpool2/parser/gram.c +39100 -0
- data/pgpool2/parser/gram.h +940 -0
- data/pgpool2/parser/gram.y +13408 -0
- data/pgpool2/parser/gramparse.h +74 -0
- data/pgpool2/parser/keywords.c +32 -0
- data/pgpool2/parser/keywords.h +39 -0
- data/pgpool2/parser/kwlist.h +425 -0
- data/pgpool2/parser/kwlookup.c +88 -0
- data/pgpool2/parser/list.c +1156 -0
- data/pgpool2/parser/makefuncs.c +518 -0
- data/pgpool2/parser/makefuncs.h +83 -0
- data/pgpool2/parser/memnodes.h +79 -0
- data/pgpool2/parser/nodes.c +29 -0
- data/pgpool2/parser/nodes.h +609 -0
- data/pgpool2/parser/outfuncs.c +5790 -0
- data/pgpool2/parser/parsenodes.h +2615 -0
- data/pgpool2/parser/parser.c +262 -0
- data/pgpool2/parser/parser.h +46 -0
- data/pgpool2/parser/pg_class.h +158 -0
- data/pgpool2/parser/pg_config_manual.h +273 -0
- data/pgpool2/parser/pg_list.h +352 -0
- data/pgpool2/parser/pg_trigger.h +147 -0
- data/pgpool2/parser/pg_wchar.h +492 -0
- data/pgpool2/parser/pool_memory.c +342 -0
- data/pgpool2/parser/pool_memory.h +77 -0
- data/pgpool2/parser/pool_parser.h +222 -0
- data/pgpool2/parser/pool_string.c +121 -0
- data/pgpool2/parser/pool_string.h +37 -0
- data/pgpool2/parser/primnodes.h +1280 -0
- data/pgpool2/parser/scan.c +4094 -0
- data/pgpool2/parser/scan.l +1451 -0
- data/pgpool2/parser/scanner.h +120 -0
- data/pgpool2/parser/scansup.c +221 -0
- data/pgpool2/parser/scansup.h +28 -0
- data/pgpool2/parser/snprintf.c +1102 -0
- data/pgpool2/parser/stringinfo.c +294 -0
- data/pgpool2/parser/stringinfo.h +178 -0
- data/pgpool2/parser/value.c +78 -0
- data/pgpool2/parser/value.h +62 -0
- data/pgpool2/parser/wchar.c +2048 -0
- data/pgpool2/pcp.conf.sample +28 -0
- data/pgpool2/pcp/Makefile.am +40 -0
- data/pgpool2/pcp/Makefile.in +771 -0
- data/pgpool2/pcp/libpcp_ext.h +250 -0
- data/pgpool2/pcp/md5.c +444 -0
- data/pgpool2/pcp/md5.h +28 -0
- data/pgpool2/pcp/pcp.c +1652 -0
- data/pgpool2/pcp/pcp.h +61 -0
- data/pgpool2/pcp/pcp_attach_node.c +172 -0
- data/pgpool2/pcp/pcp_detach_node.c +185 -0
- data/pgpool2/pcp/pcp_error.c +87 -0
- data/pgpool2/pcp/pcp_node_count.c +160 -0
- data/pgpool2/pcp/pcp_node_info.c +198 -0
- data/pgpool2/pcp/pcp_pool_status.c +166 -0
- data/pgpool2/pcp/pcp_proc_count.c +166 -0
- data/pgpool2/pcp/pcp_proc_info.c +261 -0
- data/pgpool2/pcp/pcp_promote_node.c +185 -0
- data/pgpool2/pcp/pcp_recovery_node.c +172 -0
- data/pgpool2/pcp/pcp_stop_pgpool.c +179 -0
- data/pgpool2/pcp/pcp_stream.c +385 -0
- data/pgpool2/pcp/pcp_stream.h +52 -0
- data/pgpool2/pcp/pcp_systemdb_info.c +194 -0
- data/pgpool2/pcp/pcp_watchdog_info.c +211 -0
- data/pgpool2/pcp_child.c +1493 -0
- data/pgpool2/pg_md5.c +305 -0
- data/pgpool2/pgpool.8.in +121 -0
- data/pgpool2/pgpool.conf +553 -0
- data/pgpool2/pgpool.conf.sample +666 -0
- data/pgpool2/pgpool.conf.sample-master-slave +665 -0
- data/pgpool2/pgpool.conf.sample-replication +664 -0
- data/pgpool2/pgpool.conf.sample-stream +664 -0
- data/pgpool2/pgpool.spec +264 -0
- data/pgpool2/pgpool_adm/TODO +7 -0
- data/pgpool2/pgpool_adm/pgpool_adm--1.0.sql +85 -0
- data/pgpool2/pgpool_adm/pgpool_adm.c +558 -0
- data/pgpool2/pgpool_adm/pgpool_adm.control +5 -0
- data/pgpool2/pgpool_adm/pgpool_adm.h +46 -0
- data/pgpool2/pgpool_adm/pgpool_adm.sql.in +85 -0
- data/pgpool2/pool.h +655 -0
- data/pgpool2/pool_auth.c +1390 -0
- data/pgpool2/pool_config.c +5007 -0
- data/pgpool2/pool_config.h +284 -0
- data/pgpool2/pool_config.l +3281 -0
- data/pgpool2/pool_config_md5.c +29 -0
- data/pgpool2/pool_connection_pool.c +812 -0
- data/pgpool2/pool_error.c +242 -0
- data/pgpool2/pool_globals.c +27 -0
- data/pgpool2/pool_hba.c +1723 -0
- data/pgpool2/pool_hba.conf.sample +67 -0
- data/pgpool2/pool_ip.c +567 -0
- data/pgpool2/pool_ip.h +65 -0
- data/pgpool2/pool_ipc.h +38 -0
- data/pgpool2/pool_lobj.c +242 -0
- data/pgpool2/pool_lobj.h +32 -0
- data/pgpool2/pool_memqcache.c +3818 -0
- data/pgpool2/pool_memqcache.h +268 -0
- data/pgpool2/pool_params.c +163 -0
- data/pgpool2/pool_passwd.c +249 -0
- data/pgpool2/pool_passwd.h +41 -0
- data/pgpool2/pool_path.c +193 -0
- data/pgpool2/pool_path.h +81 -0
- data/pgpool2/pool_process_context.c +247 -0
- data/pgpool2/pool_process_context.h +62 -0
- data/pgpool2/pool_process_query.c +5001 -0
- data/pgpool2/pool_process_reporting.c +1671 -0
- data/pgpool2/pool_process_reporting.h +44 -0
- data/pgpool2/pool_proto2.c +671 -0
- data/pgpool2/pool_proto_modules.c +3524 -0
- data/pgpool2/pool_proto_modules.h +185 -0
- data/pgpool2/pool_query_cache.c +1020 -0
- data/pgpool2/pool_query_context.c +1871 -0
- data/pgpool2/pool_query_context.h +105 -0
- data/pgpool2/pool_relcache.c +284 -0
- data/pgpool2/pool_relcache.h +78 -0
- data/pgpool2/pool_rewrite_outfuncs.c +9060 -0
- data/pgpool2/pool_rewrite_query.c +715 -0
- data/pgpool2/pool_rewrite_query.h +192 -0
- data/pgpool2/pool_select_walker.c +1150 -0
- data/pgpool2/pool_select_walker.h +68 -0
- data/pgpool2/pool_sema.c +161 -0
- data/pgpool2/pool_session_context.c +952 -0
- data/pgpool2/pool_session_context.h +203 -0
- data/pgpool2/pool_shmem.c +185 -0
- data/pgpool2/pool_signal.c +158 -0
- data/pgpool2/pool_signal.h +61 -0
- data/pgpool2/pool_ssl.c +339 -0
- data/pgpool2/pool_stream.c +962 -0
- data/pgpool2/pool_stream.h +61 -0
- data/pgpool2/pool_system.c +659 -0
- data/pgpool2/pool_timestamp.c +1215 -0
- data/pgpool2/pool_timestamp.h +38 -0
- data/pgpool2/pool_type.h +171 -0
- data/pgpool2/pool_worker_child.c +384 -0
- data/pgpool2/ps_status.c +404 -0
- data/pgpool2/recovery.c +435 -0
- data/pgpool2/redhat/pgpool.conf.sample.patch +52 -0
- data/pgpool2/redhat/pgpool.init +201 -0
- data/pgpool2/redhat/pgpool.sysconfig +7 -0
- data/pgpool2/redhat/rpm_installer/basebackup-replication.sh +53 -0
- data/pgpool2/redhat/rpm_installer/basebackup-stream.sh +55 -0
- data/pgpool2/redhat/rpm_installer/config_for_script +17 -0
- data/pgpool2/redhat/rpm_installer/failover.sh +64 -0
- data/pgpool2/redhat/rpm_installer/getsources.sh +141 -0
- data/pgpool2/redhat/rpm_installer/install.sh +1363 -0
- data/pgpool2/redhat/rpm_installer/pgpool_recovery_pitr +47 -0
- data/pgpool2/redhat/rpm_installer/pgpool_remote_start +15 -0
- data/pgpool2/redhat/rpm_installer/recovery.conf +4 -0
- data/pgpool2/redhat/rpm_installer/uninstall.sh +57 -0
- data/pgpool2/sample/dist_def_pgbench.sql +73 -0
- data/pgpool2/sample/pgpool.pam +3 -0
- data/pgpool2/sample/pgpool_recovery +20 -0
- data/pgpool2/sample/pgpool_recovery_pitr +19 -0
- data/pgpool2/sample/pgpool_remote_start +13 -0
- data/pgpool2/sample/replicate_def_pgbench.sql +18 -0
- data/pgpool2/sql/insert_lock.sql +15 -0
- data/pgpool2/sql/pgpool-recovery/pgpool-recovery.c +280 -0
- data/pgpool2/sql/pgpool-recovery/pgpool-recovery.sql.in +19 -0
- data/pgpool2/sql/pgpool-recovery/pgpool_recovery--1.0.sql +24 -0
- data/pgpool2/sql/pgpool-recovery/pgpool_recovery.control +5 -0
- data/pgpool2/sql/pgpool-recovery/uninstall_pgpool-recovery.sql +3 -0
- data/pgpool2/sql/pgpool-regclass/pgpool-regclass.c +206 -0
- data/pgpool2/sql/pgpool-regclass/pgpool-regclass.sql.in +4 -0
- data/pgpool2/sql/pgpool-regclass/pgpool_regclass--1.0.sql +7 -0
- data/pgpool2/sql/pgpool-regclass/pgpool_regclass.control +5 -0
- data/pgpool2/sql/pgpool-regclass/uninstall_pgpool-regclass.sql +1 -0
- data/pgpool2/sql/system_db.sql +38 -0
- data/pgpool2/strlcpy.c +85 -0
- data/pgpool2/test/C/test_extended.c +98 -0
- data/pgpool2/test/jdbc/.cvsignore +2 -0
- data/pgpool2/test/jdbc/AutoCommitTest.java +45 -0
- data/pgpool2/test/jdbc/BatchTest.java +55 -0
- data/pgpool2/test/jdbc/ColumnTest.java +60 -0
- data/pgpool2/test/jdbc/CreateTempTableTest.java +48 -0
- data/pgpool2/test/jdbc/InsertTest.java +34 -0
- data/pgpool2/test/jdbc/LockTest.java +36 -0
- data/pgpool2/test/jdbc/PgpoolTest.java +75 -0
- data/pgpool2/test/jdbc/README.euc_jp +73 -0
- data/pgpool2/test/jdbc/RunTest.java +83 -0
- data/pgpool2/test/jdbc/SelectTest.java +37 -0
- data/pgpool2/test/jdbc/UpdateTest.java +32 -0
- data/pgpool2/test/jdbc/expected/CreateTempTable +1 -0
- data/pgpool2/test/jdbc/expected/autocommit +10 -0
- data/pgpool2/test/jdbc/expected/batch +1 -0
- data/pgpool2/test/jdbc/expected/column +100 -0
- data/pgpool2/test/jdbc/expected/insert +1 -0
- data/pgpool2/test/jdbc/expected/lock +100 -0
- data/pgpool2/test/jdbc/expected/select +2 -0
- data/pgpool2/test/jdbc/expected/update +1 -0
- data/pgpool2/test/jdbc/pgpool.properties +7 -0
- data/pgpool2/test/jdbc/prepare.sql +54 -0
- data/pgpool2/test/jdbc/run.sh +6 -0
- data/pgpool2/test/parser/.cvsignore +6 -0
- data/pgpool2/test/parser/README +32 -0
- data/pgpool2/test/parser/expected/copy.out +17 -0
- data/pgpool2/test/parser/expected/create.out +64 -0
- data/pgpool2/test/parser/expected/cursor.out +37 -0
- data/pgpool2/test/parser/expected/delete.out +10 -0
- data/pgpool2/test/parser/expected/drop.out +12 -0
- data/pgpool2/test/parser/expected/insert.out +13 -0
- data/pgpool2/test/parser/expected/misc.out +28 -0
- data/pgpool2/test/parser/expected/prepare.out +4 -0
- data/pgpool2/test/parser/expected/privileges.out +31 -0
- data/pgpool2/test/parser/expected/scanner.out +30 -0
- data/pgpool2/test/parser/expected/select.out +89 -0
- data/pgpool2/test/parser/expected/transaction.out +38 -0
- data/pgpool2/test/parser/expected/update.out +11 -0
- data/pgpool2/test/parser/expected/v84.out +37 -0
- data/pgpool2/test/parser/expected/v90.out +25 -0
- data/pgpool2/test/parser/expected/var.out +22 -0
- data/pgpool2/test/parser/input/alter.sql +2 -0
- data/pgpool2/test/parser/input/copy.sql +17 -0
- data/pgpool2/test/parser/input/create.sql +64 -0
- data/pgpool2/test/parser/input/cursor.sql +37 -0
- data/pgpool2/test/parser/input/delete.sql +10 -0
- data/pgpool2/test/parser/input/drop.sql +12 -0
- data/pgpool2/test/parser/input/insert.sql +13 -0
- data/pgpool2/test/parser/input/misc.sql +28 -0
- data/pgpool2/test/parser/input/prepare.sql +4 -0
- data/pgpool2/test/parser/input/privileges.sql +31 -0
- data/pgpool2/test/parser/input/scanner.sql +34 -0
- data/pgpool2/test/parser/input/select.sql +89 -0
- data/pgpool2/test/parser/input/transaction.sql +38 -0
- data/pgpool2/test/parser/input/update.sql +11 -0
- data/pgpool2/test/parser/input/v84.sql +37 -0
- data/pgpool2/test/parser/input/v90.sql +38 -0
- data/pgpool2/test/parser/input/var.sql +22 -0
- data/pgpool2/test/parser/main.c +96 -0
- data/pgpool2/test/parser/parse_schedule +16 -0
- data/pgpool2/test/parser/pool.h +13 -0
- data/pgpool2/test/parser/run-test +62 -0
- data/pgpool2/test/pdo-test/README.euc_jp +58 -0
- data/pgpool2/test/pdo-test/SQLlist/test1.sql +3 -0
- data/pgpool2/test/pdo-test/SQLlist/test2.sql +3 -0
- data/pgpool2/test/pdo-test/collections.inc +11 -0
- data/pgpool2/test/pdo-test/def.inc +7 -0
- data/pgpool2/test/pdo-test/log.txt +0 -0
- data/pgpool2/test/pdo-test/mod/database.inc +36 -0
- data/pgpool2/test/pdo-test/mod/def.inc +0 -0
- data/pgpool2/test/pdo-test/mod/errorhandler.inc +27 -0
- data/pgpool2/test/pdo-test/pdotest.php +11 -0
- data/pgpool2/test/pdo-test/regsql.inc +56 -0
- data/pgpool2/test/pgpool_setup +898 -0
- data/pgpool2/test/regression/README +39 -0
- data/pgpool2/test/regression/clean.sh +21 -0
- data/pgpool2/test/regression/libs.sh +16 -0
- data/pgpool2/test/regression/regress.sh +166 -0
- data/pgpool2/test/regression/tests/001.load_balance/test.sh +128 -0
- data/pgpool2/test/regression/tests/002.native_replication/PgTester.java +47 -0
- data/pgpool2/test/regression/tests/002.native_replication/create.sql +6 -0
- data/pgpool2/test/regression/tests/002.native_replication/test.sh +71 -0
- data/pgpool2/test/regression/tests/003.failover/expected.r +6 -0
- data/pgpool2/test/regression/tests/003.failover/expected.s +6 -0
- data/pgpool2/test/regression/tests/003.failover/test.sh +45 -0
- data/pgpool2/test/regression/tests/004.watchdog/master.conf +12 -0
- data/pgpool2/test/regression/tests/004.watchdog/standby.conf +19 -0
- data/pgpool2/test/regression/tests/004.watchdog/test.sh +52 -0
- data/pgpool2/test/regression/tests/050.bug58/test.sh +50 -0
- data/pgpool2/test/regression/tests/051.bug60/bug.sql +12 -0
- data/pgpool2/test/regression/tests/051.bug60/database-clean.sql +6 -0
- data/pgpool2/test/regression/tests/051.bug60/database-setup.sql +28 -0
- data/pgpool2/test/regression/tests/051.bug60/test.sh +79 -0
- data/pgpool2/test/regression/tests/052.do_query/test.sh +44 -0
- data/pgpool2/test/regression/tests/053.insert_lock_hangs/test.sh +81 -0
- data/pgpool2/test/regression/tests/054.postgres_fdw/test.sh +67 -0
- data/pgpool2/test/regression/tests/055.backend_all_down/test.sh +52 -0
- data/pgpool2/test/regression/tests/056.bug63/jdbctest2.java +66 -0
- data/pgpool2/test/regression/tests/056.bug63/test.sh +47 -0
- data/pgpool2/test/regression/tests/057.bug61/test.sh +40 -0
- data/pgpool2/test/regression/tests/058.bug68/jdbctest3.java +45 -0
- data/pgpool2/test/regression/tests/058.bug68/test.sh +47 -0
- data/pgpool2/test/timestamp/expected/insert.out +16 -0
- data/pgpool2/test/timestamp/expected/misc.out +3 -0
- data/pgpool2/test/timestamp/expected/update.out +6 -0
- data/pgpool2/test/timestamp/input/insert.sql +16 -0
- data/pgpool2/test/timestamp/input/misc.sql +3 -0
- data/pgpool2/test/timestamp/input/update.sql +6 -0
- data/pgpool2/test/timestamp/main.c +129 -0
- data/pgpool2/test/timestamp/parse_schedule +3 -0
- data/pgpool2/test/timestamp/run-test +69 -0
- data/pgpool2/version.h +1 -0
- data/pgpool2/watchdog/Makefile.am +17 -0
- data/pgpool2/watchdog/Makefile.in +505 -0
- data/pgpool2/watchdog/test/stab.c +266 -0
- data/pgpool2/watchdog/test/test.c +85 -0
- data/pgpool2/watchdog/test/wd_child_t.c +87 -0
- data/pgpool2/watchdog/test/wd_lifecheck_t.c +87 -0
- data/pgpool2/watchdog/test/wd_packet_t.c +87 -0
- data/pgpool2/watchdog/test/wd_ping_t.c +20 -0
- data/pgpool2/watchdog/watchdog.c +408 -0
- data/pgpool2/watchdog/watchdog.h +209 -0
- data/pgpool2/watchdog/wd_child.c +444 -0
- data/pgpool2/watchdog/wd_ext.h +123 -0
- data/pgpool2/watchdog/wd_heartbeat.c +577 -0
- data/pgpool2/watchdog/wd_if.c +216 -0
- data/pgpool2/watchdog/wd_init.c +126 -0
- data/pgpool2/watchdog/wd_interlock.c +347 -0
- data/pgpool2/watchdog/wd_lifecheck.c +512 -0
- data/pgpool2/watchdog/wd_list.c +429 -0
- data/pgpool2/watchdog/wd_packet.c +1159 -0
- data/pgpool2/watchdog/wd_ping.c +330 -0
- data/pgpool2/ylwrap +223 -0
- data/pgsql/presto_client.py +346 -0
- data/pgsql/prestogres.py +156 -0
- data/pgsql/setup_functions.sql +21 -0
- data/pgsql/setup_language.sql +3 -0
- data/prestogres.gemspec +23 -0
- metadata +496 -0
data/pgpool2/README
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
See the file doc/pgpool-en.html
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
doc/pgpool-ja.html �Ƥ���������
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* $Header$
|
|
3
|
+
*
|
|
4
|
+
* pgpool: a language independent connection pool server for PostgreSQL
|
|
5
|
+
* written by Tatsuo Ishii
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2003-2010 PgPool Global Development Group
|
|
8
|
+
*
|
|
9
|
+
* Permission to use, copy, modify, and distribute this software and
|
|
10
|
+
* its documentation for any purpose and without fee is hereby
|
|
11
|
+
* granted, provided that the above copyright notice appear in all
|
|
12
|
+
* copies and that both that copyright notice and this permission
|
|
13
|
+
* notice appear in supporting documentation, and that the name of the
|
|
14
|
+
* author not be used in advertising or publicity pertaining to
|
|
15
|
+
* distribution of the software without specific, written prior
|
|
16
|
+
* permission. The author makes no representations about the
|
|
17
|
+
* suitability of this software for any purpose. It is provided "as
|
|
18
|
+
* is" without express or implied warranty.
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
How does online reconvery work?
|
|
23
|
+
|
|
24
|
+
pcp_recovery_node calls pcp_recovery_node() API
|
|
25
|
+
|
|
26
|
+
pcp_recovery_node(int node_id) does:
|
|
27
|
+
|
|
28
|
+
pcp_recovery_node sends "O" to pcp_child process requesting online
|
|
29
|
+
recovery
|
|
30
|
+
|
|
31
|
+
pcp_child calls start_recovery() and waits for its completion
|
|
32
|
+
|
|
33
|
+
start_recovery() sets Req_info->kind to NODE_RECOVERY_REQUEST
|
|
34
|
+
start_recovery calls execute_checkpoint() execute CHEKPOINT
|
|
35
|
+
command
|
|
36
|
+
start_recovery calls exec_recovery
|
|
37
|
+
exec_recovery executes SELECT pgpool_recovery()
|
|
38
|
+
execute 1st stage command
|
|
39
|
+
|
|
40
|
+
/* start 2nd stage */
|
|
41
|
+
sets InRecovery to 1
|
|
42
|
+
wait_connection_closed() to wait for all frontend exits
|
|
43
|
+
calls execute_checkpoint() execute CHEKPOINT
|
|
44
|
+
calls exec_recovery to execute 2nd stage script
|
|
45
|
+
calls exec_remote_start to start postmaster
|
|
46
|
+
calls check_postmaster_started to wait for postmaster starts
|
|
47
|
+
up
|
|
48
|
+
set pcp_wakeup request to 0
|
|
49
|
+
calls send_failback_request()
|
|
50
|
+
waits for failback completion every 1 second until
|
|
51
|
+
pcp_wakeup_request becomes non 0.
|
|
52
|
+
set pcp_wakeup request to 0
|
|
53
|
+
|
|
54
|
+
start_recovery calls finish_recovery()
|
|
55
|
+
finish_recovery sets InRecovery to 0
|
|
56
|
+
sends SIGUSR2 signal to parent
|
|
57
|
+
|
|
58
|
+
Upon receiving SIGUSR2 pgpool parent calls
|
|
59
|
+
kill_all_children() which sends SIGUSR2 to all pgpool
|
|
60
|
+
children
|
|
61
|
+
|
|
62
|
+
child pgpool processes wake up from pause()
|
data/pgpool2/TODO
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
$Header$
|
|
2
|
+
|
|
3
|
+
* General
|
|
4
|
+
|
|
5
|
+
- Reset application name to "pgppol" when client disconnects(3.1. why
|
|
6
|
+
not use set command?) -> Done.
|
|
7
|
+
- Use reset_query_list to reset to "pgpool" for client disconnection
|
|
8
|
+
- Reset to client specified application name when reusing existing
|
|
9
|
+
connection.
|
|
10
|
+
|
|
11
|
+
- Allow to call pcp commands/show commands as a stored procedures of
|
|
12
|
+
PostgreSQL(3.1 SRAOSS)
|
|
13
|
+
|
|
14
|
+
- Allow client encoding conversion. This was possible in pgpool-I
|
|
15
|
+
|
|
16
|
+
- Avoid cross pgpool process deadlock situation. This is a long
|
|
17
|
+
standing problem since pgpool-II was born (pgpool-I avoids this by
|
|
18
|
+
setting timeout)
|
|
19
|
+
|
|
20
|
+
- If DISCARD ALL is specified in the reset_query_list and transaction
|
|
21
|
+
is not closed when client disconnects, automatically issue ABORT
|
|
22
|
+
before issuing DISCARD ALL
|
|
23
|
+
|
|
24
|
+
- Allow to specify queries issued when starting sessions
|
|
25
|
+
|
|
26
|
+
- Audit functionality?
|
|
27
|
+
|
|
28
|
+
- Make accept queue
|
|
29
|
+
|
|
30
|
+
- Graceful attaching a node
|
|
31
|
+
|
|
32
|
+
* Query handling
|
|
33
|
+
|
|
34
|
+
- Allow multi statement
|
|
35
|
+
|
|
36
|
+
- Enhance DROP DATABASE handling (not disconnect all idle connections)
|
|
37
|
+
|
|
38
|
+
* Replication
|
|
39
|
+
|
|
40
|
+
- Allow per table replication
|
|
41
|
+
|
|
42
|
+
- Allow per session level and query level load balancing
|
|
43
|
+
|
|
44
|
+
- More reliable way to replicate SEQUENCES
|
|
45
|
+
|
|
46
|
+
- Allow to replicate OIDs, XIDs
|
|
47
|
+
|
|
48
|
+
* Master/slave mode
|
|
49
|
+
|
|
50
|
+
- Allow to use more than 1 standbys(3.1)
|
|
51
|
+
|
|
52
|
+
* On line recovery
|
|
53
|
+
|
|
54
|
+
* Query cache
|
|
55
|
+
|
|
56
|
+
- Cache invalidation
|
|
57
|
+
|
|
58
|
+
- More effcient cache (memcache?)
|
|
59
|
+
|
|
60
|
+
* Log
|
|
61
|
+
|
|
62
|
+
- Mutiple log levels(3.1, but low priority)
|
|
63
|
+
|
|
64
|
+
- Multiple log destinations(3.1, but low priority)
|
|
65
|
+
|
|
66
|
+
* Parallel query
|
|
67
|
+
|
|
68
|
+
- Performance enhance for more complex queries
|
|
69
|
+
|
|
70
|
+
- Allow to handle transaction
|
|
71
|
+
|
|
72
|
+
- Allow to handle extended queries
|
|
73
|
+
|
|
74
|
+
- process alias in FROM clause
|
|
75
|
+
|
|
76
|
+
db=# select * from data1 as d1 inner join data2 as d2 on d1.id=d2.id;
|
|
77
|
+
ERROR: sql error
|
|
78
|
+
DETAIL: ERROR: missing FROM-clause entry for table "d1"
|
|
79
|
+
LINE 1: SELECT pool_parallel("SELECT d1.id, d1.aaaa, d1.bbbb...
|
|
80
|
+
^
|
|
81
|
+
2008-03-11 10:28:17 LOG: pid 6186: statement: SELECT pool_parallel("SELECT d1.id, d1.aaaa, d1.bbbb, a.cccc FROM data1")
|
|
82
|
+
|
|
83
|
+
- process USING clause in JOIN
|
|
84
|
+
|
|
85
|
+
* pgpoolAdmin
|
|
86
|
+
|
|
87
|
+
- Allow to use double quotation in reset_query_list
|
|
88
|
+
|
|
89
|
+
- German messages
|
|
90
|
+
|
|
91
|
+
- Allow to run pgpoolAdmin on a host different from a host which
|
|
92
|
+
pgpool-II is running on(3.2?)
|
|
93
|
+
|
|
94
|
+
- Allow to stop PostgeSQL from pgpoolAdmin to make the on-line
|
|
95
|
+
recovery more convenient(pgpool_stop()?)
|
|
96
|
+
|
|
97
|
+
* Docs
|
|
98
|
+
|
|
99
|
+
- Write libpcp API docs
|
|
100
|
+
|
|
101
|
+
- French documentations(3.1)
|
|
102
|
+
|
|
103
|
+
- German documentations(3.1)
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# $PostgreSQL: pgsql/config/ac_func_accept_argtypes.m4,v 1.6 2003/11/29 19:51:17 pgsql Exp $
|
|
2
|
+
# This comes from the official Autoconf macro archive at
|
|
3
|
+
# <http://research.cys.de/autoconf-archive/>
|
|
4
|
+
# (I removed the $ before the Id CVS keyword below.)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
dnl @synopsis AC_FUNC_ACCEPT_ARGTYPES
|
|
8
|
+
dnl
|
|
9
|
+
dnl Checks the data types of the three arguments to accept(). Results are
|
|
10
|
+
dnl placed into the symbols ACCEPT_TYPE_RETURN and ACCEPT_TYPE_ARG[123],
|
|
11
|
+
dnl consistent with the following example:
|
|
12
|
+
dnl
|
|
13
|
+
dnl #define ACCEPT_TYPE_RETURN int
|
|
14
|
+
dnl #define ACCEPT_TYPE_ARG1 int
|
|
15
|
+
dnl #define ACCEPT_TYPE_ARG2 struct sockaddr *
|
|
16
|
+
dnl #define ACCEPT_TYPE_ARG3 socklen_t
|
|
17
|
+
dnl
|
|
18
|
+
dnl This macro requires AC_CHECK_HEADERS to have already verified the
|
|
19
|
+
dnl presence or absence of sys/types.h and sys/socket.h.
|
|
20
|
+
dnl
|
|
21
|
+
dnl NOTE: This is just a modified version of the AC_FUNC_SELECT_ARGTYPES
|
|
22
|
+
dnl macro. Credit for that one goes to David MacKenzie et. al.
|
|
23
|
+
dnl
|
|
24
|
+
dnl @version Id: ac_func_accept_argtypes.m4,v 1.1 1999/12/03 11:29:29 simons Exp $
|
|
25
|
+
dnl @author Daniel Richard G. <skunk@mit.edu>
|
|
26
|
+
dnl
|
|
27
|
+
|
|
28
|
+
# PostgreSQL local changes: In the original version ACCEPT_TYPE_ARG3
|
|
29
|
+
# is a pointer type. That's kind of useless because then you can't
|
|
30
|
+
# use the macro to define a corresponding variable. We also make the
|
|
31
|
+
# reasonable(?) assumption that you can use arg3 for getsocktype etc.
|
|
32
|
+
# as well (i.e., anywhere POSIX.2 has socklen_t).
|
|
33
|
+
#
|
|
34
|
+
# arg2 can also be `const' (e.g., RH 4.2). Change the order of tests
|
|
35
|
+
# for arg3 so that `int' is first, in case there is no prototype at all.
|
|
36
|
+
#
|
|
37
|
+
# Solaris 7 and 8 have arg3 as 'void *' (disguised as 'Psocklen_t'
|
|
38
|
+
# which is *not* 'socklen_t *'). If we detect that, then we assume
|
|
39
|
+
# 'int' as the result, because that ought to work best.
|
|
40
|
+
#
|
|
41
|
+
# On Win32, accept() returns 'unsigned int PASCAL'
|
|
42
|
+
|
|
43
|
+
AC_DEFUN([AC_FUNC_ACCEPT_ARGTYPES],
|
|
44
|
+
[AC_MSG_CHECKING([types of arguments for accept()])
|
|
45
|
+
AC_CACHE_VAL(ac_cv_func_accept_return,dnl
|
|
46
|
+
[AC_CACHE_VAL(ac_cv_func_accept_arg1,dnl
|
|
47
|
+
[AC_CACHE_VAL(ac_cv_func_accept_arg2,dnl
|
|
48
|
+
[AC_CACHE_VAL(ac_cv_func_accept_arg3,dnl
|
|
49
|
+
[for ac_cv_func_accept_return in 'int' 'unsigned int PASCAL'; do
|
|
50
|
+
for ac_cv_func_accept_arg1 in 'int' 'unsigned int'; do
|
|
51
|
+
for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
|
|
52
|
+
for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
|
|
53
|
+
AC_TRY_COMPILE(
|
|
54
|
+
[#ifdef HAVE_SYS_TYPES_H
|
|
55
|
+
#include <sys/types.h>
|
|
56
|
+
#endif
|
|
57
|
+
#ifdef HAVE_SYS_SOCKET_H
|
|
58
|
+
#include <sys/socket.h>
|
|
59
|
+
#endif
|
|
60
|
+
extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);],
|
|
61
|
+
[], [ac_not_found=no; break 4], [ac_not_found=yes])
|
|
62
|
+
done
|
|
63
|
+
done
|
|
64
|
+
done
|
|
65
|
+
done
|
|
66
|
+
if test "$ac_not_found" = yes; then
|
|
67
|
+
AC_MSG_ERROR([could not determine argument types])
|
|
68
|
+
fi
|
|
69
|
+
if test "$ac_cv_func_accept_arg3" = "void"; then
|
|
70
|
+
ac_cv_func_accept_arg3=int
|
|
71
|
+
fi
|
|
72
|
+
])dnl AC_CACHE_VAL
|
|
73
|
+
])dnl AC_CACHE_VAL
|
|
74
|
+
])dnl AC_CACHE_VAL
|
|
75
|
+
])dnl AC_CACHE_VAL
|
|
76
|
+
AC_MSG_RESULT([$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *])
|
|
77
|
+
AC_DEFINE_UNQUOTED(ACCEPT_TYPE_RETURN, $ac_cv_func_accept_return,
|
|
78
|
+
[Define to the return type of 'accept'])
|
|
79
|
+
AC_DEFINE_UNQUOTED(ACCEPT_TYPE_ARG1, $ac_cv_func_accept_arg1,
|
|
80
|
+
[Define to the type of arg 1 of 'accept'])
|
|
81
|
+
AC_DEFINE_UNQUOTED(ACCEPT_TYPE_ARG2, $ac_cv_func_accept_arg2,
|
|
82
|
+
[Define to the type of arg 2 of 'accept'])
|
|
83
|
+
AC_DEFINE_UNQUOTED(ACCEPT_TYPE_ARG3, $ac_cv_func_accept_arg3,
|
|
84
|
+
[Define to the type of arg 3 of 'accept'])
|
|
85
|
+
])
|
data/pgpool2/aclocal.m4
ADDED
|
@@ -0,0 +1,1088 @@
|
|
|
1
|
+
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
|
|
2
|
+
|
|
3
|
+
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
4
|
+
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
|
5
|
+
# This file is free software; the Free Software Foundation
|
|
6
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
7
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8
|
+
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
11
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
12
|
+
# PARTICULAR PURPOSE.
|
|
13
|
+
|
|
14
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
15
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
16
|
+
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
|
|
17
|
+
[m4_warning([this file was generated for autoconf 2.68.
|
|
18
|
+
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
19
|
+
If you have problems, you may need to regenerate the build system entirely.
|
|
20
|
+
To do so, use the procedure documented by the package, typically `autoreconf'.])])
|
|
21
|
+
|
|
22
|
+
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
|
|
23
|
+
#
|
|
24
|
+
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
|
|
25
|
+
# Written by Scott James Remnant, 2004.
|
|
26
|
+
#
|
|
27
|
+
# This file is free software; the Free Software Foundation gives
|
|
28
|
+
# unlimited permission to copy and/or distribute it, with or without
|
|
29
|
+
# modifications, as long as this notice is preserved.
|
|
30
|
+
|
|
31
|
+
# serial 5 lt~obsolete.m4
|
|
32
|
+
|
|
33
|
+
# These exist entirely to fool aclocal when bootstrapping libtool.
|
|
34
|
+
#
|
|
35
|
+
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
|
|
36
|
+
# which have later been changed to m4_define as they aren't part of the
|
|
37
|
+
# exported API, or moved to Autoconf or Automake where they belong.
|
|
38
|
+
#
|
|
39
|
+
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
|
|
40
|
+
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
|
|
41
|
+
# using a macro with the same name in our local m4/libtool.m4 it'll
|
|
42
|
+
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
|
|
43
|
+
# and doesn't know about Autoconf macros at all.)
|
|
44
|
+
#
|
|
45
|
+
# So we provide this file, which has a silly filename so it's always
|
|
46
|
+
# included after everything else. This provides aclocal with the
|
|
47
|
+
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
|
|
48
|
+
# because those macros already exist, or will be overwritten later.
|
|
49
|
+
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
|
|
50
|
+
#
|
|
51
|
+
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
|
|
52
|
+
# Yes, that means every name once taken will need to remain here until
|
|
53
|
+
# we give up compatibility with versions before 1.7, at which point
|
|
54
|
+
# we need to keep only those names which we still refer to.
|
|
55
|
+
|
|
56
|
+
# This is to help aclocal find these macros, as it can't see m4_define.
|
|
57
|
+
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
|
|
58
|
+
|
|
59
|
+
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
|
|
60
|
+
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
|
|
61
|
+
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
|
|
62
|
+
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
|
|
63
|
+
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
|
|
64
|
+
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
|
|
65
|
+
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
|
|
66
|
+
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
|
|
67
|
+
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
|
|
68
|
+
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
|
|
69
|
+
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
|
|
70
|
+
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
|
|
71
|
+
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
|
|
72
|
+
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
|
|
73
|
+
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
|
|
74
|
+
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
|
|
75
|
+
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
|
|
76
|
+
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
|
|
77
|
+
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
|
|
78
|
+
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
|
|
79
|
+
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
|
|
80
|
+
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
|
|
81
|
+
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
|
|
82
|
+
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
|
|
83
|
+
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
|
|
84
|
+
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
|
|
85
|
+
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
|
|
86
|
+
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
|
|
87
|
+
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
|
|
88
|
+
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
|
|
89
|
+
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
|
|
90
|
+
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
|
|
91
|
+
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
|
|
92
|
+
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
|
|
93
|
+
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
|
|
94
|
+
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
|
|
95
|
+
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
|
|
96
|
+
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
|
|
97
|
+
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
|
|
98
|
+
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
|
|
99
|
+
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
|
|
100
|
+
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
|
|
101
|
+
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
|
|
102
|
+
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
|
|
103
|
+
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
|
|
104
|
+
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
|
|
105
|
+
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
|
|
106
|
+
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
|
|
107
|
+
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
|
|
108
|
+
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
|
|
109
|
+
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
|
|
110
|
+
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
|
|
111
|
+
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
|
|
112
|
+
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
|
|
113
|
+
m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
|
|
114
|
+
m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
|
|
115
|
+
m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
|
|
116
|
+
m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
|
|
117
|
+
m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
|
|
118
|
+
m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
|
|
119
|
+
m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
|
|
120
|
+
|
|
121
|
+
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
|
|
122
|
+
#
|
|
123
|
+
# This file is free software; the Free Software Foundation
|
|
124
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
125
|
+
# with or without modifications, as long as this notice is preserved.
|
|
126
|
+
|
|
127
|
+
# AM_AUTOMAKE_VERSION(VERSION)
|
|
128
|
+
# ----------------------------
|
|
129
|
+
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
130
|
+
# generated from the m4 files accompanying Automake X.Y.
|
|
131
|
+
# (This private macro should not be called outside this file.)
|
|
132
|
+
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
133
|
+
[am__api_version='1.11'
|
|
134
|
+
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
135
|
+
dnl require some minimum version. Point them to the right macro.
|
|
136
|
+
m4_if([$1], [1.11.1], [],
|
|
137
|
+
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
138
|
+
])
|
|
139
|
+
|
|
140
|
+
# _AM_AUTOCONF_VERSION(VERSION)
|
|
141
|
+
# -----------------------------
|
|
142
|
+
# aclocal traces this macro to find the Autoconf version.
|
|
143
|
+
# This is a private macro too. Using m4_define simplifies
|
|
144
|
+
# the logic in aclocal, which can simply ignore this definition.
|
|
145
|
+
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
146
|
+
|
|
147
|
+
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
148
|
+
# -------------------------------
|
|
149
|
+
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
150
|
+
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
151
|
+
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
152
|
+
[AM_AUTOMAKE_VERSION([1.11.1])dnl
|
|
153
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
154
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
155
|
+
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
156
|
+
|
|
157
|
+
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
158
|
+
|
|
159
|
+
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
|
160
|
+
#
|
|
161
|
+
# This file is free software; the Free Software Foundation
|
|
162
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
163
|
+
# with or without modifications, as long as this notice is preserved.
|
|
164
|
+
|
|
165
|
+
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
166
|
+
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
|
|
167
|
+
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
|
|
168
|
+
#
|
|
169
|
+
# Of course, Automake must honor this variable whenever it calls a
|
|
170
|
+
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
171
|
+
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
172
|
+
# depending on how configure is run. This is pretty annoying, since
|
|
173
|
+
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
174
|
+
# source directory, any form will work fine, but in subdirectories a
|
|
175
|
+
# relative path needs to be adjusted first.
|
|
176
|
+
#
|
|
177
|
+
# $ac_aux_dir/missing
|
|
178
|
+
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
179
|
+
# $top_srcdir/$ac_aux_dir/missing
|
|
180
|
+
# fails if $ac_aux_dir is absolute,
|
|
181
|
+
# fails when called from a subdirectory in a VPATH build with
|
|
182
|
+
# a relative $ac_aux_dir
|
|
183
|
+
#
|
|
184
|
+
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
185
|
+
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
186
|
+
# harmless because $srcdir is `.', but things will broke when you
|
|
187
|
+
# start a VPATH build or use an absolute $srcdir.
|
|
188
|
+
#
|
|
189
|
+
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
190
|
+
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
191
|
+
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
192
|
+
# and then we would define $MISSING as
|
|
193
|
+
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
194
|
+
# This will work as long as MISSING is not called from configure, because
|
|
195
|
+
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
196
|
+
# However there are other variables, like CC, which are often used in
|
|
197
|
+
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
198
|
+
#
|
|
199
|
+
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
200
|
+
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
201
|
+
# configured tree to be moved without reconfiguration.
|
|
202
|
+
|
|
203
|
+
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
204
|
+
[dnl Rely on autoconf to set up CDPATH properly.
|
|
205
|
+
AC_PREREQ([2.50])dnl
|
|
206
|
+
# expand $ac_aux_dir to an absolute path
|
|
207
|
+
am_aux_dir=`cd $ac_aux_dir && pwd`
|
|
208
|
+
])
|
|
209
|
+
|
|
210
|
+
# AM_CONDITIONAL -*- Autoconf -*-
|
|
211
|
+
|
|
212
|
+
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
|
|
213
|
+
# Free Software Foundation, Inc.
|
|
214
|
+
#
|
|
215
|
+
# This file is free software; the Free Software Foundation
|
|
216
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
217
|
+
# with or without modifications, as long as this notice is preserved.
|
|
218
|
+
|
|
219
|
+
# serial 9
|
|
220
|
+
|
|
221
|
+
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
222
|
+
# -------------------------------------
|
|
223
|
+
# Define a conditional.
|
|
224
|
+
AC_DEFUN([AM_CONDITIONAL],
|
|
225
|
+
[AC_PREREQ(2.52)dnl
|
|
226
|
+
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
227
|
+
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
228
|
+
AC_SUBST([$1_TRUE])dnl
|
|
229
|
+
AC_SUBST([$1_FALSE])dnl
|
|
230
|
+
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
231
|
+
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
232
|
+
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
233
|
+
if $2; then
|
|
234
|
+
$1_TRUE=
|
|
235
|
+
$1_FALSE='#'
|
|
236
|
+
else
|
|
237
|
+
$1_TRUE='#'
|
|
238
|
+
$1_FALSE=
|
|
239
|
+
fi
|
|
240
|
+
AC_CONFIG_COMMANDS_PRE(
|
|
241
|
+
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
242
|
+
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
243
|
+
Usually this means the macro was only invoked conditionally.]])
|
|
244
|
+
fi])])
|
|
245
|
+
|
|
246
|
+
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
|
|
247
|
+
# Free Software Foundation, Inc.
|
|
248
|
+
#
|
|
249
|
+
# This file is free software; the Free Software Foundation
|
|
250
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
251
|
+
# with or without modifications, as long as this notice is preserved.
|
|
252
|
+
|
|
253
|
+
# serial 10
|
|
254
|
+
|
|
255
|
+
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
|
|
256
|
+
# written in clear, in which case automake, when reading aclocal.m4,
|
|
257
|
+
# will think it sees a *use*, and therefore will trigger all it's
|
|
258
|
+
# C support machinery. Also note that it means that autoscan, seeing
|
|
259
|
+
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# _AM_DEPENDENCIES(NAME)
|
|
263
|
+
# ----------------------
|
|
264
|
+
# See how the compiler implements dependency checking.
|
|
265
|
+
# NAME is "CC", "CXX", "GCJ", or "OBJC".
|
|
266
|
+
# We try a few techniques and use that to set a single cache variable.
|
|
267
|
+
#
|
|
268
|
+
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
269
|
+
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
270
|
+
# dependency, and given that the user is not expected to run this macro,
|
|
271
|
+
# just rely on AC_PROG_CC.
|
|
272
|
+
AC_DEFUN([_AM_DEPENDENCIES],
|
|
273
|
+
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
274
|
+
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
275
|
+
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
276
|
+
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
277
|
+
|
|
278
|
+
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
|
|
279
|
+
[$1], CXX, [depcc="$CXX" am_compiler_list=],
|
|
280
|
+
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
281
|
+
[$1], UPC, [depcc="$UPC" am_compiler_list=],
|
|
282
|
+
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
283
|
+
[depcc="$$1" am_compiler_list=])
|
|
284
|
+
|
|
285
|
+
AC_CACHE_CHECK([dependency style of $depcc],
|
|
286
|
+
[am_cv_$1_dependencies_compiler_type],
|
|
287
|
+
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
288
|
+
# We make a subdir and do the tests there. Otherwise we can end up
|
|
289
|
+
# making bogus files that we don't know about and never remove. For
|
|
290
|
+
# instance it was reported that on HP-UX the gcc test will end up
|
|
291
|
+
# making a dummy file named `D' -- because `-MD' means `put the output
|
|
292
|
+
# in D'.
|
|
293
|
+
mkdir conftest.dir
|
|
294
|
+
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
295
|
+
# using a relative directory.
|
|
296
|
+
cp "$am_depcomp" conftest.dir
|
|
297
|
+
cd conftest.dir
|
|
298
|
+
# We will build objects and dependencies in a subdirectory because
|
|
299
|
+
# it helps to detect inapplicable dependency modes. For instance
|
|
300
|
+
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
301
|
+
# side effect of compilation, but ICC will put the dependencies in
|
|
302
|
+
# the current directory while Tru64 will put them in the object
|
|
303
|
+
# directory.
|
|
304
|
+
mkdir sub
|
|
305
|
+
|
|
306
|
+
am_cv_$1_dependencies_compiler_type=none
|
|
307
|
+
if test "$am_compiler_list" = ""; then
|
|
308
|
+
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
309
|
+
fi
|
|
310
|
+
am__universal=false
|
|
311
|
+
m4_case([$1], [CC],
|
|
312
|
+
[case " $depcc " in #(
|
|
313
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
314
|
+
esac],
|
|
315
|
+
[CXX],
|
|
316
|
+
[case " $depcc " in #(
|
|
317
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
318
|
+
esac])
|
|
319
|
+
|
|
320
|
+
for depmode in $am_compiler_list; do
|
|
321
|
+
# Setup a source with many dependencies, because some compilers
|
|
322
|
+
# like to wrap large dependency lists on column 80 (with \), and
|
|
323
|
+
# we should not choose a depcomp mode which is confused by this.
|
|
324
|
+
#
|
|
325
|
+
# We need to recreate these files for each test, as the compiler may
|
|
326
|
+
# overwrite some of them when testing with obscure command lines.
|
|
327
|
+
# This happens at least with the AIX C compiler.
|
|
328
|
+
: > sub/conftest.c
|
|
329
|
+
for i in 1 2 3 4 5 6; do
|
|
330
|
+
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
331
|
+
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
|
|
332
|
+
# Solaris 8's {/usr,}/bin/sh.
|
|
333
|
+
touch sub/conftst$i.h
|
|
334
|
+
done
|
|
335
|
+
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
336
|
+
|
|
337
|
+
# We check with `-c' and `-o' for the sake of the "dashmstdout"
|
|
338
|
+
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
339
|
+
# handle `-M -o', and we need to detect this. Also, some Intel
|
|
340
|
+
# versions had trouble with output in subdirs
|
|
341
|
+
am__obj=sub/conftest.${OBJEXT-o}
|
|
342
|
+
am__minus_obj="-o $am__obj"
|
|
343
|
+
case $depmode in
|
|
344
|
+
gcc)
|
|
345
|
+
# This depmode causes a compiler race in universal mode.
|
|
346
|
+
test "$am__universal" = false || continue
|
|
347
|
+
;;
|
|
348
|
+
nosideeffect)
|
|
349
|
+
# after this tag, mechanisms are not by side-effect, so they'll
|
|
350
|
+
# only be used when explicitly requested
|
|
351
|
+
if test "x$enable_dependency_tracking" = xyes; then
|
|
352
|
+
continue
|
|
353
|
+
else
|
|
354
|
+
break
|
|
355
|
+
fi
|
|
356
|
+
;;
|
|
357
|
+
msvisualcpp | msvcmsys)
|
|
358
|
+
# This compiler won't grok `-c -o', but also, the minuso test has
|
|
359
|
+
# not run yet. These depmodes are late enough in the game, and
|
|
360
|
+
# so weak that their functioning should not be impacted.
|
|
361
|
+
am__obj=conftest.${OBJEXT-o}
|
|
362
|
+
am__minus_obj=
|
|
363
|
+
;;
|
|
364
|
+
none) break ;;
|
|
365
|
+
esac
|
|
366
|
+
if depmode=$depmode \
|
|
367
|
+
source=sub/conftest.c object=$am__obj \
|
|
368
|
+
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
369
|
+
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
370
|
+
>/dev/null 2>conftest.err &&
|
|
371
|
+
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
372
|
+
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
373
|
+
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
374
|
+
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
375
|
+
# icc doesn't choke on unknown options, it will just issue warnings
|
|
376
|
+
# or remarks (even with -Werror). So we grep stderr for any message
|
|
377
|
+
# that says an option was ignored or not supported.
|
|
378
|
+
# When given -MP, icc 7.0 and 7.1 complain thusly:
|
|
379
|
+
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
380
|
+
# The diagnosis changed in icc 8.0:
|
|
381
|
+
# icc: Command line remark: option '-MP' not supported
|
|
382
|
+
if (grep 'ignoring option' conftest.err ||
|
|
383
|
+
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
384
|
+
am_cv_$1_dependencies_compiler_type=$depmode
|
|
385
|
+
break
|
|
386
|
+
fi
|
|
387
|
+
fi
|
|
388
|
+
done
|
|
389
|
+
|
|
390
|
+
cd ..
|
|
391
|
+
rm -rf conftest.dir
|
|
392
|
+
else
|
|
393
|
+
am_cv_$1_dependencies_compiler_type=none
|
|
394
|
+
fi
|
|
395
|
+
])
|
|
396
|
+
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|
397
|
+
AM_CONDITIONAL([am__fastdep$1], [
|
|
398
|
+
test "x$enable_dependency_tracking" != xno \
|
|
399
|
+
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|
400
|
+
])
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
# AM_SET_DEPDIR
|
|
404
|
+
# -------------
|
|
405
|
+
# Choose a directory name for dependency files.
|
|
406
|
+
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
|
|
407
|
+
AC_DEFUN([AM_SET_DEPDIR],
|
|
408
|
+
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
409
|
+
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|
410
|
+
])
|
|
411
|
+
|
|
412
|
+
|
|
413
|
+
# AM_DEP_TRACK
|
|
414
|
+
# ------------
|
|
415
|
+
AC_DEFUN([AM_DEP_TRACK],
|
|
416
|
+
[AC_ARG_ENABLE(dependency-tracking,
|
|
417
|
+
[ --disable-dependency-tracking speeds up one-time build
|
|
418
|
+
--enable-dependency-tracking do not reject slow dependency extractors])
|
|
419
|
+
if test "x$enable_dependency_tracking" != xno; then
|
|
420
|
+
am_depcomp="$ac_aux_dir/depcomp"
|
|
421
|
+
AMDEPBACKSLASH='\'
|
|
422
|
+
fi
|
|
423
|
+
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
424
|
+
AC_SUBST([AMDEPBACKSLASH])dnl
|
|
425
|
+
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
426
|
+
])
|
|
427
|
+
|
|
428
|
+
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
429
|
+
|
|
430
|
+
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
|
|
431
|
+
# Free Software Foundation, Inc.
|
|
432
|
+
#
|
|
433
|
+
# This file is free software; the Free Software Foundation
|
|
434
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
435
|
+
# with or without modifications, as long as this notice is preserved.
|
|
436
|
+
|
|
437
|
+
#serial 5
|
|
438
|
+
|
|
439
|
+
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
440
|
+
# ------------------------------
|
|
441
|
+
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
442
|
+
[{
|
|
443
|
+
# Autoconf 2.62 quotes --file arguments for eval, but not when files
|
|
444
|
+
# are listed without --file. Let's play safe and only enable the eval
|
|
445
|
+
# if we detect the quoting.
|
|
446
|
+
case $CONFIG_FILES in
|
|
447
|
+
*\'*) eval set x "$CONFIG_FILES" ;;
|
|
448
|
+
*) set x $CONFIG_FILES ;;
|
|
449
|
+
esac
|
|
450
|
+
shift
|
|
451
|
+
for mf
|
|
452
|
+
do
|
|
453
|
+
# Strip MF so we end up with the name of the file.
|
|
454
|
+
mf=`echo "$mf" | sed -e 's/:.*$//'`
|
|
455
|
+
# Check whether this is an Automake generated Makefile or not.
|
|
456
|
+
# We used to match only the files named `Makefile.in', but
|
|
457
|
+
# some people rename them; so instead we look at the file content.
|
|
458
|
+
# Grep'ing the first line is not enough: some people post-process
|
|
459
|
+
# each Makefile.in and add a new line on top of each file to say so.
|
|
460
|
+
# Grep'ing the whole file is not good either: AIX grep has a line
|
|
461
|
+
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
462
|
+
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
|
|
463
|
+
dirpart=`AS_DIRNAME("$mf")`
|
|
464
|
+
else
|
|
465
|
+
continue
|
|
466
|
+
fi
|
|
467
|
+
# Extract the definition of DEPDIR, am__include, and am__quote
|
|
468
|
+
# from the Makefile without running `make'.
|
|
469
|
+
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
|
|
470
|
+
test -z "$DEPDIR" && continue
|
|
471
|
+
am__include=`sed -n 's/^am__include = //p' < "$mf"`
|
|
472
|
+
test -z "am__include" && continue
|
|
473
|
+
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
|
|
474
|
+
# When using ansi2knr, U may be empty or an underscore; expand it
|
|
475
|
+
U=`sed -n 's/^U = //p' < "$mf"`
|
|
476
|
+
# Find all dependency output files, they are included files with
|
|
477
|
+
# $(DEPDIR) in their names. We invoke sed twice because it is the
|
|
478
|
+
# simplest approach to changing $(DEPDIR) to its actual value in the
|
|
479
|
+
# expansion.
|
|
480
|
+
for file in `sed -n "
|
|
481
|
+
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
|
|
482
|
+
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
|
483
|
+
# Make sure the directory exists.
|
|
484
|
+
test -f "$dirpart/$file" && continue
|
|
485
|
+
fdir=`AS_DIRNAME(["$file"])`
|
|
486
|
+
AS_MKDIR_P([$dirpart/$fdir])
|
|
487
|
+
# echo "creating $dirpart/$file"
|
|
488
|
+
echo '# dummy' > "$dirpart/$file"
|
|
489
|
+
done
|
|
490
|
+
done
|
|
491
|
+
}
|
|
492
|
+
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
496
|
+
# -----------------------------
|
|
497
|
+
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
498
|
+
#
|
|
499
|
+
# This code is only required when automatic dependency tracking
|
|
500
|
+
# is enabled. FIXME. This creates each `.P' file that we will
|
|
501
|
+
# need in order to bootstrap the dependency handling code.
|
|
502
|
+
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
503
|
+
[AC_CONFIG_COMMANDS([depfiles],
|
|
504
|
+
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
505
|
+
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
|
|
506
|
+
])
|
|
507
|
+
|
|
508
|
+
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
|
|
509
|
+
# Free Software Foundation, Inc.
|
|
510
|
+
#
|
|
511
|
+
# This file is free software; the Free Software Foundation
|
|
512
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
513
|
+
# with or without modifications, as long as this notice is preserved.
|
|
514
|
+
|
|
515
|
+
# serial 8
|
|
516
|
+
|
|
517
|
+
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
|
|
518
|
+
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
|
|
519
|
+
|
|
520
|
+
# Do all the work for Automake. -*- Autoconf -*-
|
|
521
|
+
|
|
522
|
+
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
|
|
523
|
+
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
|
|
524
|
+
#
|
|
525
|
+
# This file is free software; the Free Software Foundation
|
|
526
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
527
|
+
# with or without modifications, as long as this notice is preserved.
|
|
528
|
+
|
|
529
|
+
# serial 16
|
|
530
|
+
|
|
531
|
+
# This macro actually does too much. Some checks are only needed if
|
|
532
|
+
# your package does certain things. But this isn't really a big deal.
|
|
533
|
+
|
|
534
|
+
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
535
|
+
# AM_INIT_AUTOMAKE([OPTIONS])
|
|
536
|
+
# -----------------------------------------------
|
|
537
|
+
# The call with PACKAGE and VERSION arguments is the old style
|
|
538
|
+
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
539
|
+
# and VERSION should now be passed to AC_INIT and removed from
|
|
540
|
+
# the call to AM_INIT_AUTOMAKE.
|
|
541
|
+
# We support both call styles for the transition. After
|
|
542
|
+
# the next Automake release, Autoconf can make the AC_INIT
|
|
543
|
+
# arguments mandatory, and then we can depend on a new Autoconf
|
|
544
|
+
# release and drop the old call support.
|
|
545
|
+
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
546
|
+
[AC_PREREQ([2.62])dnl
|
|
547
|
+
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
548
|
+
dnl the ones we care about.
|
|
549
|
+
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
550
|
+
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
551
|
+
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
552
|
+
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
553
|
+
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
554
|
+
# is not polluted with repeated "-I."
|
|
555
|
+
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
556
|
+
# test to see if srcdir already configured
|
|
557
|
+
if test -f $srcdir/config.status; then
|
|
558
|
+
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
559
|
+
fi
|
|
560
|
+
fi
|
|
561
|
+
|
|
562
|
+
# test whether we have cygpath
|
|
563
|
+
if test -z "$CYGPATH_W"; then
|
|
564
|
+
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
565
|
+
CYGPATH_W='cygpath -w'
|
|
566
|
+
else
|
|
567
|
+
CYGPATH_W=echo
|
|
568
|
+
fi
|
|
569
|
+
fi
|
|
570
|
+
AC_SUBST([CYGPATH_W])
|
|
571
|
+
|
|
572
|
+
# Define the identity of the package.
|
|
573
|
+
dnl Distinguish between old-style and new-style calls.
|
|
574
|
+
m4_ifval([$2],
|
|
575
|
+
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
576
|
+
AC_SUBST([PACKAGE], [$1])dnl
|
|
577
|
+
AC_SUBST([VERSION], [$2])],
|
|
578
|
+
[_AM_SET_OPTIONS([$1])dnl
|
|
579
|
+
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
580
|
+
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
|
|
581
|
+
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
582
|
+
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
583
|
+
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
584
|
+
|
|
585
|
+
_AM_IF_OPTION([no-define],,
|
|
586
|
+
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
|
|
587
|
+
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
|
|
588
|
+
|
|
589
|
+
# Some tools Automake needs.
|
|
590
|
+
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
591
|
+
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
592
|
+
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
|
|
593
|
+
AM_MISSING_PROG(AUTOCONF, autoconf)
|
|
594
|
+
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
|
|
595
|
+
AM_MISSING_PROG(AUTOHEADER, autoheader)
|
|
596
|
+
AM_MISSING_PROG(MAKEINFO, makeinfo)
|
|
597
|
+
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
598
|
+
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
599
|
+
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
|
|
600
|
+
# We need awk for the "check" target. The system "awk" is bad on
|
|
601
|
+
# some platforms.
|
|
602
|
+
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
603
|
+
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
604
|
+
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
605
|
+
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
606
|
+
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
607
|
+
[_AM_PROG_TAR([v7])])])
|
|
608
|
+
_AM_IF_OPTION([no-dependencies],,
|
|
609
|
+
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
610
|
+
[_AM_DEPENDENCIES(CC)],
|
|
611
|
+
[define([AC_PROG_CC],
|
|
612
|
+
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
|
|
613
|
+
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
614
|
+
[_AM_DEPENDENCIES(CXX)],
|
|
615
|
+
[define([AC_PROG_CXX],
|
|
616
|
+
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
|
|
617
|
+
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
618
|
+
[_AM_DEPENDENCIES(OBJC)],
|
|
619
|
+
[define([AC_PROG_OBJC],
|
|
620
|
+
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
|
|
621
|
+
])
|
|
622
|
+
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
|
|
623
|
+
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
|
|
624
|
+
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
|
|
625
|
+
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
626
|
+
AC_CONFIG_COMMANDS_PRE(dnl
|
|
627
|
+
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
628
|
+
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
629
|
+
])
|
|
630
|
+
|
|
631
|
+
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
632
|
+
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
633
|
+
dnl mangled by Autoconf and run in a shell conditional statement.
|
|
634
|
+
m4_define([_AC_COMPILER_EXEEXT],
|
|
635
|
+
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
# When config.status generates a header, we must update the stamp-h file.
|
|
639
|
+
# This file resides in the same directory as the config header
|
|
640
|
+
# that is generated. The stamp files are numbered to have different names.
|
|
641
|
+
|
|
642
|
+
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
643
|
+
# loop where config.status creates the headers, so we can generate
|
|
644
|
+
# our stamp files there.
|
|
645
|
+
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
646
|
+
[# Compute $1's index in $config_headers.
|
|
647
|
+
_am_arg=$1
|
|
648
|
+
_am_stamp_count=1
|
|
649
|
+
for _am_header in $config_headers :; do
|
|
650
|
+
case $_am_header in
|
|
651
|
+
$_am_arg | $_am_arg:* )
|
|
652
|
+
break ;;
|
|
653
|
+
* )
|
|
654
|
+
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
655
|
+
esac
|
|
656
|
+
done
|
|
657
|
+
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
658
|
+
|
|
659
|
+
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
|
|
660
|
+
#
|
|
661
|
+
# This file is free software; the Free Software Foundation
|
|
662
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
663
|
+
# with or without modifications, as long as this notice is preserved.
|
|
664
|
+
|
|
665
|
+
# AM_PROG_INSTALL_SH
|
|
666
|
+
# ------------------
|
|
667
|
+
# Define $install_sh.
|
|
668
|
+
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
669
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
670
|
+
if test x"${install_sh}" != xset; then
|
|
671
|
+
case $am_aux_dir in
|
|
672
|
+
*\ * | *\ *)
|
|
673
|
+
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
674
|
+
*)
|
|
675
|
+
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
676
|
+
esac
|
|
677
|
+
fi
|
|
678
|
+
AC_SUBST(install_sh)])
|
|
679
|
+
|
|
680
|
+
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
|
|
681
|
+
#
|
|
682
|
+
# This file is free software; the Free Software Foundation
|
|
683
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
684
|
+
# with or without modifications, as long as this notice is preserved.
|
|
685
|
+
|
|
686
|
+
# serial 2
|
|
687
|
+
|
|
688
|
+
# Check whether the underlying file-system supports filenames
|
|
689
|
+
# with a leading dot. For instance MS-DOS doesn't.
|
|
690
|
+
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
691
|
+
[rm -rf .tst 2>/dev/null
|
|
692
|
+
mkdir .tst 2>/dev/null
|
|
693
|
+
if test -d .tst; then
|
|
694
|
+
am__leading_dot=.
|
|
695
|
+
else
|
|
696
|
+
am__leading_dot=_
|
|
697
|
+
fi
|
|
698
|
+
rmdir .tst 2>/dev/null
|
|
699
|
+
AC_SUBST([am__leading_dot])])
|
|
700
|
+
|
|
701
|
+
# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005
|
|
702
|
+
# Free Software Foundation, Inc.
|
|
703
|
+
#
|
|
704
|
+
# This file is free software; the Free Software Foundation
|
|
705
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
706
|
+
# with or without modifications, as long as this notice is preserved.
|
|
707
|
+
|
|
708
|
+
# serial 5
|
|
709
|
+
|
|
710
|
+
# AM_PROG_LEX
|
|
711
|
+
# -----------
|
|
712
|
+
# Autoconf leaves LEX=: if lex or flex can't be found. Change that to a
|
|
713
|
+
# "missing" invocation, for better error output.
|
|
714
|
+
AC_DEFUN([AM_PROG_LEX],
|
|
715
|
+
[AC_PREREQ(2.50)dnl
|
|
716
|
+
AC_REQUIRE([AM_MISSING_HAS_RUN])dnl
|
|
717
|
+
AC_REQUIRE([AC_PROG_LEX])dnl
|
|
718
|
+
if test "$LEX" = :; then
|
|
719
|
+
LEX=${am_missing_run}flex
|
|
720
|
+
fi])
|
|
721
|
+
|
|
722
|
+
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
723
|
+
|
|
724
|
+
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
|
|
725
|
+
#
|
|
726
|
+
# This file is free software; the Free Software Foundation
|
|
727
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
728
|
+
# with or without modifications, as long as this notice is preserved.
|
|
729
|
+
|
|
730
|
+
# serial 4
|
|
731
|
+
|
|
732
|
+
# AM_MAKE_INCLUDE()
|
|
733
|
+
# -----------------
|
|
734
|
+
# Check to see how make treats includes.
|
|
735
|
+
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
736
|
+
[am_make=${MAKE-make}
|
|
737
|
+
cat > confinc << 'END'
|
|
738
|
+
am__doit:
|
|
739
|
+
@echo this is the am__doit target
|
|
740
|
+
.PHONY: am__doit
|
|
741
|
+
END
|
|
742
|
+
# If we don't find an include directive, just comment out the code.
|
|
743
|
+
AC_MSG_CHECKING([for style of include used by $am_make])
|
|
744
|
+
am__include="#"
|
|
745
|
+
am__quote=
|
|
746
|
+
_am_result=none
|
|
747
|
+
# First try GNU make style include.
|
|
748
|
+
echo "include confinc" > confmf
|
|
749
|
+
# Ignore all kinds of additional output from `make'.
|
|
750
|
+
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
751
|
+
*the\ am__doit\ target*)
|
|
752
|
+
am__include=include
|
|
753
|
+
am__quote=
|
|
754
|
+
_am_result=GNU
|
|
755
|
+
;;
|
|
756
|
+
esac
|
|
757
|
+
# Now try BSD make style include.
|
|
758
|
+
if test "$am__include" = "#"; then
|
|
759
|
+
echo '.include "confinc"' > confmf
|
|
760
|
+
case `$am_make -s -f confmf 2> /dev/null` in #(
|
|
761
|
+
*the\ am__doit\ target*)
|
|
762
|
+
am__include=.include
|
|
763
|
+
am__quote="\""
|
|
764
|
+
_am_result=BSD
|
|
765
|
+
;;
|
|
766
|
+
esac
|
|
767
|
+
fi
|
|
768
|
+
AC_SUBST([am__include])
|
|
769
|
+
AC_SUBST([am__quote])
|
|
770
|
+
AC_MSG_RESULT([$_am_result])
|
|
771
|
+
rm -f confinc confmf
|
|
772
|
+
])
|
|
773
|
+
|
|
774
|
+
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
775
|
+
|
|
776
|
+
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
|
|
777
|
+
# Free Software Foundation, Inc.
|
|
778
|
+
#
|
|
779
|
+
# This file is free software; the Free Software Foundation
|
|
780
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
781
|
+
# with or without modifications, as long as this notice is preserved.
|
|
782
|
+
|
|
783
|
+
# serial 6
|
|
784
|
+
|
|
785
|
+
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
786
|
+
# ------------------------------
|
|
787
|
+
AC_DEFUN([AM_MISSING_PROG],
|
|
788
|
+
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
789
|
+
$1=${$1-"${am_missing_run}$2"}
|
|
790
|
+
AC_SUBST($1)])
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
# AM_MISSING_HAS_RUN
|
|
794
|
+
# ------------------
|
|
795
|
+
# Define MISSING if not defined so far and test if it supports --run.
|
|
796
|
+
# If it does, set am_missing_run to use it, otherwise, to nothing.
|
|
797
|
+
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
798
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
799
|
+
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
800
|
+
if test x"${MISSING+set}" != xset; then
|
|
801
|
+
case $am_aux_dir in
|
|
802
|
+
*\ * | *\ *)
|
|
803
|
+
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
|
804
|
+
*)
|
|
805
|
+
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
|
806
|
+
esac
|
|
807
|
+
fi
|
|
808
|
+
# Use eval to expand $SHELL
|
|
809
|
+
if eval "$MISSING --run true"; then
|
|
810
|
+
am_missing_run="$MISSING --run "
|
|
811
|
+
else
|
|
812
|
+
am_missing_run=
|
|
813
|
+
AC_MSG_WARN([`missing' script is too old or missing])
|
|
814
|
+
fi
|
|
815
|
+
])
|
|
816
|
+
|
|
817
|
+
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
|
|
818
|
+
#
|
|
819
|
+
# This file is free software; the Free Software Foundation
|
|
820
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
821
|
+
# with or without modifications, as long as this notice is preserved.
|
|
822
|
+
|
|
823
|
+
# AM_PROG_MKDIR_P
|
|
824
|
+
# ---------------
|
|
825
|
+
# Check for `mkdir -p'.
|
|
826
|
+
AC_DEFUN([AM_PROG_MKDIR_P],
|
|
827
|
+
[AC_PREREQ([2.60])dnl
|
|
828
|
+
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
829
|
+
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
|
|
830
|
+
dnl while keeping a definition of mkdir_p for backward compatibility.
|
|
831
|
+
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
|
|
832
|
+
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
|
|
833
|
+
dnl Makefile.ins that do not define MKDIR_P, so we do our own
|
|
834
|
+
dnl adjustment using top_builddir (which is defined more often than
|
|
835
|
+
dnl MKDIR_P).
|
|
836
|
+
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
|
|
837
|
+
case $mkdir_p in
|
|
838
|
+
[[\\/$]]* | ?:[[\\/]]*) ;;
|
|
839
|
+
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
|
|
840
|
+
esac
|
|
841
|
+
])
|
|
842
|
+
|
|
843
|
+
# Helper functions for option handling. -*- Autoconf -*-
|
|
844
|
+
|
|
845
|
+
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
|
|
846
|
+
#
|
|
847
|
+
# This file is free software; the Free Software Foundation
|
|
848
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
849
|
+
# with or without modifications, as long as this notice is preserved.
|
|
850
|
+
|
|
851
|
+
# serial 4
|
|
852
|
+
|
|
853
|
+
# _AM_MANGLE_OPTION(NAME)
|
|
854
|
+
# -----------------------
|
|
855
|
+
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
856
|
+
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
857
|
+
|
|
858
|
+
# _AM_SET_OPTION(NAME)
|
|
859
|
+
# ------------------------------
|
|
860
|
+
# Set option NAME. Presently that only means defining a flag for this option.
|
|
861
|
+
AC_DEFUN([_AM_SET_OPTION],
|
|
862
|
+
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
|
|
863
|
+
|
|
864
|
+
# _AM_SET_OPTIONS(OPTIONS)
|
|
865
|
+
# ----------------------------------
|
|
866
|
+
# OPTIONS is a space-separated list of Automake options.
|
|
867
|
+
AC_DEFUN([_AM_SET_OPTIONS],
|
|
868
|
+
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
869
|
+
|
|
870
|
+
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
871
|
+
# -------------------------------------------
|
|
872
|
+
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
873
|
+
AC_DEFUN([_AM_IF_OPTION],
|
|
874
|
+
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
875
|
+
|
|
876
|
+
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
877
|
+
|
|
878
|
+
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
|
|
879
|
+
# Free Software Foundation, Inc.
|
|
880
|
+
#
|
|
881
|
+
# This file is free software; the Free Software Foundation
|
|
882
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
883
|
+
# with or without modifications, as long as this notice is preserved.
|
|
884
|
+
|
|
885
|
+
# serial 5
|
|
886
|
+
|
|
887
|
+
# AM_SANITY_CHECK
|
|
888
|
+
# ---------------
|
|
889
|
+
AC_DEFUN([AM_SANITY_CHECK],
|
|
890
|
+
[AC_MSG_CHECKING([whether build environment is sane])
|
|
891
|
+
# Just in case
|
|
892
|
+
sleep 1
|
|
893
|
+
echo timestamp > conftest.file
|
|
894
|
+
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
895
|
+
# name. Accept space and tab only in the latter.
|
|
896
|
+
am_lf='
|
|
897
|
+
'
|
|
898
|
+
case `pwd` in
|
|
899
|
+
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
900
|
+
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
901
|
+
esac
|
|
902
|
+
case $srcdir in
|
|
903
|
+
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
904
|
+
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
|
|
905
|
+
esac
|
|
906
|
+
|
|
907
|
+
# Do `set' in a subshell so we don't clobber the current shell's
|
|
908
|
+
# arguments. Must try -L first in case configure is actually a
|
|
909
|
+
# symlink; some systems play weird games with the mod time of symlinks
|
|
910
|
+
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
911
|
+
# directory).
|
|
912
|
+
if (
|
|
913
|
+
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
914
|
+
if test "$[*]" = "X"; then
|
|
915
|
+
# -L didn't work.
|
|
916
|
+
set X `ls -t "$srcdir/configure" conftest.file`
|
|
917
|
+
fi
|
|
918
|
+
rm -f conftest.file
|
|
919
|
+
if test "$[*]" != "X $srcdir/configure conftest.file" \
|
|
920
|
+
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
|
|
921
|
+
|
|
922
|
+
# If neither matched, then we have a broken ls. This can happen
|
|
923
|
+
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
924
|
+
# broken ls alias from the environment. This has actually
|
|
925
|
+
# happened. Such a system could not be considered "sane".
|
|
926
|
+
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
|
|
927
|
+
alias in your environment])
|
|
928
|
+
fi
|
|
929
|
+
|
|
930
|
+
test "$[2]" = conftest.file
|
|
931
|
+
)
|
|
932
|
+
then
|
|
933
|
+
# Ok.
|
|
934
|
+
:
|
|
935
|
+
else
|
|
936
|
+
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
937
|
+
Check your system clock])
|
|
938
|
+
fi
|
|
939
|
+
AC_MSG_RESULT(yes)])
|
|
940
|
+
|
|
941
|
+
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
|
|
942
|
+
#
|
|
943
|
+
# This file is free software; the Free Software Foundation
|
|
944
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
945
|
+
# with or without modifications, as long as this notice is preserved.
|
|
946
|
+
|
|
947
|
+
# AM_PROG_INSTALL_STRIP
|
|
948
|
+
# ---------------------
|
|
949
|
+
# One issue with vendor `install' (even GNU) is that you can't
|
|
950
|
+
# specify the program used to strip binaries. This is especially
|
|
951
|
+
# annoying in cross-compiling environments, where the build's strip
|
|
952
|
+
# is unlikely to handle the host's binaries.
|
|
953
|
+
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
954
|
+
# always use install-sh in `make install-strip', and initialize
|
|
955
|
+
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
956
|
+
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
957
|
+
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
958
|
+
# Installed binaries are usually stripped using `strip' when the user
|
|
959
|
+
# run `make install-strip'. However `strip' might not be the right
|
|
960
|
+
# tool to use in cross-compilation environments, therefore Automake
|
|
961
|
+
# will honor the `STRIP' environment variable to overrule this program.
|
|
962
|
+
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
|
|
963
|
+
if test "$cross_compiling" != no; then
|
|
964
|
+
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
965
|
+
fi
|
|
966
|
+
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
967
|
+
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
968
|
+
|
|
969
|
+
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
|
|
970
|
+
#
|
|
971
|
+
# This file is free software; the Free Software Foundation
|
|
972
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
973
|
+
# with or without modifications, as long as this notice is preserved.
|
|
974
|
+
|
|
975
|
+
# serial 2
|
|
976
|
+
|
|
977
|
+
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
978
|
+
# ---------------------------
|
|
979
|
+
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
980
|
+
# This macro is traced by Automake.
|
|
981
|
+
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
982
|
+
|
|
983
|
+
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
984
|
+
# ---------------------------
|
|
985
|
+
# Public sister of _AM_SUBST_NOTMAKE.
|
|
986
|
+
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
987
|
+
|
|
988
|
+
# Check how to create a tarball. -*- Autoconf -*-
|
|
989
|
+
|
|
990
|
+
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
|
|
991
|
+
#
|
|
992
|
+
# This file is free software; the Free Software Foundation
|
|
993
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
994
|
+
# with or without modifications, as long as this notice is preserved.
|
|
995
|
+
|
|
996
|
+
# serial 2
|
|
997
|
+
|
|
998
|
+
# _AM_PROG_TAR(FORMAT)
|
|
999
|
+
# --------------------
|
|
1000
|
+
# Check how to create a tarball in format FORMAT.
|
|
1001
|
+
# FORMAT should be one of `v7', `ustar', or `pax'.
|
|
1002
|
+
#
|
|
1003
|
+
# Substitute a variable $(am__tar) that is a command
|
|
1004
|
+
# writing to stdout a FORMAT-tarball containing the directory
|
|
1005
|
+
# $tardir.
|
|
1006
|
+
# tardir=directory && $(am__tar) > result.tar
|
|
1007
|
+
#
|
|
1008
|
+
# Substitute a variable $(am__untar) that extract such
|
|
1009
|
+
# a tarball read from stdin.
|
|
1010
|
+
# $(am__untar) < result.tar
|
|
1011
|
+
AC_DEFUN([_AM_PROG_TAR],
|
|
1012
|
+
[# Always define AMTAR for backward compatibility.
|
|
1013
|
+
AM_MISSING_PROG([AMTAR], [tar])
|
|
1014
|
+
m4_if([$1], [v7],
|
|
1015
|
+
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
|
|
1016
|
+
[m4_case([$1], [ustar],, [pax],,
|
|
1017
|
+
[m4_fatal([Unknown tar format])])
|
|
1018
|
+
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
1019
|
+
# Loop over all known methods to create a tar archive until one works.
|
|
1020
|
+
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
1021
|
+
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
1022
|
+
# Do not fold the above two line into one, because Tru64 sh and
|
|
1023
|
+
# Solaris sh will not grok spaces in the rhs of `-'.
|
|
1024
|
+
for _am_tool in $_am_tools
|
|
1025
|
+
do
|
|
1026
|
+
case $_am_tool in
|
|
1027
|
+
gnutar)
|
|
1028
|
+
for _am_tar in tar gnutar gtar;
|
|
1029
|
+
do
|
|
1030
|
+
AM_RUN_LOG([$_am_tar --version]) && break
|
|
1031
|
+
done
|
|
1032
|
+
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
1033
|
+
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
1034
|
+
am__untar="$_am_tar -xf -"
|
|
1035
|
+
;;
|
|
1036
|
+
plaintar)
|
|
1037
|
+
# Must skip GNU tar: if it does not support --format= it doesn't create
|
|
1038
|
+
# ustar tarball either.
|
|
1039
|
+
(tar --version) >/dev/null 2>&1 && continue
|
|
1040
|
+
am__tar='tar chf - "$$tardir"'
|
|
1041
|
+
am__tar_='tar chf - "$tardir"'
|
|
1042
|
+
am__untar='tar xf -'
|
|
1043
|
+
;;
|
|
1044
|
+
pax)
|
|
1045
|
+
am__tar='pax -L -x $1 -w "$$tardir"'
|
|
1046
|
+
am__tar_='pax -L -x $1 -w "$tardir"'
|
|
1047
|
+
am__untar='pax -r'
|
|
1048
|
+
;;
|
|
1049
|
+
cpio)
|
|
1050
|
+
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
1051
|
+
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
1052
|
+
am__untar='cpio -i -H $1 -d'
|
|
1053
|
+
;;
|
|
1054
|
+
none)
|
|
1055
|
+
am__tar=false
|
|
1056
|
+
am__tar_=false
|
|
1057
|
+
am__untar=false
|
|
1058
|
+
;;
|
|
1059
|
+
esac
|
|
1060
|
+
|
|
1061
|
+
# If the value was cached, stop now. We just wanted to have am__tar
|
|
1062
|
+
# and am__untar set.
|
|
1063
|
+
test -n "${am_cv_prog_tar_$1}" && break
|
|
1064
|
+
|
|
1065
|
+
# tar/untar a dummy directory, and stop if the command works
|
|
1066
|
+
rm -rf conftest.dir
|
|
1067
|
+
mkdir conftest.dir
|
|
1068
|
+
echo GrepMe > conftest.dir/file
|
|
1069
|
+
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
1070
|
+
rm -rf conftest.dir
|
|
1071
|
+
if test -s conftest.tar; then
|
|
1072
|
+
AM_RUN_LOG([$am__untar <conftest.tar])
|
|
1073
|
+
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
1074
|
+
fi
|
|
1075
|
+
done
|
|
1076
|
+
rm -rf conftest.dir
|
|
1077
|
+
|
|
1078
|
+
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
1079
|
+
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
1080
|
+
AC_SUBST([am__tar])
|
|
1081
|
+
AC_SUBST([am__untar])
|
|
1082
|
+
]) # _AM_PROG_TAR
|
|
1083
|
+
|
|
1084
|
+
m4_include([m4/libtool.m4])
|
|
1085
|
+
m4_include([m4/ltoptions.m4])
|
|
1086
|
+
m4_include([m4/ltsugar.m4])
|
|
1087
|
+
m4_include([m4/ltversion.m4])
|
|
1088
|
+
m4_include([m4/lt~obsolete.m4])
|