Merge ~ahasenack/ubuntu/+source/freeradius:freeradius-3.0.26git-update into ubuntu/+source/freeradius:ubuntu/devel
- Git
- lp:~ahasenack/ubuntu/+source/freeradius
- freeradius-3.0.26git-update
- Merge into ubuntu/devel
Status: | Merged |
---|---|
Merge reported by: | Andreas Hasenack |
Merged at revision: | 5a77ac17f46b7f29f5349e9bd3210ee028e9577f |
Proposed branch: | ~ahasenack/ubuntu/+source/freeradius:freeradius-3.0.26git-update |
Merge into: | ubuntu/+source/freeradius:ubuntu/devel |
Diff against target: |
35783 lines (+8831/-7827) 723 files modified
.github/workflows/ci-deb.yml (+8/-0) .github/workflows/ci-rpm.yml (+73/-31) .github/workflows/ci.yml (+115/-20) .gitignore (+2/-0) Make.inc.in (+1/-1) Makefile (+4/-4) VERSION (+1/-1) acinclude.m4 (+1/-69) configure (+5434/-4857) configure.ac (+0/-1) debian/changelog (+7/-0) debian/control (+2/-1) debian/patches/snakeoil-certs.diff (+8/-8) dev/null (+0/-128) doc/ChangeLog (+33/-0) doc/antora/antora.yml (+1/-1) doc/antora/modules/howto/nav.adoc (+0/-6) doc/antora/modules/unlang/pages/attr.adoc (+5/-38) doc/bugs (+1/-1) doc/configuration/variables.rst (+1/-1) doc/modules/rlm_eap (+2/-13) doc/source/Doxyfile (+1/-1) doc/vendor/ascend (+1/-1) raddb/certs/Makefile (+1/-1) raddb/certs/bootstrap (+1/-1) raddb/certs/realms/README.md (+22/-1) raddb/clients.conf (+1/-1) raddb/dictionary (+1/-1) raddb/experimental.conf (+1/-1) raddb/mods-available/abfab_psk_sql (+1/-1) raddb/mods-available/always (+1/-1) raddb/mods-available/attr_filter (+1/-1) raddb/mods-available/cache (+1/-1) raddb/mods-available/cache_auth (+116/-0) raddb/mods-available/chap (+1/-1) raddb/mods-available/counter (+1/-1) raddb/mods-available/cui (+1/-1) raddb/mods-available/detail (+1/-1) raddb/mods-available/detail.example.com (+1/-1) raddb/mods-available/detail.log (+1/-1) raddb/mods-available/dhcp (+1/-1) raddb/mods-available/dhcp_files (+1/-1) raddb/mods-available/dhcp_passwd (+1/-1) raddb/mods-available/dhcp_sql (+1/-1) raddb/mods-available/dhcp_sqlippool (+1/-1) raddb/mods-available/digest (+1/-1) raddb/mods-available/dynamic_clients (+1/-1) raddb/mods-available/eap (+29/-5) raddb/mods-available/echo (+1/-1) raddb/mods-available/etc_group (+1/-1) raddb/mods-available/exec (+1/-1) raddb/mods-available/expiration (+1/-1) raddb/mods-available/expr (+7/-1) raddb/mods-available/files (+1/-1) raddb/mods-available/idn (+1/-1) raddb/mods-available/inner-eap (+1/-1) raddb/mods-available/ippool (+1/-1) raddb/mods-available/krb5 (+1/-1) raddb/mods-available/ldap (+1/-1) raddb/mods-available/ldap_google (+262/-0) raddb/mods-available/linelog (+1/-1) raddb/mods-available/logintime (+1/-1) raddb/mods-available/mac2ip (+1/-1) raddb/mods-available/mac2vlan (+1/-1) raddb/mods-available/moonshot-targeted-ids (+1/-1) raddb/mods-available/mschap (+1/-1) raddb/mods-available/opendirectory (+1/-1) raddb/mods-available/pam (+1/-1) raddb/mods-available/pap (+1/-1) raddb/mods-available/passwd (+1/-1) raddb/mods-available/perl (+1/-1) raddb/mods-available/preprocess (+1/-1) raddb/mods-available/radutmp (+1/-1) raddb/mods-available/realm (+1/-1) raddb/mods-available/redis (+1/-1) raddb/mods-available/rediswho (+1/-1) raddb/mods-available/smbpasswd (+1/-1) raddb/mods-available/smsotp (+1/-1) raddb/mods-available/sometimes (+1/-1) raddb/mods-available/sql (+1/-1) raddb/mods-available/sqlippool (+1/-1) raddb/mods-available/sradutmp (+1/-1) raddb/mods-available/totp (+1/-1) raddb/mods-available/unix (+1/-1) raddb/mods-available/unpack (+1/-1) raddb/mods-config/attr_filter/access_challenge (+1/-1) raddb/mods-config/attr_filter/access_reject (+1/-1) raddb/mods-config/attr_filter/accounting_response (+1/-1) raddb/mods-config/attr_filter/coa (+1/-1) raddb/mods-config/attr_filter/post-proxy (+1/-1) raddb/mods-config/attr_filter/pre-proxy (+1/-1) raddb/mods-config/files/accounting (+1/-1) raddb/mods-config/files/pre-proxy (+1/-1) raddb/mods-config/preprocess/hints (+1/-1) raddb/mods-config/sql/counter/mysql/dailycounter.conf (+13/-0) raddb/mods-config/sql/cui/mysql/queries.conf (+1/-1) raddb/mods-config/sql/cui/postgresql/queries.conf (+1/-1) raddb/mods-config/sql/cui/sqlite/queries.conf (+1/-1) raddb/mods-config/sql/dhcp/mssql/queries.conf (+1/-1) raddb/mods-config/sql/dhcp/mssql/schema.sql (+1/-1) raddb/mods-config/sql/dhcp/mysql/queries.conf (+1/-1) raddb/mods-config/sql/dhcp/mysql/schema.sql (+1/-1) raddb/mods-config/sql/dhcp/mysql/setup.sql (+1/-1) raddb/mods-config/sql/dhcp/oracle/queries.conf (+1/-1) raddb/mods-config/sql/dhcp/oracle/schema.sql (+1/-1) raddb/mods-config/sql/dhcp/postgresql/queries.conf (+1/-1) raddb/mods-config/sql/dhcp/postgresql/schema.sql (+1/-1) raddb/mods-config/sql/dhcp/postgresql/setup.sql (+1/-1) raddb/mods-config/sql/dhcp/sqlite/queries.conf (+1/-1) raddb/mods-config/sql/dhcp/sqlite/schema.sql (+1/-1) raddb/mods-config/sql/ippool-dhcp/mssql/queries.conf (+1/-1) raddb/mods-config/sql/ippool-dhcp/mysql/queries.conf (+1/-1) raddb/mods-config/sql/ippool-dhcp/oracle/queries.conf (+1/-1) raddb/mods-config/sql/ippool-dhcp/postgresql/queries.conf (+1/-1) raddb/mods-config/sql/ippool-dhcp/sqlite/queries.conf (+1/-1) raddb/mods-config/sql/ippool/mongo/queries.conf (+1/-1) raddb/mods-config/sql/ippool/mssql/queries.conf (+1/-1) raddb/mods-config/sql/ippool/mysql/queries.conf (+1/-1) raddb/mods-config/sql/ippool/oracle/queries.conf (+1/-1) raddb/mods-config/sql/ippool/postgresql/queries.conf (+1/-1) raddb/mods-config/sql/ippool/sqlite/queries.conf (+1/-1) raddb/mods-config/sql/main/mongo/queries.conf (+1/-1) raddb/mods-config/sql/main/mssql/process-radacct.sql (+1/-1) raddb/mods-config/sql/main/mssql/queries.conf (+5/-5) raddb/mods-config/sql/main/mssql/schema.sql (+1/-1) raddb/mods-config/sql/main/mysql/extras/wimax/queries.conf (+1/-1) raddb/mods-config/sql/main/mysql/process-radacct.sql (+1/-1) raddb/mods-config/sql/main/mysql/queries.conf (+1/-1) raddb/mods-config/sql/main/mysql/schema.sql (+1/-1) raddb/mods-config/sql/main/mysql/setup.sql (+1/-1) raddb/mods-config/sql/main/ndb/schema.sql (+1/-1) raddb/mods-config/sql/main/ndb/setup.sql (+1/-1) raddb/mods-config/sql/main/oracle/process-radacct.sql (+1/-1) raddb/mods-config/sql/main/oracle/queries.conf (+4/-4) raddb/mods-config/sql/main/oracle/schema.sql (+1/-1) raddb/mods-config/sql/main/postgresql/extras/cisco_h323_db_schema.sql (+1/-1) raddb/mods-config/sql/main/postgresql/extras/voip-postpaid.conf (+1/-1) raddb/mods-config/sql/main/postgresql/process-radacct.sql (+1/-1) raddb/mods-config/sql/main/postgresql/queries.conf (+1/-1) raddb/mods-config/sql/main/postgresql/schema.sql (+1/-1) raddb/mods-config/sql/main/postgresql/setup.sql (+1/-1) raddb/mods-config/sql/main/sqlite/process-radacct-refresh.sh (+1/-1) raddb/mods-config/sql/main/sqlite/process-radacct-schema.sql (+1/-1) raddb/mods-config/sql/main/sqlite/schema.sql (+1/-1) raddb/mods-config/sql/moonshot-targeted-ids/mysql/queries.conf (+1/-1) raddb/mods-config/sql/moonshot-targeted-ids/postgresql/queries.conf (+1/-1) raddb/mods-config/sql/moonshot-targeted-ids/sqlite/queries.conf (+1/-1) raddb/policy.d/abfab-tr (+1/-1) raddb/policy.d/accounting (+4/-0) raddb/policy.d/rfc7542 (+1/-1) raddb/proxy.conf (+4/-1) raddb/radiusd.conf.in (+1/-1) raddb/radrelay.conf.in (+1/-1) raddb/sites-available/abfab-tls (+1/-1) raddb/sites-available/abfab-tr-idp (+1/-1) raddb/sites-available/buffered-sql (+1/-1) raddb/sites-available/challenge (+1/-1) raddb/sites-available/channel_bindings (+1/-1) raddb/sites-available/control-socket (+1/-1) raddb/sites-available/copy-acct-to-home-server (+1/-1) raddb/sites-available/decoupled-accounting (+1/-1) raddb/sites-available/default (+1/-1) raddb/sites-available/dhcp (+1/-1) raddb/sites-available/dynamic-clients (+1/-1) raddb/sites-available/example (+1/-1) raddb/sites-available/google-ldap-auth (+225/-0) raddb/sites-available/inner-tunnel (+1/-1) raddb/sites-available/proxy-inner-tunnel (+1/-1) raddb/sites-available/robust-proxy-accounting (+1/-1) raddb/sites-available/status (+1/-1) raddb/sites-available/tls (+38/-30) raddb/sites-available/totp (+1/-1) raddb/sites-available/virtual.example.com (+1/-1) raddb/sites-available/vmps (+1/-1) raddb/templates.conf (+1/-1) raddb/trigger.conf (+1/-1) raddb/vmpsd.conf.in (+1/-1) redhat/freeradius.spec (+1/-1) scripts/ci/eapol_test-build.sh (+15/-3) scripts/ci/eapol_test/config_freebsd (+9/-3) scripts/ci/eapol_test/config_linux (+9/-3) scripts/ci/eapol_test/config_osx (+4/-3) scripts/ci/ldap-setup.sh (+51/-0) scripts/ci/ldap/slapd.conf (+51/-0) scripts/ci/ldap/slapd2.conf (+61/-0) scripts/ci/ldap2-setup.sh (+63/-0) scripts/ci/mysql-setup.sh (+19/-0) scripts/ci/postgresql-setup.sh (+26/-0) scripts/clients.pl (+1/-1) scripts/collectd/radsniff_types.db (+1/-1) scripts/cryptpasswd.in (+1/-1) scripts/dhcp/rlm_iscfixed2ippool (+1/-1) scripts/exec-program-wait (+1/-1) scripts/libtool.mk (+1/-1) scripts/min-includes.pl (+1/-1) scripts/radiusd.sh (+1/-1) scripts/sql/align_sql_pools.pl (+1/-1) scripts/sql/generate_pool_addresses.pl (+1/-1) scripts/sql/radsqlrelay (+1/-1) scripts/sql/rlm_sqlippool_tool (+1/-1) share/Makefile (+1/-1) share/attrnew.pl (+1/-1) share/attrsort.pl (+1/-1) share/backref.pl (+1/-1) share/dictionary (+2/-1) share/dictionary.3com (+1/-1) share/dictionary.3gpp (+1/-1) share/dictionary.3gpp2 (+1/-1) share/dictionary.actelis (+1/-1) share/dictionary.aerohive (+1/-1) share/dictionary.airespace (+1/-1) share/dictionary.alcatel (+1/-1) share/dictionary.alcatel-lucent.aaa (+1/-1) share/dictionary.alcatel.sr (+1/-1) share/dictionary.alteon (+1/-1) share/dictionary.altiga (+1/-1) share/dictionary.alvarion (+1/-1) share/dictionary.alvarion.wimax.v2_2 (+1/-1) share/dictionary.apc (+1/-1) share/dictionary.aptis (+1/-1) share/dictionary.arbor (+1/-1) share/dictionary.arista (+1/-1) share/dictionary.aruba (+5/-2) share/dictionary.ascend (+1/-1) share/dictionary.ascend.illegal (+1/-1) share/dictionary.asn (+1/-1) share/dictionary.audiocodes (+1/-1) share/dictionary.avaya (+1/-1) share/dictionary.azaire (+1/-1) share/dictionary.bigswitch (+1/-1) share/dictionary.bintec (+1/-1) share/dictionary.bluecoat (+1/-1) share/dictionary.bristol (+1/-1) share/dictionary.bskyb (+1/-1) share/dictionary.bt (+1/-1) share/dictionary.cablelabs (+1/-1) share/dictionary.cabletron (+1/-1) share/dictionary.cambium (+1/-1) share/dictionary.chillispot (+1/-1) share/dictionary.cisco (+1/-1) share/dictionary.cisco.asa (+1/-1) share/dictionary.cisco.bbsm (+1/-1) share/dictionary.cisco.vpn3000 (+1/-1) share/dictionary.cisco.vpn5000 (+1/-1) share/dictionary.citrix (+1/-1) share/dictionary.clavister (+1/-1) share/dictionary.columbia_university (+1/-1) share/dictionary.cosine (+1/-1) share/dictionary.dhcp (+1/-1) share/dictionary.digium (+1/-1) share/dictionary.dlink (+1/-1) share/dictionary.dragonwave (+1/-1) share/dictionary.efficientip (+1/-1) share/dictionary.ericsson (+1/-1) share/dictionary.erx (+2/-2) share/dictionary.extreme (+1/-1) share/dictionary.f5 (+1/-1) share/dictionary.force10 (+1/-1) share/dictionary.fortinet (+1/-1) share/dictionary.foundry (+1/-1) share/dictionary.freedhcp (+1/-1) share/dictionary.freeradius (+1/-1) share/dictionary.freeradius.internal (+1/-1) share/dictionary.freeswitch (+1/-1) share/dictionary.gandalf (+1/-1) share/dictionary.garderos (+1/-1) share/dictionary.h3c (+1/-1) share/dictionary.hillstone (+1/-1) share/dictionary.hp (+1/-1) share/dictionary.huawei (+7/-5) share/dictionary.iana (+1/-1) share/dictionary.ipunplugged (+1/-1) share/dictionary.issanni (+1/-1) share/dictionary.itk (+1/-1) share/dictionary.juniper (+1/-1) share/dictionary.kineto (+1/-1) share/dictionary.lucent (+1/-1) share/dictionary.meinberg (+1/-1) share/dictionary.mellanox (+18/-0) share/dictionary.merit (+1/-1) share/dictionary.meru (+1/-1) share/dictionary.microsemi (+1/-1) share/dictionary.microsoft (+1/-1) share/dictionary.mikrotik (+1/-1) share/dictionary.motorola (+1/-1) share/dictionary.motorola.illegal (+1/-1) share/dictionary.motorola.wimax (+1/-1) share/dictionary.navini (+1/-1) share/dictionary.networkphysics (+1/-1) share/dictionary.nexans (+1/-1) share/dictionary.nokia (+1/-1) share/dictionary.nokia.conflict (+1/-1) share/dictionary.nomadix (+1/-1) share/dictionary.nortel (+2/-2) share/dictionary.openser (+1/-1) share/dictionary.packeteer (+1/-1) share/dictionary.paloalto (+2/-2) share/dictionary.patton (+1/-1) share/dictionary.pica8 (+1/-1) share/dictionary.propel (+1/-1) share/dictionary.prosoft (+1/-1) share/dictionary.proxim (+1/-1) share/dictionary.purewave (+1/-1) share/dictionary.quiconnect (+1/-1) share/dictionary.quintum (+1/-1) share/dictionary.rcntec (+1/-1) share/dictionary.redcreek (+1/-1) share/dictionary.rfc2865 (+1/-1) share/dictionary.rfc2866 (+1/-1) share/dictionary.rfc2867 (+1/-1) share/dictionary.rfc2868 (+1/-1) share/dictionary.rfc2869 (+1/-1) share/dictionary.rfc3162 (+1/-1) share/dictionary.rfc3576 (+1/-1) share/dictionary.rfc3580 (+1/-1) share/dictionary.rfc4072 (+1/-1) share/dictionary.rfc4372 (+1/-1) share/dictionary.rfc4603 (+1/-1) share/dictionary.rfc4675 (+1/-1) share/dictionary.rfc4679 (+1/-1) share/dictionary.rfc4818 (+1/-1) share/dictionary.rfc4849 (+1/-1) share/dictionary.rfc5090 (+1/-1) share/dictionary.rfc5176 (+1/-1) share/dictionary.rfc5447 (+1/-1) share/dictionary.rfc5580 (+1/-1) share/dictionary.rfc5607 (+1/-1) share/dictionary.rfc5904 (+1/-1) share/dictionary.rfc6519 (+1/-1) share/dictionary.rfc6572 (+1/-1) share/dictionary.rfc7268 (+1/-1) share/dictionary.rfc7499 (+1/-1) share/dictionary.rfc8045 (+1/-1) share/dictionary.riverbed (+1/-1) share/dictionary.riverstone (+1/-1) share/dictionary.roaringpenguin (+1/-1) share/dictionary.sg (+1/-1) share/dictionary.shiva (+1/-1) share/dictionary.siemens (+1/-1) share/dictionary.slipstream (+1/-1) share/dictionary.sofaware (+1/-1) share/dictionary.softbank (+1/-1) share/dictionary.sonicwall (+1/-1) share/dictionary.springtide (+1/-1) share/dictionary.surfnet (+1/-1) share/dictionary.symbol (+1/-1) share/dictionary.t_systems_nova (+1/-1) share/dictionary.telebit (+1/-1) share/dictionary.telkom (+1/-1) share/dictionary.terena (+1/-1) share/dictionary.trapeze (+1/-1) share/dictionary.tripplite (+2/-2) share/dictionary.tropos (+1/-1) share/dictionary.ukerna (+1/-1) share/dictionary.unix (+1/-1) share/dictionary.usr (+1/-1) share/dictionary.usr.illegal (+1/-1) share/dictionary.utstarcom (+1/-1) share/dictionary.valemount (+1/-1) share/dictionary.vasexperts (+1/-1) share/dictionary.vqp (+1/-1) share/dictionary.walabi (+1/-1) share/dictionary.waverider (+1/-1) share/dictionary.wichorus (+1/-1) share/dictionary.wifialliance (+1/-1) share/dictionary.wimax (+1/-1) share/dictionary.wimax.alvarion (+1/-1) share/dictionary.wimax.wichorus (+1/-1) share/dictionary.wispr (+1/-1) share/dictionary.xedia (+1/-1) share/dictionary.xylan (+1/-1) share/dictionary.yubico (+1/-1) share/dictionary.zte (+1/-1) share/dictionary.zyxel (+1/-1) share/format.pl (+1/-1) src/include/all.mk (+1/-1) src/include/atomic_queue.h (+2/-2) src/include/automask.h (+1/-1) src/include/base64.h (+1/-1) src/include/build-radpaths-h.in (+1/-1) src/include/build.h (+8/-3) src/include/channel.h (+2/-2) src/include/clients.h (+1/-1) src/include/conffile.h (+2/-2) src/include/connection.h (+2/-2) src/include/detail.h (+2/-2) src/include/dhcp.h (+2/-2) src/include/event.h (+2/-2) src/include/exfile.h (+2/-2) src/include/features-h (+0/-14) src/include/hash.h (+2/-2) src/include/heap.h (+2/-2) src/include/libradius.h (+2/-7) src/include/listen.h (+1/-20) src/include/log.h (+2/-2) src/include/map.h (+2/-2) src/include/md4.h (+47/-3) src/include/md5.h (+30/-3) src/include/missing-h (+2/-2) src/include/modcall.h (+1/-1) src/include/modpriv.h (+1/-1) src/include/modules.h (+2/-2) src/include/net.h (+1/-1) src/include/openssl3.h (+109/-0) src/include/packet.h (+2/-2) src/include/parser.h (+2/-2) src/include/pcap.h (+1/-1) src/include/process.h (+7/-2) src/include/protocol.h (+2/-2) src/include/rad_assert.h (+2/-2) src/include/radclient.h (+1/-1) src/include/radius.h (+1/-1) src/include/radiusd.h (+2/-9) src/include/radsniff.h (+2/-2) src/include/radutmp.h (+2/-2) src/include/realms.h (+3/-13) src/include/regex.h (+2/-2) src/include/soh.h (+2/-2) src/include/state.h (+2/-2) src/include/stats.h (+2/-2) src/include/sysutmp.h (+2/-2) src/include/tcp.h (+2/-2) src/include/threads.h (+1/-1) src/include/tls-h (+3/-4) src/include/tmpl.h (+2/-2) src/include/token.h (+2/-2) src/include/udpfromto.h (+2/-2) src/include/xlat.h (+2/-2) src/lib/all.mk (+1/-1) src/lib/atomic_queue.c (+2/-2) src/lib/base64.c (+1/-1) src/lib/cbuff.c (+1/-1) src/lib/cursor.c (+1/-1) src/lib/debug.c (+2/-0) src/lib/dict.c (+2/-2) src/lib/event.c (+2/-2) src/lib/fifo.c (+2/-2) src/lib/filters.c (+2/-2) src/lib/getaddrinfo.c (+1/-1) src/lib/hash.c (+2/-2) src/lib/heap.c (+1/-1) src/lib/hmacmd5.c (+4/-2) src/lib/hmacsha1.c (+5/-2) src/lib/isaac.c (+1/-1) src/lib/log.c (+2/-2) src/lib/md4.c (+3/-2) src/lib/md5.c (+3/-2) src/lib/misc.c (+2/-2) src/lib/missing.c (+2/-2) src/lib/net.c (+1/-1) src/lib/packet.c (+2/-2) src/lib/pair.c (+2/-2) src/lib/pcap.c (+1/-1) src/lib/print.c (+2/-2) src/lib/radius.c (+38/-14) src/lib/rbtree.c (+2/-2) src/lib/sha1.c (+2/-2) src/lib/snprintf.c (+1/-1) src/lib/snprintf.h (+1/-1) src/lib/socket.c (+1/-1) src/lib/strlcat.c (+2/-2) src/lib/strlcpy.c (+2/-2) src/lib/tcp.c (+2/-2) src/lib/token.c (+2/-2) src/lib/udpfromto.c (+2/-2) src/lib/value.c (+2/-2) src/lib/version.c (+2/-2) src/main/acct.c (+2/-2) src/main/auth.c (+2/-2) src/main/cb.c (+6/-6) src/main/channel.c (+2/-2) src/main/checkrad.in (+1/-1) src/main/client.c (+2/-2) src/main/collectd.c (+1/-1) src/main/command.c (+6/-2) src/main/conffile.c (+2/-2) src/main/connection.c (+1/-1) src/main/crypt.c (+1/-1) src/main/detail.c (+2/-2) src/main/evaluate.c (+2/-2) src/main/exec.c (+2/-2) src/main/exfile.c (+1/-1) src/main/files.c (+2/-2) src/main/listen.c (+2/-501) src/main/log.c (+2/-2) src/main/mainconfig.c (+2/-12) src/main/map.c (+2/-2) src/main/modcall.c (+2/-2) src/main/modules.c (+3/-3) src/main/pair.c (+2/-2) src/main/parser.c (+2/-2) src/main/process.c (+40/-229) src/main/radattr.c (+2/-2) src/main/radclient.c (+4/-2) src/main/radiusd.c (+2/-9) src/main/radmin.c (+2/-2) src/main/radsniff.c (+2/-2) src/main/radtest.in (+1/-1) src/main/radwho.c (+2/-2) src/main/radzap (+1/-1) src/main/realms.c (+3/-109) src/main/regex.c (+2/-2) src/main/session.c (+2/-2) src/main/soh.c (+2/-2) src/main/state.c (+2/-2) src/main/stats.c (+2/-2) src/main/threads.c (+2/-2) src/main/tls.c (+258/-73) src/main/tls_listen.c (+29/-438) src/main/tmpl.c (+2/-2) src/main/unittest.c (+2/-2) src/main/util.c (+2/-2) src/main/version.c (+2/-10) src/main/xlat.c (+50/-5) src/mkinstalldirs (+1/-1) src/modules/proto_dhcp/dhcp.c (+2/-2) src/modules/proto_dhcp/dhcpclient.c (+2/-2) src/modules/proto_dhcp/dhcpd.c (+1/-1) src/modules/proto_dhcp/rlm_dhcp.c (+2/-2) src/modules/proto_vmps/vmps.c (+2/-2) src/modules/proto_vmps/vqp.c (+2/-2) src/modules/proto_vmps/vqp.h (+2/-2) src/modules/rlm_always/rlm_always.c (+2/-2) src/modules/rlm_attr_filter/rlm_attr_filter.c (+2/-2) src/modules/rlm_cache/drivers/rlm_cache_memcached/rlm_cache_memcached.c (+1/-1) src/modules/rlm_cache/drivers/rlm_cache_rbtree/rlm_cache_rbtree.c (+1/-1) src/modules/rlm_cache/rlm_cache.c (+2/-2) src/modules/rlm_cache/rlm_cache.h (+2/-2) src/modules/rlm_cache/serialize.c (+2/-2) src/modules/rlm_cache/serialize.h (+2/-2) src/modules/rlm_chap/rlm_chap.c (+2/-2) src/modules/rlm_couchbase/couchbase.c (+2/-2) src/modules/rlm_couchbase/couchbase.h (+2/-2) src/modules/rlm_couchbase/jsonc_missing.c (+2/-2) src/modules/rlm_couchbase/jsonc_missing.h (+2/-2) src/modules/rlm_couchbase/mod.c (+2/-2) src/modules/rlm_couchbase/mod.h (+2/-2) src/modules/rlm_couchbase/rlm_couchbase.c (+2/-2) src/modules/rlm_counter/rad_counter (+1/-1) src/modules/rlm_counter/rlm_counter.c (+2/-2) src/modules/rlm_cram/dictionary.sandy (+1/-1) src/modules/rlm_cram/rlm_cram.c (+2/-2) src/modules/rlm_detail/rlm_detail.c (+2/-2) src/modules/rlm_digest/rlm_digest.c (+2/-2) src/modules/rlm_dynamic_clients/rlm_dynamic_clients.c (+2/-2) src/modules/rlm_eap/eap.c (+2/-2) src/modules/rlm_eap/eap.h (+2/-2) src/modules/rlm_eap/libeap/comp128.c (+1/-1) src/modules/rlm_eap/libeap/eap_chbind.c (+2/-2) src/modules/rlm_eap/libeap/eap_chbind.h (+2/-2) src/modules/rlm_eap/libeap/eap_sim.h (+2/-2) src/modules/rlm_eap/libeap/eap_tls.c (+17/-2) src/modules/rlm_eap/libeap/eap_tls.h (+2/-2) src/modules/rlm_eap/libeap/eap_types.h (+2/-2) src/modules/rlm_eap/libeap/eapcommon.c (+2/-2) src/modules/rlm_eap/libeap/eapcrypto.c (+2/-2) src/modules/rlm_eap/libeap/eapsimlib.c (+54/-19) src/modules/rlm_eap/libeap/fips186prf.c (+2/-2) src/modules/rlm_eap/libeap/mppe_keys.c (+12/-65) src/modules/rlm_eap/mem.c (+2/-2) src/modules/rlm_eap/radeapclient.c (+3/-3) src/modules/rlm_eap/rlm_eap.c (+2/-2) src/modules/rlm_eap/rlm_eap.h (+2/-2) src/modules/rlm_eap/types/rlm_eap_fast/configure.ac (+1/-1) src/modules/rlm_eap/types/rlm_eap_fast/eap_fast.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_fast/eap_fast.h (+2/-2) src/modules/rlm_eap/types/rlm_eap_fast/eap_fast_crypto.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_fast/rlm_eap_fast.c (+4/-3) src/modules/rlm_eap/types/rlm_eap_gtc/rlm_eap_gtc.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_md5/eap_md5.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_md5/eap_md5.h (+1/-1) src/modules/rlm_eap/types/rlm_eap_md5/rlm_eap_md5.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_mschapv2/eap_mschapv2.h (+1/-1) src/modules/rlm_eap/types/rlm_eap_mschapv2/rlm_eap_mschapv2.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_peap/eap_peap.h (+2/-2) src/modules/rlm_eap/types/rlm_eap_peap/peap.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_peap/rlm_eap_peap.c (+4/-24) src/modules/rlm_eap/types/rlm_eap_pwd/configure.ac (+1/-1) src/modules/rlm_eap/types/rlm_eap_pwd/eap_pwd.c (+76/-33) src/modules/rlm_eap/types/rlm_eap_pwd/eap_pwd.h (+1/-1) src/modules/rlm_eap/types/rlm_eap_pwd/rlm_eap_pwd.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_sim/configure.ac (+1/-1) src/modules/rlm_eap/types/rlm_eap_sim/rlm_eap_sim.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c (+2/-2) src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.h (+2/-2) src/modules/rlm_eap/types/rlm_eap_tnc/rlm_eap_tnc.c (+1/-1) src/modules/rlm_eap/types/rlm_eap_ttls/eap_ttls.h (+2/-2) src/modules/rlm_eap/types/rlm_eap_ttls/rlm_eap_ttls.c (+4/-24) src/modules/rlm_eap/types/rlm_eap_ttls/ttls.c (+2/-2) src/modules/rlm_example/other.c (+2/-2) src/modules/rlm_example/other.h (+1/-1) src/modules/rlm_example/rlm_example.c (+2/-2) src/modules/rlm_exec/rlm_exec.c (+2/-2) src/modules/rlm_expiration/rlm_expiration.c (+2/-2) src/modules/rlm_expr/paircmp.c (+2/-2) src/modules/rlm_expr/rlm_expr.c (+46/-2) src/modules/rlm_expr/rlm_expr.h (+1/-1) src/modules/rlm_files/rlm_files.c (+2/-2) src/modules/rlm_idn/rlm_idn.c (+2/-2) src/modules/rlm_ippool/all.mk.in (+1/-1) src/modules/rlm_ippool/rlm_ippool.c (+2/-2) src/modules/rlm_ippool/rlm_ippool.mk (+1/-1) src/modules/rlm_ippool/rlm_ippool_tool.c (+2/-2) src/modules/rlm_ippool/rlm_ippool_tool.mk (+1/-1) src/modules/rlm_krb5/krb5.c (+2/-2) src/modules/rlm_krb5/krb5.h (+2/-2) src/modules/rlm_krb5/rlm_krb5.c (+2/-2) src/modules/rlm_ldap/attrmap.c (+1/-1) src/modules/rlm_ldap/clients.c (+1/-1) src/modules/rlm_ldap/edir.c (+2/-2) src/modules/rlm_ldap/groups.c (+1/-1) src/modules/rlm_ldap/ldap.c (+1/-1) src/modules/rlm_ldap/ldap.h (+2/-1) src/modules/rlm_ldap/rlm_ldap.c (+2/-2) src/modules/rlm_ldap/sasl.c (+9/-3) src/modules/rlm_linelog/rlm_linelog.c (+2/-2) src/modules/rlm_logintime/rlm_logintime.c (+2/-2) src/modules/rlm_logintime/timestr.c (+2/-2) src/modules/rlm_mschap/auth_wbclient.c (+2/-2) src/modules/rlm_mschap/auth_wbclient.h (+1/-1) src/modules/rlm_mschap/mschap.c (+2/-2) src/modules/rlm_mschap/mschap.h (+1/-1) src/modules/rlm_mschap/opendir.c (+1/-1) src/modules/rlm_mschap/rlm_mschap.c (+43/-8) src/modules/rlm_mschap/rlm_mschap.h (+3/-1) src/modules/rlm_mschap/smbdes.c (+1/-1) src/modules/rlm_mschap/smbdes.h (+1/-1) src/modules/rlm_mschap/smbencrypt.c (+1/-1) src/modules/rlm_opendirectory/rlm_opendirectory.c (+1/-1) src/modules/rlm_otp/extern.h (+2/-2) src/modules/rlm_otp/otp.h (+2/-2) src/modules/rlm_otp/otp_mppe.c (+16/-4) src/modules/rlm_otp/otp_mppe.h (+2/-2) src/modules/rlm_otp/otp_pw_valid.c (+2/-2) src/modules/rlm_otp/otp_pw_valid.h (+2/-2) src/modules/rlm_otp/otp_pwe.c (+2/-10) src/modules/rlm_otp/otp_radstate.c (+5/-8) src/modules/rlm_otp/otp_util.c (+2/-2) src/modules/rlm_otp/rlm_otp.c (+2/-2) src/modules/rlm_pam/rlm_pam.c (+2/-2) src/modules/rlm_pap/rlm_pap.c (+11/-2) src/modules/rlm_passwd/rlm_passwd.c (+2/-2) src/modules/rlm_perl/rlm_perl.c (+2/-2) src/modules/rlm_preprocess/rlm_preprocess.c (+2/-2) src/modules/rlm_python/example.py (+1/-1) src/modules/rlm_python/prepaid.py (+1/-1) src/modules/rlm_python/radiusd.py (+1/-1) src/modules/rlm_python/radiusd_test.py (+1/-1) src/modules/rlm_python/rlm_python.c (+2/-2) src/modules/rlm_python3/configure (+3/-1) src/modules/rlm_python3/configure.ac (+5/-1) src/modules/rlm_python3/example.py (+1/-1) src/modules/rlm_python3/prepaid.py (+1/-1) src/modules/rlm_python3/radiusd.py (+1/-1) src/modules/rlm_python3/rlm_python3.c (+2/-2) src/modules/rlm_radutmp/rlm_radutmp.c (+2/-2) src/modules/rlm_realm/rlm_realm.c (+2/-2) src/modules/rlm_realm/trustrouter.c (+1/-1) src/modules/rlm_realm/trustrouter.h (+1/-1) src/modules/rlm_redis/rlm_redis.c (+2/-2) src/modules/rlm_redis/rlm_redis.h (+2/-2) src/modules/rlm_rediswho/rlm_rediswho.c (+2/-2) src/modules/rlm_replicate/rlm_replicate.c (+2/-2) src/modules/rlm_rest/rest.c (+2/-2) src/modules/rlm_rest/rest.h (+2/-2) src/modules/rlm_rest/rlm_rest.c (+2/-2) src/modules/rlm_ruby/rlm_ruby.c (+2/-2) src/modules/rlm_securid/rlm_securid.c (+1/-1) src/modules/rlm_smsotp/rlm_smsotp.c (+2/-2) src/modules/rlm_soh/rlm_soh.c (+2/-2) src/modules/rlm_sometimes/rlm_sometimes.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_db2/rlm_sql_db2.c (+8/-8) src/modules/rlm_sql/drivers/rlm_sql_firebird/rlm_sql_firebird.c (+1/-1) src/modules/rlm_sql/drivers/rlm_sql_firebird/sql_fbapi.c (+1/-1) src/modules/rlm_sql/drivers/rlm_sql_firebird/sql_fbapi.h (+1/-1) src/modules/rlm_sql/drivers/rlm_sql_freetds/rlm_sql_freetds.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_iodbc/rlm_sql_iodbc.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_mongo/rlm_sql_mongo.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_mysql/rlm_sql_mysql.c (+13/-4) src/modules/rlm_sql/drivers/rlm_sql_null/rlm_sql_null.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_oracle/rlm_sql_oracle.c (+1/-1) src/modules/rlm_sql/drivers/rlm_sql_postgresql/rlm_sql_postgresql.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_postgresql/sql_postgresql.h (+1/-1) src/modules/rlm_sql/drivers/rlm_sql_sqlite/rlm_sql_sqlite.c (+2/-2) src/modules/rlm_sql/drivers/rlm_sql_unixodbc/rlm_sql_unixodbc.c (+1/-1) src/modules/rlm_sql/rlm_sql.c (+2/-2) src/modules/rlm_sql/rlm_sql.h (+2/-2) src/modules/rlm_sql/sql.c (+2/-2) src/modules/rlm_sql_map/configure.ac (+1/-1) src/modules/rlm_sql_map/rlm_sql_map.c (+2/-2) src/modules/rlm_sqlcounter/rlm_sqlcounter.c (+2/-2) src/modules/rlm_sqlhpwippool/rlm_sqlhpwippool.c (+2/-2) src/modules/rlm_sqlippool/configure.ac (+1/-1) src/modules/rlm_sqlippool/rlm_sqlippool.c (+12/-10) src/modules/rlm_test/rlm_test.c (+2/-2) src/modules/rlm_totp/rlm_totp.c (+2/-2) src/modules/rlm_unbound/rlm_unbound.c (+2/-2) src/modules/rlm_unix/rlm_unix.c (+2/-2) src/modules/rlm_unpack/rlm_unpack.c (+2/-2) src/modules/rlm_utf8/rlm_utf8.c (+2/-2) src/modules/rlm_wimax/rlm_wimax.c (+12/-2) src/modules/rlm_yubikey/decrypt.c (+1/-1) src/modules/rlm_yubikey/rlm_yubikey.c (+2/-2) src/modules/rlm_yubikey/validate.c (+1/-1) src/tests/Makefile (+22/-11) src/tests/config/test.conf (+1/-1) src/tests/eapsim-02/check.gdb (+1/-1) src/tests/eapsim-03/radiusd-example.txt (+1/-1) src/tests/keywords/md4 (+58/-0) src/tests/keywords/xlat-concat (+40/-0) src/tests/map/map_unit.c (+2/-2) src/tests/modules/ldap/all.mk (+0/-3) src/tests/modules/ldap/module.conf (+3/-3) src/tests/radiusd.mk (+1/-1) src/tests/salt-test-server/salt/ldap/base.ldif (+5/-9) src/tests/salt-test-server/salt/ldap/base2.ldif (+81/-0) src/tests/salt-test-server/salt/mysql/schema.sql (+1/-1) src/tests/salt-test-server/salt/mysql/setup.sql (+1/-1) src/tests/salt-test-server/salt/postgres/schema.sql (+1/-1) src/tests/salt-test-server/salt/postgres/setup.sql (+1/-1) src/tests/sql_nas_table/config/radiusd.conf (+1/-1) src/tests/unit/condition.txt (+1/-1) suse/freeradius.spec (+1/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Athos Ribeiro (community) | Approve | ||
Canonical Server Core Reviewers | Pending | ||
Review via email: mp+415870@code.launchpad.net |
Commit message
Description of the change
This is us going ahead of debian with a snapshot of freeradius upstream.
I first worked on packaging 3.0.25 (the latest upstream release) in another branch[1], and saw that there were many more openssl3 patches scattered around in the upstream[2] v3.0.x branch. Even though the patches I had in my 3.0.25 branch were picked from there, there were many more in random commits. That, plus upstream's statement that it would be best to go with 3.0.26[4] made me do this.
To do so, I:
- ran: git archive --format=tar --prefix=
- massaged that into dfsg, by following the exclusion rules from debian/copyright
I chose the version as 3.0.26 because that's the upcoming release, therefore I used "~" to downgrade our tarball. I could have used 3.0.25+git, but VERSION in the source tree is 3.0.26 already (see VERSION file). Anyway, I hope this is temporary, since upstream stated the release of 3.0.26 was imminent[3].
PPA: https:/
I ran the moonshot DEP8 test that triggered all of this, and it passed[5]
I also ran many eapol_test commands (from the eapoltest package) following http://
I would like to, as a follow-up to this branch, add some more dep8 tests.
And, of course, I'll keep a watchful eye on the upstream 3.0.26 release. Hopefully it happens before our feature freeze, or if it's later, then the delta between that and what we have here is small enough to allow an upload past FFe, or an easy FFe.
1. https:/
2. https:/
3. https:/
4. https:/
5. https:/
Athos Ribeiro (athos-ribeiro) wrote : | # |
Athos Ribeiro (athos-ribeiro) wrote : | # |
Hi Andreas, great work!
There is a typo in a commit message and in the changelogs. Other than that, there is also a suggestion to assess the inclusion of a new upstream commit (feel free to ignore).
There is no need to block you on the typo fix, so I will go ahead and approve this one. See the details below for the actual review contents.
The changelog entry says "* New upstream pre-2.0.36 checkout". I suppose this is a typo and should say "* New upstream pre-2.0.26 checkout" (the relevant commit message also contains the typo).
Also, note that 2 additional commits have been added to the upstream branch being packaged here. While it would not be productive to keep pulling things in during the review process, you may want to verify if
https:/
is needed, since it is dealing with memory leaks.
I also checked the tarball included for this one does refer to the upstream reference in question with the dfsg massage mentioned.
Andreas Hasenack (ahasenack) wrote : | # |
Thanks Athos! Unfortunately I lost a race with debian and will have to rebase this PR on top of debian's 3.0.25. I should have it shortly, and then I'll also address/look at your remarks.
- 77677cd... by Andreas Hasenack
-
* New upstream git snapshot pre-3.0.26
- 80af3b9... by Andreas Hasenack
-
* d/p/snakeoil-
certs.diff: refresh - 545a05d... by Andreas Hasenack
-
changelog
- 68f03b3... by Andreas Hasenack
-
update-maintainer
Andreas Hasenack (ahasenack) wrote : | # |
I updated the tarball, including those two commits you spotted, and reuploaded to the ppa. I'll run some of the tests again, just to be sure.
Andreas Hasenack (ahasenack) wrote : | # |
Since those commits were on rlm_mschap, I tested mschap auth with radtest. I thought I had done it before, but maybe not (there are many authentication mechanisms).
Turns out mschap is core dumping with this 3.0.26 snapshot and openssl3 in jammy. With 3.0.21 and libssl1.1, it works. Can't tell yet if the problem is 3.0.26, or openssl3, or a combination.
I'll file a bug upstream, and one in LP, but I think we should proceed with this upload. What's more urgent now is to add DEP8 tests, and I will file a bug to at least have these simple radtest tests I'm doing converted into DEP8. I filed https:/
Andreas Hasenack (ahasenack) wrote : | # |
Submitted upstream issue: https:/
Athos Ribeiro (athos-ribeiro) wrote : | # |
> Since those commits were on rlm_mschap, I tested mschap auth with radtest. I
> thought I had done it before, but maybe not (there are many authentication
> mechanisms).
>
> Turns out mschap is core dumping with this 3.0.26 snapshot and openssl3 in
> jammy. With 3.0.21 and libssl1.1, it works. Can't tell yet if the problem is
> 3.0.26, or openssl3, or a combination.
>
> I'll file a bug upstream, and one in LP, but I think we should proceed with
> this upload. What's more urgent now is to add DEP8 tests, and I will file a
> bug to at least have these simple radtest tests I'm doing converted into DEP8.
> I filed https:/
> improve DEP8 coverage
+1
LGTM (things got much simpler with the latest rebase).
- 5a77ac1... by Andreas Hasenack
-
Add bug number to changelog
Andreas Hasenack (ahasenack) wrote : | # |
Did a quick commit to mention the closing bug in d/changelog.
Re-ran the DEP8 tests of freeradius and moonshot, both passed.
Uploaded:
$ dput ubuntu ../freeradius_
D: Setting host argument.
Checking signature on .changes
gpg: ../freeradius_
Checking signature on .dsc
gpg: ../freeradius_
Uploading to ubuntu (via ftp to upload.ubuntu.com):
Uploading freeradius_
Uploading freeradius_
Uploading freeradius_
Uploading freeradius_
Uploading freeradius_
Successfully uploaded packages.
Andreas Hasenack (ahasenack) wrote : | # |
This landed a while ago, marking as merged.
Preview Diff
1 | diff --git a/.github/workflows/ci-deb.yml b/.github/workflows/ci-deb.yml |
2 | index 69bf560..b71aa79 100644 |
3 | --- a/.github/workflows/ci-deb.yml |
4 | +++ b/.github/workflows/ci-deb.yml |
5 | @@ -8,6 +8,7 @@ on: |
6 | |
7 | env: |
8 | DEBIAN_FRONTEND: noninteractive |
9 | + CC: gcc |
10 | |
11 | jobs: |
12 | deb-build: |
13 | @@ -64,6 +65,13 @@ jobs: |
14 | mk-build-deps -irt"apt-get -y" debian/control |
15 | working-directory: freeradius |
16 | |
17 | + - name: Show versions |
18 | + run: | |
19 | + $CC --version |
20 | + make --version |
21 | + krb5-config --all || : |
22 | + openssl version |
23 | + |
24 | - name: Run tests and build eapol_test |
25 | run: | |
26 | apt-get install -y libnl-3-dev libnl-genl-3-dev |
27 | diff --git a/.github/workflows/ci-rpm.yml b/.github/workflows/ci-rpm.yml |
28 | index 6c4b3e4..52e769c 100644 |
29 | --- a/.github/workflows/ci-rpm.yml |
30 | +++ b/.github/workflows/ci-rpm.yml |
31 | @@ -6,6 +6,9 @@ on: |
32 | - coverity_scan |
33 | pull_request: |
34 | |
35 | +env: |
36 | + CC: gcc |
37 | + |
38 | jobs: |
39 | rpm-build: |
40 | |
41 | @@ -14,7 +17,7 @@ jobs: |
42 | env: |
43 | - { NAME: "centos-7", OS: "centos:7" } |
44 | - { NAME: "centos-8", OS: "centos:8" } |
45 | - - { NAME: "fedora-rawhide", OS: "fedora:rawhide" } |
46 | + - { NAME: "rocky-8", OS: "rockylinux/rockylinux:8" } |
47 | fail-fast: false |
48 | |
49 | runs-on: ubuntu-latest |
50 | @@ -26,15 +29,31 @@ jobs: |
51 | |
52 | steps: |
53 | |
54 | + # |
55 | + # Centos9 is EOL, so we need the below tricks to get it to work. |
56 | + # |
57 | + # Converting from CentOS Linux 8 to CentOS Stream 8 is the "official" process |
58 | + # (see centos.org/centos-stream/#centos-stream-8): |
59 | + # |
60 | + - name: Some hacks for CentOS 8 (EOL) to work again. |
61 | + if: ${{ matrix.env.NAME == 'centos-8' }} |
62 | + run: | |
63 | + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* |
64 | + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* |
65 | + yum upgrade -y |
66 | + yum -y --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos |
67 | + yum clean all && yum makecache |
68 | + yum distro-sync -y --allowerasing |
69 | + |
70 | # Required so that the checkout action uses git protocol rather than the GitHub REST API. |
71 | # make rpm requires the FR directory to be a git repository. |
72 | - name: Install recent git for CentOS 7 |
73 | if: ${{ matrix.env.NAME == 'centos-7' }} |
74 | run: | |
75 | - yum install -y https://packages.endpoint.com/rhel/7/os/x86_64/git-core-2.24.1-1.ep7.x86_64.rpm |
76 | + yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/git-core-2.30.1-1.ep7.x86_64.rpm |
77 | |
78 | - - name: Install distro git for CentOS > 7 |
79 | - if: ${{ matrix.env.NAME != 'centos-7' }} |
80 | + - name: Install distro git for Rocky 8 and CentOS 8. |
81 | + if: ${{ matrix.env.NAME == 'rocky-8' || matrix.env.NAME == 'centos-8' }} |
82 | run: | |
83 | yum install -y git-core |
84 | |
85 | @@ -50,20 +69,20 @@ jobs: |
86 | mkdir rpms |
87 | ls -la |
88 | |
89 | - - name: Extra repos |
90 | - if: ${{ startsWith(matrix.env.NAME, 'centos-') }} |
91 | + - name: Extra repos for CentOS and Rocky Linux |
92 | + if: ${{ startsWith(matrix.env.NAME, 'centos-') || startsWith(matrix.env.NAME, 'rocky-') }} |
93 | run: | |
94 | - echo '[ltb-project]' >> /etc/yum.repos.d/ltb-project.repo |
95 | - echo 'name=LTB project packages' >> /etc/yum.repos.d/ltb-project.repo |
96 | - echo 'baseurl=https://ltb-project.org/rpm/$releasever/$basearch' >> /etc/yum.repos.d/ltb-project.repo |
97 | - echo 'enabled=1' >> /etc/yum.repos.d/ltb-project.repo |
98 | - echo 'gpgcheck=1' >> /etc/yum.repos.d/ltb-project.repo |
99 | - echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project' >> /etc/yum.repos.d/ltb-project.repo |
100 | - rpm --import https://ltb-project.org/lib/RPM-GPG-KEY-LTB-project |
101 | + echo '[ltb-project]' > /etc/yum.repos.d/ltb-project.repo |
102 | + echo 'name=LTB project packages' >> /etc/yum.repos.d/ltb-project.repo |
103 | + echo 'baseurl=https://ltb-project.org/rpm/$releasever/$basearch' >> /etc/yum.repos.d/ltb-project.repo |
104 | + echo 'enabled=1' >> /etc/yum.repos.d/ltb-project.repo |
105 | + echo 'gpgcheck=1' >> /etc/yum.repos.d/ltb-project.repo |
106 | + echo 'gpgkey=https://www.ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project' >> /etc/yum.repos.d/ltb-project.repo |
107 | + rpm --import https://www.ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project |
108 | yum install -y epel-release |
109 | |
110 | - - name: Enable PowerTools on CentOS 8 |
111 | - if: ${{ matrix.env.NAME == 'centos-8' }} |
112 | + - name: Enable PowerTools on Rocky 8 and CentOS 8. |
113 | + if: ${{ matrix.env.NAME == 'rocky-8' || matrix.env.NAME == 'centos-8' }} |
114 | run: | |
115 | yum install -y yum-utils |
116 | yum config-manager --enable PowerTools || : |
117 | @@ -92,9 +111,16 @@ jobs: |
118 | run: | |
119 | yum-builddep -y freeradius/redhat/freeradius.spec |
120 | |
121 | + - name: Show versions |
122 | + run: | |
123 | + $CC --version |
124 | + make --version |
125 | + krb5-config --all || : |
126 | + openssl version |
127 | + |
128 | # For pkill and ps |
129 | - - name: Enable procps-ng on Fedora |
130 | - if: ${{ startsWith(matrix.env.NAME, 'fedora-') }} |
131 | + - name: Enable procps-ng on Centos and Rocky |
132 | + if: ${{ startsWith(matrix.env.NAME, 'centos-8') || startsWith(matrix.env.NAME, 'rocky-8') }} |
133 | run: | |
134 | yum install -y procps-ng |
135 | |
136 | @@ -153,7 +179,7 @@ jobs: |
137 | env: |
138 | - { NAME: "centos-7", OS: "centos:7" } |
139 | - { NAME: "centos-8", OS: "centos:8" } |
140 | - - { NAME: "fedora-rawhide", OS: "fedora:rawhide" } |
141 | + - { NAME: "rocky-8", OS: "rockylinux/rockylinux:8" } |
142 | fail-fast: false |
143 | |
144 | runs-on: ubuntu-latest |
145 | @@ -165,28 +191,44 @@ jobs: |
146 | |
147 | steps: |
148 | |
149 | - - name: Extra repos for CentOS |
150 | - if: ${{ startsWith(matrix.env.NAME, 'centos-') }} |
151 | + # |
152 | + # Centos9 is EOL, so we need the below tricks to get it to work. |
153 | + # |
154 | + # Converting from CentOS Linux 8 to CentOS Stream 8 is the "official" process |
155 | + # (see centos.org/centos-stream/#centos-stream-8): |
156 | + # |
157 | + - name: Some hacks for CentOS 8 (EOL) to work again. |
158 | + if: ${{ matrix.env.NAME == 'centos-8' }} |
159 | + run: | |
160 | + sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* |
161 | + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* |
162 | + yum upgrade -y |
163 | + yum -y --disablerepo '*' --enablerepo extras swap centos-linux-repos centos-stream-repos |
164 | + yum clean all && yum makecache |
165 | + yum distro-sync -y --allowerasing |
166 | + |
167 | + - name: Extra repos for CentOS and Rocky |
168 | + if: ${{ startsWith(matrix.env.NAME, 'centos-') || startsWith(matrix.env.NAME, 'rocky-') }} |
169 | run: | |
170 | - echo '[ltb-project]' >> /etc/yum.repos.d/ltb-project.repo |
171 | - echo 'name=LTB project packages' >> /etc/yum.repos.d/ltb-project.repo |
172 | - echo 'baseurl=https://ltb-project.org/rpm/$releasever/$basearch' >> /etc/yum.repos.d/ltb-project.repo |
173 | - echo 'enabled=1' >> /etc/yum.repos.d/ltb-project.repo |
174 | - echo 'gpgcheck=1' >> /etc/yum.repos.d/ltb-project.repo |
175 | - echo 'gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-LTB-project' >> /etc/yum.repos.d/ltb-project.repo |
176 | - rpm --import https://ltb-project.org/lib/RPM-GPG-KEY-LTB-project |
177 | + echo '[ltb-project]' > /etc/yum.repos.d/ltb-project.repo |
178 | + echo 'name=LTB project packages' >> /etc/yum.repos.d/ltb-project.repo |
179 | + echo 'baseurl=https://ltb-project.org/rpm/$releasever/$basearch' >> /etc/yum.repos.d/ltb-project.repo |
180 | + echo 'enabled=1' >> /etc/yum.repos.d/ltb-project.repo |
181 | + echo 'gpgcheck=1' >> /etc/yum.repos.d/ltb-project.repo |
182 | + echo 'gpgkey=https://www.ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project' >> /etc/yum.repos.d/ltb-project.repo |
183 | + rpm --import https://www.ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project |
184 | yum install -y epel-release |
185 | |
186 | - - name: Enable PowerTools on CentOS 8 |
187 | - if: ${{ matrix.env.NAME == 'centos-8' }} |
188 | + - name: Enable PowerTools on Centos 8 and Rocky 8 |
189 | + if: ${{ matrix.env.NAME == 'centos-8' || matrix.env.NAME == 'rocky-8' }} |
190 | run: | |
191 | yum install -y yum-utils |
192 | yum config-manager --enable PowerTools || : |
193 | yum config-manager --enable powertools || : |
194 | |
195 | # For pkill |
196 | - - name: Enable procps-ng on Fedora |
197 | - if: ${{ startsWith(matrix.env.NAME, 'fedora-') }} |
198 | + - name: Enable procps-ng on Centos and Rocky |
199 | + if: ${{ startsWith(matrix.env.NAME, 'centos-') || startsWith(matrix.env.NAME, 'rocky-') }} |
200 | run: | |
201 | yum install -y procps-ng |
202 | |
203 | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml |
204 | index bb5c5da..eaff234 100644 |
205 | --- a/.github/workflows/ci.yml |
206 | +++ b/.github/workflows/ci.yml |
207 | @@ -8,6 +8,7 @@ on: |
208 | |
209 | env: |
210 | PANIC_ACTION: "gdb -batch -x raddb/panic.gdb %e %p 1>&0 2>&0" |
211 | + ALT_OPENSSL: "3.0.1" |
212 | CI: 1 |
213 | GH_ACTIONS: 1 |
214 | |
215 | @@ -23,14 +24,15 @@ jobs: |
216 | - ubuntu-18.04 |
217 | # - ubuntu-20.04 |
218 | env: |
219 | - - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: no, LIBS_SHARED: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-gcc-lean } |
220 | - - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_SHARED: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-gcc } |
221 | - - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_SHARED: yes, REPRODUCIBLE: yes, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-gcc-reproducible } |
222 | - - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_SHARED: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG -O2 -g3", NAME: linux-gcc-O2-g3 } |
223 | - - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: no, LIBS_SHARED: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang-lean } |
224 | - - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_SHARED: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang } |
225 | - - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_SHARED: yes, REPRODUCIBLE: yes, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang-reproducible } |
226 | - - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_SHARED: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG -O2 -g3", NAME: linux-clang-O2-g3 } |
227 | + - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: no, LIBS_ALT: no, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-gcc-lean } |
228 | + - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: no, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-gcc } |
229 | + - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: no, REPRODUCIBLE: yes, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-gcc-reproducible } |
230 | + - { CC: gcc, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: no, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG -O2 -g3", NAME: linux-gcc-O2-g3 } |
231 | + - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: no, LIBS_ALT: no, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang-lean } |
232 | + - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: no, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang } |
233 | + - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: yes, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang-altlibs } |
234 | + - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: no, REPRODUCIBLE: yes, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG", NAME: linux-clang-reproducible } |
235 | + - { CC: clang, DO_BUILD: yes, LIBS_OPTIONAL: yes, LIBS_ALT: no, REPRODUCIBLE: no, BUILD_CFLAGS: "-DWITH_EVAL_DEBUG -O2 -g3", NAME: linux-clang-O2-g3 } |
236 | |
237 | env: ${{ matrix.env }} |
238 | |
239 | @@ -72,6 +74,7 @@ jobs: |
240 | libidn11-dev \ |
241 | libiodbc2 \ |
242 | libiodbc2-dev \ |
243 | + libjson-c-dev \ |
244 | libkqueue-dev \ |
245 | libkrb5-dev \ |
246 | libldap2-dev \ |
247 | @@ -100,14 +103,6 @@ jobs: |
248 | ruby-dev \ |
249 | quilt |
250 | |
251 | - - name: Install JSON build deps for 18.04 |
252 | - if: ${{ matrix.os == 'ubuntu-18.04' }} |
253 | - run: sudo apt-get install -y --no-install-recommends libjson-c3 |
254 | - |
255 | - - name: Install JSON build deps for 20.04 |
256 | - if: ${{ matrix.os == 'ubuntu-20.04' }} |
257 | - run: sudo apt-get install -y --no-install-recommends libjson-c4 |
258 | - |
259 | - name: Install LLVM 10 for 18.04 |
260 | if: ${{ matrix.os == 'ubuntu-18.04' && matrix.env.CC == 'clang' }} |
261 | run: | |
262 | @@ -131,15 +126,75 @@ jobs: |
263 | run: | |
264 | sudo apt-get install -y --no-install-recommends gcc gdb |
265 | |
266 | + # |
267 | + # Build using some alternative libraries |
268 | + # |
269 | + # MIT Kerberos -> HEIMDAL Kerberos |
270 | + # OpenSSL 1.0 -> OpenSSL 3.0 |
271 | + # |
272 | + - name: Use alternative libraries |
273 | + if: ${{ matrix.env.LIBS_ALT == 'yes' }} |
274 | + run: | |
275 | + sudo apt-get install -y --no-install-recommends heimdal-dev |
276 | + |
277 | + - name: 'Fetch OpenSSL 3.0 SHA' |
278 | + id: opensslshasum |
279 | + if: ${{ matrix.env.LIBS_ALT == 'yes' }} |
280 | + run: | |
281 | + wget -qO- http://www.openssl.org/source/openssl-$ALT_OPENSSL.tar.gz.sha256 | sed -ne 's/^\s\+/::set-output name=shasum::/p' |
282 | + |
283 | + - name: 'Restore OpenSSL 3.0 from the cache' |
284 | + if: ${{ matrix.env.LIBS_ALT == 'yes' }} |
285 | + uses: actions/cache@v2 |
286 | + id: openssl-cache |
287 | + with: |
288 | + path: /opt/openssl/ |
289 | + key: openssl3-${{ steps.opensslshasum.outputs.shasum }} |
290 | + |
291 | + - name: 'Build OpenSSL 3.0 (if cache stale)' |
292 | + if: ${{ matrix.env.LIBS_ALT == 'yes' && steps.openssl-cache.outputs.cache-hit != 'true' }} |
293 | + run: | |
294 | + cd ~ |
295 | + wget https://www.openssl.org/source/openssl-$ALT_OPENSSL.tar.gz |
296 | + tar xzf openssl-$ALT_OPENSSL.tar.gz |
297 | + cd openssl-$ALT_OPENSSL |
298 | + ./Configure --prefix=/opt/openssl --openssldir=. |
299 | + make -j `nproc` |
300 | + make install |
301 | + |
302 | + - name: Use alternative libraries |
303 | + if: ${{ matrix.env.LIBS_ALT == 'yes' }} |
304 | + run: | |
305 | + echo /opt/openssl/lib64 | sudo tee /etc/ld.so.conf.d/openssl3.conf >/dev/null |
306 | + sudo ldconfig |
307 | + sudo apt-get install -y --no-install-recommends heimdal-dev |
308 | + |
309 | - name: Show versions |
310 | run: | |
311 | $CC --version |
312 | make --version |
313 | + krb5-config --all || : |
314 | + [ -d /opt/openssl ] && export PATH=/opt/openssl/bin:$PATH |
315 | + openssl version |
316 | + |
317 | + - name: Build eapol_test |
318 | + run: | |
319 | + if [ -d /opt/openssl ]; then |
320 | + # Used by scripts/ci/eapol_test-build.sh |
321 | + export PATH=/opt/openssl/bin:$PATH |
322 | + export EAPOL_TEST_CFLAGS="-I/opt/openssl/include" |
323 | + export EAPOL_TEST_LDFLAGS="-L/opt/openssl/lib64" |
324 | + fi |
325 | + ./scripts/ci/eapol_test-build.sh |
326 | |
327 | - - name: Build |
328 | + - name: Build FreeRADIUS |
329 | run: | |
330 | export PATH=$(echo "$PATH" | sed -e 's#:/home/linuxbrew/[^:]\+##g') |
331 | - CFLAGS="${BUILD_CFLAGS}" ./configure -C --enable-werror --prefix=$HOME/freeradius --with-shared-libs=$LIBS_SHARED --with-threads=$LIBS_OPTIONAL --with-udpfromto=$LIBS_OPTIONAL --with-openssl=$LIBS_OPTIONAL --with-pcre=$LIBS_OPTIONAL --enable-reproducible-builds=${REPRODUCIBLE} |
332 | + if [ -d /opt/openssl ]; then |
333 | + export PATH=/opt/openssl/bin:$PATH |
334 | + CONFIG_OPENSSL="--with-openssl-lib-dir=/opt/openssl/lib64 --with-openssl-include-dir=/opt/openssl/include" |
335 | + fi |
336 | + CFLAGS="${BUILD_CFLAGS}" ./configure -C --enable-werror --prefix=$HOME/freeradius --with-threads=$LIBS_OPTIONAL --with-udpfromto=$LIBS_OPTIONAL --with-openssl=$LIBS_OPTIONAL --with-pcre=$LIBS_OPTIONAL --enable-reproducible-builds=${REPRODUCIBLE} $CONFIG_OPENSSL |
337 | make -j `nproc` |
338 | |
339 | - name: clang scan |
340 | @@ -155,8 +210,48 @@ jobs: |
341 | if: ${{ matrix.env.CC == 'clang' && failure() }} |
342 | |
343 | - name: Test |
344 | - run: make ci-test |
345 | + run: | |
346 | + [ -d /opt/openssl ] && export PATH=/opt/openssl/bin:$PATH |
347 | + |
348 | + # Temporarily replace ucf (for config merge) with cp since it's |
349 | + # terribly slow! |
350 | + sudo mv /usr/bin/ucf /usr/bin/ucf.disabled |
351 | + sudo sh -c 'echo "#!/bin/sh" > /usr/bin/ucf' |
352 | + sudo sh -c 'echo "shift && cp -v \$@" >> /usr/bin/ucf' |
353 | + sudo chmod +x /usr/bin/ucf |
354 | + sudo apt-get install -y --no-install-recommends \ |
355 | + apparmor-utils \ |
356 | + slapd ldap-utils |
357 | + sudo mv -f /usr/bin/ucf.disabled /usr/bin/ucf |
358 | + sudo systemctl stop slapd |
359 | + sudo aa-complain /usr/sbin/slapd |
360 | |
361 | + export PG_VER=14 |
362 | + sudo sh -c "echo host all all 127.0.0.1/32 trust > /etc/postgresql/$PG_VER/main/pg_hba.conf" |
363 | + sudo sh -c "echo local all all trust >> /etc/postgresql/$PG_VER/main/pg_hba.conf" |
364 | + |
365 | + sudo systemctl start mysql postgresql |
366 | + |
367 | + mysql -h 127.0.0.1 -uroot -proot -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '';" |
368 | + |
369 | + for i in \ |
370 | + postgresql-setup.sh \ |
371 | + mysql-setup.sh \ |
372 | + ldap-setup.sh \ |
373 | + ldap2-setup.sh; do |
374 | + |
375 | + script="./scripts/ci/$i" |
376 | + echo "Calling $i" |
377 | + $script |
378 | + done |
379 | + |
380 | + make ci-test |
381 | + |
382 | + env: |
383 | + SQL_MYSQL_TEST_SERVER: 127.0.0.1 |
384 | + SQL_POSTGRESQL_TEST_SERVER: 127.0.0.1 |
385 | + LDAP_TEST_SERVER: 127.0.0.1 |
386 | + LDAP_TEST_SERVER_PORT: 3890 |
387 | # |
388 | # If the CI has failed and the branch is ci-debug then start a tmate |
389 | # session. SSH rendezvous point is emited continuously in the job output. |
390 | @@ -231,7 +326,7 @@ jobs: |
391 | - name: "Report whether PERSONAL_ACCESS_TOKEN secret exists" |
392 | id: merge-preflight |
393 | run: | |
394 | - [ -n "$PERSONAL_ACCESS_TOKEN" ] && echo "::set-output name=PERSONAL_ACCESS_TOKEN_EXISTS::1" |
395 | + [ -z "$PERSONAL_ACCESS_TOKEN" ] || echo "::set-output name=PERSONAL_ACCESS_TOKEN_EXISTS::1" |
396 | env: |
397 | PERSONAL_ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
398 | outputs: |
399 | diff --git a/.gitignore b/.gitignore |
400 | index be279ac..eabdbb7 100644 |
401 | --- a/.gitignore |
402 | +++ b/.gitignore |
403 | @@ -1,6 +1,8 @@ |
404 | *~ |
405 | *.o |
406 | *.a |
407 | +*.buildinfo |
408 | +*.changes |
409 | *.lo |
410 | *.loT |
411 | *.la |
412 | diff --git a/Make.inc.in b/Make.inc.in |
413 | index 3664b1c..05f8277 100644 |
414 | --- a/Make.inc.in |
415 | +++ b/Make.inc.in |
416 | @@ -1,7 +1,7 @@ |
417 | # -*- makefile -*- |
418 | # Make.inc.in |
419 | # |
420 | -# Version: $Id: 05f82776ff52fcb6fda1f41ed56cb4a587e18094 $ |
421 | +# Version: $Id$ |
422 | # |
423 | |
424 | # Location of files. |
425 | diff --git a/Makefile b/Makefile |
426 | index 4cfbef4..5975ab7 100644 |
427 | --- a/Makefile |
428 | +++ b/Makefile |
429 | @@ -4,7 +4,7 @@ |
430 | # NOTE: This top-level Makefile must not |
431 | # use GNU-make extensions. The lower ones can. |
432 | # |
433 | -# Version: $Id: 5ec0ab4fde9910cc5783505c598cfa9d678362df $ |
434 | +# Version: $Id$ |
435 | # |
436 | |
437 | # |
438 | @@ -97,7 +97,7 @@ $(BUILD_DIR)/tests/radiusd-c: raddb/test.conf ${BUILD_DIR}/bin/radiusd | build.r |
439 | @echo "ok" |
440 | @touch $@ |
441 | |
442 | -test: ${BUILD_DIR}/bin/radiusd ${BUILD_DIR}/bin/radclient tests.unit tests.xlat tests.keywords tests.auth test.sql_nas_table $(BUILD_DIR)/tests/radiusd-c | build.raddb |
443 | +test: ${BUILD_DIR}/bin/radiusd ${BUILD_DIR}/bin/radclient tests.unit tests.xlat tests.keywords tests.modules tests.auth test.sql_nas_table $(BUILD_DIR)/tests/radiusd-c | build.raddb |
444 | @$(MAKE) -C src/tests tests |
445 | |
446 | # |
447 | @@ -291,10 +291,10 @@ certs: |
448 | ###################################################################### |
449 | BRANCH = $(shell git rev-parse --abbrev-ref HEAD) |
450 | |
451 | -freeradius-server-$(RADIUSD_VERSION_STRING).tar.gz: .git |
452 | +freeradius-server-$(RADIUSD_VERSION_STRING).tar.gz: .git/HEAD |
453 | git archive --format=tar --prefix=freeradius-server-$(RADIUSD_VERSION_STRING)/ $(BRANCH) | gzip > $@ |
454 | |
455 | -freeradius-server-$(RADIUSD_VERSION_STRING).tar.bz2: .git |
456 | +freeradius-server-$(RADIUSD_VERSION_STRING).tar.bz2: .git/HEAD |
457 | git archive --format=tar --prefix=freeradius-server-$(RADIUSD_VERSION_STRING)/ $(BRANCH) | bzip2 > $@ |
458 | |
459 | %.sig: % |
460 | diff --git a/VERSION b/VERSION |
461 | index de2e889..2551016 100644 |
462 | --- a/VERSION |
463 | +++ b/VERSION |
464 | @@ -1 +1 @@ |
465 | -3.0.25 |
466 | +3.0.26 |
467 | diff --git a/acinclude.m4 b/acinclude.m4 |
468 | index da48acc..a953d0e 100644 |
469 | --- a/acinclude.m4 |
470 | +++ b/acinclude.m4 |
471 | @@ -38,66 +38,6 @@ AC_DEFUN([FR_CHECK_TYPE_INCLUDE], |
472 | ]) |
473 | |
474 | dnl # |
475 | -dnl # Locate the directory in which a particular file is found. |
476 | -dnl # |
477 | -dnl # Usage: FR_LOCATE_DIR(MYSQLLIB_DIR, libmysqlclient.a) |
478 | -dnl # |
479 | -dnl # Defines the variable MYSQLLIB_DIR to be the directory(s) in |
480 | -dnl # which the file libmysqlclient.a is to be found. |
481 | -dnl # |
482 | -dnl # |
483 | -AC_DEFUN([FR_LOCATE_DIR], |
484 | -[ |
485 | -dnl # If we have the program 'locate', then the problem of finding a |
486 | -dnl # particular file becomes MUCH easier. |
487 | -dnl # |
488 | - |
489 | -dnl # |
490 | -dnl # No 'locate' defined, do NOT do anything. |
491 | -dnl # |
492 | -if test "x$LOCATE" != "x"; then |
493 | - dnl # |
494 | - dnl # Root through a series of directories, looking for the given file. |
495 | - dnl # |
496 | - DIRS= |
497 | - file=$2 |
498 | - |
499 | - for x in `${LOCATE} $file 2>/dev/null`; do |
500 | - dnl # |
501 | - dnl # When asked for 'foo', locate will also find 'foo_bar', which we |
502 | - dnl # don't want. We want that EXACT filename. |
503 | - dnl # |
504 | - dnl # We ALSO want to be able to look for files like 'mysql/mysql.h', |
505 | - dnl # and properly match them, too. So we try to strip off the last |
506 | - dnl # part of the filename, using the name of the file we're looking |
507 | - dnl # for. If we CANNOT strip it off, then the name will be unchanged. |
508 | - dnl # |
509 | - base=`echo $x | sed "s%/${file}%%"` |
510 | - if test "x$x" = "x$base"; then |
511 | - continue; |
512 | - fi |
513 | - |
514 | - dir=`${DIRNAME} $x 2>/dev/null` |
515 | - dnl # |
516 | - dnl # Exclude a number of directories. |
517 | - dnl # |
518 | - exclude=`echo ${dir} | ${GREP} /home` |
519 | - if test "x$exclude" != "x"; then |
520 | - continue |
521 | - fi |
522 | - |
523 | - dnl # |
524 | - dnl # OK, we have an exact match. Let's be sure that we only find ONE |
525 | - dnl # matching directory. |
526 | - dnl # |
527 | - already=`echo \$$1 ${DIRS} | ${GREP} ${dir}` |
528 | - if test "x$already" = "x"; then |
529 | - DIRS="$DIRS $dir" |
530 | - fi |
531 | - done |
532 | -fi |
533 | - |
534 | -dnl # |
535 | dnl # And remember the directory in which we found the file. |
536 | dnl # |
537 | eval "$1=\"\$$1 $DIRS\"" |
538 | @@ -175,10 +115,7 @@ dnl # |
539 | dnl # Try to guess possible locations. |
540 | dnl # |
541 | if test "x$smart_lib" = "x"; then |
542 | - FR_LOCATE_DIR(smart_lib_dir,[lib$1${libltdl_cv_shlibext}]) |
543 | - FR_LOCATE_DIR(smart_lib_dir,[lib$1.a]) |
544 | - |
545 | - for try in $smart_lib_dir /usr/local/lib /opt/lib; do |
546 | + for try in /usr/local/lib /opt/lib; do |
547 | AC_MSG_CHECKING([for $2 in -l$1 in $try]) |
548 | LIBS="-l$1 $old_LIBS" |
549 | CPPFLAGS="-L$try -Wl,-rpath,$try $old_CPPFLAGS" |
550 | @@ -306,11 +243,6 @@ dnl # Try to guess possible locations. |
551 | dnl # |
552 | if test "x$smart_include" = "x"; then |
553 | |
554 | - for prefix in $smart_prefix; do |
555 | - FR_LOCATE_DIR(_smart_include_dir,"${_prefix}/${1}") |
556 | - done |
557 | - FR_LOCATE_DIR(_smart_include_dir, $1) |
558 | - |
559 | for try in $_smart_include_dir; do |
560 | AC_MSG_CHECKING([for $1 in $try]) |
561 | CPPFLAGS="-isystem $try $old_CPPFLAGS" |
562 | diff --git a/configure b/configure |
563 | index 2fd35b7..cc9de3e 100755 |
564 | --- a/configure |
565 | +++ b/configure |
566 | @@ -1,11 +1,12 @@ |
567 | #! /bin/sh |
568 | # Guess values for system-dependent variables and create Makefiles. |
569 | -# Generated by GNU Autoconf 2.69 for freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $. |
570 | +# Generated by GNU Autoconf 2.71 for freeradius $Id$. |
571 | # |
572 | # Report bugs to <http://bugs.freeradius.org>. |
573 | # |
574 | # |
575 | -# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
576 | +# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, |
577 | +# Inc. |
578 | # |
579 | # |
580 | # This configure script is free software; the Free Software Foundation |
581 | @@ -16,14 +17,16 @@ |
582 | |
583 | # Be more Bourne compatible |
584 | DUALCASE=1; export DUALCASE # for MKS sh |
585 | -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
586 | +as_nop=: |
587 | +if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
588 | +then : |
589 | emulate sh |
590 | NULLCMD=: |
591 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
592 | # is contrary to our usage. Disable this feature. |
593 | alias -g '${1+"$@"}'='"$@"' |
594 | setopt NO_GLOB_SUBST |
595 | -else |
596 | +else $as_nop |
597 | case `(set -o) 2>/dev/null` in #( |
598 | *posix*) : |
599 | set -o posix ;; #( |
600 | @@ -33,46 +36,46 @@ esac |
601 | fi |
602 | |
603 | |
604 | + |
605 | +# Reset variables that may have inherited troublesome values from |
606 | +# the environment. |
607 | + |
608 | +# IFS needs to be set, to space, tab, and newline, in precisely that order. |
609 | +# (If _AS_PATH_WALK were called with IFS unset, it would have the |
610 | +# side effect of setting IFS to empty, thus disabling word splitting.) |
611 | +# Quoting is to prevent editors from complaining about space-tab. |
612 | as_nl=' |
613 | ' |
614 | export as_nl |
615 | -# Printing a long string crashes Solaris 7 /usr/bin/printf. |
616 | -as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
617 | -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
618 | -as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
619 | -# Prefer a ksh shell builtin over an external printf program on Solaris, |
620 | -# but without wasting forks for bash or zsh. |
621 | -if test -z "$BASH_VERSION$ZSH_VERSION" \ |
622 | - && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
623 | - as_echo='print -r --' |
624 | - as_echo_n='print -rn --' |
625 | -elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
626 | - as_echo='printf %s\n' |
627 | - as_echo_n='printf %s' |
628 | -else |
629 | - if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
630 | - as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
631 | - as_echo_n='/usr/ucb/echo -n' |
632 | - else |
633 | - as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
634 | - as_echo_n_body='eval |
635 | - arg=$1; |
636 | - case $arg in #( |
637 | - *"$as_nl"*) |
638 | - expr "X$arg" : "X\\(.*\\)$as_nl"; |
639 | - arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
640 | - esac; |
641 | - expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
642 | - ' |
643 | - export as_echo_n_body |
644 | - as_echo_n='sh -c $as_echo_n_body as_echo' |
645 | - fi |
646 | - export as_echo_body |
647 | - as_echo='sh -c $as_echo_body as_echo' |
648 | -fi |
649 | +IFS=" "" $as_nl" |
650 | + |
651 | +PS1='$ ' |
652 | +PS2='> ' |
653 | +PS4='+ ' |
654 | + |
655 | +# Ensure predictable behavior from utilities with locale-dependent output. |
656 | +LC_ALL=C |
657 | +export LC_ALL |
658 | +LANGUAGE=C |
659 | +export LANGUAGE |
660 | + |
661 | +# We cannot yet rely on "unset" to work, but we need these variables |
662 | +# to be unset--not just set to an empty or harmless value--now, to |
663 | +# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct |
664 | +# also avoids known problems related to "unset" and subshell syntax |
665 | +# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). |
666 | +for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH |
667 | +do eval test \${$as_var+y} \ |
668 | + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
669 | +done |
670 | + |
671 | +# Ensure that fds 0, 1, and 2 are open. |
672 | +if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi |
673 | +if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi |
674 | +if (exec 3>&2) ; then :; else exec 2>/dev/null; fi |
675 | |
676 | # The user is always right. |
677 | -if test "${PATH_SEPARATOR+set}" != set; then |
678 | +if ${PATH_SEPARATOR+false} :; then |
679 | PATH_SEPARATOR=: |
680 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
681 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
682 | @@ -81,13 +84,6 @@ if test "${PATH_SEPARATOR+set}" != set; then |
683 | fi |
684 | |
685 | |
686 | -# IFS |
687 | -# We need space, tab and new line, in precisely that order. Quoting is |
688 | -# there to prevent editors from complaining about space-tab. |
689 | -# (If _AS_PATH_WALK were called with IFS unset, it would disable word |
690 | -# splitting by setting IFS to empty value.) |
691 | -IFS=" "" $as_nl" |
692 | - |
693 | # Find who we are. Look in the path if we contain no directory separator. |
694 | as_myself= |
695 | case $0 in #(( |
696 | @@ -96,8 +92,12 @@ case $0 in #(( |
697 | for as_dir in $PATH |
698 | do |
699 | IFS=$as_save_IFS |
700 | - test -z "$as_dir" && as_dir=. |
701 | - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
702 | + case $as_dir in #((( |
703 | + '') as_dir=./ ;; |
704 | + */) ;; |
705 | + *) as_dir=$as_dir/ ;; |
706 | + esac |
707 | + test -r "$as_dir$0" && as_myself=$as_dir$0 && break |
708 | done |
709 | IFS=$as_save_IFS |
710 | |
711 | @@ -109,30 +109,10 @@ if test "x$as_myself" = x; then |
712 | as_myself=$0 |
713 | fi |
714 | if test ! -f "$as_myself"; then |
715 | - $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
716 | + printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
717 | exit 1 |
718 | fi |
719 | |
720 | -# Unset variables that we do not need and which cause bugs (e.g. in |
721 | -# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
722 | -# suppresses any "Segmentation fault" message there. '((' could |
723 | -# trigger a bug in pdksh 5.2.14. |
724 | -for as_var in BASH_ENV ENV MAIL MAILPATH |
725 | -do eval test x\${$as_var+set} = xset \ |
726 | - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
727 | -done |
728 | -PS1='$ ' |
729 | -PS2='> ' |
730 | -PS4='+ ' |
731 | - |
732 | -# NLS nuisances. |
733 | -LC_ALL=C |
734 | -export LC_ALL |
735 | -LANGUAGE=C |
736 | -export LANGUAGE |
737 | - |
738 | -# CDPATH. |
739 | -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
740 | |
741 | # Use a proper internal environment variable to ensure we don't fall |
742 | # into an infinite loop, continuously re-executing ourselves. |
743 | @@ -154,20 +134,22 @@ esac |
744 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
745 | # Admittedly, this is quite paranoid, since all the known shells bail |
746 | # out after a failed `exec'. |
747 | -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
748 | -as_fn_exit 255 |
749 | +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
750 | +exit 255 |
751 | fi |
752 | # We don't want this to propagate to other subprocesses. |
753 | { _as_can_reexec=; unset _as_can_reexec;} |
754 | if test "x$CONFIG_SHELL" = x; then |
755 | - as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
756 | + as_bourne_compatible="as_nop=: |
757 | +if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 |
758 | +then : |
759 | emulate sh |
760 | NULLCMD=: |
761 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
762 | # is contrary to our usage. Disable this feature. |
763 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
764 | setopt NO_GLOB_SUBST |
765 | -else |
766 | +else \$as_nop |
767 | case \`(set -o) 2>/dev/null\` in #( |
768 | *posix*) : |
769 | set -o posix ;; #( |
770 | @@ -187,42 +169,53 @@ as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
771 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
772 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
773 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
774 | -if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
775 | +if ( set x; as_fn_ret_success y && test x = \"\$1\" ) |
776 | +then : |
777 | |
778 | -else |
779 | +else \$as_nop |
780 | exitcode=1; echo positional parameters were not saved. |
781 | fi |
782 | test x\$exitcode = x0 || exit 1 |
783 | +blah=\$(echo \$(echo blah)) |
784 | +test x\"\$blah\" = xblah || exit 1 |
785 | test -x / || exit 1" |
786 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
787 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
788 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
789 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
790 | test \$(( 1 + 1 )) = 2 || exit 1" |
791 | - if (eval "$as_required") 2>/dev/null; then : |
792 | + if (eval "$as_required") 2>/dev/null |
793 | +then : |
794 | as_have_required=yes |
795 | -else |
796 | +else $as_nop |
797 | as_have_required=no |
798 | fi |
799 | - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
800 | + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null |
801 | +then : |
802 | |
803 | -else |
804 | +else $as_nop |
805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
806 | as_found=false |
807 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
808 | do |
809 | IFS=$as_save_IFS |
810 | - test -z "$as_dir" && as_dir=. |
811 | + case $as_dir in #((( |
812 | + '') as_dir=./ ;; |
813 | + */) ;; |
814 | + *) as_dir=$as_dir/ ;; |
815 | + esac |
816 | as_found=: |
817 | case $as_dir in #( |
818 | /*) |
819 | for as_base in sh bash ksh sh5; do |
820 | # Try only shells that exist, to save several forks. |
821 | - as_shell=$as_dir/$as_base |
822 | + as_shell=$as_dir$as_base |
823 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
824 | - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
825 | + as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
826 | +then : |
827 | CONFIG_SHELL=$as_shell as_have_required=yes |
828 | - if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
829 | + if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null |
830 | +then : |
831 | break 2 |
832 | fi |
833 | fi |
834 | @@ -230,14 +223,21 @@ fi |
835 | esac |
836 | as_found=false |
837 | done |
838 | -$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
839 | - { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
840 | - CONFIG_SHELL=$SHELL as_have_required=yes |
841 | -fi; } |
842 | IFS=$as_save_IFS |
843 | +if $as_found |
844 | +then : |
845 | + |
846 | +else $as_nop |
847 | + if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
848 | + as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null |
849 | +then : |
850 | + CONFIG_SHELL=$SHELL as_have_required=yes |
851 | +fi |
852 | +fi |
853 | |
854 | |
855 | - if test "x$CONFIG_SHELL" != x; then : |
856 | + if test "x$CONFIG_SHELL" != x |
857 | +then : |
858 | export CONFIG_SHELL |
859 | # We cannot yet assume a decent shell, so we have to provide a |
860 | # neutralization value for shells without unset; and this also |
861 | @@ -255,18 +255,19 @@ esac |
862 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} |
863 | # Admittedly, this is quite paranoid, since all the known shells bail |
864 | # out after a failed `exec'. |
865 | -$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 |
866 | +printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 |
867 | exit 255 |
868 | fi |
869 | |
870 | - if test x$as_have_required = xno; then : |
871 | - $as_echo "$0: This script requires a shell more modern than all" |
872 | - $as_echo "$0: the shells that I found on your system." |
873 | - if test x${ZSH_VERSION+set} = xset ; then |
874 | - $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
875 | - $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
876 | + if test x$as_have_required = xno |
877 | +then : |
878 | + printf "%s\n" "$0: This script requires a shell more modern than all" |
879 | + printf "%s\n" "$0: the shells that I found on your system." |
880 | + if test ${ZSH_VERSION+y} ; then |
881 | + printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
882 | + printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." |
883 | else |
884 | - $as_echo "$0: Please tell bug-autoconf@gnu.org and |
885 | + printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and |
886 | $0: http://bugs.freeradius.org about your system, including |
887 | $0: any error possibly output before this message. Then |
888 | $0: install a modern shell, or manually run the script |
889 | @@ -294,6 +295,7 @@ as_fn_unset () |
890 | } |
891 | as_unset=as_fn_unset |
892 | |
893 | + |
894 | # as_fn_set_status STATUS |
895 | # ----------------------- |
896 | # Set $? to STATUS, without forking. |
897 | @@ -311,6 +313,14 @@ as_fn_exit () |
898 | as_fn_set_status $1 |
899 | exit $1 |
900 | } # as_fn_exit |
901 | +# as_fn_nop |
902 | +# --------- |
903 | +# Do nothing but, unlike ":", preserve the value of $?. |
904 | +as_fn_nop () |
905 | +{ |
906 | + return $? |
907 | +} |
908 | +as_nop=as_fn_nop |
909 | |
910 | # as_fn_mkdir_p |
911 | # ------------- |
912 | @@ -325,7 +335,7 @@ as_fn_mkdir_p () |
913 | as_dirs= |
914 | while :; do |
915 | case $as_dir in #( |
916 | - *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
917 | + *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
918 | *) as_qdir=$as_dir;; |
919 | esac |
920 | as_dirs="'$as_qdir' $as_dirs" |
921 | @@ -334,7 +344,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
922 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
923 | X"$as_dir" : 'X\(//\)$' \| \ |
924 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
925 | -$as_echo X"$as_dir" | |
926 | +printf "%s\n" X"$as_dir" | |
927 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
928 | s//\1/ |
929 | q |
930 | @@ -373,12 +383,13 @@ as_fn_executable_p () |
931 | # advantage of any shell optimizations that allow amortized linear growth over |
932 | # repeated appends, instead of the typical quadratic growth present in naive |
933 | # implementations. |
934 | -if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
935 | +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null |
936 | +then : |
937 | eval 'as_fn_append () |
938 | { |
939 | eval $1+=\$2 |
940 | }' |
941 | -else |
942 | +else $as_nop |
943 | as_fn_append () |
944 | { |
945 | eval $1=\$$1\$2 |
946 | @@ -390,18 +401,27 @@ fi # as_fn_append |
947 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
948 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
949 | # must be portable across $(()) and expr. |
950 | -if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
951 | +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null |
952 | +then : |
953 | eval 'as_fn_arith () |
954 | { |
955 | as_val=$(( $* )) |
956 | }' |
957 | -else |
958 | +else $as_nop |
959 | as_fn_arith () |
960 | { |
961 | as_val=`expr "$@" || test $? -eq 1` |
962 | } |
963 | fi # as_fn_arith |
964 | |
965 | +# as_fn_nop |
966 | +# --------- |
967 | +# Do nothing but, unlike ":", preserve the value of $?. |
968 | +as_fn_nop () |
969 | +{ |
970 | + return $? |
971 | +} |
972 | +as_nop=as_fn_nop |
973 | |
974 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
975 | # ---------------------------------------- |
976 | @@ -413,9 +433,9 @@ as_fn_error () |
977 | as_status=$1; test $as_status -eq 0 && as_status=1 |
978 | if test "$4"; then |
979 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
980 | - $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
981 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
982 | fi |
983 | - $as_echo "$as_me: error: $2" >&2 |
984 | + printf "%s\n" "$as_me: error: $2" >&2 |
985 | as_fn_exit $as_status |
986 | } # as_fn_error |
987 | |
988 | @@ -442,7 +462,7 @@ as_me=`$as_basename -- "$0" || |
989 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
990 | X"$0" : 'X\(//\)$' \| \ |
991 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
992 | -$as_echo X/"$0" | |
993 | +printf "%s\n" X/"$0" | |
994 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
995 | s//\1/ |
996 | q |
997 | @@ -486,7 +506,7 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits |
998 | s/-\n.*// |
999 | ' >$as_me.lineno && |
1000 | chmod +x "$as_me.lineno" || |
1001 | - { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
1002 | + { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
1003 | |
1004 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
1005 | # already done that, so ensure we don't try to do so again and fall |
1006 | @@ -500,6 +520,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits |
1007 | exit |
1008 | } |
1009 | |
1010 | + |
1011 | +# Determine whether it's possible to make 'echo' print without a newline. |
1012 | +# These variables are no longer used directly by Autoconf, but are AC_SUBSTed |
1013 | +# for compatibility with existing Makefiles. |
1014 | ECHO_C= ECHO_N= ECHO_T= |
1015 | case `echo -n x` in #((((( |
1016 | -n*) |
1017 | @@ -513,6 +537,13 @@ case `echo -n x` in #((((( |
1018 | ECHO_N='-n';; |
1019 | esac |
1020 | |
1021 | +# For backward compatibility with old third-party macros, we provide |
1022 | +# the shell variables $as_echo and $as_echo_n. New code should use |
1023 | +# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. |
1024 | +as_echo='printf %s\n' |
1025 | +as_echo_n='printf %s' |
1026 | + |
1027 | + |
1028 | rm -f conf$$ conf$$.exe conf$$.file |
1029 | if test -d conf$$.dir; then |
1030 | rm -f conf$$.dir/conf$$.file |
1031 | @@ -580,48 +611,44 @@ MAKEFLAGS= |
1032 | # Identity of this package. |
1033 | PACKAGE_NAME='freeradius' |
1034 | PACKAGE_TARNAME='freeradius' |
1035 | -PACKAGE_VERSION='$Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $' |
1036 | -PACKAGE_STRING='freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $' |
1037 | +PACKAGE_VERSION='$Id$' |
1038 | +PACKAGE_STRING='freeradius $Id$' |
1039 | PACKAGE_BUGREPORT='http://bugs.freeradius.org' |
1040 | PACKAGE_URL='http://www.freeradius.org' |
1041 | |
1042 | ac_unique_file="src/main/radiusd.c" |
1043 | # Factoring default headers for most tests. |
1044 | ac_includes_default="\ |
1045 | -#include <stdio.h> |
1046 | -#ifdef HAVE_SYS_TYPES_H |
1047 | -# include <sys/types.h> |
1048 | -#endif |
1049 | -#ifdef HAVE_SYS_STAT_H |
1050 | -# include <sys/stat.h> |
1051 | +#include <stddef.h> |
1052 | +#ifdef HAVE_STDIO_H |
1053 | +# include <stdio.h> |
1054 | #endif |
1055 | -#ifdef STDC_HEADERS |
1056 | +#ifdef HAVE_STDLIB_H |
1057 | # include <stdlib.h> |
1058 | -# include <stddef.h> |
1059 | -#else |
1060 | -# ifdef HAVE_STDLIB_H |
1061 | -# include <stdlib.h> |
1062 | -# endif |
1063 | #endif |
1064 | #ifdef HAVE_STRING_H |
1065 | -# if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
1066 | -# include <memory.h> |
1067 | -# endif |
1068 | # include <string.h> |
1069 | #endif |
1070 | -#ifdef HAVE_STRINGS_H |
1071 | -# include <strings.h> |
1072 | -#endif |
1073 | #ifdef HAVE_INTTYPES_H |
1074 | # include <inttypes.h> |
1075 | #endif |
1076 | #ifdef HAVE_STDINT_H |
1077 | # include <stdint.h> |
1078 | #endif |
1079 | +#ifdef HAVE_STRINGS_H |
1080 | +# include <strings.h> |
1081 | +#endif |
1082 | +#ifdef HAVE_SYS_TYPES_H |
1083 | +# include <sys/types.h> |
1084 | +#endif |
1085 | +#ifdef HAVE_SYS_STAT_H |
1086 | +# include <sys/stat.h> |
1087 | +#endif |
1088 | #ifdef HAVE_UNISTD_H |
1089 | # include <unistd.h> |
1090 | #endif" |
1091 | |
1092 | +ac_header_c_list= |
1093 | enable_option_checking=no |
1094 | ac_subst_vars='LTLIBOBJS |
1095 | LIBOBJS |
1096 | @@ -647,7 +674,6 @@ LIBREADLINE |
1097 | TALLOC_LDFLAGS |
1098 | TALLOC_LIBS |
1099 | DIRNAME |
1100 | -LOCATE |
1101 | AUTOHEADER |
1102 | AUTOCONF |
1103 | ACLOCAL |
1104 | @@ -719,6 +745,7 @@ infodir |
1105 | docdir |
1106 | oldincludedir |
1107 | includedir |
1108 | +runstatedir |
1109 | localstatedir |
1110 | sharedstatedir |
1111 | sysconfdir |
1112 | @@ -841,6 +868,7 @@ datadir='${datarootdir}' |
1113 | sysconfdir='${prefix}/etc' |
1114 | sharedstatedir='${prefix}/com' |
1115 | localstatedir='${prefix}/var' |
1116 | +runstatedir='${localstatedir}/run' |
1117 | includedir='${prefix}/include' |
1118 | oldincludedir='/usr/include' |
1119 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
1120 | @@ -870,8 +898,6 @@ do |
1121 | *) ac_optarg=yes ;; |
1122 | esac |
1123 | |
1124 | - # Accept the important Cygnus configure options, so we can diagnose typos. |
1125 | - |
1126 | case $ac_dashdash$ac_option in |
1127 | --) |
1128 | ac_dashdash=yes ;; |
1129 | @@ -912,9 +938,9 @@ do |
1130 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1131 | # Reject names that are not valid shell variable names. |
1132 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1133 | - as_fn_error $? "invalid feature name: $ac_useropt" |
1134 | + as_fn_error $? "invalid feature name: \`$ac_useropt'" |
1135 | ac_useropt_orig=$ac_useropt |
1136 | - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1137 | + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1138 | case $ac_user_opts in |
1139 | *" |
1140 | "enable_$ac_useropt" |
1141 | @@ -938,9 +964,9 @@ do |
1142 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1143 | # Reject names that are not valid shell variable names. |
1144 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1145 | - as_fn_error $? "invalid feature name: $ac_useropt" |
1146 | + as_fn_error $? "invalid feature name: \`$ac_useropt'" |
1147 | ac_useropt_orig=$ac_useropt |
1148 | - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1149 | + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1150 | case $ac_user_opts in |
1151 | *" |
1152 | "enable_$ac_useropt" |
1153 | @@ -1093,6 +1119,15 @@ do |
1154 | | -silent | --silent | --silen | --sile | --sil) |
1155 | silent=yes ;; |
1156 | |
1157 | + -runstatedir | --runstatedir | --runstatedi | --runstated \ |
1158 | + | --runstate | --runstat | --runsta | --runst | --runs \ |
1159 | + | --run | --ru | --r) |
1160 | + ac_prev=runstatedir ;; |
1161 | + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ |
1162 | + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ |
1163 | + | --run=* | --ru=* | --r=*) |
1164 | + runstatedir=$ac_optarg ;; |
1165 | + |
1166 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1167 | ac_prev=sbindir ;; |
1168 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1169 | @@ -1142,9 +1177,9 @@ do |
1170 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1171 | # Reject names that are not valid shell variable names. |
1172 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1173 | - as_fn_error $? "invalid package name: $ac_useropt" |
1174 | + as_fn_error $? "invalid package name: \`$ac_useropt'" |
1175 | ac_useropt_orig=$ac_useropt |
1176 | - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1177 | + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1178 | case $ac_user_opts in |
1179 | *" |
1180 | "with_$ac_useropt" |
1181 | @@ -1158,9 +1193,9 @@ do |
1182 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1183 | # Reject names that are not valid shell variable names. |
1184 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
1185 | - as_fn_error $? "invalid package name: $ac_useropt" |
1186 | + as_fn_error $? "invalid package name: \`$ac_useropt'" |
1187 | ac_useropt_orig=$ac_useropt |
1188 | - ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
1189 | + ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` |
1190 | case $ac_user_opts in |
1191 | *" |
1192 | "with_$ac_useropt" |
1193 | @@ -1204,9 +1239,9 @@ Try \`$0 --help' for more information" |
1194 | |
1195 | *) |
1196 | # FIXME: should be removed in autoconf 3.0. |
1197 | - $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1198 | + printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1199 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1200 | - $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1201 | + printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1202 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
1203 | ;; |
1204 | |
1205 | @@ -1222,7 +1257,7 @@ if test -n "$ac_unrecognized_opts"; then |
1206 | case $enable_option_checking in |
1207 | no) ;; |
1208 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
1209 | - *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1210 | + *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
1211 | esac |
1212 | fi |
1213 | |
1214 | @@ -1230,7 +1265,7 @@ fi |
1215 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1216 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1217 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1218 | - libdir localedir mandir |
1219 | + libdir localedir mandir runstatedir |
1220 | do |
1221 | eval ac_val=\$$ac_var |
1222 | # Remove trailing slashes. |
1223 | @@ -1286,7 +1321,7 @@ $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1224 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
1225 | X"$as_myself" : 'X\(//\)$' \| \ |
1226 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
1227 | -$as_echo X"$as_myself" | |
1228 | +printf "%s\n" X"$as_myself" | |
1229 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1230 | s//\1/ |
1231 | q |
1232 | @@ -1343,7 +1378,7 @@ if test "$ac_init_help" = "long"; then |
1233 | # Omit some internal or obsolete options to make the list less imposing. |
1234 | # This message is too long to be a string in the A/UX 3.1 sh. |
1235 | cat <<_ACEOF |
1236 | -\`configure' configures freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $ to adapt to many kinds of systems. |
1237 | +\`configure' configures freeradius $Id$ to adapt to many kinds of systems. |
1238 | |
1239 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1240 | |
1241 | @@ -1383,6 +1418,7 @@ Fine tuning of the installation directories: |
1242 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1243 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1244 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1245 | + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] |
1246 | --libdir=DIR object code libraries [EPREFIX/lib] |
1247 | --includedir=DIR C header files [PREFIX/include] |
1248 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1249 | @@ -1409,7 +1445,7 @@ fi |
1250 | |
1251 | if test -n "$ac_init_help"; then |
1252 | case $ac_init_help in |
1253 | - short | recursive ) echo "Configuration of freeradius $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $:";; |
1254 | + short | recursive ) echo "Configuration of freeradius $Id$:";; |
1255 | esac |
1256 | cat <<\_ACEOF |
1257 | |
1258 | @@ -1535,9 +1571,9 @@ if test "$ac_init_help" = "recursive"; then |
1259 | case "$ac_dir" in |
1260 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1261 | *) |
1262 | - ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
1263 | + ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` |
1264 | # A ".." for each directory in $ac_dir_suffix. |
1265 | - ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1266 | + ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
1267 | case $ac_top_builddir_sub in |
1268 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1269 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1270 | @@ -1565,7 +1601,8 @@ esac |
1271 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1272 | |
1273 | cd "$ac_dir" || { ac_status=$?; continue; } |
1274 | - # Check for guested configure. |
1275 | + # Check for configure.gnu first; this name is used for a wrapper for |
1276 | + # Metaconfig's "Configure" on case-insensitive file systems. |
1277 | if test -f "$ac_srcdir/configure.gnu"; then |
1278 | echo && |
1279 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1280 | @@ -1573,7 +1610,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1281 | echo && |
1282 | $SHELL "$ac_srcdir/configure" --help=recursive |
1283 | else |
1284 | - $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1285 | + printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1286 | fi || ac_status=$? |
1287 | cd "$ac_pwd" || { ac_status=$?; break; } |
1288 | done |
1289 | @@ -1582,10 +1619,10 @@ fi |
1290 | test -n "$ac_init_help" && exit $ac_status |
1291 | if $ac_init_version; then |
1292 | cat <<\_ACEOF |
1293 | -freeradius configure $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $ |
1294 | -generated by GNU Autoconf 2.69 |
1295 | +freeradius configure $Id$ |
1296 | +generated by GNU Autoconf 2.71 |
1297 | |
1298 | -Copyright (C) 2012 Free Software Foundation, Inc. |
1299 | +Copyright (C) 2021 Free Software Foundation, Inc. |
1300 | This configure script is free software; the Free Software Foundation |
1301 | gives unlimited permission to copy, distribute and modify it. |
1302 | _ACEOF |
1303 | @@ -1602,14 +1639,14 @@ fi |
1304 | ac_fn_c_try_compile () |
1305 | { |
1306 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1307 | - rm -f conftest.$ac_objext |
1308 | + rm -f conftest.$ac_objext conftest.beam |
1309 | if { { ac_try="$ac_compile" |
1310 | case "(($ac_try" in |
1311 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1312 | *) ac_try_echo=$ac_try;; |
1313 | esac |
1314 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1315 | -$as_echo "$ac_try_echo"; } >&5 |
1316 | +printf "%s\n" "$ac_try_echo"; } >&5 |
1317 | (eval "$ac_compile") 2>conftest.err |
1318 | ac_status=$? |
1319 | if test -s conftest.err; then |
1320 | @@ -1617,14 +1654,15 @@ $as_echo "$ac_try_echo"; } >&5 |
1321 | cat conftest.er1 >&5 |
1322 | mv -f conftest.er1 conftest.err |
1323 | fi |
1324 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1325 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1326 | test $ac_status = 0; } && { |
1327 | test -z "$ac_c_werror_flag" || |
1328 | test ! -s conftest.err |
1329 | - } && test -s conftest.$ac_objext; then : |
1330 | + } && test -s conftest.$ac_objext |
1331 | +then : |
1332 | ac_retval=0 |
1333 | -else |
1334 | - $as_echo "$as_me: failed program was:" >&5 |
1335 | +else $as_nop |
1336 | + printf "%s\n" "$as_me: failed program was:" >&5 |
1337 | sed 's/^/| /' conftest.$ac_ext >&5 |
1338 | |
1339 | ac_retval=1 |
1340 | @@ -1640,14 +1678,14 @@ fi |
1341 | ac_fn_cxx_try_compile () |
1342 | { |
1343 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1344 | - rm -f conftest.$ac_objext |
1345 | + rm -f conftest.$ac_objext conftest.beam |
1346 | if { { ac_try="$ac_compile" |
1347 | case "(($ac_try" in |
1348 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1349 | *) ac_try_echo=$ac_try;; |
1350 | esac |
1351 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1352 | -$as_echo "$ac_try_echo"; } >&5 |
1353 | +printf "%s\n" "$ac_try_echo"; } >&5 |
1354 | (eval "$ac_compile") 2>conftest.err |
1355 | ac_status=$? |
1356 | if test -s conftest.err; then |
1357 | @@ -1655,14 +1693,15 @@ $as_echo "$ac_try_echo"; } >&5 |
1358 | cat conftest.er1 >&5 |
1359 | mv -f conftest.er1 conftest.err |
1360 | fi |
1361 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1362 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1363 | test $ac_status = 0; } && { |
1364 | test -z "$ac_cxx_werror_flag" || |
1365 | test ! -s conftest.err |
1366 | - } && test -s conftest.$ac_objext; then : |
1367 | + } && test -s conftest.$ac_objext |
1368 | +then : |
1369 | ac_retval=0 |
1370 | -else |
1371 | - $as_echo "$as_me: failed program was:" >&5 |
1372 | +else $as_nop |
1373 | + printf "%s\n" "$as_me: failed program was:" >&5 |
1374 | sed 's/^/| /' conftest.$ac_ext >&5 |
1375 | |
1376 | ac_retval=1 |
1377 | @@ -1672,6 +1711,39 @@ fi |
1378 | |
1379 | } # ac_fn_cxx_try_compile |
1380 | |
1381 | +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1382 | +# ------------------------------------------------------- |
1383 | +# Tests whether HEADER exists and can be compiled using the include files in |
1384 | +# INCLUDES, setting the cache variable VAR accordingly. |
1385 | +ac_fn_c_check_header_compile () |
1386 | +{ |
1387 | + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1388 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1389 | +printf %s "checking for $2... " >&6; } |
1390 | +if eval test \${$3+y} |
1391 | +then : |
1392 | + printf %s "(cached) " >&6 |
1393 | +else $as_nop |
1394 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1395 | +/* end confdefs.h. */ |
1396 | +$4 |
1397 | +#include <$2> |
1398 | +_ACEOF |
1399 | +if ac_fn_c_try_compile "$LINENO" |
1400 | +then : |
1401 | + eval "$3=yes" |
1402 | +else $as_nop |
1403 | + eval "$3=no" |
1404 | +fi |
1405 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1406 | +fi |
1407 | +eval ac_res=\$$3 |
1408 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1409 | +printf "%s\n" "$ac_res" >&6; } |
1410 | + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1411 | + |
1412 | +} # ac_fn_c_check_header_compile |
1413 | + |
1414 | # ac_fn_c_try_cpp LINENO |
1415 | # ---------------------- |
1416 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
1417 | @@ -1684,7 +1756,7 @@ case "(($ac_try" in |
1418 | *) ac_try_echo=$ac_try;; |
1419 | esac |
1420 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1421 | -$as_echo "$ac_try_echo"; } >&5 |
1422 | +printf "%s\n" "$ac_try_echo"; } >&5 |
1423 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
1424 | ac_status=$? |
1425 | if test -s conftest.err; then |
1426 | @@ -1692,14 +1764,15 @@ $as_echo "$ac_try_echo"; } >&5 |
1427 | cat conftest.er1 >&5 |
1428 | mv -f conftest.er1 conftest.err |
1429 | fi |
1430 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1431 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1432 | test $ac_status = 0; } > conftest.i && { |
1433 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1434 | test ! -s conftest.err |
1435 | - }; then : |
1436 | + } |
1437 | +then : |
1438 | ac_retval=0 |
1439 | -else |
1440 | - $as_echo "$as_me: failed program was:" >&5 |
1441 | +else $as_nop |
1442 | + printf "%s\n" "$as_me: failed program was:" >&5 |
1443 | sed 's/^/| /' conftest.$ac_ext >&5 |
1444 | |
1445 | ac_retval=1 |
1446 | @@ -1709,101 +1782,10 @@ fi |
1447 | |
1448 | } # ac_fn_c_try_cpp |
1449 | |
1450 | -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1451 | -# ------------------------------------------------------- |
1452 | -# Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1453 | -# the include files in INCLUDES and setting the cache variable VAR |
1454 | -# accordingly. |
1455 | -ac_fn_c_check_header_mongrel () |
1456 | -{ |
1457 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1458 | - if eval \${$3+:} false; then : |
1459 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1460 | -$as_echo_n "checking for $2... " >&6; } |
1461 | -if eval \${$3+:} false; then : |
1462 | - $as_echo_n "(cached) " >&6 |
1463 | -fi |
1464 | -eval ac_res=\$$3 |
1465 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1466 | -$as_echo "$ac_res" >&6; } |
1467 | -else |
1468 | - # Is the header compilable? |
1469 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
1470 | -$as_echo_n "checking $2 usability... " >&6; } |
1471 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1472 | -/* end confdefs.h. */ |
1473 | -$4 |
1474 | -#include <$2> |
1475 | -_ACEOF |
1476 | -if ac_fn_c_try_compile "$LINENO"; then : |
1477 | - ac_header_compiler=yes |
1478 | -else |
1479 | - ac_header_compiler=no |
1480 | -fi |
1481 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1482 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1483 | -$as_echo "$ac_header_compiler" >&6; } |
1484 | - |
1485 | -# Is the header present? |
1486 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
1487 | -$as_echo_n "checking $2 presence... " >&6; } |
1488 | -cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1489 | -/* end confdefs.h. */ |
1490 | -#include <$2> |
1491 | -_ACEOF |
1492 | -if ac_fn_c_try_cpp "$LINENO"; then : |
1493 | - ac_header_preproc=yes |
1494 | -else |
1495 | - ac_header_preproc=no |
1496 | -fi |
1497 | -rm -f conftest.err conftest.i conftest.$ac_ext |
1498 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1499 | -$as_echo "$ac_header_preproc" >&6; } |
1500 | - |
1501 | -# So? What about this header? |
1502 | -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
1503 | - yes:no: ) |
1504 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
1505 | -$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
1506 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1507 | -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1508 | - ;; |
1509 | - no:yes:* ) |
1510 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
1511 | -$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
1512 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
1513 | -$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
1514 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
1515 | -$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
1516 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
1517 | -$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
1518 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
1519 | -$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
1520 | -( $as_echo "## ----------------------------------------- ## |
1521 | -## Report this to http://bugs.freeradius.org ## |
1522 | -## ----------------------------------------- ##" |
1523 | - ) | sed "s/^/$as_me: WARNING: /" >&2 |
1524 | - ;; |
1525 | -esac |
1526 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1527 | -$as_echo_n "checking for $2... " >&6; } |
1528 | -if eval \${$3+:} false; then : |
1529 | - $as_echo_n "(cached) " >&6 |
1530 | -else |
1531 | - eval "$3=\$ac_header_compiler" |
1532 | -fi |
1533 | -eval ac_res=\$$3 |
1534 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1535 | -$as_echo "$ac_res" >&6; } |
1536 | -fi |
1537 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1538 | - |
1539 | -} # ac_fn_c_check_header_mongrel |
1540 | - |
1541 | # ac_fn_c_try_run LINENO |
1542 | # ---------------------- |
1543 | -# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
1544 | -# that executables *can* be run. |
1545 | +# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that |
1546 | +# executables *can* be run. |
1547 | ac_fn_c_try_run () |
1548 | { |
1549 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1550 | @@ -1813,25 +1795,26 @@ case "(($ac_try" in |
1551 | *) ac_try_echo=$ac_try;; |
1552 | esac |
1553 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1554 | -$as_echo "$ac_try_echo"; } >&5 |
1555 | +printf "%s\n" "$ac_try_echo"; } >&5 |
1556 | (eval "$ac_link") 2>&5 |
1557 | ac_status=$? |
1558 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1559 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1560 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
1561 | { { case "(($ac_try" in |
1562 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1563 | *) ac_try_echo=$ac_try;; |
1564 | esac |
1565 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1566 | -$as_echo "$ac_try_echo"; } >&5 |
1567 | +printf "%s\n" "$ac_try_echo"; } >&5 |
1568 | (eval "$ac_try") 2>&5 |
1569 | ac_status=$? |
1570 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1571 | - test $ac_status = 0; }; }; then : |
1572 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1573 | + test $ac_status = 0; }; } |
1574 | +then : |
1575 | ac_retval=0 |
1576 | -else |
1577 | - $as_echo "$as_me: program exited with status $ac_status" >&5 |
1578 | - $as_echo "$as_me: failed program was:" >&5 |
1579 | +else $as_nop |
1580 | + printf "%s\n" "$as_me: program exited with status $ac_status" >&5 |
1581 | + printf "%s\n" "$as_me: failed program was:" >&5 |
1582 | sed 's/^/| /' conftest.$ac_ext >&5 |
1583 | |
1584 | ac_retval=$ac_status |
1585 | @@ -1842,51 +1825,20 @@ fi |
1586 | |
1587 | } # ac_fn_c_try_run |
1588 | |
1589 | -# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1590 | -# ------------------------------------------------------- |
1591 | -# Tests whether HEADER exists and can be compiled using the include files in |
1592 | -# INCLUDES, setting the cache variable VAR accordingly. |
1593 | -ac_fn_c_check_header_compile () |
1594 | -{ |
1595 | - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1596 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1597 | -$as_echo_n "checking for $2... " >&6; } |
1598 | -if eval \${$3+:} false; then : |
1599 | - $as_echo_n "(cached) " >&6 |
1600 | -else |
1601 | - cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1602 | -/* end confdefs.h. */ |
1603 | -$4 |
1604 | -#include <$2> |
1605 | -_ACEOF |
1606 | -if ac_fn_c_try_compile "$LINENO"; then : |
1607 | - eval "$3=yes" |
1608 | -else |
1609 | - eval "$3=no" |
1610 | -fi |
1611 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1612 | -fi |
1613 | -eval ac_res=\$$3 |
1614 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1615 | -$as_echo "$ac_res" >&6; } |
1616 | - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1617 | - |
1618 | -} # ac_fn_c_check_header_compile |
1619 | - |
1620 | # ac_fn_c_try_link LINENO |
1621 | # ----------------------- |
1622 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
1623 | ac_fn_c_try_link () |
1624 | { |
1625 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1626 | - rm -f conftest.$ac_objext conftest$ac_exeext |
1627 | + rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext |
1628 | if { { ac_try="$ac_link" |
1629 | case "(($ac_try" in |
1630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
1631 | *) ac_try_echo=$ac_try;; |
1632 | esac |
1633 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
1634 | -$as_echo "$ac_try_echo"; } >&5 |
1635 | +printf "%s\n" "$ac_try_echo"; } >&5 |
1636 | (eval "$ac_link") 2>conftest.err |
1637 | ac_status=$? |
1638 | if test -s conftest.err; then |
1639 | @@ -1894,17 +1846,18 @@ $as_echo "$ac_try_echo"; } >&5 |
1640 | cat conftest.er1 >&5 |
1641 | mv -f conftest.er1 conftest.err |
1642 | fi |
1643 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1644 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1645 | test $ac_status = 0; } && { |
1646 | test -z "$ac_c_werror_flag" || |
1647 | test ! -s conftest.err |
1648 | } && test -s conftest$ac_exeext && { |
1649 | test "$cross_compiling" = yes || |
1650 | test -x conftest$ac_exeext |
1651 | - }; then : |
1652 | + } |
1653 | +then : |
1654 | ac_retval=0 |
1655 | -else |
1656 | - $as_echo "$as_me: failed program was:" >&5 |
1657 | +else $as_nop |
1658 | + printf "%s\n" "$as_me: failed program was:" >&5 |
1659 | sed 's/^/| /' conftest.$ac_ext >&5 |
1660 | |
1661 | ac_retval=1 |
1662 | @@ -1925,11 +1878,12 @@ fi |
1663 | ac_fn_c_check_func () |
1664 | { |
1665 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1666 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1667 | -$as_echo_n "checking for $2... " >&6; } |
1668 | -if eval \${$3+:} false; then : |
1669 | - $as_echo_n "(cached) " >&6 |
1670 | -else |
1671 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1672 | +printf %s "checking for $2... " >&6; } |
1673 | +if eval test \${$3+y} |
1674 | +then : |
1675 | + printf %s "(cached) " >&6 |
1676 | +else $as_nop |
1677 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1678 | /* end confdefs.h. */ |
1679 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
1680 | @@ -1937,16 +1891,9 @@ else |
1681 | #define $2 innocuous_$2 |
1682 | |
1683 | /* System header to define __stub macros and hopefully few prototypes, |
1684 | - which can conflict with char $2 (); below. |
1685 | - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
1686 | - <limits.h> exists even on freestanding compilers. */ |
1687 | - |
1688 | -#ifdef __STDC__ |
1689 | -# include <limits.h> |
1690 | -#else |
1691 | -# include <assert.h> |
1692 | -#endif |
1693 | + which can conflict with char $2 (); below. */ |
1694 | |
1695 | +#include <limits.h> |
1696 | #undef $2 |
1697 | |
1698 | /* Override any GCC internal prototype to avoid an error. |
1699 | @@ -1964,24 +1911,25 @@ choke me |
1700 | #endif |
1701 | |
1702 | int |
1703 | -main () |
1704 | +main (void) |
1705 | { |
1706 | return $2 (); |
1707 | ; |
1708 | return 0; |
1709 | } |
1710 | _ACEOF |
1711 | -if ac_fn_c_try_link "$LINENO"; then : |
1712 | +if ac_fn_c_try_link "$LINENO" |
1713 | +then : |
1714 | eval "$3=yes" |
1715 | -else |
1716 | +else $as_nop |
1717 | eval "$3=no" |
1718 | fi |
1719 | -rm -f core conftest.err conftest.$ac_objext \ |
1720 | +rm -f core conftest.err conftest.$ac_objext conftest.beam \ |
1721 | conftest$ac_exeext conftest.$ac_ext |
1722 | fi |
1723 | eval ac_res=\$$3 |
1724 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1725 | -$as_echo "$ac_res" >&6; } |
1726 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1727 | +printf "%s\n" "$ac_res" >&6; } |
1728 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1729 | |
1730 | } # ac_fn_c_check_func |
1731 | @@ -1993,17 +1941,18 @@ $as_echo "$ac_res" >&6; } |
1732 | ac_fn_c_check_type () |
1733 | { |
1734 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1735 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1736 | -$as_echo_n "checking for $2... " >&6; } |
1737 | -if eval \${$3+:} false; then : |
1738 | - $as_echo_n "(cached) " >&6 |
1739 | -else |
1740 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1741 | +printf %s "checking for $2... " >&6; } |
1742 | +if eval test \${$3+y} |
1743 | +then : |
1744 | + printf %s "(cached) " >&6 |
1745 | +else $as_nop |
1746 | eval "$3=no" |
1747 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1748 | /* end confdefs.h. */ |
1749 | $4 |
1750 | int |
1751 | -main () |
1752 | +main (void) |
1753 | { |
1754 | if (sizeof ($2)) |
1755 | return 0; |
1756 | @@ -2011,12 +1960,13 @@ if (sizeof ($2)) |
1757 | return 0; |
1758 | } |
1759 | _ACEOF |
1760 | -if ac_fn_c_try_compile "$LINENO"; then : |
1761 | +if ac_fn_c_try_compile "$LINENO" |
1762 | +then : |
1763 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1764 | /* end confdefs.h. */ |
1765 | $4 |
1766 | int |
1767 | -main () |
1768 | +main (void) |
1769 | { |
1770 | if (sizeof (($2))) |
1771 | return 0; |
1772 | @@ -2024,41 +1974,45 @@ if (sizeof (($2))) |
1773 | return 0; |
1774 | } |
1775 | _ACEOF |
1776 | -if ac_fn_c_try_compile "$LINENO"; then : |
1777 | +if ac_fn_c_try_compile "$LINENO" |
1778 | +then : |
1779 | |
1780 | -else |
1781 | +else $as_nop |
1782 | eval "$3=yes" |
1783 | fi |
1784 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1785 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1786 | fi |
1787 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1788 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1789 | fi |
1790 | eval ac_res=\$$3 |
1791 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1792 | -$as_echo "$ac_res" >&6; } |
1793 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1794 | +printf "%s\n" "$ac_res" >&6; } |
1795 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1796 | |
1797 | } # ac_fn_c_check_type |
1798 | |
1799 | -# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
1800 | -# --------------------------------------------- |
1801 | +# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR |
1802 | +# ------------------------------------------------------------------ |
1803 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR |
1804 | -# accordingly. |
1805 | -ac_fn_c_check_decl () |
1806 | +# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. |
1807 | +ac_fn_check_decl () |
1808 | { |
1809 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1810 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
1811 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
1812 | +printf %s "checking whether $as_decl_name is declared... " >&6; } |
1813 | +if eval test \${$3+y} |
1814 | +then : |
1815 | + printf %s "(cached) " >&6 |
1816 | +else $as_nop |
1817 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` |
1818 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 |
1819 | -$as_echo_n "checking whether $as_decl_name is declared... " >&6; } |
1820 | -if eval \${$3+:} false; then : |
1821 | - $as_echo_n "(cached) " >&6 |
1822 | -else |
1823 | + eval ac_save_FLAGS=\$$6 |
1824 | + as_fn_append $6 " $5" |
1825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1826 | /* end confdefs.h. */ |
1827 | $4 |
1828 | int |
1829 | -main () |
1830 | +main (void) |
1831 | { |
1832 | #ifndef $as_decl_name |
1833 | #ifdef __cplusplus |
1834 | @@ -2072,27 +2026,50 @@ main () |
1835 | return 0; |
1836 | } |
1837 | _ACEOF |
1838 | -if ac_fn_c_try_compile "$LINENO"; then : |
1839 | +if ac_fn_c_try_compile "$LINENO" |
1840 | +then : |
1841 | eval "$3=yes" |
1842 | -else |
1843 | +else $as_nop |
1844 | eval "$3=no" |
1845 | fi |
1846 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
1847 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
1848 | + eval $6=\$ac_save_FLAGS |
1849 | + |
1850 | fi |
1851 | eval ac_res=\$$3 |
1852 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1853 | -$as_echo "$ac_res" >&6; } |
1854 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1855 | +printf "%s\n" "$ac_res" >&6; } |
1856 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1857 | |
1858 | -} # ac_fn_c_check_decl |
1859 | +} # ac_fn_check_decl |
1860 | +ac_configure_args_raw= |
1861 | +for ac_arg |
1862 | +do |
1863 | + case $ac_arg in |
1864 | + *\'*) |
1865 | + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1866 | + esac |
1867 | + as_fn_append ac_configure_args_raw " '$ac_arg'" |
1868 | +done |
1869 | + |
1870 | +case $ac_configure_args_raw in |
1871 | + *$as_nl*) |
1872 | + ac_safe_unquote= ;; |
1873 | + *) |
1874 | + ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. |
1875 | + ac_unsafe_a="$ac_unsafe_z#~" |
1876 | + ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" |
1877 | + ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; |
1878 | +esac |
1879 | + |
1880 | cat >config.log <<_ACEOF |
1881 | This file contains any messages produced by compilers while |
1882 | running configure, to aid debugging if configure makes a mistake. |
1883 | |
1884 | -It was created by freeradius $as_me $Id: fb710025d44f1d21ee3df3199a8c5d6a80fa250d $, which was |
1885 | -generated by GNU Autoconf 2.69. Invocation command line was |
1886 | +It was created by freeradius $as_me $Id$, which was |
1887 | +generated by GNU Autoconf 2.71. Invocation command line was |
1888 | |
1889 | - $ $0 $@ |
1890 | + $ $0$ac_configure_args_raw |
1891 | |
1892 | _ACEOF |
1893 | exec 5>>config.log |
1894 | @@ -2125,8 +2102,12 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1895 | for as_dir in $PATH |
1896 | do |
1897 | IFS=$as_save_IFS |
1898 | - test -z "$as_dir" && as_dir=. |
1899 | - $as_echo "PATH: $as_dir" |
1900 | + case $as_dir in #((( |
1901 | + '') as_dir=./ ;; |
1902 | + */) ;; |
1903 | + *) as_dir=$as_dir/ ;; |
1904 | + esac |
1905 | + printf "%s\n" "PATH: $as_dir" |
1906 | done |
1907 | IFS=$as_save_IFS |
1908 | |
1909 | @@ -2161,7 +2142,7 @@ do |
1910 | | -silent | --silent | --silen | --sile | --sil) |
1911 | continue ;; |
1912 | *\'*) |
1913 | - ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1914 | + ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1915 | esac |
1916 | case $ac_pass in |
1917 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
1918 | @@ -2196,11 +2177,13 @@ done |
1919 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1920 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1921 | trap 'exit_status=$? |
1922 | + # Sanitize IFS. |
1923 | + IFS=" "" $as_nl" |
1924 | # Save into config.log some information that might help in debugging. |
1925 | { |
1926 | echo |
1927 | |
1928 | - $as_echo "## ---------------- ## |
1929 | + printf "%s\n" "## ---------------- ## |
1930 | ## Cache variables. ## |
1931 | ## ---------------- ##" |
1932 | echo |
1933 | @@ -2211,8 +2194,8 @@ trap 'exit_status=$? |
1934 | case $ac_val in #( |
1935 | *${as_nl}*) |
1936 | case $ac_var in #( |
1937 | - *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1938 | -$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1939 | + *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
1940 | +printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1941 | esac |
1942 | case $ac_var in #( |
1943 | _ | IFS | as_nl) ;; #( |
1944 | @@ -2236,7 +2219,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1945 | ) |
1946 | echo |
1947 | |
1948 | - $as_echo "## ----------------- ## |
1949 | + printf "%s\n" "## ----------------- ## |
1950 | ## Output variables. ## |
1951 | ## ----------------- ##" |
1952 | echo |
1953 | @@ -2244,14 +2227,14 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1954 | do |
1955 | eval ac_val=\$$ac_var |
1956 | case $ac_val in |
1957 | - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1958 | + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1959 | esac |
1960 | - $as_echo "$ac_var='\''$ac_val'\''" |
1961 | + printf "%s\n" "$ac_var='\''$ac_val'\''" |
1962 | done | sort |
1963 | echo |
1964 | |
1965 | if test -n "$ac_subst_files"; then |
1966 | - $as_echo "## ------------------- ## |
1967 | + printf "%s\n" "## ------------------- ## |
1968 | ## File substitutions. ## |
1969 | ## ------------------- ##" |
1970 | echo |
1971 | @@ -2259,15 +2242,15 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1972 | do |
1973 | eval ac_val=\$$ac_var |
1974 | case $ac_val in |
1975 | - *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1976 | + *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1977 | esac |
1978 | - $as_echo "$ac_var='\''$ac_val'\''" |
1979 | + printf "%s\n" "$ac_var='\''$ac_val'\''" |
1980 | done | sort |
1981 | echo |
1982 | fi |
1983 | |
1984 | if test -s confdefs.h; then |
1985 | - $as_echo "## ----------- ## |
1986 | + printf "%s\n" "## ----------- ## |
1987 | ## confdefs.h. ## |
1988 | ## ----------- ##" |
1989 | echo |
1990 | @@ -2275,8 +2258,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
1991 | echo |
1992 | fi |
1993 | test "$ac_signal" != 0 && |
1994 | - $as_echo "$as_me: caught signal $ac_signal" |
1995 | - $as_echo "$as_me: exit $exit_status" |
1996 | + printf "%s\n" "$as_me: caught signal $ac_signal" |
1997 | + printf "%s\n" "$as_me: exit $exit_status" |
1998 | } >&5 |
1999 | rm -f core *.core core.conftest.* && |
2000 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
2001 | @@ -2290,63 +2273,48 @@ ac_signal=0 |
2002 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
2003 | rm -f -r conftest* confdefs.h |
2004 | |
2005 | -$as_echo "/* confdefs.h */" > confdefs.h |
2006 | +printf "%s\n" "/* confdefs.h */" > confdefs.h |
2007 | |
2008 | # Predefined preprocessor variables. |
2009 | |
2010 | -cat >>confdefs.h <<_ACEOF |
2011 | -#define PACKAGE_NAME "$PACKAGE_NAME" |
2012 | -_ACEOF |
2013 | +printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h |
2014 | |
2015 | -cat >>confdefs.h <<_ACEOF |
2016 | -#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
2017 | -_ACEOF |
2018 | +printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h |
2019 | |
2020 | -cat >>confdefs.h <<_ACEOF |
2021 | -#define PACKAGE_VERSION "$PACKAGE_VERSION" |
2022 | -_ACEOF |
2023 | +printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h |
2024 | |
2025 | -cat >>confdefs.h <<_ACEOF |
2026 | -#define PACKAGE_STRING "$PACKAGE_STRING" |
2027 | -_ACEOF |
2028 | +printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h |
2029 | |
2030 | -cat >>confdefs.h <<_ACEOF |
2031 | -#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
2032 | -_ACEOF |
2033 | +printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h |
2034 | |
2035 | -cat >>confdefs.h <<_ACEOF |
2036 | -#define PACKAGE_URL "$PACKAGE_URL" |
2037 | -_ACEOF |
2038 | +printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h |
2039 | |
2040 | |
2041 | # Let the site file select an alternate cache file if it wants to. |
2042 | # Prefer an explicitly selected file to automatically selected ones. |
2043 | -ac_site_file1=NONE |
2044 | -ac_site_file2=NONE |
2045 | if test -n "$CONFIG_SITE"; then |
2046 | - # We do not want a PATH search for config.site. |
2047 | - case $CONFIG_SITE in #(( |
2048 | - -*) ac_site_file1=./$CONFIG_SITE;; |
2049 | - */*) ac_site_file1=$CONFIG_SITE;; |
2050 | - *) ac_site_file1=./$CONFIG_SITE;; |
2051 | - esac |
2052 | + ac_site_files="$CONFIG_SITE" |
2053 | elif test "x$prefix" != xNONE; then |
2054 | - ac_site_file1=$prefix/share/config.site |
2055 | - ac_site_file2=$prefix/etc/config.site |
2056 | + ac_site_files="$prefix/share/config.site $prefix/etc/config.site" |
2057 | else |
2058 | - ac_site_file1=$ac_default_prefix/share/config.site |
2059 | - ac_site_file2=$ac_default_prefix/etc/config.site |
2060 | + ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
2061 | fi |
2062 | -for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
2063 | + |
2064 | +for ac_site_file in $ac_site_files |
2065 | do |
2066 | - test "x$ac_site_file" = xNONE && continue |
2067 | - if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
2068 | - { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2069 | -$as_echo "$as_me: loading site script $ac_site_file" >&6;} |
2070 | + case $ac_site_file in #( |
2071 | + */*) : |
2072 | + ;; #( |
2073 | + *) : |
2074 | + ac_site_file=./$ac_site_file ;; |
2075 | +esac |
2076 | + if test -f "$ac_site_file" && test -r "$ac_site_file"; then |
2077 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2078 | +printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} |
2079 | sed 's/^/| /' "$ac_site_file" >&5 |
2080 | . "$ac_site_file" \ |
2081 | - || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2082 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2083 | + || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2084 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2085 | as_fn_error $? "failed to load site script $ac_site_file |
2086 | See \`config.log' for more details" "$LINENO" 5; } |
2087 | fi |
2088 | @@ -2356,102 +2324,737 @@ if test -r "$cache_file"; then |
2089 | # Some versions of bash will fail to source /dev/null (special files |
2090 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
2091 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
2092 | - { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2093 | -$as_echo "$as_me: loading cache $cache_file" >&6;} |
2094 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2095 | +printf "%s\n" "$as_me: loading cache $cache_file" >&6;} |
2096 | case $cache_file in |
2097 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
2098 | *) . "./$cache_file";; |
2099 | esac |
2100 | fi |
2101 | else |
2102 | - { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2103 | -$as_echo "$as_me: creating cache $cache_file" >&6;} |
2104 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
2105 | +printf "%s\n" "$as_me: creating cache $cache_file" >&6;} |
2106 | >$cache_file |
2107 | fi |
2108 | |
2109 | -# Check that the precious variables saved in the cache have kept the same |
2110 | -# value. |
2111 | -ac_cache_corrupted=false |
2112 | -for ac_var in $ac_precious_vars; do |
2113 | - eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2114 | - eval ac_new_set=\$ac_env_${ac_var}_set |
2115 | - eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2116 | - eval ac_new_val=\$ac_env_${ac_var}_value |
2117 | - case $ac_old_set,$ac_new_set in |
2118 | - set,) |
2119 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2120 | -$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2121 | - ac_cache_corrupted=: ;; |
2122 | - ,set) |
2123 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2124 | -$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2125 | - ac_cache_corrupted=: ;; |
2126 | - ,);; |
2127 | - *) |
2128 | - if test "x$ac_old_val" != "x$ac_new_val"; then |
2129 | - # differences in whitespace do not lead to failure. |
2130 | - ac_old_val_w=`echo x $ac_old_val` |
2131 | - ac_new_val_w=`echo x $ac_new_val` |
2132 | - if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2133 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2134 | -$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2135 | - ac_cache_corrupted=: |
2136 | - else |
2137 | - { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2138 | -$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2139 | - eval $ac_var=\$ac_old_val |
2140 | - fi |
2141 | - { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2142 | -$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
2143 | - { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2144 | -$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
2145 | - fi;; |
2146 | - esac |
2147 | - # Pass precious variables to config.status. |
2148 | - if test "$ac_new_set" = set; then |
2149 | - case $ac_new_val in |
2150 | - *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2151 | - *) ac_arg=$ac_var=$ac_new_val ;; |
2152 | - esac |
2153 | - case " $ac_configure_args " in |
2154 | - *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2155 | - *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2156 | - esac |
2157 | - fi |
2158 | -done |
2159 | -if $ac_cache_corrupted; then |
2160 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2161 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
2162 | - { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2163 | -$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
2164 | - as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
2165 | -fi |
2166 | -## -------------------- ## |
2167 | -## Main body of script. ## |
2168 | -## -------------------- ## |
2169 | - |
2170 | -ac_ext=c |
2171 | -ac_cpp='$CPP $CPPFLAGS' |
2172 | -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2173 | -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2174 | -ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2175 | - |
2176 | - |
2177 | - |
2178 | - |
2179 | -ac_config_headers="$ac_config_headers src/include/autoconf.h" |
2180 | - |
2181 | - |
2182 | - |
2183 | - |
2184 | - |
2185 | - |
2186 | - |
2187 | - |
2188 | - |
2189 | - |
2190 | - |
2191 | - |
2192 | +# Test code for whether the C compiler supports C89 (global declarations) |
2193 | +ac_c_conftest_c89_globals=' |
2194 | +/* Does the compiler advertise C89 conformance? |
2195 | + Do not test the value of __STDC__, because some compilers set it to 0 |
2196 | + while being otherwise adequately conformant. */ |
2197 | +#if !defined __STDC__ |
2198 | +# error "Compiler does not advertise C89 conformance" |
2199 | +#endif |
2200 | + |
2201 | +#include <stddef.h> |
2202 | +#include <stdarg.h> |
2203 | +struct stat; |
2204 | +/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ |
2205 | +struct buf { int x; }; |
2206 | +struct buf * (*rcsopen) (struct buf *, struct stat *, int); |
2207 | +static char *e (p, i) |
2208 | + char **p; |
2209 | + int i; |
2210 | +{ |
2211 | + return p[i]; |
2212 | +} |
2213 | +static char *f (char * (*g) (char **, int), char **p, ...) |
2214 | +{ |
2215 | + char *s; |
2216 | + va_list v; |
2217 | + va_start (v,p); |
2218 | + s = g (p, va_arg (v,int)); |
2219 | + va_end (v); |
2220 | + return s; |
2221 | +} |
2222 | + |
2223 | +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2224 | + function prototypes and stuff, but not \xHH hex character constants. |
2225 | + These do not provoke an error unfortunately, instead are silently treated |
2226 | + as an "x". The following induces an error, until -std is added to get |
2227 | + proper ANSI mode. Curiously \x00 != x always comes out true, for an |
2228 | + array size at least. It is necessary to write \x00 == 0 to get something |
2229 | + that is true only with -std. */ |
2230 | +int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; |
2231 | + |
2232 | +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
2233 | + inside strings and character constants. */ |
2234 | +#define FOO(x) '\''x'\'' |
2235 | +int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; |
2236 | + |
2237 | +int test (int i, double x); |
2238 | +struct s1 {int (*f) (int a);}; |
2239 | +struct s2 {int (*f) (double a);}; |
2240 | +int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), |
2241 | + int, int);' |
2242 | + |
2243 | +# Test code for whether the C compiler supports C89 (body of main). |
2244 | +ac_c_conftest_c89_main=' |
2245 | +ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); |
2246 | +' |
2247 | + |
2248 | +# Test code for whether the C compiler supports C99 (global declarations) |
2249 | +ac_c_conftest_c99_globals=' |
2250 | +// Does the compiler advertise C99 conformance? |
2251 | +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L |
2252 | +# error "Compiler does not advertise C99 conformance" |
2253 | +#endif |
2254 | + |
2255 | +#include <stdbool.h> |
2256 | +extern int puts (const char *); |
2257 | +extern int printf (const char *, ...); |
2258 | +extern int dprintf (int, const char *, ...); |
2259 | +extern void *malloc (size_t); |
2260 | + |
2261 | +// Check varargs macros. These examples are taken from C99 6.10.3.5. |
2262 | +// dprintf is used instead of fprintf to avoid needing to declare |
2263 | +// FILE and stderr. |
2264 | +#define debug(...) dprintf (2, __VA_ARGS__) |
2265 | +#define showlist(...) puts (#__VA_ARGS__) |
2266 | +#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
2267 | +static void |
2268 | +test_varargs_macros (void) |
2269 | +{ |
2270 | + int x = 1234; |
2271 | + int y = 5678; |
2272 | + debug ("Flag"); |
2273 | + debug ("X = %d\n", x); |
2274 | + showlist (The first, second, and third items.); |
2275 | + report (x>y, "x is %d but y is %d", x, y); |
2276 | +} |
2277 | + |
2278 | +// Check long long types. |
2279 | +#define BIG64 18446744073709551615ull |
2280 | +#define BIG32 4294967295ul |
2281 | +#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
2282 | +#if !BIG_OK |
2283 | + #error "your preprocessor is broken" |
2284 | +#endif |
2285 | +#if BIG_OK |
2286 | +#else |
2287 | + #error "your preprocessor is broken" |
2288 | +#endif |
2289 | +static long long int bignum = -9223372036854775807LL; |
2290 | +static unsigned long long int ubignum = BIG64; |
2291 | + |
2292 | +struct incomplete_array |
2293 | +{ |
2294 | + int datasize; |
2295 | + double data[]; |
2296 | +}; |
2297 | + |
2298 | +struct named_init { |
2299 | + int number; |
2300 | + const wchar_t *name; |
2301 | + double average; |
2302 | +}; |
2303 | + |
2304 | +typedef const char *ccp; |
2305 | + |
2306 | +static inline int |
2307 | +test_restrict (ccp restrict text) |
2308 | +{ |
2309 | + // See if C++-style comments work. |
2310 | + // Iterate through items via the restricted pointer. |
2311 | + // Also check for declarations in for loops. |
2312 | + for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) |
2313 | + continue; |
2314 | + return 0; |
2315 | +} |
2316 | + |
2317 | +// Check varargs and va_copy. |
2318 | +static bool |
2319 | +test_varargs (const char *format, ...) |
2320 | +{ |
2321 | + va_list args; |
2322 | + va_start (args, format); |
2323 | + va_list args_copy; |
2324 | + va_copy (args_copy, args); |
2325 | + |
2326 | + const char *str = ""; |
2327 | + int number = 0; |
2328 | + float fnumber = 0; |
2329 | + |
2330 | + while (*format) |
2331 | + { |
2332 | + switch (*format++) |
2333 | + { |
2334 | + case '\''s'\'': // string |
2335 | + str = va_arg (args_copy, const char *); |
2336 | + break; |
2337 | + case '\''d'\'': // int |
2338 | + number = va_arg (args_copy, int); |
2339 | + break; |
2340 | + case '\''f'\'': // float |
2341 | + fnumber = va_arg (args_copy, double); |
2342 | + break; |
2343 | + default: |
2344 | + break; |
2345 | + } |
2346 | + } |
2347 | + va_end (args_copy); |
2348 | + va_end (args); |
2349 | + |
2350 | + return *str && number && fnumber; |
2351 | +} |
2352 | +' |
2353 | + |
2354 | +# Test code for whether the C compiler supports C99 (body of main). |
2355 | +ac_c_conftest_c99_main=' |
2356 | + // Check bool. |
2357 | + _Bool success = false; |
2358 | + success |= (argc != 0); |
2359 | + |
2360 | + // Check restrict. |
2361 | + if (test_restrict ("String literal") == 0) |
2362 | + success = true; |
2363 | + char *restrict newvar = "Another string"; |
2364 | + |
2365 | + // Check varargs. |
2366 | + success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); |
2367 | + test_varargs_macros (); |
2368 | + |
2369 | + // Check flexible array members. |
2370 | + struct incomplete_array *ia = |
2371 | + malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
2372 | + ia->datasize = 10; |
2373 | + for (int i = 0; i < ia->datasize; ++i) |
2374 | + ia->data[i] = i * 1.234; |
2375 | + |
2376 | + // Check named initializers. |
2377 | + struct named_init ni = { |
2378 | + .number = 34, |
2379 | + .name = L"Test wide string", |
2380 | + .average = 543.34343, |
2381 | + }; |
2382 | + |
2383 | + ni.number = 58; |
2384 | + |
2385 | + int dynamic_array[ni.number]; |
2386 | + dynamic_array[0] = argv[0][0]; |
2387 | + dynamic_array[ni.number - 1] = 543; |
2388 | + |
2389 | + // work around unused variable warnings |
2390 | + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' |
2391 | + || dynamic_array[ni.number - 1] != 543); |
2392 | +' |
2393 | + |
2394 | +# Test code for whether the C compiler supports C11 (global declarations) |
2395 | +ac_c_conftest_c11_globals=' |
2396 | +// Does the compiler advertise C11 conformance? |
2397 | +#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L |
2398 | +# error "Compiler does not advertise C11 conformance" |
2399 | +#endif |
2400 | + |
2401 | +// Check _Alignas. |
2402 | +char _Alignas (double) aligned_as_double; |
2403 | +char _Alignas (0) no_special_alignment; |
2404 | +extern char aligned_as_int; |
2405 | +char _Alignas (0) _Alignas (int) aligned_as_int; |
2406 | + |
2407 | +// Check _Alignof. |
2408 | +enum |
2409 | +{ |
2410 | + int_alignment = _Alignof (int), |
2411 | + int_array_alignment = _Alignof (int[100]), |
2412 | + char_alignment = _Alignof (char) |
2413 | +}; |
2414 | +_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); |
2415 | + |
2416 | +// Check _Noreturn. |
2417 | +int _Noreturn does_not_return (void) { for (;;) continue; } |
2418 | + |
2419 | +// Check _Static_assert. |
2420 | +struct test_static_assert |
2421 | +{ |
2422 | + int x; |
2423 | + _Static_assert (sizeof (int) <= sizeof (long int), |
2424 | + "_Static_assert does not work in struct"); |
2425 | + long int y; |
2426 | +}; |
2427 | + |
2428 | +// Check UTF-8 literals. |
2429 | +#define u8 syntax error! |
2430 | +char const utf8_literal[] = u8"happens to be ASCII" "another string"; |
2431 | + |
2432 | +// Check duplicate typedefs. |
2433 | +typedef long *long_ptr; |
2434 | +typedef long int *long_ptr; |
2435 | +typedef long_ptr long_ptr; |
2436 | + |
2437 | +// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. |
2438 | +struct anonymous |
2439 | +{ |
2440 | + union { |
2441 | + struct { int i; int j; }; |
2442 | + struct { int k; long int l; } w; |
2443 | + }; |
2444 | + int m; |
2445 | +} v1; |
2446 | +' |
2447 | + |
2448 | +# Test code for whether the C compiler supports C11 (body of main). |
2449 | +ac_c_conftest_c11_main=' |
2450 | + _Static_assert ((offsetof (struct anonymous, i) |
2451 | + == offsetof (struct anonymous, w.k)), |
2452 | + "Anonymous union alignment botch"); |
2453 | + v1.i = 2; |
2454 | + v1.w.k = 5; |
2455 | + ok |= v1.i != 5; |
2456 | +' |
2457 | + |
2458 | +# Test code for whether the C compiler supports C11 (complete). |
2459 | +ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} |
2460 | +${ac_c_conftest_c99_globals} |
2461 | +${ac_c_conftest_c11_globals} |
2462 | + |
2463 | +int |
2464 | +main (int argc, char **argv) |
2465 | +{ |
2466 | + int ok = 0; |
2467 | + ${ac_c_conftest_c89_main} |
2468 | + ${ac_c_conftest_c99_main} |
2469 | + ${ac_c_conftest_c11_main} |
2470 | + return ok; |
2471 | +} |
2472 | +" |
2473 | + |
2474 | +# Test code for whether the C compiler supports C99 (complete). |
2475 | +ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} |
2476 | +${ac_c_conftest_c99_globals} |
2477 | + |
2478 | +int |
2479 | +main (int argc, char **argv) |
2480 | +{ |
2481 | + int ok = 0; |
2482 | + ${ac_c_conftest_c89_main} |
2483 | + ${ac_c_conftest_c99_main} |
2484 | + return ok; |
2485 | +} |
2486 | +" |
2487 | + |
2488 | +# Test code for whether the C compiler supports C89 (complete). |
2489 | +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} |
2490 | + |
2491 | +int |
2492 | +main (int argc, char **argv) |
2493 | +{ |
2494 | + int ok = 0; |
2495 | + ${ac_c_conftest_c89_main} |
2496 | + return ok; |
2497 | +} |
2498 | +" |
2499 | + |
2500 | +# Test code for whether the C++ compiler supports C++98 (global declarations) |
2501 | +ac_cxx_conftest_cxx98_globals=' |
2502 | +// Does the compiler advertise C++98 conformance? |
2503 | +#if !defined __cplusplus || __cplusplus < 199711L |
2504 | +# error "Compiler does not advertise C++98 conformance" |
2505 | +#endif |
2506 | + |
2507 | +// These inclusions are to reject old compilers that |
2508 | +// lack the unsuffixed header files. |
2509 | +#include <cstdlib> |
2510 | +#include <exception> |
2511 | + |
2512 | +// <cassert> and <cstring> are *not* freestanding headers in C++98. |
2513 | +extern void assert (int); |
2514 | +namespace std { |
2515 | + extern int strcmp (const char *, const char *); |
2516 | +} |
2517 | + |
2518 | +// Namespaces, exceptions, and templates were all added after "C++ 2.0". |
2519 | +using std::exception; |
2520 | +using std::strcmp; |
2521 | + |
2522 | +namespace { |
2523 | + |
2524 | +void test_exception_syntax() |
2525 | +{ |
2526 | + try { |
2527 | + throw "test"; |
2528 | + } catch (const char *s) { |
2529 | + // Extra parentheses suppress a warning when building autoconf itself, |
2530 | + // due to lint rules shared with more typical C programs. |
2531 | + assert (!(strcmp) (s, "test")); |
2532 | + } |
2533 | +} |
2534 | + |
2535 | +template <typename T> struct test_template |
2536 | +{ |
2537 | + T const val; |
2538 | + explicit test_template(T t) : val(t) {} |
2539 | + template <typename U> T add(U u) { return static_cast<T>(u) + val; } |
2540 | +}; |
2541 | + |
2542 | +} // anonymous namespace |
2543 | +' |
2544 | + |
2545 | +# Test code for whether the C++ compiler supports C++98 (body of main) |
2546 | +ac_cxx_conftest_cxx98_main=' |
2547 | + assert (argc); |
2548 | + assert (! argv[0]); |
2549 | +{ |
2550 | + test_exception_syntax (); |
2551 | + test_template<double> tt (2.0); |
2552 | + assert (tt.add (4) == 6.0); |
2553 | + assert (true && !false); |
2554 | +} |
2555 | +' |
2556 | + |
2557 | +# Test code for whether the C++ compiler supports C++11 (global declarations) |
2558 | +ac_cxx_conftest_cxx11_globals=' |
2559 | +// Does the compiler advertise C++ 2011 conformance? |
2560 | +#if !defined __cplusplus || __cplusplus < 201103L |
2561 | +# error "Compiler does not advertise C++11 conformance" |
2562 | +#endif |
2563 | + |
2564 | +namespace cxx11test |
2565 | +{ |
2566 | + constexpr int get_val() { return 20; } |
2567 | + |
2568 | + struct testinit |
2569 | + { |
2570 | + int i; |
2571 | + double d; |
2572 | + }; |
2573 | + |
2574 | + class delegate |
2575 | + { |
2576 | + public: |
2577 | + delegate(int n) : n(n) {} |
2578 | + delegate(): delegate(2354) {} |
2579 | + |
2580 | + virtual int getval() { return this->n; }; |
2581 | + protected: |
2582 | + int n; |
2583 | + }; |
2584 | + |
2585 | + class overridden : public delegate |
2586 | + { |
2587 | + public: |
2588 | + overridden(int n): delegate(n) {} |
2589 | + virtual int getval() override final { return this->n * 2; } |
2590 | + }; |
2591 | + |
2592 | + class nocopy |
2593 | + { |
2594 | + public: |
2595 | + nocopy(int i): i(i) {} |
2596 | + nocopy() = default; |
2597 | + nocopy(const nocopy&) = delete; |
2598 | + nocopy & operator=(const nocopy&) = delete; |
2599 | + private: |
2600 | + int i; |
2601 | + }; |
2602 | + |
2603 | + // for testing lambda expressions |
2604 | + template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) |
2605 | + { |
2606 | + return f(v); |
2607 | + } |
2608 | + |
2609 | + // for testing variadic templates and trailing return types |
2610 | + template <typename V> auto sum(V first) -> V |
2611 | + { |
2612 | + return first; |
2613 | + } |
2614 | + template <typename V, typename... Args> auto sum(V first, Args... rest) -> V |
2615 | + { |
2616 | + return first + sum(rest...); |
2617 | + } |
2618 | +} |
2619 | +' |
2620 | + |
2621 | +# Test code for whether the C++ compiler supports C++11 (body of main) |
2622 | +ac_cxx_conftest_cxx11_main=' |
2623 | +{ |
2624 | + // Test auto and decltype |
2625 | + auto a1 = 6538; |
2626 | + auto a2 = 48573953.4; |
2627 | + auto a3 = "String literal"; |
2628 | + |
2629 | + int total = 0; |
2630 | + for (auto i = a3; *i; ++i) { total += *i; } |
2631 | + |
2632 | + decltype(a2) a4 = 34895.034; |
2633 | +} |
2634 | +{ |
2635 | + // Test constexpr |
2636 | + short sa[cxx11test::get_val()] = { 0 }; |
2637 | +} |
2638 | +{ |
2639 | + // Test initializer lists |
2640 | + cxx11test::testinit il = { 4323, 435234.23544 }; |
2641 | +} |
2642 | +{ |
2643 | + // Test range-based for |
2644 | + int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, |
2645 | + 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; |
2646 | + for (auto &x : array) { x += 23; } |
2647 | +} |
2648 | +{ |
2649 | + // Test lambda expressions |
2650 | + using cxx11test::eval; |
2651 | + assert (eval ([](int x) { return x*2; }, 21) == 42); |
2652 | + double d = 2.0; |
2653 | + assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); |
2654 | + assert (d == 5.0); |
2655 | + assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); |
2656 | + assert (d == 5.0); |
2657 | +} |
2658 | +{ |
2659 | + // Test use of variadic templates |
2660 | + using cxx11test::sum; |
2661 | + auto a = sum(1); |
2662 | + auto b = sum(1, 2); |
2663 | + auto c = sum(1.0, 2.0, 3.0); |
2664 | +} |
2665 | +{ |
2666 | + // Test constructor delegation |
2667 | + cxx11test::delegate d1; |
2668 | + cxx11test::delegate d2(); |
2669 | + cxx11test::delegate d3(45); |
2670 | +} |
2671 | +{ |
2672 | + // Test override and final |
2673 | + cxx11test::overridden o1(55464); |
2674 | +} |
2675 | +{ |
2676 | + // Test nullptr |
2677 | + char *c = nullptr; |
2678 | +} |
2679 | +{ |
2680 | + // Test template brackets |
2681 | + test_template<::test_template<int>> v(test_template<int>(12)); |
2682 | +} |
2683 | +{ |
2684 | + // Unicode literals |
2685 | + char const *utf8 = u8"UTF-8 string \u2500"; |
2686 | + char16_t const *utf16 = u"UTF-8 string \u2500"; |
2687 | + char32_t const *utf32 = U"UTF-32 string \u2500"; |
2688 | +} |
2689 | +' |
2690 | + |
2691 | +# Test code for whether the C compiler supports C++11 (complete). |
2692 | +ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} |
2693 | +${ac_cxx_conftest_cxx11_globals} |
2694 | + |
2695 | +int |
2696 | +main (int argc, char **argv) |
2697 | +{ |
2698 | + int ok = 0; |
2699 | + ${ac_cxx_conftest_cxx98_main} |
2700 | + ${ac_cxx_conftest_cxx11_main} |
2701 | + return ok; |
2702 | +} |
2703 | +" |
2704 | + |
2705 | +# Test code for whether the C compiler supports C++98 (complete). |
2706 | +ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} |
2707 | +int |
2708 | +main (int argc, char **argv) |
2709 | +{ |
2710 | + int ok = 0; |
2711 | + ${ac_cxx_conftest_cxx98_main} |
2712 | + return ok; |
2713 | +} |
2714 | +" |
2715 | + |
2716 | +as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" |
2717 | +as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" |
2718 | +as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" |
2719 | +as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" |
2720 | +as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" |
2721 | +as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" |
2722 | +as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" |
2723 | +as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" |
2724 | +as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" |
2725 | +as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" |
2726 | +as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" |
2727 | +as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" |
2728 | + |
2729 | +# Auxiliary files required by this configure script. |
2730 | +ac_aux_files="missing config.guess config.sub" |
2731 | + |
2732 | +# Locations in which to look for auxiliary files. |
2733 | +ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." |
2734 | + |
2735 | +# Search for a directory containing all of the required auxiliary files, |
2736 | +# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. |
2737 | +# If we don't find one directory that contains all the files we need, |
2738 | +# we report the set of missing files from the *first* directory in |
2739 | +# $ac_aux_dir_candidates and give up. |
2740 | +ac_missing_aux_files="" |
2741 | +ac_first_candidate=: |
2742 | +printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 |
2743 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2744 | +as_found=false |
2745 | +for as_dir in $ac_aux_dir_candidates |
2746 | +do |
2747 | + IFS=$as_save_IFS |
2748 | + case $as_dir in #((( |
2749 | + '') as_dir=./ ;; |
2750 | + */) ;; |
2751 | + *) as_dir=$as_dir/ ;; |
2752 | + esac |
2753 | + as_found=: |
2754 | + |
2755 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 |
2756 | + ac_aux_dir_found=yes |
2757 | + ac_install_sh= |
2758 | + for ac_aux in $ac_aux_files |
2759 | + do |
2760 | + # As a special case, if "install-sh" is required, that requirement |
2761 | + # can be satisfied by any of "install-sh", "install.sh", or "shtool", |
2762 | + # and $ac_install_sh is set appropriately for whichever one is found. |
2763 | + if test x"$ac_aux" = x"install-sh" |
2764 | + then |
2765 | + if test -f "${as_dir}install-sh"; then |
2766 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 |
2767 | + ac_install_sh="${as_dir}install-sh -c" |
2768 | + elif test -f "${as_dir}install.sh"; then |
2769 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 |
2770 | + ac_install_sh="${as_dir}install.sh -c" |
2771 | + elif test -f "${as_dir}shtool"; then |
2772 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 |
2773 | + ac_install_sh="${as_dir}shtool install -c" |
2774 | + else |
2775 | + ac_aux_dir_found=no |
2776 | + if $ac_first_candidate; then |
2777 | + ac_missing_aux_files="${ac_missing_aux_files} install-sh" |
2778 | + else |
2779 | + break |
2780 | + fi |
2781 | + fi |
2782 | + else |
2783 | + if test -f "${as_dir}${ac_aux}"; then |
2784 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 |
2785 | + else |
2786 | + ac_aux_dir_found=no |
2787 | + if $ac_first_candidate; then |
2788 | + ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" |
2789 | + else |
2790 | + break |
2791 | + fi |
2792 | + fi |
2793 | + fi |
2794 | + done |
2795 | + if test "$ac_aux_dir_found" = yes; then |
2796 | + ac_aux_dir="$as_dir" |
2797 | + break |
2798 | + fi |
2799 | + ac_first_candidate=false |
2800 | + |
2801 | + as_found=false |
2802 | +done |
2803 | +IFS=$as_save_IFS |
2804 | +if $as_found |
2805 | +then : |
2806 | + |
2807 | +else $as_nop |
2808 | + as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 |
2809 | +fi |
2810 | + |
2811 | + |
2812 | +# These three variables are undocumented and unsupported, |
2813 | +# and are intended to be withdrawn in a future Autoconf release. |
2814 | +# They can cause serious problems if a builder's source tree is in a directory |
2815 | +# whose full name contains unusual characters. |
2816 | +if test -f "${ac_aux_dir}config.guess"; then |
2817 | + ac_config_guess="$SHELL ${ac_aux_dir}config.guess" |
2818 | +fi |
2819 | +if test -f "${ac_aux_dir}config.sub"; then |
2820 | + ac_config_sub="$SHELL ${ac_aux_dir}config.sub" |
2821 | +fi |
2822 | +if test -f "$ac_aux_dir/configure"; then |
2823 | + ac_configure="$SHELL ${ac_aux_dir}configure" |
2824 | +fi |
2825 | + |
2826 | +# Check that the precious variables saved in the cache have kept the same |
2827 | +# value. |
2828 | +ac_cache_corrupted=false |
2829 | +for ac_var in $ac_precious_vars; do |
2830 | + eval ac_old_set=\$ac_cv_env_${ac_var}_set |
2831 | + eval ac_new_set=\$ac_env_${ac_var}_set |
2832 | + eval ac_old_val=\$ac_cv_env_${ac_var}_value |
2833 | + eval ac_new_val=\$ac_env_${ac_var}_value |
2834 | + case $ac_old_set,$ac_new_set in |
2835 | + set,) |
2836 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
2837 | +printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
2838 | + ac_cache_corrupted=: ;; |
2839 | + ,set) |
2840 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
2841 | +printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
2842 | + ac_cache_corrupted=: ;; |
2843 | + ,);; |
2844 | + *) |
2845 | + if test "x$ac_old_val" != "x$ac_new_val"; then |
2846 | + # differences in whitespace do not lead to failure. |
2847 | + ac_old_val_w=`echo x $ac_old_val` |
2848 | + ac_new_val_w=`echo x $ac_new_val` |
2849 | + if test "$ac_old_val_w" != "$ac_new_val_w"; then |
2850 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
2851 | +printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
2852 | + ac_cache_corrupted=: |
2853 | + else |
2854 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
2855 | +printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
2856 | + eval $ac_var=\$ac_old_val |
2857 | + fi |
2858 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
2859 | +printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} |
2860 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
2861 | +printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} |
2862 | + fi;; |
2863 | + esac |
2864 | + # Pass precious variables to config.status. |
2865 | + if test "$ac_new_set" = set; then |
2866 | + case $ac_new_val in |
2867 | + *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
2868 | + *) ac_arg=$ac_var=$ac_new_val ;; |
2869 | + esac |
2870 | + case " $ac_configure_args " in |
2871 | + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
2872 | + *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
2873 | + esac |
2874 | + fi |
2875 | +done |
2876 | +if $ac_cache_corrupted; then |
2877 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2878 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
2879 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
2880 | +printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} |
2881 | + as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' |
2882 | + and start over" "$LINENO" 5 |
2883 | +fi |
2884 | +## -------------------- ## |
2885 | +## Main body of script. ## |
2886 | +## -------------------- ## |
2887 | + |
2888 | +ac_ext=c |
2889 | +ac_cpp='$CPP $CPPFLAGS' |
2890 | +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2891 | +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2892 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2893 | + |
2894 | + |
2895 | + |
2896 | + |
2897 | +ac_config_headers="$ac_config_headers src/include/autoconf.h" |
2898 | + |
2899 | + |
2900 | + |
2901 | + |
2902 | + |
2903 | + |
2904 | + |
2905 | + |
2906 | + |
2907 | + |
2908 | + |
2909 | + |
2910 | |
2911 | |
2912 | |
2913 | @@ -2496,10 +3099,11 @@ ac_config_headers="$ac_config_headers src/include/autoconf.h" |
2914 | |
2915 | #serial 8 |
2916 | |
2917 | -# This is what autoupdate's m4 run will expand. It fires |
2918 | -# the warning (with _au_warn_XXX), outputs it into the |
2919 | -# updated configure.ac (with AC_DIAGNOSE), and then outputs |
2920 | -# the replacement expansion. |
2921 | +# This is what autoupdate's m4 run will expand. It fires the warning |
2922 | +# (with _au_warn_XXX), outputs it into the updated configure.ac (with |
2923 | +# m4_warn), and then outputs the replacement expansion. We need extra |
2924 | +# quotation around the m4_warn and dnl so they will be written |
2925 | +# unexpanded into the updated configure.ac. |
2926 | |
2927 | |
2928 | # This is an auxiliary macro that is also run when |
2929 | @@ -2510,10 +3114,11 @@ ac_config_headers="$ac_config_headers src/include/autoconf.h" |
2930 | |
2931 | |
2932 | # Finally, this is the expansion that is picked up by |
2933 | -# autoconf. It tells the user to run autoupdate, and |
2934 | -# then outputs the replacement expansion. We do not care |
2935 | -# about autoupdate's warning because that contains |
2936 | -# information on what to do *after* running autoupdate. |
2937 | +# autoconf, causing NAME to expand to NEW-CODE, plus |
2938 | +# (if SILENT is not "silent") a m4_warning telling the |
2939 | +# maintainer to run autoupdate. We don't issue MESSAGE |
2940 | +# from autoconf, because that's instructions for what |
2941 | +# to do *after* running autoupdate. |
2942 | |
2943 | |
2944 | |
2945 | @@ -2528,14 +3133,10 @@ RADIUSD_VERSION_STRING=`cat VERSION` |
2946 | |
2947 | |
2948 | |
2949 | -cat >>confdefs.h <<_ACEOF |
2950 | -#define RADIUSD_VERSION ${RADIUSD_VERSION} |
2951 | -_ACEOF |
2952 | +printf "%s\n" "#define RADIUSD_VERSION ${RADIUSD_VERSION}" >>confdefs.h |
2953 | |
2954 | |
2955 | -cat >>confdefs.h <<_ACEOF |
2956 | -#define RADIUSD_VERSION_STRING "${RADIUSD_VERSION_STRING}" |
2957 | -_ACEOF |
2958 | +printf "%s\n" "#define RADIUSD_VERSION_STRING \"${RADIUSD_VERSION_STRING}\"" >>confdefs.h |
2959 | |
2960 | |
2961 | |
2962 | @@ -2544,11 +3145,12 @@ unset LSAN_OPTIONS |
2963 | |
2964 | # Extract the first word of "asciidoctor", so it can be a program name with args. |
2965 | set dummy asciidoctor; ac_word=$2 |
2966 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2967 | -$as_echo_n "checking for $ac_word... " >&6; } |
2968 | -if ${ac_cv_path_ASCIIDOCTOR+:} false; then : |
2969 | - $as_echo_n "(cached) " >&6 |
2970 | -else |
2971 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2972 | +printf %s "checking for $ac_word... " >&6; } |
2973 | +if test ${ac_cv_path_ASCIIDOCTOR+y} |
2974 | +then : |
2975 | + printf %s "(cached) " >&6 |
2976 | +else $as_nop |
2977 | case $ASCIIDOCTOR in |
2978 | [\\/]* | ?:[\\/]*) |
2979 | ac_cv_path_ASCIIDOCTOR="$ASCIIDOCTOR" # Let the user override the test with a path. |
2980 | @@ -2558,11 +3160,15 @@ else |
2981 | for as_dir in $PATH |
2982 | do |
2983 | IFS=$as_save_IFS |
2984 | - test -z "$as_dir" && as_dir=. |
2985 | + case $as_dir in #((( |
2986 | + '') as_dir=./ ;; |
2987 | + */) ;; |
2988 | + *) as_dir=$as_dir/ ;; |
2989 | + esac |
2990 | for ac_exec_ext in '' $ac_executable_extensions; do |
2991 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
2992 | - ac_cv_path_ASCIIDOCTOR="$as_dir/$ac_word$ac_exec_ext" |
2993 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2994 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
2995 | + ac_cv_path_ASCIIDOCTOR="$as_dir$ac_word$ac_exec_ext" |
2996 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
2997 | break 2 |
2998 | fi |
2999 | done |
3000 | @@ -2574,26 +3180,27 @@ esac |
3001 | fi |
3002 | ASCIIDOCTOR=$ac_cv_path_ASCIIDOCTOR |
3003 | if test -n "$ASCIIDOCTOR"; then |
3004 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOCTOR" >&5 |
3005 | -$as_echo "$ASCIIDOCTOR" >&6; } |
3006 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOCTOR" >&5 |
3007 | +printf "%s\n" "$ASCIIDOCTOR" >&6; } |
3008 | else |
3009 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3010 | -$as_echo "no" >&6; } |
3011 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3012 | +printf "%s\n" "no" >&6; } |
3013 | fi |
3014 | |
3015 | |
3016 | if test "x$ac_cv_path_ASCIIDOCTOR" = "x"; then |
3017 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: asciidoctor not found - Please install if you want build the docs" >&5 |
3018 | -$as_echo "$as_me: WARNING: asciidoctor not found - Please install if you want build the docs" >&2;} |
3019 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: asciidoctor not found - Please install if you want build the docs" >&5 |
3020 | +printf "%s\n" "$as_me: WARNING: asciidoctor not found - Please install if you want build the docs" >&2;} |
3021 | fi |
3022 | |
3023 | # Extract the first word of "pandoc", so it can be a program name with args. |
3024 | set dummy pandoc; ac_word=$2 |
3025 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3026 | -$as_echo_n "checking for $ac_word... " >&6; } |
3027 | -if ${ac_cv_path_PANDOC+:} false; then : |
3028 | - $as_echo_n "(cached) " >&6 |
3029 | -else |
3030 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3031 | +printf %s "checking for $ac_word... " >&6; } |
3032 | +if test ${ac_cv_path_PANDOC+y} |
3033 | +then : |
3034 | + printf %s "(cached) " >&6 |
3035 | +else $as_nop |
3036 | case $PANDOC in |
3037 | [\\/]* | ?:[\\/]*) |
3038 | ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. |
3039 | @@ -2603,11 +3210,15 @@ else |
3040 | for as_dir in $PATH |
3041 | do |
3042 | IFS=$as_save_IFS |
3043 | - test -z "$as_dir" && as_dir=. |
3044 | + case $as_dir in #((( |
3045 | + '') as_dir=./ ;; |
3046 | + */) ;; |
3047 | + *) as_dir=$as_dir/ ;; |
3048 | + esac |
3049 | for ac_exec_ext in '' $ac_executable_extensions; do |
3050 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3051 | - ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" |
3052 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3053 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3054 | + ac_cv_path_PANDOC="$as_dir$ac_word$ac_exec_ext" |
3055 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3056 | break 2 |
3057 | fi |
3058 | done |
3059 | @@ -2619,17 +3230,17 @@ esac |
3060 | fi |
3061 | PANDOC=$ac_cv_path_PANDOC |
3062 | if test -n "$PANDOC"; then |
3063 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 |
3064 | -$as_echo "$PANDOC" >&6; } |
3065 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 |
3066 | +printf "%s\n" "$PANDOC" >&6; } |
3067 | else |
3068 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3069 | -$as_echo "no" >&6; } |
3070 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3071 | +printf "%s\n" "no" >&6; } |
3072 | fi |
3073 | |
3074 | |
3075 | if test "x$ac_cv_path_PANDOC" = "x"; then |
3076 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pandoc not found - Please install if you want build the docs" >&5 |
3077 | -$as_echo "$as_me: WARNING: pandoc not found - Please install if you want build the docs" >&2;} |
3078 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pandoc not found - Please install if you want build the docs" >&5 |
3079 | +printf "%s\n" "$as_me: WARNING: pandoc not found - Please install if you want build the docs" >&2;} |
3080 | else |
3081 | # |
3082 | # Pandoc v2 onwards renamed --latex-engine to --pdf-engine |
3083 | @@ -2654,11 +3265,12 @@ if test "x$ac_cv_path_PANDOC" != "x" && test "x$ac_cv_path_ASCIIDOCTOR" != "x"; |
3084 | if test -z "$PERL"; then |
3085 | # Extract the first word of "perl", so it can be a program name with args. |
3086 | set dummy perl; ac_word=$2 |
3087 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3088 | -$as_echo_n "checking for $ac_word... " >&6; } |
3089 | -if ${ac_cv_prog_PERL+:} false; then : |
3090 | - $as_echo_n "(cached) " >&6 |
3091 | -else |
3092 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3093 | +printf %s "checking for $ac_word... " >&6; } |
3094 | +if test ${ac_cv_prog_PERL+y} |
3095 | +then : |
3096 | + printf %s "(cached) " >&6 |
3097 | +else $as_nop |
3098 | if test -n "$PERL"; then |
3099 | ac_cv_prog_PERL="$PERL" # Let the user override the test. |
3100 | else |
3101 | @@ -2666,11 +3278,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3102 | for as_dir in $PATH |
3103 | do |
3104 | IFS=$as_save_IFS |
3105 | - test -z "$as_dir" && as_dir=. |
3106 | + case $as_dir in #((( |
3107 | + '') as_dir=./ ;; |
3108 | + */) ;; |
3109 | + *) as_dir=$as_dir/ ;; |
3110 | + esac |
3111 | for ac_exec_ext in '' $ac_executable_extensions; do |
3112 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3113 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3114 | ac_cv_prog_PERL="perl" |
3115 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3116 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3117 | break 2 |
3118 | fi |
3119 | done |
3120 | @@ -2681,11 +3297,11 @@ fi |
3121 | fi |
3122 | PERL=$ac_cv_prog_PERL |
3123 | if test -n "$PERL"; then |
3124 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
3125 | -$as_echo "$PERL" >&6; } |
3126 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
3127 | +printf "%s\n" "$PERL" >&6; } |
3128 | else |
3129 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3130 | -$as_echo "no" >&6; } |
3131 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3132 | +printf "%s\n" "no" >&6; } |
3133 | fi |
3134 | |
3135 | |
3136 | @@ -2694,18 +3310,18 @@ fi |
3137 | if test "x$PERL" != x; then |
3138 | ax_perl_modules_failed=0 |
3139 | for ax_perl_module in 'JSON' ; do |
3140 | - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 |
3141 | -$as_echo_n "checking for perl module $ax_perl_module... " >&6; } |
3142 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl module $ax_perl_module" >&5 |
3143 | +printf %s "checking for perl module $ax_perl_module... " >&6; } |
3144 | |
3145 | # Would be nice to log result here, but can't rely on autoconf internals |
3146 | $PERL -e "use $ax_perl_module; exit" > /dev/null 2>&1 |
3147 | if test $? -ne 0; then |
3148 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3149 | -$as_echo "no" >&6; }; |
3150 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3151 | +printf "%s\n" "no" >&6; }; |
3152 | ax_perl_modules_failed=1 |
3153 | else |
3154 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
3155 | -$as_echo "ok" >&6; }; |
3156 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
3157 | +printf "%s\n" "ok" >&6; }; |
3158 | fi |
3159 | done |
3160 | |
3161 | @@ -2715,22 +3331,23 @@ $as_echo "ok" >&6; }; |
3162 | |
3163 | else |
3164 | : |
3165 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Perl JSON module not found - Please install if you want build the docs" >&5 |
3166 | -$as_echo "$as_me: WARNING: Perl JSON module not found - Please install if you want build the docs" >&2;} |
3167 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Perl JSON module not found - Please install if you want build the docs" >&5 |
3168 | +printf "%s\n" "$as_me: WARNING: Perl JSON module not found - Please install if you want build the docs" >&2;} |
3169 | fi |
3170 | else |
3171 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 |
3172 | -$as_echo "$as_me: WARNING: could not find perl" >&2;} |
3173 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5 |
3174 | +printf "%s\n" "$as_me: WARNING: could not find perl" >&2;} |
3175 | fi |
3176 | fi |
3177 | |
3178 | # Extract the first word of "doxygen", so it can be a program name with args. |
3179 | set dummy doxygen; ac_word=$2 |
3180 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3181 | -$as_echo_n "checking for $ac_word... " >&6; } |
3182 | -if ${ac_cv_path_DOXYGEN+:} false; then : |
3183 | - $as_echo_n "(cached) " >&6 |
3184 | -else |
3185 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3186 | +printf %s "checking for $ac_word... " >&6; } |
3187 | +if test ${ac_cv_path_DOXYGEN+y} |
3188 | +then : |
3189 | + printf %s "(cached) " >&6 |
3190 | +else $as_nop |
3191 | case $DOXYGEN in |
3192 | [\\/]* | ?:[\\/]*) |
3193 | ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. |
3194 | @@ -2740,11 +3357,15 @@ else |
3195 | for as_dir in $PATH |
3196 | do |
3197 | IFS=$as_save_IFS |
3198 | - test -z "$as_dir" && as_dir=. |
3199 | + case $as_dir in #((( |
3200 | + '') as_dir=./ ;; |
3201 | + */) ;; |
3202 | + *) as_dir=$as_dir/ ;; |
3203 | + esac |
3204 | for ac_exec_ext in '' $ac_executable_extensions; do |
3205 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3206 | - ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" |
3207 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3208 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3209 | + ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext" |
3210 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3211 | break 2 |
3212 | fi |
3213 | done |
3214 | @@ -2756,22 +3377,23 @@ esac |
3215 | fi |
3216 | DOXYGEN=$ac_cv_path_DOXYGEN |
3217 | if test -n "$DOXYGEN"; then |
3218 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
3219 | -$as_echo "$DOXYGEN" >&6; } |
3220 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 |
3221 | +printf "%s\n" "$DOXYGEN" >&6; } |
3222 | else |
3223 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3224 | -$as_echo "no" >&6; } |
3225 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3226 | +printf "%s\n" "no" >&6; } |
3227 | fi |
3228 | |
3229 | |
3230 | if test "x$ac_cv_path_DOXYGEN" != "x"; then |
3231 | # Extract the first word of "dot", so it can be a program name with args. |
3232 | set dummy dot; ac_word=$2 |
3233 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3234 | -$as_echo_n "checking for $ac_word... " >&6; } |
3235 | -if ${ac_cv_path_GRAPHVIZ_DOT+:} false; then : |
3236 | - $as_echo_n "(cached) " >&6 |
3237 | -else |
3238 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3239 | +printf %s "checking for $ac_word... " >&6; } |
3240 | +if test ${ac_cv_path_GRAPHVIZ_DOT+y} |
3241 | +then : |
3242 | + printf %s "(cached) " >&6 |
3243 | +else $as_nop |
3244 | case $GRAPHVIZ_DOT in |
3245 | [\\/]* | ?:[\\/]*) |
3246 | ac_cv_path_GRAPHVIZ_DOT="$GRAPHVIZ_DOT" # Let the user override the test with a path. |
3247 | @@ -2781,11 +3403,15 @@ else |
3248 | for as_dir in $PATH |
3249 | do |
3250 | IFS=$as_save_IFS |
3251 | - test -z "$as_dir" && as_dir=. |
3252 | + case $as_dir in #((( |
3253 | + '') as_dir=./ ;; |
3254 | + */) ;; |
3255 | + *) as_dir=$as_dir/ ;; |
3256 | + esac |
3257 | for ac_exec_ext in '' $ac_executable_extensions; do |
3258 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3259 | - ac_cv_path_GRAPHVIZ_DOT="$as_dir/$ac_word$ac_exec_ext" |
3260 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3261 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3262 | + ac_cv_path_GRAPHVIZ_DOT="$as_dir$ac_word$ac_exec_ext" |
3263 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3264 | break 2 |
3265 | fi |
3266 | done |
3267 | @@ -2797,30 +3423,31 @@ esac |
3268 | fi |
3269 | GRAPHVIZ_DOT=$ac_cv_path_GRAPHVIZ_DOT |
3270 | if test -n "$GRAPHVIZ_DOT"; then |
3271 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ_DOT" >&5 |
3272 | -$as_echo "$GRAPHVIZ_DOT" >&6; } |
3273 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ_DOT" >&5 |
3274 | +printf "%s\n" "$GRAPHVIZ_DOT" >&6; } |
3275 | else |
3276 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3277 | -$as_echo "no" >&6; } |
3278 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3279 | +printf "%s\n" "no" >&6; } |
3280 | fi |
3281 | |
3282 | |
3283 | if test "x$ac_cv_path_GRAPHVIZ_DOT" = "x"; then |
3284 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - Please install the graphviz if you want to build the docs/source" >&5 |
3285 | -$as_echo "$as_me: WARNING: dot not found - Please install the graphviz if you want to build the docs/source" >&2;} |
3286 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - Please install the graphviz if you want to build the docs/source" >&5 |
3287 | +printf "%s\n" "$as_me: WARNING: dot not found - Please install the graphviz if you want to build the docs/source" >&2;} |
3288 | fi |
3289 | else |
3290 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - Please install if you want build the docs/source" >&5 |
3291 | -$as_echo "$as_me: WARNING: doxygen not found - Please install if you want build the docs/source" >&2;} |
3292 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - Please install if you want build the docs/source" >&5 |
3293 | +printf "%s\n" "$as_me: WARNING: doxygen not found - Please install if you want build the docs/source" >&2;} |
3294 | fi |
3295 | |
3296 | # Extract the first word of "antora", so it can be a program name with args. |
3297 | set dummy antora; ac_word=$2 |
3298 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3299 | -$as_echo_n "checking for $ac_word... " >&6; } |
3300 | -if ${ac_cv_path_ANTORA+:} false; then : |
3301 | - $as_echo_n "(cached) " >&6 |
3302 | -else |
3303 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3304 | +printf %s "checking for $ac_word... " >&6; } |
3305 | +if test ${ac_cv_path_ANTORA+y} |
3306 | +then : |
3307 | + printf %s "(cached) " >&6 |
3308 | +else $as_nop |
3309 | case $ANTORA in |
3310 | [\\/]* | ?:[\\/]*) |
3311 | ac_cv_path_ANTORA="$ANTORA" # Let the user override the test with a path. |
3312 | @@ -2830,11 +3457,15 @@ else |
3313 | for as_dir in $PATH |
3314 | do |
3315 | IFS=$as_save_IFS |
3316 | - test -z "$as_dir" && as_dir=. |
3317 | + case $as_dir in #((( |
3318 | + '') as_dir=./ ;; |
3319 | + */) ;; |
3320 | + *) as_dir=$as_dir/ ;; |
3321 | + esac |
3322 | for ac_exec_ext in '' $ac_executable_extensions; do |
3323 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3324 | - ac_cv_path_ANTORA="$as_dir/$ac_word$ac_exec_ext" |
3325 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3326 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3327 | + ac_cv_path_ANTORA="$as_dir$ac_word$ac_exec_ext" |
3328 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3329 | break 2 |
3330 | fi |
3331 | done |
3332 | @@ -2846,21 +3477,22 @@ esac |
3333 | fi |
3334 | ANTORA=$ac_cv_path_ANTORA |
3335 | if test -n "$ANTORA"; then |
3336 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTORA" >&5 |
3337 | -$as_echo "$ANTORA" >&6; } |
3338 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANTORA" >&5 |
3339 | +printf "%s\n" "$ANTORA" >&6; } |
3340 | else |
3341 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3342 | -$as_echo "no" >&6; } |
3343 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3344 | +printf "%s\n" "no" >&6; } |
3345 | fi |
3346 | |
3347 | |
3348 | if test "x$ac_cv_path_ANTORA" = "x"; then |
3349 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: antora not found - Please install if you want build the site" >&5 |
3350 | -$as_echo "$as_me: WARNING: antora not found - Please install if you want build the site" >&2;} |
3351 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: antora not found - Please install if you want build the site" >&5 |
3352 | +printf "%s\n" "$as_me: WARNING: antora not found - Please install if you want build the site" >&2;} |
3353 | fi |
3354 | |
3355 | # Check whether --enable-developer was given. |
3356 | -if test "${enable_developer+set}" = set; then : |
3357 | +if test ${enable_developer+y} |
3358 | +then : |
3359 | enableval=$enable_developer; case "$enableval" in |
3360 | no) |
3361 | developer=no |
3362 | @@ -2874,8 +3506,8 @@ fi |
3363 | |
3364 | if test -d $srcdir/.git; then |
3365 | if test "x$developer" != "xno"; then |
3366 | - { $as_echo "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5 |
3367 | -$as_echo "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;} |
3368 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&5 |
3369 | +printf "%s\n" "$as_me: found .git directory, enabling developer build implicitly, disable with --disable-developer" >&6;} |
3370 | developer="yes" |
3371 | fi |
3372 | fi |
3373 | @@ -2885,7 +3517,8 @@ if test "x$developer" = "xyes"; then |
3374 | fi |
3375 | |
3376 | # Check whether --enable-verify-ptr was given. |
3377 | -if test "${enable_verify_ptr+set}" = set; then : |
3378 | +if test ${enable_verify_ptr+y} |
3379 | +then : |
3380 | enableval=$enable_verify_ptr; case "$enableval" in |
3381 | no) |
3382 | verify_ptr="" |
3383 | @@ -2893,61 +3526,36 @@ if test "${enable_verify_ptr+set}" = set; then : |
3384 | *) |
3385 | verify_ptr="-DWITH_VERIFY_PTR=1" |
3386 | esac |
3387 | -else |
3388 | +else $as_nop |
3389 | verify_ptr="-DWITH_VERIFY_PTR=1" |
3390 | fi |
3391 | |
3392 | |
3393 | |
3394 | -ac_aux_dir= |
3395 | -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
3396 | - if test -f "$ac_dir/install-sh"; then |
3397 | - ac_aux_dir=$ac_dir |
3398 | - ac_install_sh="$ac_aux_dir/install-sh -c" |
3399 | - break |
3400 | - elif test -f "$ac_dir/install.sh"; then |
3401 | - ac_aux_dir=$ac_dir |
3402 | - ac_install_sh="$ac_aux_dir/install.sh -c" |
3403 | - break |
3404 | - elif test -f "$ac_dir/shtool"; then |
3405 | - ac_aux_dir=$ac_dir |
3406 | - ac_install_sh="$ac_aux_dir/shtool install -c" |
3407 | - break |
3408 | - fi |
3409 | -done |
3410 | -if test -z "$ac_aux_dir"; then |
3411 | - as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
3412 | -fi |
3413 | |
3414 | -# These three variables are undocumented and unsupported, |
3415 | -# and are intended to be withdrawn in a future Autoconf release. |
3416 | -# They can cause serious problems if a builder's source tree is in a directory |
3417 | -# whose full name contains unusual characters. |
3418 | -ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
3419 | -ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
3420 | -ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
3421 | |
3422 | |
3423 | -# Make sure we can run config.sub. |
3424 | -$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3425 | - as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
3426 | + # Make sure we can run config.sub. |
3427 | +$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || |
3428 | + as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 |
3429 | |
3430 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3431 | -$as_echo_n "checking build system type... " >&6; } |
3432 | -if ${ac_cv_build+:} false; then : |
3433 | - $as_echo_n "(cached) " >&6 |
3434 | -else |
3435 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
3436 | +printf %s "checking build system type... " >&6; } |
3437 | +if test ${ac_cv_build+y} |
3438 | +then : |
3439 | + printf %s "(cached) " >&6 |
3440 | +else $as_nop |
3441 | ac_build_alias=$build_alias |
3442 | test "x$ac_build_alias" = x && |
3443 | - ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3444 | + ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` |
3445 | test "x$ac_build_alias" = x && |
3446 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
3447 | -ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3448 | - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
3449 | +ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || |
3450 | + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 |
3451 | |
3452 | fi |
3453 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3454 | -$as_echo "$ac_cv_build" >&6; } |
3455 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
3456 | +printf "%s\n" "$ac_cv_build" >&6; } |
3457 | case $ac_cv_build in |
3458 | *-*-*) ;; |
3459 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
3460 | @@ -2966,21 +3574,22 @@ IFS=$ac_save_IFS |
3461 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3462 | |
3463 | |
3464 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3465 | -$as_echo_n "checking host system type... " >&6; } |
3466 | -if ${ac_cv_host+:} false; then : |
3467 | - $as_echo_n "(cached) " >&6 |
3468 | -else |
3469 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
3470 | +printf %s "checking host system type... " >&6; } |
3471 | +if test ${ac_cv_host+y} |
3472 | +then : |
3473 | + printf %s "(cached) " >&6 |
3474 | +else $as_nop |
3475 | if test "x$host_alias" = x; then |
3476 | ac_cv_host=$ac_cv_build |
3477 | else |
3478 | - ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3479 | - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
3480 | + ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || |
3481 | + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 |
3482 | fi |
3483 | |
3484 | fi |
3485 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3486 | -$as_echo "$ac_cv_host" >&6; } |
3487 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
3488 | +printf "%s\n" "$ac_cv_host" >&6; } |
3489 | case $ac_cv_host in |
3490 | *-*-*) ;; |
3491 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
3492 | @@ -2999,21 +3608,22 @@ IFS=$ac_save_IFS |
3493 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3494 | |
3495 | |
3496 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3497 | -$as_echo_n "checking target system type... " >&6; } |
3498 | -if ${ac_cv_target+:} false; then : |
3499 | - $as_echo_n "(cached) " >&6 |
3500 | -else |
3501 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
3502 | +printf %s "checking target system type... " >&6; } |
3503 | +if test ${ac_cv_target+y} |
3504 | +then : |
3505 | + printf %s "(cached) " >&6 |
3506 | +else $as_nop |
3507 | if test "x$target_alias" = x; then |
3508 | ac_cv_target=$ac_cv_host |
3509 | else |
3510 | - ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
3511 | - as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
3512 | + ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || |
3513 | + as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 |
3514 | fi |
3515 | |
3516 | fi |
3517 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3518 | -$as_echo "$ac_cv_target" >&6; } |
3519 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
3520 | +printf "%s\n" "$ac_cv_target" >&6; } |
3521 | case $ac_cv_target in |
3522 | *-*-*) ;; |
3523 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
3524 | @@ -3040,6 +3650,15 @@ test -n "$target_alias" && |
3525 | program_prefix=${target_alias}- |
3526 | |
3527 | |
3528 | + |
3529 | + |
3530 | + |
3531 | + |
3532 | + |
3533 | + |
3534 | + |
3535 | + |
3536 | + |
3537 | ac_ext=c |
3538 | ac_cpp='$CPP $CPPFLAGS' |
3539 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3540 | @@ -3048,11 +3667,12 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3541 | if test -n "$ac_tool_prefix"; then |
3542 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
3543 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
3544 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3545 | -$as_echo_n "checking for $ac_word... " >&6; } |
3546 | -if ${ac_cv_prog_CC+:} false; then : |
3547 | - $as_echo_n "(cached) " >&6 |
3548 | -else |
3549 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3550 | +printf %s "checking for $ac_word... " >&6; } |
3551 | +if test ${ac_cv_prog_CC+y} |
3552 | +then : |
3553 | + printf %s "(cached) " >&6 |
3554 | +else $as_nop |
3555 | if test -n "$CC"; then |
3556 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3557 | else |
3558 | @@ -3060,11 +3680,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3559 | for as_dir in $PATH |
3560 | do |
3561 | IFS=$as_save_IFS |
3562 | - test -z "$as_dir" && as_dir=. |
3563 | + case $as_dir in #((( |
3564 | + '') as_dir=./ ;; |
3565 | + */) ;; |
3566 | + *) as_dir=$as_dir/ ;; |
3567 | + esac |
3568 | for ac_exec_ext in '' $ac_executable_extensions; do |
3569 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3570 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3571 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
3572 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3573 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3574 | break 2 |
3575 | fi |
3576 | done |
3577 | @@ -3075,11 +3699,11 @@ fi |
3578 | fi |
3579 | CC=$ac_cv_prog_CC |
3580 | if test -n "$CC"; then |
3581 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3582 | -$as_echo "$CC" >&6; } |
3583 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3584 | +printf "%s\n" "$CC" >&6; } |
3585 | else |
3586 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3587 | -$as_echo "no" >&6; } |
3588 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3589 | +printf "%s\n" "no" >&6; } |
3590 | fi |
3591 | |
3592 | |
3593 | @@ -3088,11 +3712,12 @@ if test -z "$ac_cv_prog_CC"; then |
3594 | ac_ct_CC=$CC |
3595 | # Extract the first word of "gcc", so it can be a program name with args. |
3596 | set dummy gcc; ac_word=$2 |
3597 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3598 | -$as_echo_n "checking for $ac_word... " >&6; } |
3599 | -if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3600 | - $as_echo_n "(cached) " >&6 |
3601 | -else |
3602 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3603 | +printf %s "checking for $ac_word... " >&6; } |
3604 | +if test ${ac_cv_prog_ac_ct_CC+y} |
3605 | +then : |
3606 | + printf %s "(cached) " >&6 |
3607 | +else $as_nop |
3608 | if test -n "$ac_ct_CC"; then |
3609 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3610 | else |
3611 | @@ -3100,11 +3725,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3612 | for as_dir in $PATH |
3613 | do |
3614 | IFS=$as_save_IFS |
3615 | - test -z "$as_dir" && as_dir=. |
3616 | + case $as_dir in #((( |
3617 | + '') as_dir=./ ;; |
3618 | + */) ;; |
3619 | + *) as_dir=$as_dir/ ;; |
3620 | + esac |
3621 | for ac_exec_ext in '' $ac_executable_extensions; do |
3622 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3623 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3624 | ac_cv_prog_ac_ct_CC="gcc" |
3625 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3626 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3627 | break 2 |
3628 | fi |
3629 | done |
3630 | @@ -3115,11 +3744,11 @@ fi |
3631 | fi |
3632 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3633 | if test -n "$ac_ct_CC"; then |
3634 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3635 | -$as_echo "$ac_ct_CC" >&6; } |
3636 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3637 | +printf "%s\n" "$ac_ct_CC" >&6; } |
3638 | else |
3639 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3640 | -$as_echo "no" >&6; } |
3641 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3642 | +printf "%s\n" "no" >&6; } |
3643 | fi |
3644 | |
3645 | if test "x$ac_ct_CC" = x; then |
3646 | @@ -3127,8 +3756,8 @@ fi |
3647 | else |
3648 | case $cross_compiling:$ac_tool_warned in |
3649 | yes:) |
3650 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3651 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3652 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3653 | +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3654 | ac_tool_warned=yes ;; |
3655 | esac |
3656 | CC=$ac_ct_CC |
3657 | @@ -3141,11 +3770,12 @@ if test -z "$CC"; then |
3658 | if test -n "$ac_tool_prefix"; then |
3659 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
3660 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
3661 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3662 | -$as_echo_n "checking for $ac_word... " >&6; } |
3663 | -if ${ac_cv_prog_CC+:} false; then : |
3664 | - $as_echo_n "(cached) " >&6 |
3665 | -else |
3666 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3667 | +printf %s "checking for $ac_word... " >&6; } |
3668 | +if test ${ac_cv_prog_CC+y} |
3669 | +then : |
3670 | + printf %s "(cached) " >&6 |
3671 | +else $as_nop |
3672 | if test -n "$CC"; then |
3673 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3674 | else |
3675 | @@ -3153,11 +3783,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3676 | for as_dir in $PATH |
3677 | do |
3678 | IFS=$as_save_IFS |
3679 | - test -z "$as_dir" && as_dir=. |
3680 | + case $as_dir in #((( |
3681 | + '') as_dir=./ ;; |
3682 | + */) ;; |
3683 | + *) as_dir=$as_dir/ ;; |
3684 | + esac |
3685 | for ac_exec_ext in '' $ac_executable_extensions; do |
3686 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3687 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3688 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
3689 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3690 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3691 | break 2 |
3692 | fi |
3693 | done |
3694 | @@ -3168,11 +3802,11 @@ fi |
3695 | fi |
3696 | CC=$ac_cv_prog_CC |
3697 | if test -n "$CC"; then |
3698 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3699 | -$as_echo "$CC" >&6; } |
3700 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3701 | +printf "%s\n" "$CC" >&6; } |
3702 | else |
3703 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3704 | -$as_echo "no" >&6; } |
3705 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3706 | +printf "%s\n" "no" >&6; } |
3707 | fi |
3708 | |
3709 | |
3710 | @@ -3181,11 +3815,12 @@ fi |
3711 | if test -z "$CC"; then |
3712 | # Extract the first word of "cc", so it can be a program name with args. |
3713 | set dummy cc; ac_word=$2 |
3714 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3715 | -$as_echo_n "checking for $ac_word... " >&6; } |
3716 | -if ${ac_cv_prog_CC+:} false; then : |
3717 | - $as_echo_n "(cached) " >&6 |
3718 | -else |
3719 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3720 | +printf %s "checking for $ac_word... " >&6; } |
3721 | +if test ${ac_cv_prog_CC+y} |
3722 | +then : |
3723 | + printf %s "(cached) " >&6 |
3724 | +else $as_nop |
3725 | if test -n "$CC"; then |
3726 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3727 | else |
3728 | @@ -3194,57 +3829,172 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3729 | for as_dir in $PATH |
3730 | do |
3731 | IFS=$as_save_IFS |
3732 | - test -z "$as_dir" && as_dir=. |
3733 | + case $as_dir in #((( |
3734 | + '') as_dir=./ ;; |
3735 | + */) ;; |
3736 | + *) as_dir=$as_dir/ ;; |
3737 | + esac |
3738 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3739 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3740 | + if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3741 | + ac_prog_rejected=yes |
3742 | + continue |
3743 | + fi |
3744 | + ac_cv_prog_CC="cc" |
3745 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3746 | + break 2 |
3747 | + fi |
3748 | +done |
3749 | + done |
3750 | +IFS=$as_save_IFS |
3751 | + |
3752 | +if test $ac_prog_rejected = yes; then |
3753 | + # We found a bogon in the path, so make sure we never use it. |
3754 | + set dummy $ac_cv_prog_CC |
3755 | + shift |
3756 | + if test $# != 0; then |
3757 | + # We chose a different compiler from the bogus one. |
3758 | + # However, it has the same basename, so the bogon will be chosen |
3759 | + # first if we set CC to just the basename; use the full file name. |
3760 | + shift |
3761 | + ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" |
3762 | + fi |
3763 | +fi |
3764 | +fi |
3765 | +fi |
3766 | +CC=$ac_cv_prog_CC |
3767 | +if test -n "$CC"; then |
3768 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3769 | +printf "%s\n" "$CC" >&6; } |
3770 | +else |
3771 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3772 | +printf "%s\n" "no" >&6; } |
3773 | +fi |
3774 | + |
3775 | + |
3776 | +fi |
3777 | +if test -z "$CC"; then |
3778 | + if test -n "$ac_tool_prefix"; then |
3779 | + for ac_prog in cl.exe |
3780 | + do |
3781 | + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3782 | +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3783 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3784 | +printf %s "checking for $ac_word... " >&6; } |
3785 | +if test ${ac_cv_prog_CC+y} |
3786 | +then : |
3787 | + printf %s "(cached) " >&6 |
3788 | +else $as_nop |
3789 | + if test -n "$CC"; then |
3790 | + ac_cv_prog_CC="$CC" # Let the user override the test. |
3791 | +else |
3792 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3793 | +for as_dir in $PATH |
3794 | +do |
3795 | + IFS=$as_save_IFS |
3796 | + case $as_dir in #((( |
3797 | + '') as_dir=./ ;; |
3798 | + */) ;; |
3799 | + *) as_dir=$as_dir/ ;; |
3800 | + esac |
3801 | + for ac_exec_ext in '' $ac_executable_extensions; do |
3802 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3803 | + ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3804 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3805 | + break 2 |
3806 | + fi |
3807 | +done |
3808 | + done |
3809 | +IFS=$as_save_IFS |
3810 | + |
3811 | +fi |
3812 | +fi |
3813 | +CC=$ac_cv_prog_CC |
3814 | +if test -n "$CC"; then |
3815 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3816 | +printf "%s\n" "$CC" >&6; } |
3817 | +else |
3818 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3819 | +printf "%s\n" "no" >&6; } |
3820 | +fi |
3821 | + |
3822 | + |
3823 | + test -n "$CC" && break |
3824 | + done |
3825 | +fi |
3826 | +if test -z "$CC"; then |
3827 | + ac_ct_CC=$CC |
3828 | + for ac_prog in cl.exe |
3829 | +do |
3830 | + # Extract the first word of "$ac_prog", so it can be a program name with args. |
3831 | +set dummy $ac_prog; ac_word=$2 |
3832 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3833 | +printf %s "checking for $ac_word... " >&6; } |
3834 | +if test ${ac_cv_prog_ac_ct_CC+y} |
3835 | +then : |
3836 | + printf %s "(cached) " >&6 |
3837 | +else $as_nop |
3838 | + if test -n "$ac_ct_CC"; then |
3839 | + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3840 | +else |
3841 | +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3842 | +for as_dir in $PATH |
3843 | +do |
3844 | + IFS=$as_save_IFS |
3845 | + case $as_dir in #((( |
3846 | + '') as_dir=./ ;; |
3847 | + */) ;; |
3848 | + *) as_dir=$as_dir/ ;; |
3849 | + esac |
3850 | for ac_exec_ext in '' $ac_executable_extensions; do |
3851 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3852 | - if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3853 | - ac_prog_rejected=yes |
3854 | - continue |
3855 | - fi |
3856 | - ac_cv_prog_CC="cc" |
3857 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3858 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3859 | + ac_cv_prog_ac_ct_CC="$ac_prog" |
3860 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3861 | break 2 |
3862 | fi |
3863 | done |
3864 | done |
3865 | IFS=$as_save_IFS |
3866 | |
3867 | -if test $ac_prog_rejected = yes; then |
3868 | - # We found a bogon in the path, so make sure we never use it. |
3869 | - set dummy $ac_cv_prog_CC |
3870 | - shift |
3871 | - if test $# != 0; then |
3872 | - # We chose a different compiler from the bogus one. |
3873 | - # However, it has the same basename, so the bogon will be chosen |
3874 | - # first if we set CC to just the basename; use the full file name. |
3875 | - shift |
3876 | - ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
3877 | - fi |
3878 | fi |
3879 | fi |
3880 | -fi |
3881 | -CC=$ac_cv_prog_CC |
3882 | -if test -n "$CC"; then |
3883 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3884 | -$as_echo "$CC" >&6; } |
3885 | +ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3886 | +if test -n "$ac_ct_CC"; then |
3887 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3888 | +printf "%s\n" "$ac_ct_CC" >&6; } |
3889 | else |
3890 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3891 | -$as_echo "no" >&6; } |
3892 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3893 | +printf "%s\n" "no" >&6; } |
3894 | fi |
3895 | |
3896 | |
3897 | + test -n "$ac_ct_CC" && break |
3898 | +done |
3899 | + |
3900 | + if test "x$ac_ct_CC" = x; then |
3901 | + CC="" |
3902 | + else |
3903 | + case $cross_compiling:$ac_tool_warned in |
3904 | +yes:) |
3905 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
3906 | +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
3907 | +ac_tool_warned=yes ;; |
3908 | +esac |
3909 | + CC=$ac_ct_CC |
3910 | + fi |
3911 | +fi |
3912 | + |
3913 | fi |
3914 | if test -z "$CC"; then |
3915 | if test -n "$ac_tool_prefix"; then |
3916 | - for ac_prog in cl.exe |
3917 | - do |
3918 | - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3919 | -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3920 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3921 | -$as_echo_n "checking for $ac_word... " >&6; } |
3922 | -if ${ac_cv_prog_CC+:} false; then : |
3923 | - $as_echo_n "(cached) " >&6 |
3924 | -else |
3925 | + # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. |
3926 | +set dummy ${ac_tool_prefix}clang; ac_word=$2 |
3927 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3928 | +printf %s "checking for $ac_word... " >&6; } |
3929 | +if test ${ac_cv_prog_CC+y} |
3930 | +then : |
3931 | + printf %s "(cached) " >&6 |
3932 | +else $as_nop |
3933 | if test -n "$CC"; then |
3934 | ac_cv_prog_CC="$CC" # Let the user override the test. |
3935 | else |
3936 | @@ -3252,11 +4002,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3937 | for as_dir in $PATH |
3938 | do |
3939 | IFS=$as_save_IFS |
3940 | - test -z "$as_dir" && as_dir=. |
3941 | + case $as_dir in #((( |
3942 | + '') as_dir=./ ;; |
3943 | + */) ;; |
3944 | + *) as_dir=$as_dir/ ;; |
3945 | + esac |
3946 | for ac_exec_ext in '' $ac_executable_extensions; do |
3947 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
3948 | - ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
3949 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3950 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
3951 | + ac_cv_prog_CC="${ac_tool_prefix}clang" |
3952 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
3953 | break 2 |
3954 | fi |
3955 | done |
3956 | @@ -3267,28 +4021,25 @@ fi |
3957 | fi |
3958 | CC=$ac_cv_prog_CC |
3959 | if test -n "$CC"; then |
3960 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3961 | -$as_echo "$CC" >&6; } |
3962 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3963 | +printf "%s\n" "$CC" >&6; } |
3964 | else |
3965 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3966 | -$as_echo "no" >&6; } |
3967 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3968 | +printf "%s\n" "no" >&6; } |
3969 | fi |
3970 | |
3971 | |
3972 | - test -n "$CC" && break |
3973 | - done |
3974 | fi |
3975 | -if test -z "$CC"; then |
3976 | +if test -z "$ac_cv_prog_CC"; then |
3977 | ac_ct_CC=$CC |
3978 | - for ac_prog in cl.exe |
3979 | -do |
3980 | - # Extract the first word of "$ac_prog", so it can be a program name with args. |
3981 | -set dummy $ac_prog; ac_word=$2 |
3982 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3983 | -$as_echo_n "checking for $ac_word... " >&6; } |
3984 | -if ${ac_cv_prog_ac_ct_CC+:} false; then : |
3985 | - $as_echo_n "(cached) " >&6 |
3986 | -else |
3987 | + # Extract the first word of "clang", so it can be a program name with args. |
3988 | +set dummy clang; ac_word=$2 |
3989 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3990 | +printf %s "checking for $ac_word... " >&6; } |
3991 | +if test ${ac_cv_prog_ac_ct_CC+y} |
3992 | +then : |
3993 | + printf %s "(cached) " >&6 |
3994 | +else $as_nop |
3995 | if test -n "$ac_ct_CC"; then |
3996 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
3997 | else |
3998 | @@ -3296,11 +4047,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3999 | for as_dir in $PATH |
4000 | do |
4001 | IFS=$as_save_IFS |
4002 | - test -z "$as_dir" && as_dir=. |
4003 | + case $as_dir in #((( |
4004 | + '') as_dir=./ ;; |
4005 | + */) ;; |
4006 | + *) as_dir=$as_dir/ ;; |
4007 | + esac |
4008 | for ac_exec_ext in '' $ac_executable_extensions; do |
4009 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4010 | - ac_cv_prog_ac_ct_CC="$ac_prog" |
4011 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4012 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4013 | + ac_cv_prog_ac_ct_CC="clang" |
4014 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4015 | break 2 |
4016 | fi |
4017 | done |
4018 | @@ -3311,50 +4066,48 @@ fi |
4019 | fi |
4020 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4021 | if test -n "$ac_ct_CC"; then |
4022 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4023 | -$as_echo "$ac_ct_CC" >&6; } |
4024 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
4025 | +printf "%s\n" "$ac_ct_CC" >&6; } |
4026 | else |
4027 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4028 | -$as_echo "no" >&6; } |
4029 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4030 | +printf "%s\n" "no" >&6; } |
4031 | fi |
4032 | |
4033 | - |
4034 | - test -n "$ac_ct_CC" && break |
4035 | -done |
4036 | - |
4037 | if test "x$ac_ct_CC" = x; then |
4038 | CC="" |
4039 | else |
4040 | case $cross_compiling:$ac_tool_warned in |
4041 | yes:) |
4042 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4043 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4044 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4045 | +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4046 | ac_tool_warned=yes ;; |
4047 | esac |
4048 | CC=$ac_ct_CC |
4049 | fi |
4050 | +else |
4051 | + CC="$ac_cv_prog_CC" |
4052 | fi |
4053 | |
4054 | fi |
4055 | |
4056 | |
4057 | -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4058 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4059 | +test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4060 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4061 | as_fn_error $? "no acceptable C compiler found in \$PATH |
4062 | See \`config.log' for more details" "$LINENO" 5; } |
4063 | |
4064 | # Provide some information about the compiler. |
4065 | -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4066 | +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
4067 | set X $ac_compile |
4068 | ac_compiler=$2 |
4069 | -for ac_option in --version -v -V -qversion; do |
4070 | +for ac_option in --version -v -V -qversion -version; do |
4071 | { { ac_try="$ac_compiler $ac_option >&5" |
4072 | case "(($ac_try" in |
4073 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4074 | *) ac_try_echo=$ac_try;; |
4075 | esac |
4076 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4077 | -$as_echo "$ac_try_echo"; } >&5 |
4078 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4079 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4080 | ac_status=$? |
4081 | if test -s conftest.err; then |
4082 | @@ -3364,7 +4117,7 @@ $as_echo "$ac_try_echo"; } >&5 |
4083 | cat conftest.er1 >&5 |
4084 | fi |
4085 | rm -f conftest.er1 conftest.err |
4086 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4087 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4088 | test $ac_status = 0; } |
4089 | done |
4090 | |
4091 | @@ -3372,7 +4125,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4092 | /* end confdefs.h. */ |
4093 | |
4094 | int |
4095 | -main () |
4096 | +main (void) |
4097 | { |
4098 | |
4099 | ; |
4100 | @@ -3384,9 +4137,9 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
4101 | # Try to create an executable without -o first, disregard a.out. |
4102 | # It will help us diagnose broken compilers, and finding out an intuition |
4103 | # of exeext. |
4104 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4105 | -$as_echo_n "checking whether the C compiler works... " >&6; } |
4106 | -ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4107 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
4108 | +printf %s "checking whether the C compiler works... " >&6; } |
4109 | +ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
4110 | |
4111 | # The possible output files: |
4112 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
4113 | @@ -3407,11 +4160,12 @@ case "(($ac_try" in |
4114 | *) ac_try_echo=$ac_try;; |
4115 | esac |
4116 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4117 | -$as_echo "$ac_try_echo"; } >&5 |
4118 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4119 | (eval "$ac_link_default") 2>&5 |
4120 | ac_status=$? |
4121 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4122 | - test $ac_status = 0; }; then : |
4123 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4124 | + test $ac_status = 0; } |
4125 | +then : |
4126 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
4127 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
4128 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
4129 | @@ -3428,7 +4182,7 @@ do |
4130 | # certainly right. |
4131 | break;; |
4132 | *.* ) |
4133 | - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
4134 | + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; |
4135 | then :; else |
4136 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
4137 | fi |
4138 | @@ -3444,44 +4198,46 @@ do |
4139 | done |
4140 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
4141 | |
4142 | -else |
4143 | +else $as_nop |
4144 | ac_file='' |
4145 | fi |
4146 | -if test -z "$ac_file"; then : |
4147 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4148 | -$as_echo "no" >&6; } |
4149 | -$as_echo "$as_me: failed program was:" >&5 |
4150 | +if test -z "$ac_file" |
4151 | +then : |
4152 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4153 | +printf "%s\n" "no" >&6; } |
4154 | +printf "%s\n" "$as_me: failed program was:" >&5 |
4155 | sed 's/^/| /' conftest.$ac_ext >&5 |
4156 | |
4157 | -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4158 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4159 | +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4160 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4161 | as_fn_error 77 "C compiler cannot create executables |
4162 | See \`config.log' for more details" "$LINENO" 5; } |
4163 | -else |
4164 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4165 | -$as_echo "yes" >&6; } |
4166 | -fi |
4167 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4168 | -$as_echo_n "checking for C compiler default output file name... " >&6; } |
4169 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4170 | -$as_echo "$ac_file" >&6; } |
4171 | +else $as_nop |
4172 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
4173 | +printf "%s\n" "yes" >&6; } |
4174 | +fi |
4175 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
4176 | +printf %s "checking for C compiler default output file name... " >&6; } |
4177 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
4178 | +printf "%s\n" "$ac_file" >&6; } |
4179 | ac_exeext=$ac_cv_exeext |
4180 | |
4181 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
4182 | ac_clean_files=$ac_clean_files_save |
4183 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4184 | -$as_echo_n "checking for suffix of executables... " >&6; } |
4185 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
4186 | +printf %s "checking for suffix of executables... " >&6; } |
4187 | if { { ac_try="$ac_link" |
4188 | case "(($ac_try" in |
4189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4190 | *) ac_try_echo=$ac_try;; |
4191 | esac |
4192 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4193 | -$as_echo "$ac_try_echo"; } >&5 |
4194 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4195 | (eval "$ac_link") 2>&5 |
4196 | ac_status=$? |
4197 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4198 | - test $ac_status = 0; }; then : |
4199 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4200 | + test $ac_status = 0; } |
4201 | +then : |
4202 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
4203 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
4204 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
4205 | @@ -3495,15 +4251,15 @@ for ac_file in conftest.exe conftest conftest.*; do |
4206 | * ) break;; |
4207 | esac |
4208 | done |
4209 | -else |
4210 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4211 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4212 | +else $as_nop |
4213 | + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4214 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4215 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
4216 | See \`config.log' for more details" "$LINENO" 5; } |
4217 | fi |
4218 | rm -f conftest conftest$ac_cv_exeext |
4219 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4220 | -$as_echo "$ac_cv_exeext" >&6; } |
4221 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
4222 | +printf "%s\n" "$ac_cv_exeext" >&6; } |
4223 | |
4224 | rm -f conftest.$ac_ext |
4225 | EXEEXT=$ac_cv_exeext |
4226 | @@ -3512,7 +4268,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4227 | /* end confdefs.h. */ |
4228 | #include <stdio.h> |
4229 | int |
4230 | -main () |
4231 | +main (void) |
4232 | { |
4233 | FILE *f = fopen ("conftest.out", "w"); |
4234 | return ferror (f) || fclose (f) != 0; |
4235 | @@ -3524,8 +4280,8 @@ _ACEOF |
4236 | ac_clean_files="$ac_clean_files conftest.out" |
4237 | # Check that the compiler produces executables we can run. If not, either |
4238 | # the compiler is broken, or we cross compile. |
4239 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4240 | -$as_echo_n "checking whether we are cross compiling... " >&6; } |
4241 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
4242 | +printf %s "checking whether we are cross compiling... " >&6; } |
4243 | if test "$cross_compiling" != yes; then |
4244 | { { ac_try="$ac_link" |
4245 | case "(($ac_try" in |
4246 | @@ -3533,10 +4289,10 @@ case "(($ac_try" in |
4247 | *) ac_try_echo=$ac_try;; |
4248 | esac |
4249 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4250 | -$as_echo "$ac_try_echo"; } >&5 |
4251 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4252 | (eval "$ac_link") 2>&5 |
4253 | ac_status=$? |
4254 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4255 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4256 | test $ac_status = 0; } |
4257 | if { ac_try='./conftest$ac_cv_exeext' |
4258 | { { case "(($ac_try" in |
4259 | @@ -3544,39 +4300,40 @@ $as_echo "$ac_try_echo"; } >&5 |
4260 | *) ac_try_echo=$ac_try;; |
4261 | esac |
4262 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4263 | -$as_echo "$ac_try_echo"; } >&5 |
4264 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4265 | (eval "$ac_try") 2>&5 |
4266 | ac_status=$? |
4267 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4268 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4269 | test $ac_status = 0; }; }; then |
4270 | cross_compiling=no |
4271 | else |
4272 | if test "$cross_compiling" = maybe; then |
4273 | cross_compiling=yes |
4274 | else |
4275 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4276 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4277 | -as_fn_error $? "cannot run C compiled programs. |
4278 | + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4279 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4280 | +as_fn_error 77 "cannot run C compiled programs. |
4281 | If you meant to cross compile, use \`--host'. |
4282 | See \`config.log' for more details" "$LINENO" 5; } |
4283 | fi |
4284 | fi |
4285 | fi |
4286 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4287 | -$as_echo "$cross_compiling" >&6; } |
4288 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
4289 | +printf "%s\n" "$cross_compiling" >&6; } |
4290 | |
4291 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
4292 | ac_clean_files=$ac_clean_files_save |
4293 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4294 | -$as_echo_n "checking for suffix of object files... " >&6; } |
4295 | -if ${ac_cv_objext+:} false; then : |
4296 | - $as_echo_n "(cached) " >&6 |
4297 | -else |
4298 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
4299 | +printf %s "checking for suffix of object files... " >&6; } |
4300 | +if test ${ac_cv_objext+y} |
4301 | +then : |
4302 | + printf %s "(cached) " >&6 |
4303 | +else $as_nop |
4304 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4305 | /* end confdefs.h. */ |
4306 | |
4307 | int |
4308 | -main () |
4309 | +main (void) |
4310 | { |
4311 | |
4312 | ; |
4313 | @@ -3590,11 +4347,12 @@ case "(($ac_try" in |
4314 | *) ac_try_echo=$ac_try;; |
4315 | esac |
4316 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4317 | -$as_echo "$ac_try_echo"; } >&5 |
4318 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4319 | (eval "$ac_compile") 2>&5 |
4320 | ac_status=$? |
4321 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4322 | - test $ac_status = 0; }; then : |
4323 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4324 | + test $ac_status = 0; } |
4325 | +then : |
4326 | for ac_file in conftest.o conftest.obj conftest.*; do |
4327 | test -f "$ac_file" || continue; |
4328 | case $ac_file in |
4329 | @@ -3603,31 +4361,32 @@ $as_echo "$ac_try_echo"; } >&5 |
4330 | break;; |
4331 | esac |
4332 | done |
4333 | -else |
4334 | - $as_echo "$as_me: failed program was:" >&5 |
4335 | +else $as_nop |
4336 | + printf "%s\n" "$as_me: failed program was:" >&5 |
4337 | sed 's/^/| /' conftest.$ac_ext >&5 |
4338 | |
4339 | -{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4340 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
4341 | +{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4342 | +printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} |
4343 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
4344 | See \`config.log' for more details" "$LINENO" 5; } |
4345 | fi |
4346 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
4347 | fi |
4348 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4349 | -$as_echo "$ac_cv_objext" >&6; } |
4350 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
4351 | +printf "%s\n" "$ac_cv_objext" >&6; } |
4352 | OBJEXT=$ac_cv_objext |
4353 | ac_objext=$OBJEXT |
4354 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4355 | -$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
4356 | -if ${ac_cv_c_compiler_gnu+:} false; then : |
4357 | - $as_echo_n "(cached) " >&6 |
4358 | -else |
4359 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 |
4360 | +printf %s "checking whether the compiler supports GNU C... " >&6; } |
4361 | +if test ${ac_cv_c_compiler_gnu+y} |
4362 | +then : |
4363 | + printf %s "(cached) " >&6 |
4364 | +else $as_nop |
4365 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4366 | /* end confdefs.h. */ |
4367 | |
4368 | int |
4369 | -main () |
4370 | +main (void) |
4371 | { |
4372 | #ifndef __GNUC__ |
4373 | choke me |
4374 | @@ -3637,29 +4396,33 @@ main () |
4375 | return 0; |
4376 | } |
4377 | _ACEOF |
4378 | -if ac_fn_c_try_compile "$LINENO"; then : |
4379 | +if ac_fn_c_try_compile "$LINENO" |
4380 | +then : |
4381 | ac_compiler_gnu=yes |
4382 | -else |
4383 | +else $as_nop |
4384 | ac_compiler_gnu=no |
4385 | fi |
4386 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4387 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4388 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
4389 | |
4390 | fi |
4391 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4392 | -$as_echo "$ac_cv_c_compiler_gnu" >&6; } |
4393 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4394 | +printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } |
4395 | +ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4396 | + |
4397 | if test $ac_compiler_gnu = yes; then |
4398 | GCC=yes |
4399 | else |
4400 | GCC= |
4401 | fi |
4402 | -ac_test_CFLAGS=${CFLAGS+set} |
4403 | +ac_test_CFLAGS=${CFLAGS+y} |
4404 | ac_save_CFLAGS=$CFLAGS |
4405 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4406 | -$as_echo_n "checking whether $CC accepts -g... " >&6; } |
4407 | -if ${ac_cv_prog_cc_g+:} false; then : |
4408 | - $as_echo_n "(cached) " >&6 |
4409 | -else |
4410 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4411 | +printf %s "checking whether $CC accepts -g... " >&6; } |
4412 | +if test ${ac_cv_prog_cc_g+y} |
4413 | +then : |
4414 | + printf %s "(cached) " >&6 |
4415 | +else $as_nop |
4416 | ac_save_c_werror_flag=$ac_c_werror_flag |
4417 | ac_c_werror_flag=yes |
4418 | ac_cv_prog_cc_g=no |
4419 | @@ -3668,57 +4431,60 @@ else |
4420 | /* end confdefs.h. */ |
4421 | |
4422 | int |
4423 | -main () |
4424 | +main (void) |
4425 | { |
4426 | |
4427 | ; |
4428 | return 0; |
4429 | } |
4430 | _ACEOF |
4431 | -if ac_fn_c_try_compile "$LINENO"; then : |
4432 | +if ac_fn_c_try_compile "$LINENO" |
4433 | +then : |
4434 | ac_cv_prog_cc_g=yes |
4435 | -else |
4436 | +else $as_nop |
4437 | CFLAGS="" |
4438 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4439 | /* end confdefs.h. */ |
4440 | |
4441 | int |
4442 | -main () |
4443 | +main (void) |
4444 | { |
4445 | |
4446 | ; |
4447 | return 0; |
4448 | } |
4449 | _ACEOF |
4450 | -if ac_fn_c_try_compile "$LINENO"; then : |
4451 | +if ac_fn_c_try_compile "$LINENO" |
4452 | +then : |
4453 | |
4454 | -else |
4455 | +else $as_nop |
4456 | ac_c_werror_flag=$ac_save_c_werror_flag |
4457 | CFLAGS="-g" |
4458 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4459 | /* end confdefs.h. */ |
4460 | |
4461 | int |
4462 | -main () |
4463 | +main (void) |
4464 | { |
4465 | |
4466 | ; |
4467 | return 0; |
4468 | } |
4469 | _ACEOF |
4470 | -if ac_fn_c_try_compile "$LINENO"; then : |
4471 | +if ac_fn_c_try_compile "$LINENO" |
4472 | +then : |
4473 | ac_cv_prog_cc_g=yes |
4474 | fi |
4475 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4476 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4477 | fi |
4478 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4479 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4480 | fi |
4481 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4482 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4483 | ac_c_werror_flag=$ac_save_c_werror_flag |
4484 | fi |
4485 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4486 | -$as_echo "$ac_cv_prog_cc_g" >&6; } |
4487 | -if test "$ac_test_CFLAGS" = set; then |
4488 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
4489 | +printf "%s\n" "$ac_cv_prog_cc_g" >&6; } |
4490 | +if test $ac_test_CFLAGS; then |
4491 | CFLAGS=$ac_save_CFLAGS |
4492 | elif test $ac_cv_prog_cc_g = yes; then |
4493 | if test "$GCC" = yes; then |
4494 | @@ -3733,94 +4499,144 @@ else |
4495 | CFLAGS= |
4496 | fi |
4497 | fi |
4498 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4499 | -$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
4500 | -if ${ac_cv_prog_cc_c89+:} false; then : |
4501 | - $as_echo_n "(cached) " >&6 |
4502 | -else |
4503 | - ac_cv_prog_cc_c89=no |
4504 | +ac_prog_cc_stdc=no |
4505 | +if test x$ac_prog_cc_stdc = xno |
4506 | +then : |
4507 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 |
4508 | +printf %s "checking for $CC option to enable C11 features... " >&6; } |
4509 | +if test ${ac_cv_prog_cc_c11+y} |
4510 | +then : |
4511 | + printf %s "(cached) " >&6 |
4512 | +else $as_nop |
4513 | + ac_cv_prog_cc_c11=no |
4514 | ac_save_CC=$CC |
4515 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4516 | /* end confdefs.h. */ |
4517 | -#include <stdarg.h> |
4518 | -#include <stdio.h> |
4519 | -struct stat; |
4520 | -/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4521 | -struct buf { int x; }; |
4522 | -FILE * (*rcsopen) (struct buf *, struct stat *, int); |
4523 | -static char *e (p, i) |
4524 | - char **p; |
4525 | - int i; |
4526 | -{ |
4527 | - return p[i]; |
4528 | -} |
4529 | -static char *f (char * (*g) (char **, int), char **p, ...) |
4530 | -{ |
4531 | - char *s; |
4532 | - va_list v; |
4533 | - va_start (v,p); |
4534 | - s = g (p, va_arg (v,int)); |
4535 | - va_end (v); |
4536 | - return s; |
4537 | -} |
4538 | - |
4539 | -/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4540 | - function prototypes and stuff, but not '\xHH' hex character constants. |
4541 | - These don't provoke an error unfortunately, instead are silently treated |
4542 | - as 'x'. The following induces an error, until -std is added to get |
4543 | - proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4544 | - array size at least. It's necessary to write '\x00'==0 to get something |
4545 | - that's true only with -std. */ |
4546 | -int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4547 | +$ac_c_conftest_c11_program |
4548 | +_ACEOF |
4549 | +for ac_arg in '' -std=gnu11 |
4550 | +do |
4551 | + CC="$ac_save_CC $ac_arg" |
4552 | + if ac_fn_c_try_compile "$LINENO" |
4553 | +then : |
4554 | + ac_cv_prog_cc_c11=$ac_arg |
4555 | +fi |
4556 | +rm -f core conftest.err conftest.$ac_objext conftest.beam |
4557 | + test "x$ac_cv_prog_cc_c11" != "xno" && break |
4558 | +done |
4559 | +rm -f conftest.$ac_ext |
4560 | +CC=$ac_save_CC |
4561 | +fi |
4562 | |
4563 | -/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4564 | - inside strings and character constants. */ |
4565 | -#define FOO(x) 'x' |
4566 | -int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
4567 | +if test "x$ac_cv_prog_cc_c11" = xno |
4568 | +then : |
4569 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4570 | +printf "%s\n" "unsupported" >&6; } |
4571 | +else $as_nop |
4572 | + if test "x$ac_cv_prog_cc_c11" = x |
4573 | +then : |
4574 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4575 | +printf "%s\n" "none needed" >&6; } |
4576 | +else $as_nop |
4577 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 |
4578 | +printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } |
4579 | + CC="$CC $ac_cv_prog_cc_c11" |
4580 | +fi |
4581 | + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 |
4582 | + ac_prog_cc_stdc=c11 |
4583 | +fi |
4584 | +fi |
4585 | +if test x$ac_prog_cc_stdc = xno |
4586 | +then : |
4587 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 |
4588 | +printf %s "checking for $CC option to enable C99 features... " >&6; } |
4589 | +if test ${ac_cv_prog_cc_c99+y} |
4590 | +then : |
4591 | + printf %s "(cached) " >&6 |
4592 | +else $as_nop |
4593 | + ac_cv_prog_cc_c99=no |
4594 | +ac_save_CC=$CC |
4595 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4596 | +/* end confdefs.h. */ |
4597 | +$ac_c_conftest_c99_program |
4598 | +_ACEOF |
4599 | +for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= |
4600 | +do |
4601 | + CC="$ac_save_CC $ac_arg" |
4602 | + if ac_fn_c_try_compile "$LINENO" |
4603 | +then : |
4604 | + ac_cv_prog_cc_c99=$ac_arg |
4605 | +fi |
4606 | +rm -f core conftest.err conftest.$ac_objext conftest.beam |
4607 | + test "x$ac_cv_prog_cc_c99" != "xno" && break |
4608 | +done |
4609 | +rm -f conftest.$ac_ext |
4610 | +CC=$ac_save_CC |
4611 | +fi |
4612 | |
4613 | -int test (int i, double x); |
4614 | -struct s1 {int (*f) (int a);}; |
4615 | -struct s2 {int (*f) (double a);}; |
4616 | -int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
4617 | -int argc; |
4618 | -char **argv; |
4619 | -int |
4620 | -main () |
4621 | -{ |
4622 | -return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
4623 | - ; |
4624 | - return 0; |
4625 | -} |
4626 | +if test "x$ac_cv_prog_cc_c99" = xno |
4627 | +then : |
4628 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4629 | +printf "%s\n" "unsupported" >&6; } |
4630 | +else $as_nop |
4631 | + if test "x$ac_cv_prog_cc_c99" = x |
4632 | +then : |
4633 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4634 | +printf "%s\n" "none needed" >&6; } |
4635 | +else $as_nop |
4636 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
4637 | +printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } |
4638 | + CC="$CC $ac_cv_prog_cc_c99" |
4639 | +fi |
4640 | + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
4641 | + ac_prog_cc_stdc=c99 |
4642 | +fi |
4643 | +fi |
4644 | +if test x$ac_prog_cc_stdc = xno |
4645 | +then : |
4646 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 |
4647 | +printf %s "checking for $CC option to enable C89 features... " >&6; } |
4648 | +if test ${ac_cv_prog_cc_c89+y} |
4649 | +then : |
4650 | + printf %s "(cached) " >&6 |
4651 | +else $as_nop |
4652 | + ac_cv_prog_cc_c89=no |
4653 | +ac_save_CC=$CC |
4654 | +cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4655 | +/* end confdefs.h. */ |
4656 | +$ac_c_conftest_c89_program |
4657 | _ACEOF |
4658 | -for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4659 | - -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4660 | +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
4661 | do |
4662 | CC="$ac_save_CC $ac_arg" |
4663 | - if ac_fn_c_try_compile "$LINENO"; then : |
4664 | + if ac_fn_c_try_compile "$LINENO" |
4665 | +then : |
4666 | ac_cv_prog_cc_c89=$ac_arg |
4667 | fi |
4668 | -rm -f core conftest.err conftest.$ac_objext |
4669 | +rm -f core conftest.err conftest.$ac_objext conftest.beam |
4670 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
4671 | done |
4672 | rm -f conftest.$ac_ext |
4673 | CC=$ac_save_CC |
4674 | - |
4675 | fi |
4676 | -# AC_CACHE_VAL |
4677 | -case "x$ac_cv_prog_cc_c89" in |
4678 | - x) |
4679 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4680 | -$as_echo "none needed" >&6; } ;; |
4681 | - xno) |
4682 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4683 | -$as_echo "unsupported" >&6; } ;; |
4684 | - *) |
4685 | - CC="$CC $ac_cv_prog_cc_c89" |
4686 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4687 | -$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
4688 | -esac |
4689 | -if test "x$ac_cv_prog_cc_c89" != xno; then : |
4690 | |
4691 | +if test "x$ac_cv_prog_cc_c89" = xno |
4692 | +then : |
4693 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
4694 | +printf "%s\n" "unsupported" >&6; } |
4695 | +else $as_nop |
4696 | + if test "x$ac_cv_prog_cc_c89" = x |
4697 | +then : |
4698 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
4699 | +printf "%s\n" "none needed" >&6; } |
4700 | +else $as_nop |
4701 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
4702 | +printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } |
4703 | + CC="$CC $ac_cv_prog_cc_c89" |
4704 | +fi |
4705 | + ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
4706 | + ac_prog_cc_stdc=c89 |
4707 | +fi |
4708 | fi |
4709 | |
4710 | ac_ext=c |
4711 | @@ -3829,6 +4645,12 @@ ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4712 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4713 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4714 | |
4715 | + |
4716 | + |
4717 | + |
4718 | + |
4719 | + |
4720 | + |
4721 | ac_ext=cpp |
4722 | ac_cpp='$CXXCPP $CPPFLAGS' |
4723 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4724 | @@ -3839,15 +4661,16 @@ if test -z "$CXX"; then |
4725 | CXX=$CCC |
4726 | else |
4727 | if test -n "$ac_tool_prefix"; then |
4728 | - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
4729 | + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
4730 | do |
4731 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
4732 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4733 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4734 | -$as_echo_n "checking for $ac_word... " >&6; } |
4735 | -if ${ac_cv_prog_CXX+:} false; then : |
4736 | - $as_echo_n "(cached) " >&6 |
4737 | -else |
4738 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4739 | +printf %s "checking for $ac_word... " >&6; } |
4740 | +if test ${ac_cv_prog_CXX+y} |
4741 | +then : |
4742 | + printf %s "(cached) " >&6 |
4743 | +else $as_nop |
4744 | if test -n "$CXX"; then |
4745 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
4746 | else |
4747 | @@ -3855,11 +4678,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4748 | for as_dir in $PATH |
4749 | do |
4750 | IFS=$as_save_IFS |
4751 | - test -z "$as_dir" && as_dir=. |
4752 | + case $as_dir in #((( |
4753 | + '') as_dir=./ ;; |
4754 | + */) ;; |
4755 | + *) as_dir=$as_dir/ ;; |
4756 | + esac |
4757 | for ac_exec_ext in '' $ac_executable_extensions; do |
4758 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4759 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4760 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
4761 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4762 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4763 | break 2 |
4764 | fi |
4765 | done |
4766 | @@ -3870,11 +4697,11 @@ fi |
4767 | fi |
4768 | CXX=$ac_cv_prog_CXX |
4769 | if test -n "$CXX"; then |
4770 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4771 | -$as_echo "$CXX" >&6; } |
4772 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 |
4773 | +printf "%s\n" "$CXX" >&6; } |
4774 | else |
4775 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4776 | -$as_echo "no" >&6; } |
4777 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4778 | +printf "%s\n" "no" >&6; } |
4779 | fi |
4780 | |
4781 | |
4782 | @@ -3883,15 +4710,16 @@ fi |
4783 | fi |
4784 | if test -z "$CXX"; then |
4785 | ac_ct_CXX=$CXX |
4786 | - for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
4787 | + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ |
4788 | do |
4789 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
4790 | set dummy $ac_prog; ac_word=$2 |
4791 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4792 | -$as_echo_n "checking for $ac_word... " >&6; } |
4793 | -if ${ac_cv_prog_ac_ct_CXX+:} false; then : |
4794 | - $as_echo_n "(cached) " >&6 |
4795 | -else |
4796 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4797 | +printf %s "checking for $ac_word... " >&6; } |
4798 | +if test ${ac_cv_prog_ac_ct_CXX+y} |
4799 | +then : |
4800 | + printf %s "(cached) " >&6 |
4801 | +else $as_nop |
4802 | if test -n "$ac_ct_CXX"; then |
4803 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
4804 | else |
4805 | @@ -3899,11 +4727,15 @@ as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4806 | for as_dir in $PATH |
4807 | do |
4808 | IFS=$as_save_IFS |
4809 | - test -z "$as_dir" && as_dir=. |
4810 | + case $as_dir in #((( |
4811 | + '') as_dir=./ ;; |
4812 | + */) ;; |
4813 | + *) as_dir=$as_dir/ ;; |
4814 | + esac |
4815 | for ac_exec_ext in '' $ac_executable_extensions; do |
4816 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
4817 | + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then |
4818 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
4819 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
4820 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 |
4821 | break 2 |
4822 | fi |
4823 | done |
4824 | @@ -3914,11 +4746,11 @@ fi |
4825 | fi |
4826 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
4827 | if test -n "$ac_ct_CXX"; then |
4828 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4829 | -$as_echo "$ac_ct_CXX" >&6; } |
4830 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 |
4831 | +printf "%s\n" "$ac_ct_CXX" >&6; } |
4832 | else |
4833 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4834 | -$as_echo "no" >&6; } |
4835 | + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4836 | +printf "%s\n" "no" >&6; } |
4837 | fi |
4838 | |
4839 | |
4840 | @@ -3930,8 +4762,8 @@ done |
4841 | else |
4842 | case $cross_compiling:$ac_tool_warned in |
4843 | yes:) |
4844 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4845 | -$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4846 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
4847 | +printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
4848 | ac_tool_warned=yes ;; |
4849 | esac |
4850 | CXX=$ac_ct_CXX |
4851 | @@ -3941,7 +4773,7 @@ fi |
4852 | fi |
4853 | fi |
4854 | # Provide some information about the compiler. |
4855 | -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4856 | +printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 |
4857 | set X $ac_compile |
4858 | ac_compiler=$2 |
4859 | for ac_option in --version -v -V -qversion; do |
4860 | @@ -3951,7 +4783,7 @@ case "(($ac_try" in |
4861 | *) ac_try_echo=$ac_try;; |
4862 | esac |
4863 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
4864 | -$as_echo "$ac_try_echo"; } >&5 |
4865 | +printf "%s\n" "$ac_try_echo"; } >&5 |
4866 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
4867 | ac_status=$? |
4868 | if test -s conftest.err; then |
4869 | @@ -3961,20 +4793,21 @@ $as_echo "$ac_try_echo"; } >&5 |
4870 | cat conftest.er1 >&5 |
4871 | fi |
4872 | rm -f conftest.er1 conftest.err |
4873 | - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4874 | + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
4875 | test $ac_status = 0; } |
4876 | done |
4877 | |
4878 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 |
4879 | -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } |
4880 | -if ${ac_cv_cxx_compiler_gnu+:} false; then : |
4881 | - $as_echo_n "(cached) " >&6 |
4882 | -else |
4883 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 |
4884 | +printf %s "checking whether the compiler supports GNU C++... " >&6; } |
4885 | +if test ${ac_cv_cxx_compiler_gnu+y} |
4886 | +then : |
4887 | + printf %s "(cached) " >&6 |
4888 | +else $as_nop |
4889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4890 | /* end confdefs.h. */ |
4891 | |
4892 | int |
4893 | -main () |
4894 | +main (void) |
4895 | { |
4896 | #ifndef __GNUC__ |
4897 | choke me |
4898 | @@ -3984,29 +4817,33 @@ main () |
4899 | return 0; |
4900 | } |
4901 | _ACEOF |
4902 | -if ac_fn_cxx_try_compile "$LINENO"; then : |
4903 | +if ac_fn_cxx_try_compile "$LINENO" |
4904 | +then : |
4905 | ac_compiler_gnu=yes |
4906 | -else |
4907 | +else $as_nop |
4908 | ac_compiler_gnu=no |
4909 | fi |
4910 | -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4911 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4912 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
4913 | |
4914 | fi |
4915 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4916 | -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } |
4917 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 |
4918 | +printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } |
4919 | +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
4920 | + |
4921 | if test $ac_compiler_gnu = yes; then |
4922 | GXX=yes |
4923 | else |
4924 | GXX= |
4925 | fi |
4926 | -ac_test_CXXFLAGS=${CXXFLAGS+set} |
4927 | +ac_test_CXXFLAGS=${CXXFLAGS+y} |
4928 | ac_save_CXXFLAGS=$CXXFLAGS |
4929 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4930 | -$as_echo_n "checking whether $CXX accepts -g... " >&6; } |
4931 | -if ${ac_cv_prog_cxx_g+:} false; then : |
4932 | - $as_echo_n "(cached) " >&6 |
4933 | -else |
4934 | +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 |
4935 | +printf %s "checking whether $CXX accepts -g... " >&6; } |
4936 | +if test ${ac_cv_prog_cxx_g+y} |
4937 | +then : |
4938 | + printf %s "(cached) " >&6 |
4939 | +else $as_nop |
4940 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
4941 | ac_cxx_werror_flag=yes |
4942 | ac_cv_prog_cxx_g=no |
4943 | @@ -4015,76 +4852,345 @@ else |
4944 | /* end confdefs.h. */ |
4945 | |
4946 | int |
4947 | -main () |
4948 | +main (void) |
4949 | { |
4950 | |
4951 | ; |
4952 | return 0; |
4953 | } |
4954 | _ACEOF |
4955 | -if ac_fn_cxx_try_compile "$LINENO"; then : |
4956 | +if ac_fn_cxx_try_compile "$LINENO" |
4957 | +then : |
4958 | ac_cv_prog_cxx_g=yes |
4959 | -else |
4960 | +else $as_nop |
4961 | CXXFLAGS="" |
4962 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4963 | /* end confdefs.h. */ |
4964 | |
4965 | int |
4966 | -main () |
4967 | +main (void) |
4968 | +{ |
4969 | + |
4970 | + ; |
4971 | + return 0; |
4972 | +} |
4973 | +_ACEOF |
4974 | +if ac_fn_cxx_try_compile "$LINENO" |
4975 | +then : |
4976 | + |
4977 | +else $as_nop |
4978 | + ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
4979 | + CXXFLAGS="-g" |
4980 | + cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4981 | +/* end confdefs.h. */ |
4982 | + |
4983 | +int |
4984 | +main (void) |
4985 | +{ |
4986 | + |
4987 | + ; |
4988 | + return 0; |
4989 | +} |
4990 | +_ACEOF |
4991 | +if ac_fn_cxx_try_compile "$LINENO" |
4992 | +then : |
4993 | + ac_cv_prog_cxx_g=yes |
4994 | +fi |
4995 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4996 | +fi |
4997 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
4998 | +fi |
4999 | +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext |
5000 | + ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
Hi Andreas, I am taking this one :)